5 * Template for rendering main option page blocks
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:
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")
17 * @copyright 2006-2021 The SquirrelMail Project Team
18 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
20 * @package squirrelmail
21 * @subpackage templates
24 /** extract variables */
27 <div id="optionGroups">
28 <table cellspacing="0">
30 <td colspan="2" class="title">
31 <?php echo $page_title; ?>
36 foreach ($options as $index=>$option) {
38 <td class="optionElement">
39 <table cellspacing="0">
41 <td class="optionName">
42 <a href=<?php echo '"'.$option['url'].'"'; if ($option['accesskey'] != 'NONE') echo ' accesskey="' . $option['accesskey'] . '"'; ?>><?php echo $option['name']; ?></a>
46 <td class="optionDesc">
47 <?php echo $option['desc']; ?>
53 if (($index+1) % 2 == 0) {
54 echo " </tr>\n <tr>\n";