2be6e3fc |
1 | <?php |
2 | /** |
3 | * error_box.tpl |
4 | * |
5 | * Displays the simple error box. This is different than the error list |
6 | * template that is displayed in footer.tpl. |
7 | * |
8 | * Variables available to this template: |
9 | * $errorMessage - Translated string containing error message to be |
10 | * displayed. |
11 | * $error - Translation of string "ERROR". This string is |
12 | * translated in functions that call this template to |
13 | * avoid making multiple translations on this string |
883d07f1 |
14 | * $link - Array containing link to display to go back, if desired. |
15 | * If no link is dsired, this will be NULL. The array |
16 | * will contain the following elements: |
17 | * $link['URL'] - URL target for link |
18 | * $link['FRAME'] - Frame target for link |
19 | * $link['TEXT'] - Text to display for link |
2be6e3fc |
20 | * |
4b28020b |
21 | * @copyright 1999-2023 The SquirrelMail Project Team |
2be6e3fc |
22 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
23 | * @version $Id$ |
24 | * @package squirrelmail |
25 | * @subpackage templates |
26 | */ |
27 | |
28 | // Extract template variables |
29 | extract($t); |
30 | ?> |
31 | <div style="text-align:center; width:100%"> |
32 | <table class="table_errorBoxWrapper" cellspacing="0"> |
33 | <tr> |
34 | <td> |
35 | <table class="table_errorBox" cellspacing="0"> |
36 | <tr> |
37 | <td class="error_header"> |
38 | <?php echo $error; ?> |
39 | </td> |
40 | </tr> |
41 | <tr> |
42 | <td class="error_message"> |
43 | <?php echo $errorMessage."\n"; ?> |
44 | </td> |
45 | </tr> |
883d07f1 |
46 | <?php |
47 | if (!is_null($link)) { |
48 | ?> |
49 | <tr> |
50 | <td class="error_header"> |
51 | <a href="<?php echo $link['URL']; ?>" target="<?php echo $link['FRAME']; ?>"><?php echo $link['TEXT']; ?></a> |
52 | </td> |
53 | </tr> |
54 | |
55 | <?php |
56 | } |
57 | ?> |
2be6e3fc |
58 | </table> |
59 | </td> |
60 | </tr> |
61 | </table> |
62 | </div> |
5ce1ef68 |
63 | <br /> |