From 546e672bbc33aae643ff0ed08275db89da9bde31 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 4 Jun 2005 12:45:23 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@1815 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 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 f25fd897..80a3253a 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -1110,4 +1110,76 @@ show_table2_header_end(); } + + # Insert escalation rule form + function insert_escalation_rule_form($escalationid,$escalationruleid) + { + if(isset($escalationruleid)) + { + $result=DBselect("select * from escalation_rules where escalationruleid=$escalationruleid"); + + $row=DBfetch($result); + + $level=$row["level"]; + $period=$row["period"]; + $delay=$row["delay"]; + $actiontype=$row["actiontype"]; + } + else + { + $level=1; + $period="1-7,00:00-23:59"; + $delay=0; + $actiontype=0; + } + + $col=0; + + show_form_begin("escalationrule"); + echo S_ESCALATION_RULE; + + show_table2_v_delimiter($col++); + echo "
"; + echo ""; + echo ""; + if(isset($escalationruleid)) + { + echo ""; + } + + echo S_LEVEL; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_PERIOD; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_DELAY; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter($col++); + echo S_ACTION; + show_table2_h_delimiter(); + echo ""; + + + show_table2_v_delimiter2($col++); + echo ""; + if(isset($escalationid)) + { + echo ""; + echo ""; + } + + show_table2_header_end(); + } ?> -- cgit