Remove HTML from login src and add image template
[squirrelmail.git] / templates / default_advanced / options_order.tpl
CommitLineData
393a696c 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 * $add - URL foundation to add a field to the ordering.
20 *
21 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
22 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @version $Id$
24 * @package squirrelmail
25 * @subpackage templates
26 */
27
393a696c 28
29/** extract template variables **/
30extract($t);
31
32/** Begin template **/
33?>
34<div id="optionHighlight">
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 <tr>
50 <td colspan="4" class="divider">
51 <?php echo _("Reorder indexes"); ?>
52 </td>
53 </tr>
54 <?php
55 foreach ($current_order as $order=>$index) {
56 echo " <tr>\n";
57
58 echo " <td class=\"moveLink\">\n" .($order > 0 ? '<a href="'. $move_up.$index .'">'.getIcon($icon_theme_path, 'up.png', _("up"), _("up")).'</a>' : '&nbsp;'). "\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>' : '&nbsp;'). "\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>' : '&nbsp;'). "\n </td>\n";
61 echo " <td class=\"fieldName\">\n" .$fields[$index]. "\n </td>\n";
62
63 echo " </tr>\n";
64 }
65
66 if (count($not_used) > 0) {
67 ?>
68 <tr>
69 <td colspan="4" class="divider">
70 <?php echo _("Add an index"); ?>
71 </td>
72 </tr>
73 <?php
74 foreach ($not_used as $field_id=>$name) {
75 echo "<tr>\n" .
0b628640 76 "<td colspan=\"3\" class=\"moveLink\"><a href=\"". $add.$field_id."\">".getIcon($icon_theme_path, 'plus.png', _("Add"), _("Add"))."</a></td>\n" .
393a696c 77 "<td class=\"fieldName\">".htmlspecialchars($name)."</td>\n" .
78 "</tr>\n";
79 }
80 ?>
81 </table>
82 </td>
83 </tr>
84 <?php
85 }
86 ?>
87 <tr>
88 <td>
89 <a href="../src/options.php"><?php echo _("Return to options page");?></a>
90 </td>
91 </tr>
92</table>
d281e128 93</div>