mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:30:12 +01:00
added printing support
This commit is contained in:
parent
6f7d31f70a
commit
83a223e96e
@ -468,5 +468,6 @@ $_['text_google_authenticator_settings'] = "Google Authenticator settings";
|
||||
$_['text_invalid_pin_code'] = "Invalid pin code";
|
||||
$_['text_qr_code'] = "QR";
|
||||
$_['text_refresh_qr_code'] = "Refresh QR code";
|
||||
$_['text_print_message'] = "Print";
|
||||
|
||||
?>
|
||||
|
@ -253,6 +253,7 @@ $_['text_policy'] = "Policy";
|
||||
$_['text_policy_group'] = "Policy group";
|
||||
$_['text_policy_name'] = "Policy name";
|
||||
$_['text_previous'] = "Previous";
|
||||
$_['text_print_message'] = "Print";
|
||||
$_['text_processed_emails'] = "Processed emails";
|
||||
$_['text_progress'] = "Progress";
|
||||
$_['text_purge_all_messages_from_quarantine'] = "Purge all your own messages from quarantine";
|
||||
|
@ -467,5 +467,6 @@ $_['text_google_authenticator_settings'] = "Google Authenticator settings";
|
||||
$_['text_invalid_pin_code'] = "Invalid pin code";
|
||||
$_['text_qr_code'] = "QR";
|
||||
$_['text_refresh_qr_code'] = "Refresh QR code";
|
||||
$_['text_print_message'] = "Print";
|
||||
|
||||
?>
|
||||
|
@ -254,6 +254,7 @@ $_['text_policy'] = "H
|
||||
$_['text_policy_group'] = "Házirend azonosító";
|
||||
$_['text_policy_name'] = "Házirend neve";
|
||||
$_['text_previous'] = "Előző";
|
||||
$_['text_print_message'] = "Nyomtatás";
|
||||
$_['text_processed_emails'] = "Feldolgozott levelek";
|
||||
$_['text_progress'] = "Státusz";
|
||||
$_['text_purge_all_messages_from_quarantine'] = "Összes saját üzenet törlése a karanténból";
|
||||
|
@ -254,6 +254,7 @@ $_['text_policy'] = "Házirend";
|
||||
$_['text_policy_group'] = "Házirend azonosító";
|
||||
$_['text_policy_name'] = "Házirend neve";
|
||||
$_['text_previous'] = "Előző";
|
||||
$_['text_print_message'] = "Nyomtatás";
|
||||
$_['text_processed_emails'] = "Feldolgozott levelek";
|
||||
$_['text_progress'] = "Státusz";
|
||||
$_['text_purge_all_messages_from_quarantine'] = "Összes saját üzenet törlése a karanténból";
|
||||
|
@ -460,5 +460,6 @@ $_['text_google_authenticator_settings'] = "Google Authenticator settings";
|
||||
$_['text_invalid_pin_code'] = "Invalid pin code";
|
||||
$_['text_qr_code'] = "QR";
|
||||
$_['text_refresh_qr_code'] = "Refresh QR code";
|
||||
$_['text_print_message'] = "Print";
|
||||
|
||||
?>
|
||||
|
@ -1077,8 +1077,21 @@ var Piler =
|
||||
<?php if(OUTLOOK == 1) { ?>
|
||||
$('#mainscreen').css('top', '60px');
|
||||
<?php } ?>
|
||||
},
|
||||
|
||||
|
||||
print_div: function(divID) {
|
||||
var divElements = document.getElementById(divID).innerHTML;
|
||||
var oldPage = document.body.innerHTML;
|
||||
|
||||
document.body.innerHTML = "<html><head><title></title></head><body>" + divElements + "</body></html>";
|
||||
|
||||
window.print();
|
||||
|
||||
document.body.innerHTML = oldPage;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,13 +23,25 @@
|
||||
<?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 } ?>
|
||||
| <a href="#" onclick="Piler.print_div('messageblock');"><i class="icon-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="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i><?php } else { ?><?php print $text_unverified_flag; ?> <i class="unverified icon-remove-sign icon-large" title="<?php print $text_unverified_flag; ?>"></i><?php }
|
||||
} ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<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 id="messageblock">
|
||||
|
||||
<div class="messageheader">
|
||||
<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 />
|
||||
@ -37,12 +49,10 @@
|
||||
<?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>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -144,6 +144,8 @@
|
||||
.sleek { margin:0; padding:0; }
|
||||
.with20margin{ margin-left:20%; margin-right:20%; }
|
||||
|
||||
#notesbox { position:absolute; top:8px; right:8px; }
|
||||
|
||||
.messagecontents {background-color:#fff; padding:8px; font-size:14px; font-family: "Trebuchet MS", Arial, Verdana; }
|
||||
|
||||
|
||||
|
@ -1,47 +1,58 @@
|
||||
<div id="restorebox">
|
||||
<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="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();" />
|
||||
<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>
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
|
||||
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { if(Registry::get('auditor_user') == 1) { ?>
|
||||
<a class="messagelink" href="#" onclick="$('#restorebox').show();"><?php print $text_restore_to_mailbox; ?></a> |
|
||||
<?php } else { ?>
|
||||
<a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><?php print $text_restore_to_mailbox; ?></a> |
|
||||
<?php } } ?>
|
||||
<a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><?php print $text_view_headers; ?></a>
|
||||
<?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"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
<div class="messageheader">
|
||||
|
||||
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 0) {
|
||||
if ($message['verification'] == 1) { ?><?php print $text_verified_flag; ?> <i class="icon-ok-sign sleek" title="<?php print $text_verified_flag; ?>"></i><?php } else { ?><?php print $text_unverified_flag; ?> <i class="unverified icon-remove-sign sleek" title="<?php print $text_unverified_flag; ?>"></i><?php }
|
||||
<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(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> |
|
||||
<?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>
|
||||
<?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 } ?>
|
||||
| <a href="#" onclick="Piler.print_div('messageblock');"><i class="icon-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="verified icon-ok-sign icon-large" title="<?php print $text_verified_flag; ?>"></i><?php } else { ?><?php print $text_unverified_flag; ?> <i class="unverified icon-remove-sign icon-large" title="<?php print $text_unverified_flag; ?>"></i><?php }
|
||||
} ?>
|
||||
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<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 />
|
||||
<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-inverse" value="<?php print $text_save; ?>" class="message_button" onclick="Piler.add_note_to_message(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
|
||||
</div>
|
||||
|
||||
<form class="form-inline" name="view">
|
||||
|
||||
<strong><?php print $text_notes; ?></strong>: <input type="text" size="60" id="note" name="note" class="input-medium" value="<?php print preg_replace("/\"/", """, $message['note']); ?>" /> <input type="button" value="<?php print $text_save; ?>" class="btn btn-inverse" onclick="Piler.add_note_to_message(<?php print $id; ?>, '<?php print $text_saved; ?>'); " />
|
||||
<div id="messageblock">
|
||||
|
||||
</form>
|
||||
<div class="messageheader">
|
||||
<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>
|
||||
<div class="messagecontents">
|
||||
<?php print $message['message']; ?>
|
||||
</div>
|
||||
|
||||
<?php foreach($attachments as $a) { ?>
|
||||
<span><img src="<?php print ICON_ATTACHMENT; ?>" /><a href="index.php?route=message/attachment&id=<?php print $a['id']; ?>"><?php print $a['name']; ?></a></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div class="messagecontents"><?php print $message['message']; ?></div>
|
||||
|
Loading…
Reference in New Issue
Block a user