summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/ctable.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-03 06:35:28 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-03 06:35:28 +0000
commitcff3cc1ef8b6ac526e7968be6a10c09669461be1 (patch)
treecdb8c67a959922a86e98a01b6104f52c3828b786 /frontends/php/include/classes/ctable.inc.php
parent50cb63535597c91584f08f6d6f00cfcdbe0dd198 (diff)
downloadzabbix-cff3cc1ef8b6ac526e7968be6a10c09669461be1.tar.gz
zabbix-cff3cc1ef8b6ac526e7968be6a10c09669461be1.tar.xz
zabbix-cff3cc1ef8b6ac526e7968be6a10c09669461be1.zip
- improved 'Latest data' sreen, items grouped by applications (Eugene)
- added applications for hosts (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2794 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/ctable.inc.php')
-rw-r--r--frontends/php/include/classes/ctable.inc.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/frontends/php/include/classes/ctable.inc.php b/frontends/php/include/classes/ctable.inc.php
index b0d5485a..46a18fff 100644
--- a/frontends/php/include/classes/ctable.inc.php
+++ b/frontends/php/include/classes/ctable.inc.php
@@ -127,6 +127,7 @@
}else{
$this->header = new CRow($value,$class);
}
+ return true;
}
function SetFooter($value=NULL,$class=NULL)
{
@@ -208,10 +209,20 @@
}
}
/* protected */
- function ShowTagBody()
+ function ShowHeader()
{
- if(is_a($this->header,'crow'))
+ if(isset($this->header))
$this->header->Show();
+ }
+
+ function GetNumRows()
+ {
+ return $this->GetItemsCount();
+ }
+
+ function ShowTagBody()
+ {
+ $this->ShowHeader();
if(count($this->items)==0)
{