you can download individual attachments

This commit is contained in:
SJ
2012-10-04 10:00:54 +02:00
parent 0c20a5f1e1
commit d6b0c3def4
5 changed files with 129 additions and 0 deletions

View File

@ -10,5 +10,9 @@
<strong><?php print $message['to']; ?></strong><br />
<strong><?php print $message['date']; ?></strong> <?php print $text_notes; ?>: <input type="text" size="60" id="note" name="note" class="advtextgrey" style="width: 500px;margin: 0px; color: #000000; height:10px;" value="<?php print $message['note']; ?>" /> <input type="button" value="<?php print $text_save; ?>" style="vertical-align: middle; font: bold 11px Arial, sans-serif; height:16px;" onclick="javascript:var p = 'id=<?php print $id; ?>&note=' + encodeURI(document.getElementById('note').value); send_ajax_post_request('<?php print MESSAGE_NOTE_URL; ?>', p); show_message('messagebox1', '<p>SAVED</p>', 0.85); " /><br />
<?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 } ?>
<hr />
<?php print $message['message']; ?><br />