mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:07:03 +02:00
auditor restore feature uses jquery modal
This commit is contained in:
@ -36,6 +36,21 @@
|
||||
|
||||
<body class="mybody" onload="Piler.add_shortcuts();">
|
||||
|
||||
<div id="deleteconfirm-modal" class="modal hide fade">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" role="dialog" aria-hidden="true"><i class="icon-remove"></i></button>
|
||||
<h3><?php print $text_forward_selected_emails_to; ?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="text" id="restore_address" name="restore_address" />
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
|
||||
<a href="#" onclick="var addr = $('#restore_address').val(); if(addr) { Piler.bulk_restore_messages('<?php print $text_restored; ?>', addr); }" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">OK</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="messagebox1"></div>
|
||||
|
||||
<div id="piler1" class="container">
|
||||
|
@ -100,6 +100,7 @@
|
||||
|
||||
<?php if($next_page <= $total_pages){ ?><a href="#" onclick="Piler.navigation(<?php print $next_page; ?>);">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
||||
<?php if($page < $total_pages) { ?> <a href="#" onclick="Piler.navigation(<?php print $total_pages; ?>);"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
||||
|
||||
</span>
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
@ -111,7 +112,7 @@
|
||||
<?php } ?>
|
||||
|
||||
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
|
||||
<button class="btn piler-right-margin" onclick="var addr = ''; <?php if(Registry::get('auditor_user') == 1) { ?>addr = prompt('<?php print $text_forward_selected_emails_to', ''); <?php } ?> Piler.bulk_restore_messages('<?php print $text_restored; ?>', addr); return false;"><?php print $text_bulk_restore_selected_emails; ?></button>
|
||||
<button class="btn piler-right-margin<?php if(Registry::get('auditor_user') == 1) { ?> confirm-delete<?php } ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', ''); return false;"><?php print $text_bulk_restore_selected_emails; ?></button>
|
||||
<?php } ?>
|
||||
|
||||
<input type="text" id="tag_value" name="tag_value" class="input-xlarge" placeholder="<?php print $text_tag_selected_messages; ?>" />
|
||||
|
Reference in New Issue
Block a user