diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-10 12:53:34 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-10 12:53:34 +0000 |
| commit | f54860dfdd8d24de1dc26a530d95a23343756dc2 (patch) | |
| tree | 76234c5a861862aee2170b41cf7a517e82633e93 /frontends/php/overview.php | |
| parent | 455a64dfe19d7700fa1fe10edecb1ea82fa5dcce (diff) | |
| download | zabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.tar.gz zabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.tar.xz zabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.zip | |
- improved Templates logic (Eugene)
- speed improvement for proc.num of Tru64 (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2631 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/overview.php')
| -rw-r--r-- | frontends/php/overview.php | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index b48618d5..cf1996b5 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -71,9 +71,9 @@ ?> <?php - $h1=" ".S_OVERVIEW_BIG; + $h1=SPACE.S_OVERVIEW_BIG; - $h2=S_GROUP." "; + $h2=S_GROUP.SPACE; $h2=$h2."<select class=\"biginput\" name=\"groupid\" onChange=\"submit()\">"; $h2=$h2.form_select("groupid",0,S_SELECT_GROUP_DOT_DOT_DOT); $result=DBselect("select groupid,name from groups order by name"); @@ -97,7 +97,7 @@ } $h2=$h2."</select>"; - $h2=$h2." ".S_TYPE." "; + $h2=$h2.SPACE.S_TYPE.SPACE; $h2=$h2."<select class=\"biginput\" name=\"type\" onChange=\"submit()\">"; $h2=$h2.form_select("type",0,S_TRIGGERS); $h2=$h2.form_select("type",1,S_DATA); @@ -115,7 +115,7 @@ if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_DATA)) { $table = new CTableInfo(); - $header=array(" "); + $header=array(SPACE); $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"; $result=DBselect($sql); @@ -193,7 +193,7 @@ else if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_TRIGGERS)) { $table = new CTableInfo(); - $header=array(" "); + $header=array(SPACE); $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"; $result=DBselect($sql); @@ -233,26 +233,19 @@ { $sql="select t.status,t.value,t.lastchange from triggers t,functions f,items i where f.triggerid=t.triggerid and i.itemid=f.itemid and t.status=".TRIGGER_STATUS_ENABLED." and i.hostid=$hostid and t.description=".zbx_dbstr($row["description"]); $result2=DBselect($sql); + $value=SPACE; if(DBnum_rows($result2)==1) { $row2=DBfetch($result2); if($row2["status"]==0) { if($row2["value"] == TRIGGER_VALUE_FALSE) - $value=new CCol(" ","normal"); + $value=new CCol(SPACE,"normal"); else if($row2["value"] == TRIGGER_VALUE_UNKNOWN) - $value=new CCol(" ","unknown_trigger"); + $value=new CCol(SPACE,"unknown_trigger"); else - $value=new CCol(" ","high"); + $value=new CCol(SPACE,"high"); } - else - { - $value=" "; - } - } - else - { - $value=" "; } $rows=array_merge($rows,array($value)); } |
