3 * options_highlight.tpl
5 * Template for displaying option highlighting rules
7 * The following variables are available in this template:
8 * $current_rules - array containing the current rule set. Each element
9 * contains the following fields:
10 * $el['Name'] - The name of the rule. Sanitized. May be empty.
11 * $el['Color'] - The highlight color for the rule
12 * $el['MatchField'] - Translated name of the field the rule matches
13 * $el['MatchValue'] - The value being matched
14 * $add_rule - URL to add a rule
15 * $edit_rule - URL foundation to edit a rule
16 * $delete_rule - URL foundation to delete a rule
17 * $move_up - URL foundation to move a rule up
18 * $move_down - URL foundation to move a rule down
20 * @copyright © 1999-2006 The SquirrelMail Project Team
21 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @package squirrelmail
24 * @subpackage templates
27 /** add required includes **/
29 /** extract template variables **/
32 /** Begin template **/
34 <div id="optionHighlightList">
35 <table cellspacing="0" class="table1">
38 <?php echo _("Options") .' - '. _("Message Highlighting"); ?>
43 <table cellspacing="0" class="table1">
45 if (count($current_rules) == 0) {
48 <td colspan="6" class="emptyList">
49 <?php echo _("No highlighting is defined"); ?>
55 foreach ($current_rules as $index=>$rule) {
58 <td class="ruleButtons">
59 <small>[<a href="<?php echo $edit_rule.$index ?>"><?php echo _("Edit"); ?></a>]</small>
61 <td class="ruleButtons">
62 <small>[<a href="<?php echo $delete_rule.$index; ?>"><?php echo _("Delete"); ?></a>]</small>
64 <td class="ruleButtons">
68 <small>[<a href="<?php echo $move_up.$index; ?>"><?php echo _("Up"); ?></a>]</small>
77 <td class="ruleButtons">
79 if ($index < count($current_rules)-1) {
81 <small>[<a href="<?php echo $move_down.$index; ?>"><?php echo _("Down"); ?></a>]</small>
90 <td bgcolor="#<?php echo $rule['Color']; ?>" class="ruleName">
91 <?php echo $rule['Name']; ?>
93 <td bgcolor="#<?php echo $rule['Color']; ?>" class="ruleDesc">
94 <?php echo $rule['MatchField'].' = '.$rule['MatchValue']; ?>
104 <td class="ruleButtons">
105 [ <a href="<?php echo $add_rule; ?>"><?php echo _("Add"); ?></a> ]
106 [ <a href="options.php"><?php echo _("Done"); ?></a> ]