summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-04 10:37:48 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-04 10:37:48 +0000
commitc3cb3f34ea615de16fa507271ca61cf5f426b5c1 (patch)
treec375c800742bac451b7049f447082cbd604a3277 /frontends/php/include/forms.inc.php
parentdee7748ce3a458856713e608569c47c6d5ea65d4 (diff)
downloadzabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.tar.gz
zabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.tar.xz
zabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.zip
Improvements for escalation management.
git-svn-id: svn://svn.zabbix.com/trunk@1813 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php51
1 files changed, 51 insertions, 0 deletions
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 "<form method=\"get\" action=\"config.php\">";
+ echo "<input class=\"biginput\" name=\"config\" type=\"hidden\" value=\"".$_GET["config"]."\" size=8>";
+ if(isset($escalationid))
+ {
+ echo "<input class=\"biginput\" name=\"escalationid\" type=\"hidden\" value=\"$escalationid\" size=8>";
+ }
+
+ echo S_NAME;
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"name\" size=32 value=\"$name\">";
+
+ show_table2_v_delimiter($col++);
+ echo S_IS_DEFAULT;
+ show_table2_h_delimiter();
+ echo "<input type=checkbox ".iif($dflt==1,"checked","")." name=\"dflt\">";
+
+ show_table2_v_delimiter2($col++);
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add escalation\">";
+ if(isset($escalationid))
+ {
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update escalation\">";
+ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete escalation\" onClick=\"return Confirm('Delete selected escalation?');\">";
+ }
+
+ show_table2_header_end();
+ }
?>