summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-07 18:47:50 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-07 18:47:50 +0000
commit557fa5637ff586fdaef0279ba257a6fd2d3c371f (patch)
treeb0bc35873a47f376b8bddd5645780328057bd38d /frontends/php
parenta2b39f060c68633cf0d366c37bb572ef53fbd6d0 (diff)
Cosmetic changes.
git-svn-id: svn://svn.zabbix.com/trunk@1144 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/actions.php12
-rw-r--r--frontends/php/alerts.php2
2 files changed, 9 insertions, 5 deletions
diff --git a/frontends/php/actions.php b/frontends/php/actions.php
index ba175e33..215ef13c 100644
--- a/frontends/php/actions.php
+++ b/frontends/php/actions.php
@@ -116,11 +116,13 @@
{
echo "<TD><FONT COLOR=\"#00AA00\">OFF</FONT></TD>";
}
- echo "<TD>".$row["delay"]."</TD>";
- echo "<TD>".$row["subject"]."</TD>";
- echo "<TD>".$row["message"]."</TD>";
+ echo "<TD>".htmlspecialchars($row["delay"])."</TD>";
+ echo "<TD>".htmlspecialchars($row["subject"])."</TD>";
echo "<TD>";
- echo " <A HREF=\"actions.php?register=edit&actionid=".$row["actionid"]."&triggerid=".$row["triggerid"]."\">Change</A>";
+ echo "<pre>".htmlspecialchars($row["message"])."</pre>";
+ echo "</TD>";
+ echo "<TD>";
+ echo " <A HREF=\"actions.php?register=edit&actionid=".$row["actionid"]."&triggerid=".$row["triggerid"]."#form\">Change</A>";
echo "</TD></TR>";
}
if(DBnum_rows($result)==0)
@@ -137,6 +139,8 @@
</div>
<?php
+ echo "<a name=\"form\"></a>";
+
if(isset($HTTP_GET_VARS["actionid"]))
{
$sql="select a.actionid,a.triggerid,a.good,a.delay,a.subject,a.message,a.userid,a.scope,a.severity,a.recipient from actions a where a.actionid=".$HTTP_GET_VARS["actionid"];
diff --git a/frontends/php/alerts.php b/frontends/php/alerts.php
index af4f1882..cced0641 100644
--- a/frontends/php/alerts.php
+++ b/frontends/php/alerts.php
@@ -115,7 +115,7 @@
echo "<TD>".htmlspecialchars($row["sendto"])."</TD>";
echo "<TD><pre>".htmlspecialchars($row["subject"])."</pre></TD>";
echo "<TD>";
- echo "<pre>".htmlspecialchars($row["message"])."</pre>";;
+ echo "<pre>".htmlspecialchars($row["message"])."</pre>";
// for($i=0;$i<strlen($row["message"]);$i++)
// {
// if($row["message"][$i]=="\n")