summaryrefslogtreecommitdiffstats
path: root/frontends/php/services_form.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-31 09:17:23 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-31 09:17:23 +0000
commit00d73a873b0ca6325a235db50e67ab5ff12eab94 (patch)
treee3125a19618f061c9e8bf554bf3c635acac2ec4b /frontends/php/services_form.php
parent1c57942f5b57f9afca03b111bf8a4eef2e00fb42 (diff)
downloadzabbix-00d73a873b0ca6325a235db50e67ab5ff12eab94.tar.gz
zabbix-00d73a873b0ca6325a235db50e67ab5ff12eab94.tar.xz
zabbix-00d73a873b0ca6325a235db50e67ab5ff12eab94.zip
- added availability to add js scripts to header (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4217 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/services_form.php')
-rw-r--r--frontends/php/services_form.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/php/services_form.php b/frontends/php/services_form.php
index 1d2c0438..1547df25 100644
--- a/frontends/php/services_form.php
+++ b/frontends/php/services_form.php
@@ -25,6 +25,7 @@
$page["title"] = "S_IT_SERVICES";
$page["file"] = "services_form.php";
+ $page['scripts'] = array('services.js');
define('ZBX_PAGE_NO_MENU', 1);
include_once "include/page_header.php";
@@ -89,8 +90,10 @@ include_once "include/page_header.php";
$denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_MODE_LT);
if(isset($_REQUEST['serviceid']) && $_REQUEST['serviceid'] > 0){
- $query = "select s.* from services s LEFT JOIN triggers t on s.triggerid=t.triggerid ".
- " LEFT JOIN functions f on t.triggerid=f.triggerid LEFT JOIN items i on f.itemid=i.itemid ".
+ $query = "select s.* from services s ".
+ " LEFT JOIN triggers t on s.triggerid=t.triggerid ".
+ " LEFT JOIN functions f on t.triggerid=f.triggerid ".
+ " LEFT JOIN items i on f.itemid=i.itemid ".
" where (i.hostid is null or i.hostid not in (".$denyed_hosts.")) ".
" and ".DBid2nodeid("s.serviceid")."=".$ZBX_CURNODEID.
" and s.serviceid=".$_REQUEST["serviceid"];
@@ -100,7 +103,6 @@ include_once "include/page_header.php";
}
}
-echo '<script type="text/javascript" src="js/services.js"></script>';
/*-------------------------------------------- ACTIONS --------------------------------------------*/
if(isset($_REQUEST['saction'])){