mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 08:47:02 +02:00
improved folder feature
This commit is contained in:
@ -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