foreach ($aFormElements as $key => $value) {
switch ($value[1]) {
case 'submit':
- if ($key != 'moveButton' && $key != 'delete' && $key != 'undeleteButton') { // add move in a different table cell
+ if ($key != 'moveButton' && $key != 'copyButton' && $key != 'delete' && $key != 'undeleteButton') { // add move in a different table cell
?>
<input type="submit" name="<?php echo $key; ?>" value="<?php echo $value[0]; ?>" class="message_control_button" />
<?php
case 'checkbox':
if ($key != 'bypass_trash') {
?>
- <input type="checkbox" name="<?php echo $key; ?>" /><?php echo $value[0]; ?>
+ <input type="checkbox" name="<?php echo $key; ?>" id="<?php echo $key; ?>" /><label for="<?php echo $key; ?>"><?php echo $value[0]; ?></label>
<?php
}
break;
<?php
if (isset($aFormElements['bypass_trash'])) {
?>
- <input type="checkbox" name="bypass_trash" /><?php echo $aFormElements['bypass_trash'][0]; ?>
+ <input type="checkbox" name="bypass_trash" id="bypass_trash" /><label for="bypass_trash"><?php echo $aFormElements['bypass_trash'][0]; ?></label>
<?php
}
if (isset($aFormElements['undeleteButton'])) {
</td>
<?php
} // if (isset($aFormElements['delete']))
- if (isset($aFormElements['moveButton'])) {
+ if (isset($aFormElements['moveButton']) || isset($aFormElements['copyButton'])) {
?>
<td class="message_control_move">
<select name="targetMailbox">
<?php echo $aFormElements['targetMailbox'][0];?>
</select>
+<?php if (isset($aFormElements['moveButton'])) { ?>
<input type="submit" name="moveButton" value="<?php echo $aFormElements['moveButton'][0]; ?>" class="message_control_button" />
+<?php }
+ if (isset($aFormElements['copyButton'])) { ?>
+ <input type="submit" name="copyButton" value="<?php echo $aFormElements['copyButton'][0]; ?>" class="message_control_button" />
+<?php } ?>
</td>
<?php
switch ($iCol) {
case SQM_COL_CHECK:
if ($javascript_on) {
- echo '<input type="checkbox" name="toggleAll" title="'._("Toggle All").'" onclick="toggle_all(\''.$form_id."',".$fancy_index_highlite.')" />'."\n";
+ echo '<input type="checkbox" name="toggleAll" title="'._("Toggle All").'" onclick="toggle_all(\''.$form_name."',".$fancy_index_highlite.')" />'."\n";
} else {
$link = $baseurl . "&startMessage=$pageOffset&checkall=";
if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) {
if ($sort == $aSortSupported[$iCol][0]) {
$newsort = $aSortSupported[$iCol][1];
$img = 'up_pointer.png';
- $text_icon = '⇑';
+ $text_icon = '⇧'; // U+21E7 UPWARDS WHITE ARROW
} else if ($sort == $aSortSupported[$iCol][1]) {
$newsort = 0;
$img = 'down_pointer.png';
- $text_icon = '⇓';
+ $text_icon = '⇩'; // U+21E9 DOWNWARDS WHITE ARROW
} else {
$newsort = $aSortSupported[$iCol][0];
$img = 'sort_none.png';
- $text_icon = '[ ]';
+ $text_icon = '◻'; // U+25FB WHITE MEDIUM SQUARE
}
/* Now that we have everything figured out, show the actual button. */
- echo " <a href=\"$baseurl&startMessage=1&srt=$newsort\">" .
+ echo " <a href=\"$baseurl&startMessage=1&srt=$newsort\" style=\"text-decoration:none\">" .
getIcon($icon_theme_path, $img, $text_icon, _("Click here to change the sorting of the message list")) . "\n" .
'</a>';
}