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.
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="optionOrder">
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 foreach ($current_order as $order=>$index) {
53 echo " <td class=\"moveLink\">\n" .($order > 0 ? '<a href="'. $move_up.$index .'">' ._("up") .'</a>' : ' '). "\n </td>\n";
54 echo " <td class=\"moveLink\">\n" .($order < count($current_order)-1 ? '<a href="'. $move_down.$index .'">' ._("down") .'</a>' : ' '). "\n </td>\n";
55 echo " <td class=\"moveLink\">\n" .(!in_array($index, $always_show) ? '<a href="'. $remove.$index .'">' ._("remove") .'</a>' : ' '). "\n </td>\n";
56 echo " <td class=\"fieldName\">\n" .$fields[$index]. "\n </td>\n";
65 if (count($not_used) > 0) {
69 <form action=<?php echo '"'.$addField_action.'"'; ?> method="GET">
70 <input type="hidden" name="method" value="add">
73 foreach ($not_used as $field_id=>$name) {
74 echo '<option value="'.$field_id.'">'.htmlspecialchars($name).'</option>'."\n";
78 <input type="submit" value=<?php echo '"'._("Add").'"'; ?> name="submit" />
87 <a href="../src/options.php"><?php echo _("Return to options page");?></a>