diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-03-07 08:07:46 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-03-07 08:07:46 +0000 |
| commit | ef4d76165d7365abcc8bfc816ef4f1e8a182ed26 (patch) | |
| tree | fec8b1018121ec81dc43e645ba6803f908b785b3 /frontends/php/include/config.inc.php | |
| parent | 23f5bd1e6cacc66e9efbe151e4b809a09150c9eb (diff) | |
| download | zabbix-ef4d76165d7365abcc8bfc816ef4f1e8a182ed26.tar.gz zabbix-ef4d76165d7365abcc8bfc816ef4f1e8a182ed26.tar.xz zabbix-ef4d76165d7365abcc8bfc816ef4f1e8a182ed26.zip | |
- added button "add items from template" (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1290 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 14c2370c..0c5e0350 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -2776,6 +2776,14 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; function add_using_host_template($hostid,$host_templateid) { + global $ERROR_MSG; + + if(!isset($host_templateid)||($host_templateid==0)) + { + $ERROR_MSG="Select template first"; + return 0; + } + $host=get_host_by_hostid($hostid); $sql="select itemid from items where hostid=$host_templateid"; $result=DBselect($sql); |
