summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_comments.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-02-05 11:58:04 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-02-05 11:58:04 +0000
commitc89221db2facb0d5ab8888179874900ee477c5e6 (patch)
tree81befe272f8024141a73b08c795164e2be842342 /frontends/php/tr_comments.php
parent4b495c1d7bc2735aec1d8dad77c675742f12bf79 (diff)
downloadzabbix-c89221db2facb0d5ab8888179874900ee477c5e6.tar.gz
zabbix-c89221db2facb0d5ab8888179874900ee477c5e6.tar.xz
zabbix-c89221db2facb0d5ab8888179874900ee477c5e6.zip
- all *.html documents were renamed to *.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@311 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_comments.php')
-rw-r--r--frontends/php/tr_comments.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/frontends/php/tr_comments.php b/frontends/php/tr_comments.php
new file mode 100644
index 00000000..c8e95c55
--- /dev/null
+++ b/frontends/php/tr_comments.php
@@ -0,0 +1,46 @@
+<?
+ $page["title"] = "Trigger comments";
+ $page["file"] = "tr_comments.php";
+
+ include "include/config.inc";
+ show_header($page["title"],0,0);
+?>
+
+<?
+ show_table_header("TRIGGER COMMENTS");
+ echo "<br>";
+?>
+
+<?
+ if(isset($register) && ($register=="update"))
+ {
+ $result=update_trigger_comments($triggerid,$comments);
+ show_messages($result,"Trigger comment updated","Cannot update trigger comment");
+ }
+?>
+
+<?
+ $result=DBselect("select comments from triggers where triggerid=$triggerid");
+ $comments=stripslashes(DBget_field($result,0,0));
+?>
+
+<?
+ show_table2_header_begin();
+ echo "Comments";
+
+ show_table2_v_delimiter();
+ echo "<form method=\"post\" action=\"tr_comments.php\">";
+ echo "<input name=\"triggerid\" type=\"hidden\" value=$triggerid>";
+ echo "Comments";
+ show_table2_h_delimiter();
+ echo "<textarea name=\"comments\" cols=100 ROWS=\"25\" wrap=\"soft\">$comments</TEXTAREA>";
+
+ show_table2_v_delimiter2();
+ echo "<input type=\"submit\" name=\"register\" value=\"update\">";
+
+ show_table2_header_end();
+?>
+
+<?
+ show_footer();
+?>