piler/webui/view/theme/default/templates/message/headers.tpl

25 lines
1.3 KiB
Smarty
Raw Normal View History

2013-02-11 20:24:19 +01:00
<div id="restorebox">
<?php if(Registry::get('auditor_user') == 1 && count($rcpt) > 0) { ?>
<?php foreach($rcpt as $r) { ?>
2013-02-11 20:24:19 +01:00
<input type="checkbox" class="restorebox" id="rcpt_<?php print $r; ?>" name="rcpt_<?php print $r; ?>" value="1" /> <?php print $r; ?><br />
<?php } ?>
<br />
2013-02-11 20:24:19 +01:00
<input type="button" id="restore_button" name="restore_button" value="<?php print $text_restore; ?>" class="restore_to_mailbox_button" onclick="Piler.restore_message_for_recipients(<?php print $id; ?>, '<?php print $text_restored; ?>', '<?php print $text_select_recipients; ?>');" />
<input type="button" value="<?php print $text_cancel; ?>" class="restore_to_mailbox_button" onclick="$('#restorebox').hide();" />
<?php } ?>
2012-02-08 23:14:28 +01:00
</div>
2012-02-08 23:14:28 +01:00
<p>
2012-12-18 15:58:14 +01:00
<a class="messagelink" href="index.php?route=message/download&amp;id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
<?php if(Registry::get('auditor_user') == 1) { ?>
2013-02-11 20:24:19 +01:00
<a class="messagelink" href="#" onclick="$('#restorebox').show();"><?php print $text_restore_to_mailbox; ?></a> |
<?php } else { ?>
2013-02-11 20:24:19 +01:00
<a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><?php print $text_restore_to_mailbox; ?></a> |
<?php } ?>
2013-02-11 20:24:19 +01:00
<a class="messagelink" href="#" onclick="Piler.view_message(<?php print $id; ?>);"><?php print $text_view_message; ?></a>
2012-02-08 23:14:28 +01:00
</p>
<pre><?php print $data; ?></pre>