diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-11 14:38:49 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-11 14:38:49 +0000 |
commit | e87f5ebd4db58b76543980eb24a4efe044003e59 (patch) | |
tree | 04c5bfc3f208d4c9d7a137ff356035ca08cb7014 /frontends/php/overview.php | |
parent | b4b26e48b09f36c8b533412a1b19f1f23a447a9b (diff) | |
download | zabbix-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/overview.php')
-rw-r--r-- | frontends/php/overview.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index 6aefbf1c..4e5e7115 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -104,7 +104,7 @@ if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_DATA)) { - $table = new Ctable(); + $table = new CTableInfo(); $header=array(" "); $hosts=array(); $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host"; @@ -156,9 +156,9 @@ if(DBnum_rows($result3)>0) { if($row2["value_type"] == 0) - $value=array("value"=>nbsp(convert_units($row2["lastvalue"],$row2["units"])),"class"=>"high"); + $value=new CCol(nbsp(convert_units($row2["lastvalue"],$row2["units"])),"high"); else - $value=array("value"=>nbsp(htmlspecialchars(substr($row2["lastvalue"],0,20)." ...")),"class"=>"high"); + $value=new CCol(nbsp(htmlspecialchars(substr($row2["lastvalue"],0,20)." ...")),"high"); } else { @@ -182,7 +182,7 @@ } else if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_TRIGGERS)) { - $table = new Ctable(); + $table = new CTableInfo(); $header=array(" "); $hosts=array(); $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg,functions f,triggers t where h.status=".HOST_STATUS_MONITORED." and t.status=".TRIGGER_STATUS_ENABLED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid group by h.hostid,h.host order by h.host"; @@ -230,11 +230,11 @@ if($row2["status"]==0) { if($row2["value"] == TRIGGER_VALUE_FALSE) - $value=array("value"=>" ","class"=>"normal"); + $value=new CCol(" ","normal"); else if($row2["value"] == TRIGGER_VALUE_UNKNOWN) - $value=array("value"=>" ","class"=>"unknown_trigger"); + $value=new CCol(" ","unknown_trigger"); else - $value=array("value"=>" ","class"=>"high"); + $value=new CCol(" ","high"); } else { |