summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-22 10:53:16 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-22 10:53:16 +0000
commit6c68c976be9e2da1b4592d5eec5e0f55df0e7971 (patch)
tree48ad4ca1a929a7ea84730f2d63a436cff0141150 /frontends/php
parent49e6adf6cfaaac6806a24978f85f703b405caf93 (diff)
downloadzabbix-6c68c976be9e2da1b4592d5eec5e0f55df0e7971.tar.gz
zabbix-6c68c976be9e2da1b4592d5eec5e0f55df0e7971.tar.xz
zabbix-6c68c976be9e2da1b4592d5eec5e0f55df0e7971.zip
- fixed add services (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1054 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/alerts.php6
-rw-r--r--frontends/php/include/config.inc.php2
-rw-r--r--frontends/php/queue.php6
3 files changed, 13 insertions, 1 deletions
diff --git a/frontends/php/alerts.php b/frontends/php/alerts.php
index 735d7b14..27815477 100644
--- a/frontends/php/alerts.php
+++ b/frontends/php/alerts.php
@@ -131,6 +131,12 @@
echo "</TR>";
cr();
}
+ if(DBnum_rows($result)==0)
+ {
+ echo "<TR BGCOLOR=#EEEEEE>";
+ echo "<TD COLSPAN=6 ALIGN=CENTER>-No alerts-</TD>";
+ echo "<TR>";
+ }
echo "</TABLE>";
?>
</FONT>
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 24ceb73d..9250533b 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1973,7 +1973,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
$result=DBselect($sql);
while($row=DBfetch($result))
{
- $serviceid2=add_service($serviceid,$row["description"],$row["triggerid"],"on",0,"off",99);
+ $serviceid2=add_service($serviceid,$row["description"],$row["triggerid"],"on",0,"off",99,0);
// add_service_link($serviceid2,$serviceid,0);
}
return 1;
diff --git a/frontends/php/queue.php b/frontends/php/queue.php
index 91c144d0..690561fa 100644
--- a/frontends/php/queue.php
+++ b/frontends/php/queue.php
@@ -60,6 +60,12 @@
echo "</tr>";
cr();
}
+ if(DBnum_rows($result)==0)
+ {
+ echo "<TR BGCOLOR=#EEEEEE>";
+ echo "<TD COLSPAN=3 ALIGN=CENTER>-The queue is empty-</TD>";
+ echo "<TR>";
+ }
echo "</table>";
?>
<?php