Browse Source

Templates

stekkel 20 years ago
parent
commit
2cc48c4d74
2 changed files with 115 additions and 0 deletions
  1. 91 0
      templates/default/error_message.tpl
  2. 24 0
      templates/default/footer.tpl

+ 91 - 0
templates/default/error_message.tpl

@@ -0,0 +1,91 @@
+<?php
+
+/**
+ * error_message.tpl
+ *
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Template for viewing error handler error messages
+ *
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+/** add required includes */
+
+
+/* retrieve the template vars */
+extract($t);
+if (isset($aErrors) && is_array($aErrors)) {
+?>
+<div id="error_list">
+<table class="error_table">
+  <tr class="error_thead">
+    <td class="error_thead_caption" colspan="2">
+       <div class="thead_caption"><?php echo _("SquirrelMail notice messages");?></div>
+    </td>
+  </tr>
+<?php
+    foreach($aErrors as $aError) {
+?>
+  <tr class="error_row">
+    <td class="error_key">
+       <?php echo _("Category")?>:
+    </td>
+    <td class="error_val">
+       <?php foreach ($aError['category'] as $sCategory) {echo $sCategory;}?>
+    </td>
+  </tr>
+  <tr>
+     <td class="error_key">
+       <?php echo _("Message")?>:
+     </td>
+     <td class="error_val">
+       <?php echo $aError['message'];?>
+     </td>
+  </tr>
+<?php if (isset($aError['extra']) && is_array($aError['extra'])) {
+           foreach ($aError['extra'] as $sKey => $sValue) {?>
+  <tr class="error_row">
+    <td class="error_key">
+      <?php echo $sKey;?>:
+    </td>
+    <td>
+      <?php echo $sValue;?>
+    </td>
+  </tr>
+<?php     } // foreach ($aError['extra'] as sKkey => $sValue)
+       }   // isset($aError['extra']) && is_array($aError['extra']))
+?>
+
+<?php if (isset($aError['tip']) && ($aError['tip'])) {?>
+  <tr class="error_row">
+    <td class="error_key">
+      <?php echo _("Tip");?>:
+    </td>
+    <td class="error_val">
+      <?php echo $aError['tip'];?>
+    </td>
+  </tr>
+<?php }   // (isset($aError['tip']) && ($aError['tip']))
+?>
+
+<?php if (isset($aError['link']) && ($aError['link'])) {?>
+  <tr class="error_row">
+    <td class="error_key">
+      <?php echo _("More info");?>:
+    </td>
+    <td class="error_val">
+      <?php echo $aError['link'];?>
+    </td>
+  </tr>
+<?php }   // (isset($aError['link']) && ($aError['link']))
+    } // foreach($aErrors as $aError)
+?>
+</table>
+</div>
+<?php
+} // isset($aErrors)
+?>

+ 24 - 0
templates/default/footer.tpl

@@ -0,0 +1,24 @@
+     <?php
+
+/**
+ * footer.tpl
+ *
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Template for viewing the footer
+ *
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+/** add required includes */
+
+/* retrieve the template vars */
+extract($t);
+$this->display('error_message.tpl');
+?>
+
+</body>
+</html>