From cc3aafd58689e4391c75a4d54531cc26bca06c44 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 3 Oct 2005 15:10:07 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@2089 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'frontends/php/include/forms.inc.php') diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index 46fe70bb..e398c8a8 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -1418,4 +1418,73 @@ show_table2_header_end(); } + + # Insert autoregistration form + function insert_autoregistration_form($id) + { + if(isset($id)) + { + $result=DBselect("select * from autoreg where id=$id"); + + $row=DBfetch($result); + + $pattern=$row["pattern"]; + $priority=$row["priority"]; + $hopstid=$row["hostid"]; + } + else + { + $pattern="*"; + $priority=10; + $hostid=0; + } + + $col=0; + + show_form_begin("autoregistration"); + echo S_AUTOREGISTRATION; + + show_table2_v_delimiter($col++); + echo "
"; + echo ""; + if(isset($id)) + { + echo ""; + } + + echo S_PATTERN; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_PRIORITY; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_HOST; + show_table2_h_delimiter(); + + echo ""; + + show_table2_v_delimiter2($col++); + echo ""; + if(isset($id)) + { + echo ""; + echo ""; + } + + show_table2_header_end(); + } ?> -- cgit