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
59 * $fancy_index_highlite
65 * @copyright © 1999-2006 The SquirrelMail Project Team
66 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
68 * @package squirrelmail
69 * @subpackage templates
73 /* retrieve the template vars */
77 if (count($aFormElements)) {
79 <table class="table_empty" cellspacing="0">
81 <td class="message_control_buttons">
84 foreach ($aFormElements as $widget_name => $widget_attrs) {
85 switch ($widget_attrs['type']) {
87 if ($widget_name != 'moveButton' && $widget_name != 'copyButton' && $widget_name != 'delete' && $widget_name != 'undeleteButton') { // add these later in another table cell
88 echo '<input type="submit" name="' . $widget_name . '" value="' . $widget_attrs['value'] . '" class="message_control_button" /> ';
92 if ($widget_name != 'bypass_trash') {
93 echo '<input type="checkbox" name="' . $widget_name . '" id="' . $widget_name . '" /><label for="' . $widget_name . '">' . $widget_attrs['value'] . '</label> ';
97 echo '<input type="hidden" name="'.$widget_name.'" value="'. $widget_attrs['value']."\">\n";
104 <td class="message_control_delete">
106 if (isset($aFormElements['delete'])) {
107 echo '<input type="submit" name="delete" value="' . $aFormElements['delete']['value'] . '" class="message_control_button" /> ';
108 if (isset($aFormElements['bypass_trash'])) {
109 echo '<input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash">' . $aFormElements['bypass_trash']['value'] . '</label> ';
111 if (isset($aFormElements['undeleteButton'])) {
112 echo '<input type="submit" name="undeleteButton" value="' . $aFormElements['undeleteButton']['value'] . '" class="message_control_button" /> ';
119 } // if (isset($aFormElements['delete']))
120 if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton'])) {
122 <td class="message_control_move">
123 <select name="targetMailbox">
124 <?php echo $aFormElements['targetMailbox']['options_list'];?>
127 if (isset($aFormElements['moveButton'])) {
128 echo '<input type="submit" name="moveButton" value="' . $aFormElements['moveButton']['value'] . '" class="message_control_button" />';
130 if (isset($aFormElements['copyButton'])) {
131 echo '<input type="submit" name="copyButton" value="' . $aFormElements['copyButton']['value'] . '" class="message_control_button" />';
138 } // if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton']))
143 } // if (count($aFormElements))