X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=modules%2Fpopup-dialog.php;h=13abc947f1febcfca57b7b9844f3f4a76d94721d;hb=667a82727cd95cc75e006b8509b6249e3f7f46e6;hp=bc206be076aa1e79fa146cf076bb19e0086e1982;hpb=5823f9fbabb610a487b5d50a1a81b33445cfb881;p=tt-rss.git diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index bc206be0..13abc947 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,25 +134,25 @@ $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 "
"; - print "
- + print "
"; + + if (!SPHINX_ENABLED) { + print "
+ Search syntax +
"; + } + + print "
"; } @@ -433,13 +440,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,18 +462,19 @@ "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 ""; print ""; - print " "; print ""; @@ -477,7 +485,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 +496,14 @@ print ""; print ""; @@ -504,7 +512,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 ""; @@ -526,6 +534,9 @@ print "
"; + print " "; + print " "; @@ -537,34 +548,137 @@ //return; } - if ($id == "feedUpdateErrors") { + if ($id == "inactiveFeeds") { - print "".__('Feeds with update errors').""; - print ""; + + print "
" . + print "" . __("Default profile") . " $is_active
" . $edit_title . " $is_active
"; + + $lnum = 1; + + while ($line = db_fetch_assoc($result)) { + + $class = ($lnum % 2) ? "even" : "odd"; + $feed_id = $line["id"]; + $this_row_id = "id=\"FUPDD-$feed_id\""; + + print ""; + + $edit_title = htmlspecialchars($line["title"]); + + print ""; + print ""; + print ""; + + ++$lnum; + } + + print "
"; + + print "". + htmlspecialchars($line["title"]).""; + + print ""; + print make_local_datetime($link, $line['last_article'], false); + print "
"; + print ""; + + print "
"; + print "
"; + print " "; + print "
"; + + print ""; + + print "
"; + + } + + if ($id == "feedsWithErrors") { + +# print "".__('Feeds with update errors').""; +# print ""; + print "
"; + + print ""; + + $lnum = 1; while ($line = db_fetch_assoc($result)) { - print "
  • " . $line["title"] . " (" . $line["feed_url"] . "): " . - "" . $line["last_error"] . ""; + + $class = ($lnum % 2) ? "even" : "odd"; + $feed_id = $line["id"]; + $this_row_id = "id=\"FUPDD-$feed_id\""; + + print "
  • "; + + $edit_title = htmlspecialchars($line["title"]); + + print ""; + print ""; + print ""; + + ++$lnum; } - print ""; + print "
    "; + + print "". + htmlspecialchars($line["title"]).": "; + + print ""; + print htmlspecialchars($line["last_error"]); + print ""; + + print "
    "; + print "
    "; - print "
    "; + print "
    "; + print "
    "; + print " "; + print "
    "; - print ""; - print "]]>"; - - //return; + print "
    "; } if ($id == "editArticleTags") { @@ -579,15 +693,15 @@ print ""; print ""; - print ""; + print ""; print "
    "; print " -
    "; +
    "; print "
    "; @@ -607,8 +721,8 @@ print "".__('Tag Cloud').""; print "".__('more tags')."):
    "; +# print __("Showing most popular tags ")." (".__('more tags')."):
    "; print "
    "; @@ -617,14 +731,44 @@ print "
    "; print "
    "; - print ""; print "
    "; print "]]>
    "; + } - //return; + if ($id == 'printTagSelect') { + print "" . __('Select item(s) by tags') . ""; + print " Any "; + print " All "; + print " tags."; + + print ""; + + print "
    "; + print ""; + print " "; + print ""; + print "
    "; + + print "]]>
    "; } if ($id == "emailArticle") { @@ -635,7 +779,7 @@ print ""; print ""; - print ""; + print ""; $result = db_query($link, "SELECT email, full_name FROM ttrss_users WHERE id = " . $_SESSION["uid"]); @@ -704,8 +848,8 @@ style=\"width : 30em;\" name=\"destination\" id=\"emailArticleDlg_destination\">"; - print "
    "; + print "
    "; print ""; @@ -714,7 +858,7 @@ print ""; print ""; print ""; @@ -736,7 +880,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 +925,11 @@ $download = "http://tt-rss.org/#Download"; print "
    "; - print ""; - print ""; - print ""; print "
    "; @@ -801,7 +945,7 @@ print T_sprintf("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here. This file can be used as a baseline.", "tt-rss.css"); print ""; - print ""; + print ""; print ""; print "
    "; @@ -829,7 +973,7 @@ print ""; print ""; - print ""; + print ""; print "
    "; print "