mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-02 09:13:18 +02:00
gui: folder search improvements
Change-Id: Ia098c7c2efcb9011e706012ee074e0c354bebded Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
@ -1669,7 +1669,7 @@ html,body{height:auto !important;height:100%;min-height:100%;}
|
||||
#searchcontainer #button_audit{width: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;}
|
||||
#mailleftcontainer{position:absolute;top:0;left:0;bottom:0;width:195px;border:1px solid #999999;}
|
||||
#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;}
|
||||
|
@ -2,44 +2,10 @@
|
||||
|
||||
<div id="folders">
|
||||
|
||||
<?php foreach ($extra_folders as $folder) { ?>
|
||||
<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 while(list($k,$v) = each($folders)) { ?>
|
||||
<div>
|
||||
<label class="folderlabel"><input type="checkbox" id="folder_<?php print $v; ?>" name="folder_<?php print $v; ?>" style="margin:0;" class="foldercheckbox" /> <?php print $k; ?></label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
||||
function display_folders($arr = array(), &$i) {
|
||||
|
||||
?>
|
||||
<blockquote id="fldr_<?php print $i; ?>" class="folder">
|
||||
<?php
|
||||
$i++;
|
||||
|
||||
foreach($arr as $a) {
|
||||
?>
|
||||
|
||||
<?php if(count($a['children']) > 0) { ?>
|
||||
<a id="fldr_collapse_<?php print $i; ?>" href="#" onclick="Piler.close_folder(<?php print $i; ?>); return false;"><img src="<?php print ICON_MINUS; ?>" alt="" /></a>
|
||||
<a id="fldr_open_<?php print $i; ?>" href="#" onclick="Piler.open_folder(<?php print $i; ?>); return false;" style="display:none;"><img src="<?php print ICON_PLUS; ?>" alt="" /></a>
|
||||
<?php } else { ?> <img src="<?php print ICON_EMPTY; ?>" width="12" height="12" alt="" /> <?php } ?>
|
||||
<input type="checkbox" id="folder_<?php print $a['id']; ?>" name="folder_<?php print $a['id']; ?>" /> <?php print $a['name']; ?><br />
|
||||
|
||||
<?php
|
||||
if(count($a['children'])) { display_folders($a['children'], $i); }
|
||||
}
|
||||
?>
|
||||
|
||||
</blockquote>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i = 0;
|
||||
//display_folders($folders_by_hier, $i);
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user