mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
auditor restore feature uses jquery modal
This commit is contained in:
parent
f5a5c6a1c0
commit
1cb85a3803
@ -36,6 +36,21 @@
|
||||
|
||||
<body 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="menu">
|
||||
<?php print $menu; ?>
|
||||
</div>
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
<div id="sspinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_working; ?></div>
|
||||
<div id="messagelistcontainer" class="boxlistcontent">
|
||||
<?php if($n > 0) { ?>
|
||||
@ -130,6 +131,7 @@
|
||||
|
||||
<?php if($page < $total_pages) { ?><a href="#" class="navlink" onclick="Piler.navigation(<?php print $total_pages; ?>);"><i class="icon-double-angle-right icon-large"></i></a><?php } else { ?> <span class="navlink"><i class="icon-double-angle-right icon-large muted"></i></span><?php } ?>
|
||||
|
||||
|
||||
<?php } else { print $text_none_found; } ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -145,7 +147,7 @@
|
||||
|
||||
<span class="add-on"><?php print $text_with_selected; ?>: </span>
|
||||
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
|
||||
<a href="#" class="btn btn-custom btn-inverse" 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); " title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
|
||||
<a href="#" class="btn btn-custom btn-inverse<?php if(Registry::get('auditor_user') == 1) { ?> confirm-delete<?php } ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', '');" title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
|
||||
<?php } ?>
|
||||
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
|
||||
<input type="text" id="tag_value" name="tag_value" class="tagtext" />
|
||||
|
@ -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; ?>" />
|
||||
|
Loading…
Reference in New Issue
Block a user