From c3cb3f34ea615de16fa507271ca61cf5f426b5c1 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 4 Jun 2005 10:37:48 +0000 Subject: Improvements for escalation management. git-svn-id: svn://svn.zabbix.com/trunk@1813 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 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 b904f867..f25fd897 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -1059,4 +1059,55 @@ show_table2_header_end(); } + + # Insert escalation form + function insert_escalation_form($escalationid) + { + if(isset($escalationid)) + { + $result=DBselect("select * from escalations where escalationid=$escalationid"); + + $row=DBfetch($result); + + $name=$row["name"]; + $dflt=$row["dflt"]; + } + else + { + $name=""; + $dflt=0; + } + + $col=0; + + show_form_begin("escalations"); + echo S_ESCALATION; + + show_table2_v_delimiter($col++); + echo "
"; + echo ""; + if(isset($escalationid)) + { + echo ""; + } + + echo S_NAME; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_IS_DEFAULT; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter2($col++); + echo ""; + if(isset($escalationid)) + { + echo ""; + echo ""; + } + + show_table2_header_end(); + } ?> -- cgit