4 * message_list_controls.tpl
6 * Template for the form control widgets on the message list page
8 * The following variables are available in this template:
9 //FIXME: need to clean (and document) this list, it is just a dump of the array keys of $t
26 * $hide_sm_attributions
60 * $fancy_index_highlite
66 * @copyright © 1999-2006 The SquirrelMail Project Team
67 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
69 * @package squirrelmail
70 * @subpackage templates
74 /* retrieve the template vars */
78 if (count($aFormElements)) {
80 <table class="table_empty" cellspacing="0">
82 <td class="message_control_buttons">
85 foreach ($aFormElements as $widget_name => $widget_attrs) {
86 switch ($widget_attrs['type']) {
88 if ($widget_name != 'moveButton' && $widget_name != 'copyButton' && $widget_name != 'delete' && $widget_name != 'undeleteButton') { // add these later in another table cell
89 echo '<input type="submit" name="' . $widget_name . '" value="' . $widget_attrs['value'] . '" class="message_control_button"';
90 if (!empty($widget_attrs['extra_attrs'])) {
91 foreach ($widget_attrs['extra_attrs'] as $attr => $val) {
92 echo ' ' . $attr . '="' . $val . '"';
99 if ($widget_name != 'bypass_trash') {
100 echo '<input type="checkbox" name="' . $widget_name . '" id="' . $widget_name . '"';
101 if (!empty($widget_attrs['extra_attrs'])) {
102 foreach ($widget_attrs['extra_attrs'] as $attr => $val) {
103 echo ' ' . $attr . '="' . $val . '"';
106 echo ' /><label for="' . $widget_name . '">' . $widget_attrs['value'] . '</label> ';
110 echo '<input type="hidden" name="'.$widget_name.'" value="'. $widget_attrs['value']."\" />\n";
117 <td class="message_control_delete">
119 if (isset($aFormElements['delete'])) {
120 echo '<input type="submit" name="delete" value="' . $aFormElements['delete']['value'] . '" class="message_control_button" /> ';
121 if (isset($aFormElements['bypass_trash'])) {
122 echo '<input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash">' . $aFormElements['bypass_trash']['value'] . '</label> ';
124 if (isset($aFormElements['undeleteButton'])) {
125 echo '<input type="submit" name="undeleteButton" value="' . $aFormElements['undeleteButton']['value'] . '" class="message_control_button" /> ';
132 } // if (isset($aFormElements['delete']))
133 if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton'])) {
135 <td class="message_control_move">
136 <select name="targetMailbox">
137 <?php echo $aFormElements['targetMailbox']['options_list'];?>
140 if (isset($aFormElements['moveButton'])) {
141 echo '<input type="submit" name="moveButton" value="' . $aFormElements['moveButton']['value'] . '" class="message_control_button" />';
143 if (isset($aFormElements['copyButton'])) {
144 echo '<input type="submit" name="copyButton" value="' . $aFormElements['copyButton']['value'] . '" class="message_control_button" />';
151 } // if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton']))
156 } // if (count($aFormElements))