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" /> ';
93 if ($widget_name != 'bypass_trash') {
94 echo '<input type="checkbox" name="' . $widget_name . '" id="' . $widget_name . '" /><label for="' . $widget_name . '">' . $widget_attrs['value'] . '</label> ';
98 echo '<input type="hidden" name="'.$widget_name.'" value="'. $widget_attrs['value']."\" />\n";
105 <td class="message_control_delete">
107 if (isset($aFormElements['delete'])) {
108 echo '<input type="submit" name="delete" value="' . $aFormElements['delete']['value'] . '" class="message_control_button" /> ';
109 if (isset($aFormElements['bypass_trash'])) {
110 echo '<input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash">' . $aFormElements['bypass_trash']['value'] . '</label> ';
112 if (isset($aFormElements['undeleteButton'])) {
113 echo '<input type="submit" name="undeleteButton" value="' . $aFormElements['undeleteButton']['value'] . '" class="message_control_button" /> ';
120 } // if (isset($aFormElements['delete']))
121 if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton'])) {
123 <td class="message_control_move">
124 <select name="targetMailbox">
125 <?php echo $aFormElements['targetMailbox']['options_list'];?>
128 if (isset($aFormElements['moveButton'])) {
129 echo '<input type="submit" name="moveButton" value="' . $aFormElements['moveButton']['value'] . '" class="message_control_button" />';
131 if (isset($aFormElements['copyButton'])) {
132 echo '<input type="submit" name="copyButton" value="' . $aFormElements['copyButton']['value'] . '" class="message_control_button" />';
139 } // if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton']))
144 } // if (count($aFormElements))