From 0666e120e8915920070dc18273cd67787484f103 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 May 2006 13:51:39 +0100 Subject: feed cat editor uses prototype --- backend.php | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 267cc7dc9..d203af3fa 100644 --- a/backend.php +++ b/backend.php @@ -1982,6 +1982,8 @@ if (db_num_rows($result) != 0) { + print "
"; + print "

"; @@ -2005,9 +2007,13 @@ $edit_cat_id = $_GET["id"]; - if ($subop == "editCat" && $cat_id != $edit_cat_id) { - $class .= "Grayed"; - $this_row_id = ""; + if ($subop == "editCat") { + if ($cat_id != $edit_cat_id) { + $class .= "Grayed"; + $this_row_id = ""; + } else { + $class .= "Selected"; + } } else { $this_row_id = "id=\"FCATR-$cat_id\""; } @@ -2026,16 +2032,22 @@ } else if ($cat_id != $edit_cat_id) { - print ""; print ""; } else { - print ""; + print ""; - print ""; + print ""; } @@ -2045,15 +2057,17 @@ } print "
$edit_title"; + + print ""; + print ""; + print ""; + + print "
"; + + print "

"; print "

"; if ($subop == "editCat") { print "Edit category:  + onclick=\"javascript:feedCatEditSave()\" value=\"Save\"> "; + onclick=\"javascript:feedCatEditCancel()\" value=\"Cancel\">"; } else { print " -- cgit v1.2.3-54-g00ecf