summaryrefslogtreecommitdiff
path: root/manager/application/views
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-07-07 09:41:44 +0200
committerMarkus Warg <mw@it-sls.de>2010-07-07 09:41:44 +0200
commit1a0d0c99c39054ee42508fede5a87ade5f2bcdca (patch)
treebd7f26be20fd6633a59cae55dae1cd5f6077345c /manager/application/views
parent46d228ccc3d7e0ceb701802790de6de9717feef0 (diff)
downloadcacert-mgr-1a0d0c99c39054ee42508fede5a87ade5f2bcdca.tar.gz
cacert-mgr-1a0d0c99c39054ee42508fede5a87ade5f2bcdca.tar.xz
cacert-mgr-1a0d0c99c39054ee42508fede5a87ade5f2bcdca.zip
add view own mails, view all mails (admin role required)
add email delete
Diffstat (limited to 'manager/application/views')
-rw-r--r--manager/application/views/scripts/mail/delete.phtml12
-rw-r--r--manager/application/views/scripts/mail/full.phtml37
-rw-r--r--manager/application/views/scripts/mail/index.phtml37
3 files changed, 72 insertions, 14 deletions
diff --git a/manager/application/views/scripts/mail/delete.phtml b/manager/application/views/scripts/mail/delete.phtml
new file mode 100644
index 0000000..d01cec8
--- /dev/null
+++ b/manager/application/views/scripts/mail/delete.phtml
@@ -0,0 +1,12 @@
+<?php
+/**
+ * @author markus
+ * $Id: index.phtml 25 2009-12-02 15:43:21Z markus $
+ */
+$this->headLink()->appendStylesheet('/css/mail.css');
+$this->headScript()->appendFile('/js/mail_redirect.js');
+?>
+<H1><?php print I18n::_('Delete Mail'); ?></H1>
+<?php
+print $this->message;
+print '<input type="hidden" id="returnto" value="' . $this->returnto . '">';
diff --git a/manager/application/views/scripts/mail/full.phtml b/manager/application/views/scripts/mail/full.phtml
new file mode 100644
index 0000000..ba1986b
--- /dev/null
+++ b/manager/application/views/scripts/mail/full.phtml
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @author markus
+ * $Id: index.phtml 25 2009-12-02 15:43:21Z markus $
+ */
+$this->headLink()->appendStylesheet('/css/mail.css');
+?>
+<H1><?php print I18n::_('View all Mail'); ?></H1>
+<?php
+if (count($this->headers) == 0) {
+ print I18n::_('You currently have no mail.');
+}
+else {
+?>
+<table>
+ <tr>
+ <th class="col1"><?php print I18n::_('From');?></th>
+ <th class="col2"><?php print I18n::_('To');?></th>
+ <th class="col3"><?php print I18n::_('Subject');?></th>
+ <th class="col4"><?php print I18n::_('Date');?></th>
+ <th class="col5"><?php print I18n::_('Size');?></th>
+ <th class="col6"><?php print I18n::_('Del');?></th>
+ </tr>
+<?php
+ foreach ($this->headers as $header) {
+ print " <tr>\n";
+ print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
+ print " <td>" . $header->toaddress . "</td>";
+ print " <td>" . $header->subject . "</td>";
+ print " <td>" . $header->date . "</td>";
+ print " <td>" . $header->Size . "</td>";
+ print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
+ print " </tr>\n";
+ }
+}
+?>
+</table>
diff --git a/manager/application/views/scripts/mail/index.phtml b/manager/application/views/scripts/mail/index.phtml
index faf6bd4..85288e4 100644
--- a/manager/application/views/scripts/mail/index.phtml
+++ b/manager/application/views/scripts/mail/index.phtml
@@ -5,24 +5,33 @@
*/
$this->headLink()->appendStylesheet('/css/mail.css');
?>
-<H1><?php print I18n::_('Mail'); ?></H1>
+<H1><?php print I18n::_('View own Mail'); ?></H1>
+<?php
+if (count($this->headers) == 0) {
+ print I18n::_('You currently have no mail.');
+}
+else {
+?>
<table>
<tr>
- <th><?php print I18n::_('From');?></th>
- <th><?php print I18n::_('To');?></th>
- <th><?php print I18n::_('Subject');?></th>
- <th><?php print I18n::_('Date');?></th>
- <th><?php print I18n::_('Size');?></th>
+ <th class="col1"><?php print I18n::_('From');?></th>
+ <th class="col2"><?php print I18n::_('To');?></th>
+ <th class="col3"><?php print I18n::_('Subject');?></th>
+ <th class="col4"><?php print I18n::_('Date');?></th>
+ <th class="col5"><?php print I18n::_('Size');?></th>
+ <th class="col6"><?php print I18n::_('Del');?></th>
</tr>
<?php
-foreach ($this->headers as $header) {
- print " <tr>\n";
- print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
- print " <td>" . $header->toaddress . "</td>";
- print " <td>" . $header->subject . "</td>";
- print " <td>" . $header->date . "</td>";
- print " <td>" . $header->Size . "</td>";
- print " </tr>\n";
+ foreach ($this->headers as $header) {
+ print " <tr>\n";
+ print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
+ print " <td>" . $header->toaddress . "</td>";
+ print " <td>" . $header->subject . "</td>";
+ print " <td>" . $header->date . "</td>";
+ print " <td>" . $header->Size . "</td>";
+ print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
+ print " </tr>\n";
+ }
}
?>
</table>