mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 15:41:59 +01:00
41 lines
2.7 KiB
Smarty
41 lines
2.7 KiB
Smarty
<div id="restorebox" class="alert alert-general">
|
|
<?php if(Registry::get('auditor_user') == 1 && count($rcpt) > 0) { ?>
|
|
<?php foreach($rcpt as $r) { ?>
|
|
<input type="checkbox" class="restorebox" id="rcpt_<?php print $r; ?>" name="rcpt_<?php print $r; ?>" value="1" /> <?php print $r; ?><br />
|
|
<?php } ?>
|
|
<br />
|
|
<input type="button" id="restore_button" name="restore_button" value="<?php print $text_restore; ?>" class="btn btn-primary" 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="btn btn-inverse" onclick="$('#restorebox').hide();" />
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<div class="messageheader">
|
|
|
|
<p>
|
|
<a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><i class="icon-cloud-download"></i> <?php print $text_download_message; ?></a> |
|
|
<?php if(Registry::get('auditor_user') == 1) { ?>
|
|
<a class="messagelink" href="#" onclick="$('#restorebox').show();"><i class="icon-reply"></i> <?php print $text_restore_to_mailbox; ?></a> |
|
|
<?php } else { ?>
|
|
<a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="icon-reply"></i> <?php print $text_restore_to_mailbox; ?></a> |
|
|
<?php } ?>
|
|
<a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_headers; ?></a>
|
|
</p>
|
|
|
|
<strong><?php if($message['subject'] == "" || $message['subject'] == "Subject:") { print "<" . $text_no_subject . ">"; } else { print $message['subject']; } ?></strong><br />
|
|
<strong><?php print $message['from']; ?></strong><br />
|
|
<strong><?php print $message['to']; ?></strong><br />
|
|
<strong><?php print $message['date']; ?></strong><br />
|
|
<?php foreach($attachments as $a) { ?>
|
|
<span><i class="attachment icon-paper-clip icon-large" title="Message Attachment"></i> <a href="index.php?route=message/attachment&id=<?php print $a['id']; ?>"><?php print $a['name']; ?></a></span>
|
|
<?php } ?><br/>
|
|
<div id="notesbox" class="input-prepend input-append">
|
|
<span class="add-on"><i class="icon-file-alt icon-large"></i> <?php print $text_notes; ?>:</span>
|
|
<input type="text" size="60" id="note" name="note" class="mynote" value="<?php print preg_replace("/\"/", """, $message['note']); ?>" />
|
|
<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>
|
|
</div>
|
|
<div class="messagecontents">
|
|
<?php print $message['message']; ?>
|
|
</div>
|