From 1b24f3319abe031307786eeb7e9223776c2d8cf1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Mar 2011 14:51:50 +0300 Subject: search dialog: fix is_cat not parsed properly --- modules/popup-dialog.php | 156 +++++++++++++++++++++++------------------------ 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index bc206be07..2046d9a30 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -21,7 +21,7 @@ if (db_num_rows($result) == 0) { db_query($link, "INSERT INTO ttrss_feed_categories - (title,owner_uid) + (title,owner_uid) VALUES ('Imported feeds', '$owner_uid')"); } @@ -48,7 +48,7 @@ print ""; print "
"; - print ""; print "
"; @@ -66,16 +66,16 @@ # print "
". # "" . __('Select').""; # print "
"; -# print "
".__('All')."
"; -# print "
".__('None')."
"; # print "
"; # print "
"; print " -
"; @@ -89,13 +89,13 @@ print "
"; - print ""; print ""; #odd - print ""; @@ -105,26 +105,26 @@ $is_active = ""; } - print ""; - + print ""; $lnum = 1; - + while ($line = db_fetch_assoc($result)) { - + $class = ($lnum % 2) ? "even" : "odd"; - + $profile_id = $line["id"]; $this_row_id = "id=\"FCATR-$profile_id\""; - + print ""; - + $edit_title = htmlspecialchars($line["title"]); - - print ""; @@ -134,7 +134,7 @@ $is_active = ""; } - print ""; - + print ""; - + ++$lnum; } @@ -213,7 +213,7 @@ $stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp"); - print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); } @@ -222,12 +222,12 @@ $stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp"); - print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); } print ""; - + print "

"; print "
'; print ""; - print "
- +
"; @@ -307,16 +307,16 @@ if ($id == "feedBrowser") { $browser_search = db_escape_string($_REQUEST["search"]); - -# print ""; print ""; - print ""; + print ""; print "
- $l"; } - + print " "; print "
"; @@ -360,7 +360,7 @@ $params = explode(":", db_escape_string($_REQUEST["param"]), 2); $active_feed_id = sprintf("%d", $params[0]); - $is_cat = (bool) $params[1]; + $is_cat = $params[1] != "false"; print "
".__('Look for')."
"; @@ -368,7 +368,7 @@ if (!SPHINX_ENABLED) { - print ""; @@ -378,21 +378,21 @@ "title" => __("Title"), "content" => __("Content"), "both" => __("Title or content")); - - print_select_hash("match_on", 3, $search_fields, - 'dojoType="dijit.form.Select"'); + + print_select_hash("match_on", 3, $search_fields, + 'dojoType="dijit.form.Select"'); } else { - print ""; } print "
".__('Limit search to:')." "; - + print ""; + print ""; print "
"; @@ -433,13 +433,13 @@ print ""; print ""; - print ""; - - $result = db_query($link, "SELECT id,description + print ""; + + $result = db_query($link, "SELECT id,description FROM ttrss_filter_types ORDER BY description"); - + $filter_types = array(); - + while ($line = db_fetch_assoc($result)) { //array_push($filter_types, $line["description"]); $filter_types[$line["id"]] = __($line["description"]); @@ -455,12 +455,12 @@ "before" => __("before"), "after" => __("after")); - print_select_hash("filter_date_modifier", "before", + print_select_hash("filter_date_modifier", "before", $filter_params, 'dojoType="dijit.form.Select"'); print " "; - print ""; @@ -477,7 +477,7 @@ print "
"; print __("in") . " "; - print_feed_select($link, "feed_id", $active_feed_id, + print_feed_select($link, "feed_id", $active_feed_id, 'dojoType="dijit.form.FilteringSelect"'); print ""; @@ -488,14 +488,14 @@ print ""; print ""; @@ -504,7 +504,7 @@ id=\"filterDlg_actionParam\" name=\"action_param\">"; - print_label_select($link, "action_param_label", $action_param, + print_label_select($link, "action_param_label", $action_param, 'id="filterDlg_actionParamLabel" dojoType="dijit.form.Select"'); print ""; @@ -550,7 +550,7 @@ print "
" . + print "" . __("Default profile") . " $is_active
" . $edit_title . " $is_active
"; @@ -607,8 +607,8 @@ print "".__('Tag Cloud').""; print "".__('more tags')."):
"; +# print __("Showing most popular tags ")." (".__('more tags')."):
"; print "
"; @@ -617,7 +617,7 @@ print "
"; print "
"; - print ""; print "
"; @@ -635,7 +635,7 @@ print ""; print ""; - print ""; + print ""; $result = db_query($link, "SELECT email, full_name FROM ttrss_users WHERE id = " . $_SESSION["uid"]); @@ -704,8 +704,8 @@ style=\"width : 30em;\" name=\"destination\" id=\"emailArticleDlg_destination\">"; - print "
"; + print "
"; print ""; @@ -714,7 +714,7 @@ print ""; print ""; print ""; @@ -736,7 +736,7 @@ print "".__('View as RSS').""; print ""; - print T_sprintf("New version of Tiny Tiny RSS is available (%s).", + print T_sprintf("New version of Tiny Tiny RSS is available (%s).", "$version"); print ""; @@ -781,11 +781,11 @@ $download = "http://tt-rss.org/#Download"; print "
"; - print ""; - print ""; - print ""; print "
"; @@ -848,6 +848,6 @@ } - print ""; + print ""; } ?> -- cgit v1.2.3