Merge of Steve Brown's patch
[squirrelmail.git] / templates / default / error_message.tpl
CommitLineData
b80b7b6b 1<?php
2
3/**
4 * error_message.tpl
5 *
b80b7b6b 6 * Template for viewing error handler error messages
7 *
47ccfad4 8 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
4b4abf93 9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
b80b7b6b 10 * @version $Id$
11 * @package squirrelmail
12 * @subpackage templates
13 */
14
15/** add required includes */
16
17
18/* retrieve the template vars */
19extract($t);
20if (isset($aErrors) && is_array($aErrors)) {
21?>
22<div id="error_list">
23<table class="error_table">
24 <tr class="error_thead">
25 <td class="error_thead_caption" colspan="2">
f0f5ad5e 26 <div class="thead_caption"><?php echo _("SquirrelMail notice messages"); ?></div>
b80b7b6b 27 </td>
28 </tr>
29<?php
30 foreach($aErrors as $aError) {
31?>
32 <tr class="error_row">
33 <td class="error_key">
f0f5ad5e 34 <?php echo _("Category:"); ?>
b80b7b6b 35 </td>
36 <td class="error_val">
f0f5ad5e 37 <?php foreach ($aError['category'] as $sCategory) {echo $sCategory;} ?>
b80b7b6b 38 </td>
39 </tr>
40 <tr>
41 <td class="error_key">
f0f5ad5e 42 <?php echo _("Message:"); ?>
b80b7b6b 43 </td>
44 <td class="error_val">
f0f5ad5e 45 <?php echo $aError['message']; ?>
b80b7b6b 46 </td>
47 </tr>
48<?php if (isset($aError['extra']) && is_array($aError['extra'])) {
f0f5ad5e 49 foreach ($aError['extra'] as $sKey => $sValue) { ?>
b80b7b6b 50 <tr class="error_row">
51 <td class="error_key">
f0f5ad5e 52 <?php echo $sKey; ?>:
b80b7b6b 53 </td>
54 <td>
f0f5ad5e 55 <?php echo $sValue; ?>
b80b7b6b 56 </td>
57 </tr>
58<?php } // foreach ($aError['extra'] as sKkey => $sValue)
59 } // isset($aError['extra']) && is_array($aError['extra']))
60?>
61
f0f5ad5e 62<?php if (isset($aError['tip']) && ($aError['tip'])) { ?>
b80b7b6b 63 <tr class="error_row">
64 <td class="error_key">
f0f5ad5e 65 <?php echo _("Tip:"); ?>
b80b7b6b 66 </td>
67 <td class="error_val">
f0f5ad5e 68 <?php echo $aError['tip']; ?>
b80b7b6b 69 </td>
70 </tr>
71<?php } // (isset($aError['tip']) && ($aError['tip']))
72?>
73
f0f5ad5e 74<?php if (isset($aError['link']) && ($aError['link'])) { ?>
b80b7b6b 75 <tr class="error_row">
76 <td class="error_key">
f0f5ad5e 77 <?php echo _("More info:"); ?>
b80b7b6b 78 </td>
79 <td class="error_val">
f0f5ad5e 80 <?php echo $aError['link']; ?>
b80b7b6b 81 </td>
82 </tr>
83<?php } // (isset($aError['link']) && ($aError['link']))
84 } // foreach($aErrors as $aError)
85?>
86</table>
87</div>
88<?php
89} // isset($aErrors)
90?>