diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-22 20:20:43 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-06-22 20:20:43 +0000 |
| commit | 15377955b388639cbfdcbbe684e09f2bde30cafa (patch) | |
| tree | dfe3bb8d62fb51ee9756456ebc48b377310f1efd /frontends/php/include | |
| parent | cbe4739969d86c162f2815b2913de514716d5d8b (diff) | |
| download | zabbix-15377955b388639cbfdcbbe684e09f2bde30cafa.tar.gz zabbix-15377955b388639cbfdcbbe684e09f2bde30cafa.tar.xz zabbix-15377955b388639cbfdcbbe684e09f2bde30cafa.zip | |
Support for table sysmaps.
git-svn-id: svn://svn.zabbix.com/trunk@104 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index 7a786647..ad2c4fdc 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -414,6 +414,22 @@ ?> </font> </td> + <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%"> + <font face="Arial,Helvetica" size=2> + <a href="sysmaps.html"> +<? + if( ($page["file"]=="sysmaps.html")|| + ($page["file"]=="<change>.html")) + { + echo "<b>[SYSTEM MAPS]</b></a>"; + } + else + { + echo "SYSTEM MAPS</a>"; + } +?> + </font> + </td> </tr> </table> </td> @@ -643,6 +659,14 @@ $result=DBexecute($sql); } + # Delete System Map + + function delete_sysmap( $sysmapid ) + { + $sql="delete from sysmaps where sysmapid=$sysmapid"; + $result=DBexecute($sql); + } + # Delete Action by userid function delete_actions_by_userid( $userid ) @@ -831,6 +855,14 @@ } } + # Add System Map + + function add_sysmap($name,$width,$height) + { + $sql="insert into sysmaps (name,width,height) values ('$name',$width,$height)"; + $result=DBexecute($sql); + } + # Add Host definition function add_host($host,$port,$status) |
