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