// display flag buttons only if supported
if ($show_flag_buttons && $mbxresponse != NULL &&
strpos($mbxresponse['PERMANENTFLAGS'], '\Flagged') !== FALSE) {
- echo getButton('SUBMIT', 'markFlagged',_("Flag"));
- echo ' ';
echo getButton('SUBMIT', 'markUnflagged',_("Unflag"));
+ echo getButton('SUBMIT', 'markFlagged',_("Flag"));
echo ' ';
}
- echo getButton('SUBMIT', 'markRead',_("Read"));
- echo ' ';
echo getButton('SUBMIT', 'markUnread',_("Unread"));
+ echo getButton('SUBMIT', 'markRead',_("Read"));
echo ' ';
+
echo getButton('SUBMIT', 'attache',_("Forward"));
echo ' ';
echo getButton('SUBMIT', 'delete',_("Delete"));
. '&what=' . urlencode($what);
}
$result .= "\">";
-
- if (isset($checkall) && ($checkall == '1')) {
- $result .= _("Unselect All");
- } else {
- $result .= _("Select All");
- }
+ $result .= _("All");
$result .= "</A>\n";
}
echo ' </SELECT></TT> ';
}
-function getButton($type, $name, $value) {
- return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '" style="padding: 0px; margin: 0px">';
+function getButton($type, $name, $value, $js = '', $enabled = TRUE) {
+ $disabled = ( $enabled ? '' : 'disabled ' );
+ $js = ( $js ? $js.' ' : '' );
+ return '<INPUT '.$disabled.$js.
+ 'TYPE="'.$type.
+ '" NAME="'.$name.
+ '" VALUE="'.$value .
+ '" style="padding: 0px; margin: 0px">';
}
function getSmallStringCell($string, $align) {