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
28 /** extract template variables **/
31 /** Begin template **/
33 <div id="optionHighlightList">
34 <table cellspacing="0" class="table1">
37 <?php echo _("Options") .' - '. _("Message Highlighting"); ?>
42 <table cellspacing="0" class="table1">
44 if (count($current_rules) == 0) {
47 <td colspan="6" class="emptyList">
48 <?php echo _("No highlighting is defined"); ?>
54 foreach ($current_rules as $index=>$rule) {
57 <td class="ruleButtons">
58 <a href="<?php echo $edit_rule.$index ?>"><?php echo getIcon($icon_theme_path, 'edit.png', _("Edit"), _("Edit")); ?></a>
60 <td class="ruleButtons">
61 <a href="<?php echo $delete_rule.$index; ?>"><?php echo getIcon($icon_theme_path, 'delete.png', _("Delete"), _("Delete")); ?></a>
63 <td class="ruleButtons">
67 <a href="<?php echo $move_up.$index; ?>"><?php echo getIcon($icon_theme_path, 'up.png', _("Up"), _("Up")); ?></a>
76 <td class="ruleButtons">
78 if ($index < count($current_rules)-1) {
80 <a href="<?php echo $move_down.$index; ?>"><?php echo getIcon($icon_theme_path, 'down.png', _("Down"), ("Down")); ?></a>
89 <td bgcolor="#<?php echo $rule['Color']; ?>" class="ruleName">
90 <?php echo $rule['Name']; ?>
92 <td bgcolor="#<?php echo $rule['Color']; ?>" class="ruleDesc">
93 <?php echo $rule['MatchField'].' = '.$rule['MatchValue']; ?>
103 <td class="ruleButtons">
104 <a href="<?php echo $add_rule; ?>"><?php echo getIcon($icon_theme_path, 'plus.png', _("Add"), _("Add")); ?></a> Add Rule