Templates
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Jul 2005 21:04:22 +0000 (21:04 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Jul 2005 21:04:22 +0000 (21:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9842 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/error_message.tpl [new file with mode: 0644]
templates/default/footer.tpl [new file with mode: 0644]

diff --git a/templates/default/error_message.tpl b/templates/default/error_message.tpl
new file mode 100644 (file)
index 0000000..a87439d
--- /dev/null
@@ -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)
+?>
\ No newline at end of file
diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl
new file mode 100644 (file)
index 0000000..2a06b75
--- /dev/null
@@ -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>
\ No newline at end of file