From 603c27f828a4db20eed63b9593b5bc579e8377fd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Aug 2005 07:56:00 +0100 Subject: inline feed editor, yay! --- backend.php | 59 +++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 49 insertions(+), 10 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 83d86458f..c3805fc03 100644 --- a/backend.php +++ b/backend.php @@ -433,7 +433,7 @@ $subop = $_GET["subop"]; - if ($subop == "edit") { +/* if ($subop == "old_edit") { $feed_id = $_GET["id"]; @@ -460,7 +460,7 @@ Add feed "; - } + } */ if ($subop == "editSave") { $feed_title = pg_escape_string($_GET["t"]); @@ -517,7 +517,8 @@ print "

"; print " - "; + + "; $lnum = 0; @@ -526,7 +527,9 @@ $class = ($lnum % 2) ? "even" : "odd"; $feed_id = $line["id"]; - + + $edit_feed_id = $_GET["id"]; + print ""; $icon_file = ICONS_DIR . "/$feed_id.ico"; @@ -539,15 +542,26 @@ } print ""; - print ""; - - print ""; - print ""; + + print ""; + print ""; + } else { + + print ""; + + print ""; + print ""; + + } print ""; + print ""; ++$lnum; @@ -555,6 +569,31 @@ print "
 SelectTitleLinkLast Updated
 SelectTitleLinkLast Updated
$feed_icon" . - $line["title"] . "" . - $line["feed_url"] . "" . + $line["title"] . "" . + $line["feed_url"] . "" . $line["last_updated"] . "
"; + print "

"; + + if ($subop == "edit") { + print "Edit feed:  + Cancel  + Save"; + } else { + +// Edit  + +// Refresh"; + + print " + Selection:  + Remove  + Mark as read  + Mark as unread"; + + } + } pg_close($link); -- cgit v1.2.3