filter dialog UI tweaks

This commit is contained in:
Andrew Dolgov 2008-12-13 13:35:26 +01:00
parent defaccdeae
commit 6e278744e4
2 changed files with 25 additions and 6 deletions

View File

@ -359,9 +359,10 @@
print "<div class=\"dlgSecCont\">";
print "<span id=\"filter_dlg_date_mod_box\" style=\"display : none\">";
print __("Date") . " ";
print "<select name=\"filter_date_modifier\">";
print "<option value=\"before\">".__('Before')."</option>";
print "<option value=\"after\">".__('After')."</option>";
print "<option value=\"before\">".__('before')."</option>";
print "<option value=\"after\">".__('after')."</option>";
print "</select>&nbsp;</span>";
print "<input onkeypress=\"return filterCR(event, createFilter)\"
@ -369,10 +370,10 @@
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";
print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";
print "&nbsp;<input class=\"button\"
type=\"submit\" onclick=\"return filterDlgCheckDate()\"
value=\"".__('Check date')."\">";
value=\"".__('Check it')."\">";
print "</span>";
print "<br/> " . __("on field") . " ";

View File

@ -42,13 +42,31 @@
print "<div class=\"dlgSecCont\">";
if ($filter_type != 5) {
$date_ops_invisible = 'style=\"display : none\"';
}
print "<span id=\"filter_dlg_date_mod_box\" $date_ops_invisible>";
print __("Date") . " ";
print "<select name=\"filter_date_modifier\">";
print "<option value=\"before\">".__('before')."</option>";
print "<option value=\"after\">".__('after')."</option>";
print "</select>&nbsp;</span>";
print "<input onkeypress=\"return filterCR(event, filterEditSave)\"
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
name=\"reg_exp\" size=\"30\" value=\"$reg_exp\">";
print " " . __("on field") . " ";
print_select_hash("filter_type", $filter_type, $filter_types);
print "<span id=\"filter_dlg_date_chk_box\" $date_ops_invisible>";
print "&nbsp;<input class=\"button\"
type=\"submit\" onclick=\"return filterDlgCheckDate()\"
value=\"".__('Check it')."\">";
print "</span>";
print "<br/> " . __("on field") . " ";
print_select_hash("filter_type", $filter_type, $filter_types,
'onchange="filterDlgCheckType(this)"');
print "<br/>";