summaryrefslogtreecommitdiffstats
path: root/frontends/php/alarms.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-11 14:38:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-11 14:38:49 +0000
commite87f5ebd4db58b76543980eb24a4efe044003e59 (patch)
tree04c5bfc3f208d4c9d7a137ff356035ca08cb7014 /frontends/php/alarms.php
parentb4b26e48b09f36c8b533412a1b19f1f23a447a9b (diff)
downloadzabbix-e87f5ebd4db58b76543980eb24a4efe044003e59.tar.gz
zabbix-e87f5ebd4db58b76543980eb24a4efe044003e59.tar.xz
zabbix-e87f5ebd4db58b76543980eb24a4efe044003e59.zip
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@2515 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/alarms.php')
-rw-r--r--frontends/php/alarms.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/alarms.php b/frontends/php/alarms.php
index fd015dd3..43fa215c 100644
--- a/frontends/php/alarms.php
+++ b/frontends/php/alarms.php
@@ -69,7 +69,7 @@
$sql="select clock,value,triggerid from alarms where triggerid=".$_REQUEST["triggerid"]." order by clock desc $limit";
$result=DBselect($sql);
- $table = new Ctable();
+ $table = new CTableInfo();
$table->setHeader(array(S_TIME,S_STATUS,S_DURATION,S_SUM,"%"));
$truesum=0;
$falsesum=0;
@@ -88,25 +88,25 @@
// table_td(date("Y.M.d H:i:s",$row["clock"]),"");
if($row["value"]==1)
{
- $istrue=array("value"=>S_TRUE_BIG,"class"=>"on");
+ $istrue=new CCol(S_TRUE_BIG,"on");
$truesum=$truesum+$leng;
$sum=$truesum;
}
elseif($row["value"]==0)
{
- $istrue=array("value"=>S_FALSE_BIG,"class"=>"off");
+ $istrue=new CCol(S_FALSE_BIG,"off");
$falsesum=$falsesum+$leng;
$sum=$falsesum;
}
elseif($row["value"]==3)
{
- $istrue=array("value"=>S_DISABLED_BIG,"class"=>"unknown");
+ $istrue=new CCol(S_DISABLED_BIG,"unknown");
$dissum=$dissum+$leng;
$sum=$dissum;
}
elseif($row["value"]==2)
{
- $istrue=array("value"=>S_UNKNOWN_BIG,"class"=>"unknown");
+ $istrue=new CCol(S_UNKNOWN_BIG,"unknown");
$dissum=$dissum+$leng;
$sum=$dissum;
}