X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=modules%2Fpopup-dialog.php;h=00efdcb74f9b1577fa3397d742c243526bed672f;hb=698776460d3cd7075024b8795dbbaf7132415890;hp=ff0b18bbb446b810ec7b3503e874373cb0db3761;hpb=3076c7b8ed6b9fa9cdb8019c0bdc79860fac29be;p=tt-rss.git diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index ff0b18bb..00efdcb7 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -1,25 +1,29 @@ ".__('Notice').""; print "
"; + print "
"; + if ($param == 1) { - print __("Update daemon is enabled in configuration, but daemon - process is not running, which prevents all feeds from updating. Please - start the daemon process or contact instance owner."); + print __("Update daemon is enabled in configuration, but daemon process is not running, which prevents all feeds from updating. Please start the daemon process or contact instance owner."); + + $stamp = (int)read_stampfile("update_daemon.stamp"); + + print "

" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + } if ($param == 2) { - $msg = check_for_update($link, false); + $msg = check_for_update($link); if (!$msg) { - print __("You are running the latest version of Tiny Tiny RSS. The - fact that you are seeing this dialog is probably a bug."); + print __("You are running the latest version of Tiny Tiny RSS. The fact that you are seeing this dialog is probably a bug."); } else { print $msg; } @@ -27,51 +31,63 @@ } if ($param == 3) { - print __("TT-RSS has detected that update daemon is taking too long to - perform a feed update. This could indicate a problem like crash - or a hang. Please check the daemon process or contact instance - owner."); + print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner."); + + $stamp = (int)read_stampfile("update_daemon.stamp"); + + print "

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

"; - + print "
"; + print " "; + print ""; - print "
"; + print "
"; return; } if ($id == "quickAddFeed") { - print "
".__('Subscribe to feed')."
"; + print "
".__('Subscribe to Feed')."
"; print "
"; print "
"; print ""; - /* print ""; */ print ""; print ""; - print " - "; - + + print "
"; + if (get_pref($link, 'ENABLE_FEED_CATS')) { - print ""; } + print ""; + + /* print ""; */ - print "
".__('Feed URL:')." - ".__("Feed").""; + print "
"; + + print __("URL:") . " "; + + print "
".__('Category:').""; + print __('Place in category:') . " "; print_feed_cat_select($link, "cat_id"); - print "
"; print __("Some feeds require authentication. If you subscribe to such @@ -79,36 +95,46 @@ print "
"; - /* print ""; */ print ""; + +
".__("Authentication")."
+
". + + __('Login:') . " ". + __('Password:') . " +
"; + + + print "
+ +
"; print ""; - print "
+ print "
+ type=\"submit\" onclick=\"return subscribeToFeed()\" value=\"".__('Subscribe')."\"> + +
- -
- -
"; - + value=\"".__('Cancel')."\">
"; + return; } @@ -119,23 +145,34 @@ print "
"; - #$active_feed_id = db_escape_string($_GET["param"]); + #$active_feed_id = db_escape_string($_REQUEST["param"]); - $params = split(":", db_escape_string($_GET["param"])); + $params = split(":", db_escape_string($_REQUEST["param"])); $active_feed_id = sprintf("%d", $params[0]); $is_cat = $params[1] == "true"; - print ""; - - print ""; - - print "
".__('Search:').""; - - print "".__('Look for').""; + + print "
"; + + print " -
".__('Where:').""; + value=\"\">"; + + print " " . __('match on')." "; + + $search_fields = array( + "title" => __("Title"), + "content" => __("Content"), + "both" => __("Title or content")); + + print_select_hash("match_on", 3, $search_fields); + + + print "
".__('Limit search to:')." "; print "
".__('Match on:').""; + print ""; - $search_fields = array( - "title" => __("Title"), - "content" => __("Content"), - "both" => __("Title or content")); - - print_select_hash("match_on", 3, $search_fields); - - print "
"; + print ""; print "
"; - print "
+ print "
".__('Create label')."
"; - print "
"; - - print "
"; - - print ""; - print ""; - - print ""; - - print " - "; - - print "
".__('Caption:').""; - - print "
-

".__('SQL Expression:')."

"; - - print ""; - - print "
"; - - print "
"; - - print "
"; - - print "
"; - - print " - "; - - print " "; - - print ""; - - return; - } - if ($id == "quickAddFilter") { - $active_feed_id = db_escape_string($_GET["param"]); + $active_feed_id = db_escape_string($_REQUEST["param"]); - print "
".__('Create filter')."
"; + print "
".__('Create Filter')."
"; print "
"; print "
"; @@ -255,8 +234,6 @@ print ""; print ""; print ""; - -// print "
Note: filter will only apply to new articles.
"; $result = db_query($link, "SELECT id,description FROM ttrss_filter_types ORDER BY description"); @@ -268,28 +245,48 @@ $filter_types[$line["id"]] = __($line["description"]); } - print ""; + print "
".__("Match")."
"; - print " - "; - print ""; - - print ""; - - print ""; + print ""; + print " " . __("with parameters:") . " "; + print ""; - print ""; + print_label_select($link, "action_param_label", $action_param); - print ""; + print ""; - print ""; + "; - print "
".__('Match:').""; + print "
"; - print "
".__('On field:').""; + print ""; + print __("Date") . " "; - print_select_hash("filter_type", 1, $filter_types, "class=\"_iedit\""); - - print "
".__('Feed:').""; + $filter_params = array( + "before" => __("before"), + "after" => __("after")); + + print_select_hash("filter_date_modifier", "before", $filter_params); + + print " "; + + print ""; + + print ""; + print " "; + print ""; + + print "
" . __("on field") . " "; + print_select_hash("filter_type", 1, $filter_types, + 'onchange="filterDlgCheckType(this)"'); + + print "
"; + print __("in") . " "; print_feed_select($link, "feed_id", $active_feed_id); - - print "
".__('Action:').""; $result = db_query($link, "SELECT id,description FROM ttrss_filter_actions @@ -301,26 +298,41 @@ print ""; - print "
".__('Params:')."
".__('Options:').""; + print " "; // tiny layout hack + + print ""; + + print "
".__("Options")."
"; + print "
"; + + print "
"; + + print " +
"; print " -
"; + print "
"; + print "
"; print ""; - print "
"; + print "
"; print " "; print ""; - print "
"; print "
"; @@ -434,7 +445,7 @@ print "
"; print __("Showing most popular tags ")." (".__('browse more')."):
"; + href='javascript:toggleTags(true)'>".__('more tags')."):
"; print "
"; @@ -453,6 +464,48 @@ return; } +/* if ($id == "offlineDownload") { + print "
".__('Download articles')."
"; + print "
"; + + print "
"; + + print "
".__("Download")."
"; + + print "
"; + + $amount = array( + 50 => 50, + 100 => 100, + 250 => 250, + 500 => 500); + + print_select_hash("amount", 50, $amount); + + print " " . __("latest articles for offline reading."); + + print "
"; + + print ""; + print ""; + + print "
"; + + print "
"; + + print "
+ +
"; + + print "
"; + + return; + } */ + + print "
Internal Error

Unknown dialog $id