mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
improved folder feature
This commit is contained in:
@ -1658,6 +1658,7 @@ html,body{height:auto !important;height:100%;min-height:100%;}
|
||||
#popupx{position:absolute;right:10px;top:5px;margin:10px;cursor:pointer;}
|
||||
#restorebox{position:absolute;top:40px;left:15%;display:none;font-weight:bold;padding:15px;z-index:1;}
|
||||
#notesbox{position:absolute;top:8px;right:8px;}
|
||||
#folderbox{position:absolute;top:8px;right:380px;}
|
||||
#sspinner{display:none;}
|
||||
.message_highlight{background:lightblue;}
|
||||
#searchcontainer{text-align:center;min-width:320px;}
|
||||
@ -1669,7 +1670,7 @@ html,body{height:auto !important;height:100%;min-height:100%;}
|
||||
#searchcontainer #button_search,#searchcontainer #button_options{width:30%;}
|
||||
#mainscreen{position:absolute;top:120px;right:20px;bottom:20px;left:20px;min-width:320px;z-index:0;}
|
||||
#mailleftcontainer{position:absolute;top:0;left:0;bottom:0;width:195px;}
|
||||
#mailboxlist-container{position:absolute;top:0;left:0;width:100%;bottom:0;border:1px solid #999999;border-top:none;background-color:#f9f9f9;overflow:hidden;}
|
||||
#mailboxlist-container{position:absolute;top:0;left:0;width:100%;bottom:0;border:1px solid #999999;border-top:none;background-color:#f9f9f9;overflow:auto;}
|
||||
.boxlistcontent{position:absolute;top:0px;bottom:34px;left:0;right:0;width:100%;overflow-y:auto;overflow-x:hidden;height:auto;}
|
||||
.boxfooter{position:absolute;bottom:0px;left:0px;right:0px;overflow:hidden;height:33px;border-top:1px solid #ccc;background-color:#f6f6f6;min-width:320px;}
|
||||
#mailboxlist{position:relative;height:auto;margin:0px;padding:0px;list-style-image:none;list-style-type:none;overflow:hidden;white-space:nowrap;background-color:#FFF;}
|
||||
@ -1730,4 +1731,6 @@ body#loginpage{background-color:#fcfcfc;padding-top:40px;padding-bottom:40px;}
|
||||
.control-group.success .fileupload .fileupload-preview{color:#468847;}
|
||||
.control-group.success .fileupload .thumbnail{border-color:#468847;}
|
||||
.bottomborder { border-bottom: 1px solid black; }
|
||||
.folderlabel{display: block; padding-left: 35px; text-indent: -15px;}
|
||||
.foldercheckbox{vertical-align: center; position: relative; top: -1px; margin:0; padding: 0; height: 13px; width: 13px;}
|
||||
@media (min-width:980px){body{padding-top:65px;}}@media (max-width:980px){.navbar-fixed-top{margin-bottom:10px;} .nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{font-weight:normal;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} .nav-collapse .nav>li>a:hover,.nav-collapse ul.nav li.dropdown ul.dropdown-menu li a:hover{color:#fff;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;background-color:#555555;} .navbar .nav li.dropdown>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff;} .dropdown-menu li>a:hover{background-color:#00f;}}@media (max-width:767px){#mainscreen{top:162px;} #pagingrow{border-bottom:1px solid #ccc;} #pagingbox{border-right:none;} #functionbox{border-left:none;} .boxlistcontent{bottom:68px;overflow:scroll;} .boxfooter{height:67px;}}
|
||||
|
@ -43,6 +43,18 @@
|
||||
<input type="button" class="btn btn-info" value="<?php print $text_save; ?>" class="message_button" onclick="Piler.add_note_to_message(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
|
||||
</div>
|
||||
|
||||
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
|
||||
<div id="folderbox" class="input-prepend input-append">
|
||||
<span class="add-on"><i class="icon-folder-open-alt icon-large"></i> <?php print $text_folder; ?>:</span>
|
||||
<select name="folder_id" id="folder_id" class="span2">
|
||||
<option value="0" <?php if($folder_id == 0) { ?>selected="selected"<?php } ?>>---</option>
|
||||
<?php foreach ($folders as $folder) { ?>
|
||||
<option value="<?php print $folder['id']; ?>" <?php if($folder_id == $folder['id']) { ?>selected="selected"<?php } ?>><?php print $folder['name']; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="button" class="btn btn-info" value="<?php print $text_save; ?>" class="message_button" onclick="Piler.update_message_folder(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="messageblock">
|
||||
|
||||
|
@ -2,17 +2,12 @@
|
||||
|
||||
<div id="folders">
|
||||
|
||||
|
||||
<?php foreach ($extra_folders as $folder) { ?>
|
||||
<blockquote class="folder">
|
||||
<form class="form-search sleek">
|
||||
<img src="<?php print ICON_EMPTY; ?>" width="12" height="12" alt="" /> <input type="checkbox" id="extra_folder_<?php print $folder['id']; ?>" name="extra_folder_<?php print $folder['id']; ?>" /> <input type="text" ondrop="Piler.copy_message_to_folder('<?php print $folder['id']; ?>', Piler.current_message_id, '<?php print $text_copied; ?>'); return false;" class="input-small bold" style="color: #850505; border:none; background: transparent; " value="<?php print $folder['name']; ?>" />
|
||||
</form>
|
||||
</blockquote>
|
||||
<div>
|
||||
<label class="folderlabel"><input type="checkbox" id="extra_folder_<?php print $folder['id']; ?>" name="extra_folder_<?php print $folder['id']; ?>" style="margin:0;" class="foldercheckbox" /> <?php print $folder['name']; ?></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
function display_folders($arr = array(), &$i) {
|
||||
@ -43,7 +38,7 @@ function display_folders($arr = array(), &$i) {
|
||||
|
||||
<?php
|
||||
$i = 0;
|
||||
display_folders($folders_by_hier, $i);
|
||||
//display_folders($folders_by_hier, $i);
|
||||
?>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user