mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 22:02:27 +01:00 
			
		
		
		
	| @@ -0,0 +1,45 @@ | ||||
| <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> | ||||
| <?php if($can_download == 1) { ?> | ||||
|    <a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><i class="glyphicon glyphicon-cloud-download"></i> <?php print $text_download_message; ?></a> | | ||||
| <?php } ?> | ||||
| <?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { if(Registry::get('auditor_user') == 1) { ?> | ||||
|    <a class="messagelink" href="#" onclick="$('#restorebox').show();"><i class="glyphicon glyphicon-refresh"></i> <?php print $text_restore_to_mailbox; ?></a> | | ||||
| <?php } else if($can_restore == 1) { ?> | ||||
|    <a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="glyphicon glyphicon-refresh"></i> <?php print $text_restore_to_mailbox; ?></a> | | ||||
| <?php } } ?> | ||||
|    <a class="messagelink" href="#" onclick="Piler.view_message(<?php print $id; ?>);"><i class="glyphicon glyphicon-envelope"></i> <?php print $text_view_message; ?></a> | ||||
|  | ||||
| <?php if(ENABLE_PDF_DOWNLOAD) { ?> | ||||
|    | <a class="messagelink" href="index.php?route=message/pdf&id=<?php print $id; ?>"><img src="/view/theme/default/assets/images/fileicons/pdf.png" /> PDF</a> | ||||
| <?php } ?> | ||||
|  | ||||
| <?php if($message['has_journal'] == 1 && Registry::get('auditor_user') == 1 && SHOW_ENVELOPE_JOURNAL == 1) { ?> | ||||
|    | <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="glyphicon glyphicon-envelope"></i> <?php print $text_view_journal_envelope; ?></a> | ||||
| <?php } ?> | ||||
|    | <a href="#" onclick="($('#notesbox').is(':hidden'))?$('#notesbox').show():$('#notesbox').hide();"><i class="glyphicon glyphicon-file"></i> <?php print $text_create_note; ?></a> | ||||
| </p> | ||||
|  | ||||
| </div> | ||||
|  | ||||
| <div id="notesbox" class="input-prepend input-append" style="display:none;"> | ||||
|    <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> | ||||
|  | ||||
| <pre class="messagesmtpheaders"><?php print $message['headers']; ?></pre> | ||||
|  | ||||
| @@ -1,4 +1,4 @@ | ||||
| <div id="restorebox" class="alert alert-general" style="display:none;"> | ||||
| <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 /> | ||||
| @@ -14,32 +14,37 @@ | ||||
|  | ||||
|     <p> | ||||
|     <?php if($can_download == 1) { ?> | ||||
|        <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> | | ||||
|        <a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><i class="glyphicon glyphicon-cloud-download"></i> <?php print $text_download_message; ?></a> | | ||||
|     <?php } ?> | ||||
|     <?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { 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> | | ||||
|        <a class="messagelink" href="#" onclick="$('#restorebox').show();"><i class="glyphicon glyphicon-refresh"></i> <?php print $text_restore_to_mailbox; ?></a> | | ||||
|     <?php } else if($can_restore == 1) { ?> | ||||
|        <a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="icon-reply"></i> <?php print $text_restore_to_mailbox; ?></a> | | ||||
|        <a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="glyphicon glyphicon-refresh"></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> | ||||
|        <a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><i class="glyphicon glyphicon-envelope"></i> <?php print $text_view_headers; ?></a> | ||||
|  | ||||
|     <?php if(ENABLE_PDF_DOWNLOAD) { ?> | ||||
|        | <a class="messagelink" href="index.php?route=message/pdf&id=<?php print $id; ?>"><img src="/view/theme/default/assets/images/fileicons/pdf.png" /> <?php print "PDF"; ?></a> | ||||
|        | <a class="messagelink" href="index.php?route=message/pdf&id=<?php print $id; ?>"><img src="/view/theme/default/assets/images/fileicons/pdf.png" /> PDF</a> | ||||
|     <?php } ?> | ||||
|  | ||||
|     <?php if($message['has_journal'] == 1 && Registry::get('auditor_user') == 1 && SHOW_ENVELOPE_JOURNAL == 1) { ?> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_journal_envelope; ?></a> | ||||
|     <?php } ?> | ||||
|     <?php if(Registry::get('auditor_user') == 1) { ?> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.mark_as_private(<?php print $id; ?>, <?php $message['private'] == 1 ? print "0" : print "1" ?>);"><i class="icon-bookmark<?php if($message['private'] == 0) { ?>-empty<?php } ?>"></i> <?php print "private"; ?></a> | ||||
|        <?php if($message['private'] == 0) { ?> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.mark_as_private(<?php print $id; ?>, 1);"><i class="glyphicon glyphicon-eye-open"></i> <?php print "Non-" . strtolower($text_private); ?></a> | ||||
|        <?php } else { ?> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.mark_as_private(<?php print $id; ?>, 0);"><i class="glyphicon glyphicon-eye-close"></i> <?php print $text_private; ?></a> | ||||
|        <?php } ?> | ||||
|     <?php } ?> | ||||
|     <?php if($spam == 1) { ?> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="icon-exclamation-sign"></i> <?php print $text_not_spam; ?></a> | ||||
|        | <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="glyphicon glyphicon-exclamation-sign"></i> <?php print $text_not_spam; ?></a> | ||||
|     <?php } ?> | ||||
|        | <a href="#" onclick="Piler.print_div('messageblock');"><i class="glyphicon glyphicon-print"></i> <?php print $text_print_message; ?></a> | ||||
|  | ||||
|     <?php if(ENABLE_ON_THE_FLY_VERIFICATION == 0) { | ||||
|        if ($message['verification'] == 1) { ?><?php print $text_verified_flag; ?> <i class="glyphicon glyphicon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i><?php } else { ?><?php print $text_unverified_flag; ?> <i class="glyphicon glyphicon-remove-sign icon-large" title="<?php print $text_unverified_flag; ?>"></i><?php } | ||||
|     <?php if(ENABLE_ON_THE_FLY_VERIFICATION == 0) { ?> | ||||
|        | | ||||
|        <?php if ($message['verification'] == 1) { ?><a><i class="glyphicon glyphicon-ok-sign success" title="<?php print $text_verified_flag; ?>"></i></a><?php } else { ?><a><i class="glyphicon glyphicon-remove-sign danger" title="<?php print $text_unverified_flag; ?>"></i></a><?php } | ||||
|     } ?> | ||||
|  | ||||
|        | <a href="#" onclick="($('#notesbox').is(':hidden'))?$('#notesbox').show():$('#notesbox').hide();"><i class="glyphicon glyphicon-file"></i> <?php print $text_create_note; ?></a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user