$sSubject = str_replace(' ', ' ', decodeHeader($sSubject));
$subject = processSubject($sSubject, $iIndent);
- echo html_tag( 'tr','','','','VALIGN="top"') . "\n";
+ echo html_tag( 'tr','','','','valign="top"') . "\n";
if (sizeof($index_order)) {
foreach ($index_order as $index_order_part) {
// display flag buttons only if supported
if ($show_flag_buttons &&
in_array('\\flagged',$aMailbox['PERMANENTFLAGS'], true) ) {
- $button_str .= getButton('SUBMIT', 'markUnflagged', _("Unflag"));
- $button_str .= getButton('SUBMIT', 'markFlagged', _("Flag"));
+ $button_str .= getButton('submit', 'markUnflagged', _("Unflag"));
+ $button_str .= getButton('submit', 'markFlagged', _("Flag"));
$button_str .= " \n";
}
if (in_array('\\seen',$aMailbox['PERMANENTFLAGS'], true)) {
- $button_str .= getButton('SUBMIT', 'markUnread', _("Unread"));
- $button_str .= getButton('SUBMIT', 'markRead', _("Read"));
+ $button_str .= getButton('submit', 'markUnread', _("Unread"));
+ $button_str .= getButton('submit', 'markRead', _("Read"));
$button_str .= " \n";
}
- $button_str .= getButton('SUBMIT', 'attache',_("Forward")) .
+ $button_str .= getButton('submit', 'attache',_("Forward")) .
" \n";
if (in_array('\\deleted',$aMailbox['PERMANENTFLAGS'], true)) {
- $button_str .= getButton('SUBMIT', 'delete',_("Delete"));
+ $button_str .= getButton('submit', 'delete',_("Delete"));
$button_str .= '<input type="checkbox" name="bypass_trash" />' . _("Bypass Trash");
$button_str .= " \n";
}
if (!$aMailbox['AUTO_EXPUNGE'] && $aMailbox['RIGHTS'] != 'READ-ONLY') {
- $button_str .= getButton('SUBMIT', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n";
+ $button_str .= getButton('submit', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n";
$button_str .= ' ';
}
?>
<select name="targetMailbox">
<?php echo sqimap_mailbox_option_list($imapConnection, array(strtolower($lastTargetMailbox)), 0, $boxes); ?>
</select></tt>
- <?php echo getButton('SUBMIT', 'moveButton',_("Move")); ?>
+ <?php echo getButton('submit', 'moveButton',_("Move")); ?>
</small>
<?php
}
'<select name="filters_user_scan_set">'.
'<option value=""';
if ($filters_user_scan == '') {
- echo ' selected';
+ echo ' selected="selected"';
}
echo '>' . _("All messages") . '</option>'.
'<option value="new"';
if ($filters_user_scan == 'new') {
- echo ' selected';
+ echo ' selected="selected"';
}
echo '>' . _("Only unread messages") . '</option>' .
'</select>'.
$L = isset($filters[$theid]['where']);
- $sel = (($L && $filters[$theid]['where'] == 'From')?'selected':'');
- echo "<option value=\"From\" $sel>" . _("From") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'From')?' selected="selected"':'');
+ echo "<option value=\"From\"$sel>" . _("From") . '</option>';
- $sel = (($L && $filters[$theid]['where'] == 'To')?'selected':'');
- echo "<option value=\"To\" $sel>" . _("To") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'To')?' selected="selected"':'');
+ echo "<option value=\"To\"$sel>" . _("To") . '</option>';
- $sel = (($L && $filters[$theid]['where'] == 'Cc')?'selected':'');
- echo "<option value=\"Cc\" $sel>" . _("Cc") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'Cc')?' selected="selected"':'');
+ echo "<option value=\"Cc\"$sel>" . _("Cc") . '</option>';
- $sel = (($L && $filters[$theid]['where'] == 'To or Cc')?'selected':'');
- echo "<option value=\"To or Cc\" $sel>" . _("To or Cc") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'To or Cc')?' selected="selected"':'');
+ echo "<option value=\"To or Cc\"$sel>" . _("To or Cc") . '</option>';
- $sel = (($L && $filters[$theid]['where'] == 'Subject')?'selected':'');
- echo "<option value=\"Subject\" $sel>" . _("Subject") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'Subject')?' selected="selected"':'');
+ echo "<option value=\"Subject\"$sel>" . _("Subject") . '</option>';
- $sel = (($L && $filters[$theid]['where'] == 'Header')?'selected':'');
- echo "<option value=\"Header\" $sel>" . _("Header") . '</option>';
+ $sel = (($L && $filters[$theid]['where'] == 'Header')?' selected="selected"':'');
+ echo "<option value=\"Header\"$sel>" . _("Header") . '</option>';
echo '</select>'.
'</td>'.
} else if ($messageheader) {
if ($header) {
$header=false;
- $end = "\n \n".'</div>'."\n \n".'<div class="ent_body" ID="'.$entStr.'B">'."\n \n";
+ $end = "\n \n".'</div>'."\n \n".'<div class="ent_body" id="'.$entStr.'B">'."\n \n";
}
$mimepart = -$header;
$bnd_end = false;
} else {
if ($header) {
$pre = '';
- $end = "\n \n".'</div>'."\n \n".'<div class="ent_body" ID="'.$entStr.'B">'."\n \n";
+ $end = "\n \n".'</div>'."\n \n".'<div class="ent_body" id="'.$entStr.'B">'."\n \n";
}
$header = false;
$mimepart=true;
$content_indx++;
$content[$content_indx]=array();
$content[$content_indx]['ent'] = '<a href="#'."$entStr \">$entStr".'</a>';
- $pre .= "\n \n".'</div>'."\n \n".'<div class="entheader" ID="'.$entStr.'H"><a name="'."$entStr".'"><b><font color="'.$color[2].'">';
+ $pre .= "\n \n".'</div>'."\n \n".'<div class="entheader" id="'.$entStr.'H"><a name="'."$entStr".'"><b><font color="'.$color[2].'">';
$end .= '</font></b>'."\n";
$header = true;
$mimepart = false;
<?php
if ($spamcop_quick_report) {
echo '<option value="quick_email"';
- if ($spamcop_method == 'quick_email') echo ' selected';
+ if ($spamcop_method == 'quick_email') echo ' selected="selected"';
echo ">"._("Quick email-based reporting");
echo '</option>';
}
?>
<option value="thorough_email"
<?php
- if ($spamcop_method == 'thorough_email') echo ' selected';
+ if ($spamcop_method == 'thorough_email') echo ' selected="selected"';
echo ">"._("Thorough email-based reporting");
?>
</option>
<option value="web_form"
<?php
- if ($spamcop_method == 'web_form') echo ' selected';
+ if ($spamcop_method == 'web_form') echo ' selected="selected"';
echo ">"._("Web-based form");
?>
</option>
<select name="type">
<option value="free"
<?php
- if ($spamcop_type == 'free') echo ' selected';
+ if ($spamcop_type == 'free') echo ' selected="selected"';
echo ">"._("Free reporting");
?>
</option>
<option value="member"
<?php
- if ($spamcop_type == 'member') echo ' selected';
+ if ($spamcop_type == 'member') echo ' selected="selected"';
echo ">"._("Member services");
?>
</option>
for ($i=0; $i<sizeof($langs); $i++){
$msg .= "<option";
if (!$i) {
- $msg .= ' selected';
+ $msg .= ' selected="selected"';
}
$msg .= " value=\"$langs[$i]\"> " . _($langs[$i]) . "</option>\n";
}
/* Create the link for this folder. */
if ($status !== false) {
$line .= '<a href="right_main.php?PG_SHOWALL=0&startMessage=1&mailbox='.
- $mailboxURL.'" TARGET="right" STYLE="text-decoration:none">';
+ $mailboxURL.'" target="right" style="text-decoration:none">';
}
if ($special_color) {
$line .= "<font color=\"$color[11]\">";
if ($advanced_tree) {
$xtra .= <<<ECHO
-<script language="Javascript" TYPE="text/javascript">
+<script language="Javascript" type="text/javascript">
<!--
function oh_opt( $val, $sel, $tit ) {
echo "<option value=\"$val\"";
if ( $sel )
- echo ' selected';
+ echo ' selected="selected"';
echo ">$tit</option>\n";
}
}
// Show Alt URI for Draft/Sent
if (isset($comp_alt_string))
- $menu_row .= getButton('SUBMIT', $new_button, $comp_alt_string, $on_click) . "\n";
+ $menu_row .= getButton('submit', $new_button, $comp_alt_string, $on_click) . "\n";
- $menu_row .= getButton('SUBMIT', 'smaction_reply', _("Reply"), $on_click) . "\n";
- $menu_row .= getButton('SUBMIT', 'smaction_reply_all', _("Reply All"), $on_click) ."\n";
- $menu_row .= getButton('SUBMIT', 'smaction_forward', _("Forward"), $on_click);
+ $menu_row .= getButton('submit', 'smaction_reply', _("Reply"), $on_click) . "\n";
+ $menu_row .= getButton('submit', 'smaction_reply_all', _("Reply All"), $on_click) ."\n";
+ $menu_row .= getButton('submit', 'smaction_forward', _("Forward"), $on_click);
if ($enable_forward_as_attachment)
$menu_row .= '<input type="checkbox" name="smaction_attache" />' . _("As Attachment") .' '."\n";
if (!(isset($passed_ent_id) && $passed_ent_id)) {
$menu_row .= addHidden('mailbox', $aMailbox['NAME']);
$menu_row .= addHidden('msg[0]', $passed_id);
- $menu_row .= getButton('SUBMIT', 'delete', _("Delete"));
+ $menu_row .= getButton('submit', 'delete', _("Delete"));
$menu_row .= '<input type="checkbox" name="bypass_trash" />' . _("Bypass Trash");
} else {
- $menu_row .= getButton('SUBMIT', 'delete', _("Delete"), '', FALSE) . "\n"; // delete button is disabled
+ $menu_row .= getButton('submit', 'delete', _("Delete"), '', FALSE) . "\n"; // delete button is disabled
}
$menu_row .= '</form>';
}
$menu_row .= '</select> ';
- $menu_row .= getButton('SUBMIT', 'moveButton',_("Move")) . "\n" . '</form>';
+ $menu_row .= getButton('submit', 'moveButton',_("Move")) . "\n" . '</form>';
}
$menu_row .= '</td></tr>';
*/
function asearch_opt($val, $sel, $tit)
{
- return '<option value="' . $val . '"' . ($sel == $val ? ' selected' : '') . '>' . $tit . '</option>' . "\n";
+ return '<option value="' . $val . '"' . ($sel == $val ? ' selected="selected"' : '') . '>' . $tit . '</option>' . "\n";
}
/** Build a <select> statement from an array
//Submit buttons
echo html_tag('table', '', 'center', $color[9], 'width="100%" cellpadding="1" cellspacing="0" border="0"');
echo html_tag('tr',
- html_tag('td', getButton('SUBMIT', 'submit', $search_button_html), 'center') . "\n"
- . html_tag('td', getButton('SUBMIT', 'submit', $add_criteria_button_html), 'center') . "\n"
- . html_tag('td', getButton('SUBMIT', 'submit', $del_all_button_html), 'center') . "\n"
- . html_tag('td', getButton('SUBMIT', 'submit', $del_excluded_button_html), 'center') . "\n"
+ html_tag('td', getButton('submit', 'submit', $search_button_html), 'center') . "\n"
+ . html_tag('td', getButton('submit', 'submit', $add_criteria_button_html), 'center') . "\n"
+ . html_tag('td', getButton('submit', 'submit', $del_all_button_html), 'center') . "\n"
+ . html_tag('td', getButton('submit', 'submit', $del_excluded_button_html), 'center') . "\n"
);
echo '</table>' . "\n";
echo '</form>' . "\n";
echo html_tag('td', asearch_get_form_what($what), 'center') . "\n";
//Submit button
- echo html_tag('td', getButton('SUBMIT', 'submit', $search_button_html), 'center') . "\n";
+ echo html_tag('td', getButton('submit', 'submit', $search_button_html), 'center') . "\n";
echo "</tr>\n";
}
mail_message_listing_beginning($imapConnection, $aMailbox, $msg_cnt_str, $mailbox_title . " $paginator_str");
echo '</td></tr>';
- echo '<tr><td HEIGHT="5" BGCOLOR="'.$color[4].'"></td></tr>';
+ echo '<tr><td height="5" bgcolor="'.$color[4].'"></td></tr>';
echo '<tr><td>';
echo ' <table width="100%" cellpadding="1" cellspacing="0" align="center"'.' border="0" bgcolor="'.$color[9].'">';