/** Build an <option> statement */
function asearch_opt($val, $sel, $tit)
{
- return '<option value="' . $val . '"' . ($sel == $val ? ' selected' : '') . '>' . $tit . '</option>' . "\n";
+ return '<option value="' . $val . '"' . ($sel == $val ? ' selected' : '') . '>' . $tit . '</option>' . "\n";
}
/** Build a <select> statement from an array */
$mailbox_display = asearch_get_mailbox_display($mailbox);
$msg_cnt_str = get_msgcnt_str(1, $cnt, $cnt);
- $paginator_str = '<b><big>' . _("Folder:") . ' '. $mailbox_display . '</big></b>';
+ $paginator_str = '<b><big>' . _("Folder:") . ' '. $mailbox_display . ' </big></b>';
echo '<br><table border="0" width="100%" cellpadding="0" cellspacing="0">';
echo html_tag('tr', html_tag('td', asearch_get_query_display($color, $mailbox_array, $biop_array, $unop_array, $where_array, $what_array, $exclude_array, $sub_array), 'center', $color[4]));
echo '</table>' . "\n";
+ flush();
+
$query_error = asearch_check_query($where_array, $what_array, $exclude_array);
if ($query_error != '')
echo '<br>' . html_tag('div', asearch_get_error_display($color, $query_error), 'center') . "\n";