list mails, read mails
[cacert-mgr.git] / manager / application / views / scripts / mail / index.phtml
index 4cbadc3..faf6bd4 100644 (file)
@@ -3,5 +3,26 @@
  * @author markus\r
  * $Id: index.phtml 25 2009-12-02 15:43:21Z markus $\r
  */\r
+$this->headLink()->appendStylesheet('/css/mail.css');\r
 ?>\r
 <H1><?php print I18n::_('Mail'); ?></H1>\r
+<table>\r
+       <tr>\r
+               <th><?php print I18n::_('From');?></th>\r
+               <th><?php print I18n::_('To');?></th>\r
+               <th><?php print I18n::_('Subject');?></th>\r
+               <th><?php print I18n::_('Date');?></th>\r
+               <th><?php print I18n::_('Size');?></th>\r
+       </tr>\r
+<?php\r
+foreach ($this->headers as $header) {\r
+       print "        <tr>\n";\r
+       print "            <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";\r
+       print "            <td>" . $header->toaddress . "</td>";\r
+       print "            <td>" . $header->subject . "</td>";\r
+       print "            <td>" . $header->date . "</td>";\r
+       print "            <td>" . $header->Size . "</td>";\r
+       print "        </tr>\n";\r
+}\r
+?>\r
+</table>\r