summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-26 13:31:34 +0100
committerAndrew Dolgov <[email protected]>2005-11-26 13:31:34 +0100
commit53226edc0d70e85e27d3318750a236ea2ed89ddf (patch)
tree9a6887e1f099d51a6d0bfdd4a3b6e6661c9e787c /backend.php
parentf46b6ad03ad07b036c107ea0dec04a9ac600cc90 (diff)
prevent disabled rows to be selected by selectall
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php29
1 files changed, 22 insertions, 7 deletions
diff --git a/backend.php b/backend.php
index 79b016f37..f8b5c7034 100644
--- a/backend.php
+++ b/backend.php
@@ -1260,9 +1260,12 @@
if ($subop == "edit" && $feed_id != $edit_feed_id) {
$class .= "Grayed";
+ $this_row_id = "";
+ } else {
+ $this_row_id = "id=\"FEEDR-$feed_id\"";
}
- print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
+ print "<tr class=\"$class\" $this_row_id>";
$icon_file = ICONS_DIR . "/$feed_id.ico";
@@ -1478,9 +1481,12 @@
if ($subop == "editCat" && $cat_id != $edit_cat_id) {
$class .= "Grayed";
+ $this_row_id = "";
+ } else {
+ $this_row_id = "id=\"FCATR-$cat_id\"";
}
- print "<tr class=\"$class\" id=\"FCATR-$cat_id\">";
+ print "<tr class=\"$class\" $this_row_id>";
$edit_title = htmlspecialchars(db_unescape_string($line["title"]));
@@ -1685,9 +1691,12 @@
if ($subop == "edit" && $filter_id != $edit_filter_id) {
$class .= "Grayed";
+ $this_row_id = "";
+ } else {
+ $this_row_id = "id=\"FILRR-$filter_id\"";
}
- print "<tr class=\"$class\" id=\"FILRR-$filter_id\">";
+ print "<tr class=\"$class\" $this_row_id>";
$line["regexp"] = htmlspecialchars($line["reg_exp"]);
$line["description"] = htmlspecialchars($line["description"]);
@@ -1945,9 +1954,12 @@
if ($subop == "edit" && $label_id != $edit_label_id) {
$class .= "Grayed";
+ $this_row_id = "";
+ } else {
+ $this_row_id = "id=\"LILRR-$label_id\"";
}
- print "<tr class=\"$class\" id=\"LILRR-$label_id\">";
+ print "<tr class=\"$class\" $this_row_id>";
$line["sql_exp"] = htmlspecialchars($line["sql_exp"]);
$line["description"] = htmlspecialchars($line["description"]);
@@ -2617,9 +2629,12 @@
if ($uid == $_SESSION["uid"] || ($subop == "edit" && $uid != $edit_uid)) {
$class .= "Grayed";
- }
-
- print "<tr class=\"$class\" id=\"UMRR-$uid\">";
+ $this_row_id = "";
+ } else {
+ $this_row_id = "id=\"UMRR-$uid\"";
+ }
+
+ print "<tr class=\"$class\" $this_row_id>";
$line["login"] = htmlspecialchars($line["login"]);