summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-28 07:21:16 +0100
committerAndrew Dolgov <[email protected]>2005-10-28 07:21:16 +0100
commit6de5d05666e628f2ef8f3844fd7e2f96f3e1a7df (patch)
tree797a53799bcc5be6e6c9155ce65f441331f7ac8c /backend.php
parentf84a97a31bd588bcf70fc71dbed27aca46d60b66 (diff)
add dialogue to remove current feed, overall quick meny improvements (shamelessly stolen from GMail)
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 6937a9af4..07f6028ed 100644
--- a/backend.php
+++ b/backend.php
@@ -1317,6 +1317,7 @@
if ($op == "dlg") {
$id = $_GET["id"];
+ $param = $_GET["param"];
if ($id == "quickAddFeed") {
print "Feed URL: <input id=\"qafInput\">
@@ -1326,6 +1327,31 @@
type=\"submit\" onclick=\"javascript:closeDlg()\"
value=\"Cancel\">";
}
+
+ if ($id == "quickDelFeed") {
+
+ $param = db_escape_string($param);
+
+ $result = db_query($link, "SELECT title FROM ttrss_feeds WHERE id = '$param'");
+
+ if ($result) {
+
+ $f_title = db_fetch_result($result, 0, "title");
+
+ print "Remove current feed ($f_title)?&nbsp;
+ <input class=\"button\"
+ type=\"submit\" onclick=\"javascript:qfdDelete($param)\" value=\"Remove\">
+ <input class=\"button\"
+ type=\"submit\" onclick=\"javascript:closeDlg()\"
+ value=\"Cancel\">";
+ } else {
+ print "Error: Feed $param not found.&nbsp;
+ <input class=\"button\"
+ type=\"submit\" onclick=\"javascript:closeDlg()\"
+ value=\"Cancel\">";
+ }
+ }
+
}
db_close($link);