Subscribe to feed"; print "
"; print "
"; print ""; print ""; print ""; print ""; if (get_pref($link, 'ENABLE_FEED_CATS')) { print ""; } print "
Feed URL:
Category:"; print_feed_cat_select($link, "cat_id"); print "
"; print "
"; print "
"; } if ($id == "search") { print "
Search
"; print "
"; print "
"; #$active_feed_id = db_escape_string($_GET["param"]); $params = split(":", db_escape_string($_GET["param"])); $active_feed_id = sprintf("%d", $params[0]); $is_cat = $params[1] == "true"; print ""; print ""; print "
Search:"; print "
Where:"; print "
Match on:"; $search_fields = array( "title" => "Title", "content" => "Content", "both" => "Title or content"); print_select_hash("match_on", 3, $search_fields); print "
"; print "
"; print "
"; print "
"; } if ($id == "quickAddLabel") { print "
Create label
"; print "
"; print "
"; print ""; print ""; print ""; print ""; print "
Caption: "; print "

SQL Expression:

"; print ""; print "
"; print "
"; print "
"; print "
"; print " "; print " "; print ""; } if ($id == "quickAddFilter") { $active_feed_id = db_escape_string($_GET["param"]); print "
Create filter
"; print "
"; print "
"; 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"); $filter_types = array(); while ($line = db_fetch_assoc($result)) { //array_push($filter_types, $line["description"]); $filter_types[$line["id"]] = $line["description"]; } print ""; print ""; print ""; print ""; print "
Match: "; print ""; print_select_hash("filter_type", 1, $filter_types, "class=\"iedit\""); print "
Feed:"; print_feed_select($link, "feed_id", $active_feed_id); print "
Action:"; print "
"; print "
"; print "
"; print " "; print ""; print "
"; // print ""; } if ($id == "feedUpdateErrors") { print "
Update Errors
"; print "
"; print "These feeds have not been updated because of errors:"; $result = db_query($link, "SELECT id,title,feed_url,last_error FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]); print "
    "; while ($line = db_fetch_assoc($result)) { print "
  • " . $line["title"] . " (" . $line["feed_url"] . "): " . "" . $line["last_error"] . ""; } print "
"; print "
"; print "
"; print ""; print "
"; } print "
"; } ?>