Merge branch 'bug-932'
[cacert-mgr.git] / manager / application / views / scripts / mail / full.phtml
1 <?php
2 /**
3 * @author markus
4 * $Id: index.phtml 25 2009-12-02 15:43:21Z markus $
5 */
6 $this->headLink()->appendStylesheet('/css/mail.css');
7 ?>
8 <H1><?php print I18n::_('View all Mail'); ?></H1>
9 <?php
10 if (count($this->headers) == 0) {
11 print I18n::_('You currently have no mail.');
12 }
13 else {
14 ?>
15 <table>
16 <tr>
17 <th class="col1"><?php print I18n::_('From');?></th>
18 <th class="col2"><?php print I18n::_('To');?></th>
19 <th class="col3"><?php print I18n::_('Subject');?></th>
20 <th class="col4"><?php print I18n::_('Date');?></th>
21 <th class="col5"><?php print I18n::_('Size');?></th>
22 <th class="col6"><?php print I18n::_('Del');?></th>
23 </tr>
24 <?php
25 foreach ($this->headers as $header) {
26 print " <tr>\n";
27 print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
28 print " <td>" . $header->toaddress . "</td>";
29 print " <td>" . htmlspecialchars(iconv_mime_decode($header->subject, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . "</td>";
30 print " <td>" . $header->date . "</td>";
31 print " <td>" . $header->Size . "</td>";
32 print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
33 print " </tr>\n";
34 }
35 }
36 ?>
37 </table>