5 * Template for changing message list field ordering.
7 * The following variables are available in this template:
8 * $fields - array containing all translated field names available
9 * for ordering. Array key is an integer, value is the field name
10 * $current_order - array containing the current ordering of fields
11 * $not_used - array containing fields not currently used. Array
12 * key is the same as in $fields, value is the translated
14 * $always_show - array containing field indexes that should always be shown
15 * to maintain SquirrelMail functionality, e.g. Subject
16 * $move_up - URL foundation to move a field up in the ordering
17 * $move_down - URL foundation to move a field down in the ordering
18 * $remove - URL foundation to remove a field from the ordering.
19 * $add - URL foundation to add a field to the ordering.
21 * @copyright © 1999-2006 The SquirrelMail Project Team
22 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
24 * @package squirrelmail
25 * @subpackage templates
29 /** extract template variables **/
32 /** Begin template **/
34 <div id="optionHighlight">
35 <table cellspacing="0">
38 <?php echo _("Options") .' - '. _("Index Order"); ?>
43 <?php echo _("The index order is the order that the columns are arranged in the message index. You can add, remove, and move columns around to customize them to fit your needs.");?>
48 <table cellspacing="0" class="moveFields">
50 <td colspan="4" class="divider">
51 <?php echo _("Reorder indexes"); ?>
55 foreach ($current_order as $order=>$index) {
58 echo " <td class=\"moveLink\">\n" .($order > 0 ? '<a href="'. $move_up.$index .'">'.getIcon($icon_theme_path, 'up.png', _("up"), _("up")).'</a>' : ' '). "\n </td>\n";
59 echo " <td class=\"moveLink\">\n" .($order < count($current_order)-1 ? '<a href="'. $move_down.$index .'">'.getIcon($icon_theme_path, 'down.png', _("down"), _("down")).'</a>' : ' '). "\n </td>\n";
60 echo " <td class=\"moveLink\">\n" .(!in_array($index, $always_show) ? '<a href="'. $remove.$index .'">'.getIcon($icon_theme_path, 'delete.png', _("remove"), _("remove")).'</a>' : ' '). "\n </td>\n";
61 echo " <td class=\"fieldName\">\n" .$fields[$index]. "\n </td>\n";
66 if (count($not_used) > 0) {
69 <td colspan="4" class="divider">
70 <?php echo _("Add an index"); ?>
74 foreach ($not_used as $field_id=>$name) {
76 "<td colspan=\"3\" class=\"moveLink\"><a href=\"". $add.$field_id."\">".getIcon($icon_theme_path, 'plus.png', _("Add"), _("Add"))."</a></td>\n" .
77 "<td class=\"fieldName\">".htmlspecialchars($name)."</td>\n" .
89 <a href="../src/options.php"><?php echo _("Return to options page");?></a>