mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 15:31:34 +00:00
preliminary UI work on date checking filter (refs #225)
This commit is contained in:
@@ -429,6 +429,24 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($subop == "checkDate") {
|
||||
|
||||
$date = db_escape_string($_REQUEST["date"]);
|
||||
$date_parsed = strtotime($date);
|
||||
|
||||
print "<rpc-reply>";
|
||||
|
||||
if ($date_parsed) {
|
||||
print "<result>1</result>";
|
||||
} else {
|
||||
print "<result>0</result>";
|
||||
}
|
||||
|
||||
print "</rpc-reply>";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -358,13 +358,26 @@
|
||||
|
||||
print "<div class=\"dlgSecCont\">";
|
||||
|
||||
print "<span id=\"filter_dlg_date_mod_box\" style=\"display : none\">";
|
||||
print "<select name=\"filter_date_modifier\">";
|
||||
print "<option name=\"before\">".__('Before')."</option>";
|
||||
print "<option name=\"after\">".__('After')."</option>";
|
||||
print "</select> </span>";
|
||||
|
||||
print "<input onkeypress=\"return filterCR(event, createFilter)\"
|
||||
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", 1, $filter_types);
|
||||
print "<span id=\"filter_dlg_date_chk_box\" style=\"display : none\">";
|
||||
print " <input class=\"button\"
|
||||
type=\"submit\" onclick=\"return filterDlgCheckDate()\"
|
||||
value=\"".__('Check Date')."\">";
|
||||
print "</span>";
|
||||
|
||||
print "<br/> " . __("on field") . " ";
|
||||
print_select_hash("filter_type", 1, $filter_types,
|
||||
'onchange="filterDlgCheckType(this)"');
|
||||
|
||||
print "<br/>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user