| 1 |
<div id="archive_view"> |
| 2 |
<?php |
| 3 |
if (empty($data['receiver']->id)) { |
| 4 |
echo '<p class="acym_front_message_warning">'.acym_translation('ACYM_FRONT_ARCHIVE_NOT_CONNECTED').'</p>'; |
| 5 |
} |
| 6 |
?> |
| 7 |
<h1 class="contentheading"><?php echo $data['mail']->subject; ?></h1> |
| 8 |
|
| 9 |
<input type="hidden" id="archive_view__content" value="<?php echo acym_escape($data['mail']->body); ?>" /> |
| 10 |
<div style="min-width:80%" id="archive_view__preview"><?php echo $data['mail']->body; ?></div> |
| 11 |
|
| 12 |
<?php |
| 13 |
$attachments = json_decode(!empty($data['mail']->attachments) ? $data['mail']->attachments : '[]'); |
| 14 |
|
| 15 |
if (!empty($attachments)) { |
| 16 |
?> |
| 17 |
<fieldset class="newsletter_attachments"> |
| 18 |
<legend><?php echo acym_translation('ACYM_ATTACHMENTS'); ?></legend> |
| 19 |
<table> |
| 20 |
<?php |
| 21 |
foreach ($attachments as $attachment) { |
| 22 |
$onlyFilename = explode("/", $attachment->filename); |
| 23 |
|
| 24 |
$onlyFilename = end($onlyFilename); |
| 25 |
|
| 26 |
echo '<tr><td><a href="'.acym_rootURI().$attachment->filename.'" target="_blank">'.$onlyFilename.'</a></td></tr>'; |
| 27 |
} |
| 28 |
?> |
| 29 |
</table> |
| 30 |
</fieldset> |
| 31 |
<?php } ?> |
| 32 |
</div> |
| 33 |
|