mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:57:03 +02:00
added printing support
This commit is contained in:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user