2de8b87f |
1 | <?php |
2 | /** |
3 | * option_groups.tpl |
4 | * |
5 | * Template for rendering main option page blocks |
64033e1c |
6 | * |
7 | * The following variables are available to this template: |
8 | * $page_title - string containing the title element for this page |
9 | * $options - array containing option blocks to be displayed. Each |
10 | * element in the array will contain the following fields: |
96698334 |
11 | * $el['url'] - The URL of the link to display that option page |
12 | * $el['name'] - The name of the option page |
13 | * $el['desc'] - string containing the description of that option block |
14 | * $el['js'] - boolean TRUE if the element requires javascript being enabled. |
15 | * $el['accesskey'] - an access key, if one exists (if not, it will be "NONE") |
2de8b87f |
16 | * |
701e7bee |
17 | * @copyright 2006-2014 The SquirrelMail Project Team |
2de8b87f |
18 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
19 | * @version $Id$ |
20 | * @package squirrelmail |
21 | * @subpackage templates |
22 | */ |
23 | |
2de8b87f |
24 | /** extract variables */ |
25 | extract($t); |
2de8b87f |
26 | ?> |
64033e1c |
27 | <div id="optionGroups"> |
28 | <table cellspacing="0"> |
29 | <tr> |
30 | <td colspan="2" class="title"> |
31 | <?php echo $page_title; ?> |
32 | </td> |
33 | </tr> |
34 | <tr> |
35 | <?php |
36 | foreach ($options as $index=>$option) { |
37 | ?> |
38 | <td class="optionElement"> |
39 | <table cellspacing="0"> |
40 | <tr> |
41 | <td class="optionName"> |
96698334 |
42 | <a href=<?php echo '"'.$option['url'].'"'; if ($option['accesskey'] != 'NONE') echo ' accesskey="' . $option['accesskey'] . '"'; ?>><?php echo $option['name']; ?></a> |
64033e1c |
43 | </td> |
44 | </tr> |
45 | <tr> |
46 | <td class="optionDesc"> |
47 | <?php echo $option['desc']; ?> |
48 | </td> |
49 | </tr> |
50 | </table> |
51 | </td> |
52 | <?php |
53 | if (($index+1) % 2 == 0) { |
54 | echo " </tr>\n <tr>\n"; |
55 | } |
56 | } |
57 | ?> |
58 | </tr> |
2de8b87f |
59 | </table> |
64033e1c |
60 | </div> |