- Cleanup variable name in address search for compose to clearup confusion.
[squirrelmail.git] / templates / default / options_order.tpl
1 <?php
2 /**
3 * options_order.tpl
4 *
5 * Template for changing message list field ordering.
6 *
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
13 * field name.
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 *
20 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
21 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
22 * @version $Id$
23 * @package squirrelmail
24 * @subpackage templates
25 */
26
27 /** add required includes **/
28
29 /** extract template variables **/
30 extract($t);
31
32 /** Begin template **/
33 ?>
34 <div id="optionOrder">
35 <table cellspacing="0">
36 <tr>
37 <td class="header1">
38 <?php echo _("Options") .' - '. _("Index Order"); ?>
39 </td>
40 </tr>
41 <tr>
42 <td>
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.");?>
44 </td>
45 </tr>
46 <tr>
47 <td>
48 <table cellspacing="0" class="moveFields">
49 <?php
50 foreach ($current_order as $order=>$index) {
51 echo " <tr>\n";
52
53 echo " <td class=\"moveLink\">\n" .($order > 0 ? '<a href="'. $move_up.$index .'">' ._("up") .'</a>' : '&nbsp;'). "\n </td>\n";
54 echo " <td class=\"moveLink\">\n" .($order < count($current_order)-1 ? '<a href="'. $move_down.$index .'">' ._("down") .'</a>' : '&nbsp;'). "\n </td>\n";
55 echo " <td class=\"moveLink\">\n" .(!in_array($index, $always_show) ? '<a href="'. $remove.$index .'">' ._("remove") .'</a>' : '&nbsp;'). "\n </td>\n";
56 echo " <td class=\"fieldName\">\n" .$fields[$index]. "\n </td>\n";
57
58 echo " </tr>\n";
59 }
60 ?>
61 </table>
62 </td>
63 </tr>
64 <?php
65 if (count($not_used) > 0) {
66 ?>
67 <tr>
68 <td>
69 <form action=<?php echo '"'.$addField_action.'"'; ?> method="GET">
70 <input type="hidden" name="method" value="add" />
71 <select name="num">
72 <?php
73 foreach ($not_used as $field_id=>$name) {
74 echo '<option value="'.$field_id.'">'.htmlspecialchars($name).'</option>'."\n";
75 }
76 ?>
77 </select>
78 <input type="submit" value=<?php echo '"'._("Add").'"'; ?> name="submit" />
79 </form>
80 </td>
81 </tr>
82 <?php
83 }
84 ?>
85 <tr>
86 <td>
87 <a href="../src/options.php"><?php echo _("Return to options page");?></a>
88 </td>
89 </tr>
90 </table>
91 </div>