summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-07-20 10:49:40 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-07-20 10:49:40 +0000
commit6a035cf083ef6cf6927d9e3c58cec6c4e1778569 (patch)
treefa52756250c47cddd2c800c7354eae358f8d0631 /frontends/php/items.php
parent2691ad6741639192c107509983aa42a0fcd39141 (diff)
downloadzabbix-6a035cf083ef6cf6927d9e3c58cec6c4e1778569.tar.gz
zabbix-6a035cf083ef6cf6927d9e3c58cec6c4e1778569.tar.xz
zabbix-6a035cf083ef6cf6927d9e3c58cec6c4e1778569.zip
- developed group functionality for graphs (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3069 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 0ff31f24..c25543db 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -300,7 +300,7 @@
{
$item = get_item_by_itemid($id);
if($item["templateid"]<>0) continue;
- $result2=delete_item($id);
+ delete_item($id);
}
show_messages(TRUE, S_ITEMS_DELETED, S_CANNOT_DELETE_ITEMS);
}
@@ -309,7 +309,7 @@
$group_itemid = $_REQUEST["group_itemid"];
foreach($group_itemid as $id)
{
- $result2=activate_item($id);
+ activate_item($id);
}
show_messages(TRUE, S_ITEMS_ACTIVATED, S_CANNOT_ACTIVATE_ITEMS);
}
@@ -318,7 +318,7 @@
$group_itemid = $_REQUEST["group_itemid"];
foreach($group_itemid as $id)
{
- $result2=disable_item($id);
+ disable_item($id);
}
show_messages(TRUE, S_ITEMS_DISABLED, S_CANNOT_DISABLE_ITEMS);
}
@@ -515,11 +515,10 @@
$applications .= $db_app["name"].", ";
}
+ $chkBox = new CCheckBox("group_itemid[]",NULL,NULL,$db_item["itemid"]);
+ if($db_item["templateid"] > 0) $chkBox->SetEnabled(false);
$table->AddRow(array(
- array(
- new CCheckBox("group_itemid[]",NULL,NULL,$db_item["itemid"]),
- $db_item["itemid"]
- ),
+ array($chkBox, $db_item["itemid"]),
$description,
$db_item["key_"],
$db_item["delay"],
@@ -544,6 +543,7 @@
array_push($footerButtons, SPACE);
array_push($footerButtons, new CButton('group_task','Delete selected',
"return Confirm('".S_DELETE_SELECTED_ITEMS_Q."');"));
+ array_push($footerButtons, SPACE);
array_push($footerButtons, new CButton('form_copy_to','Copy selected to ...'));
$table->SetFooter(new CCol($footerButtons));