summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/ctable.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-27 13:58:16 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-27 13:58:16 +0000
commit0c61274fcf75d2fcc545b761d64d3307323afcd3 (patch)
tree33c8c74f5ddd66cde9c98bbc6f7aca8d3c46cb23 /frontends/php/include/classes/ctable.inc.php
parent4f6965b12e09c357d57b03fae328dcbb9d384310 (diff)
downloadzabbix-0c61274fcf75d2fcc545b761d64d3307323afcd3.tar.gz
zabbix-0c61274fcf75d2fcc545b761d64d3307323afcd3.tar.xz
zabbix-0c61274fcf75d2fcc545b761d64d3307323afcd3.zip
- [DEV-91] added printable view for pages (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5204 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/ctable.inc.php')
-rw-r--r--frontends/php/include/classes/ctable.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/include/classes/ctable.inc.php b/frontends/php/include/classes/ctable.inc.php
index b7f1fb11..4de17a2f 100644
--- a/frontends/php/include/classes/ctable.inc.php
+++ b/frontends/php/include/classes/ctable.inc.php
@@ -48,6 +48,7 @@
/* public */
function CRow($item=NULL,$class=NULL){
parent::CTag("tr","yes");
+
$this->AddItem($item);
$this->SetClass($class);
}
@@ -65,13 +66,11 @@
if(strtolower(get_class($el))=='ccol') {
parent::AddItem($el);
} elseif(!is_null($el)) {
-// parent::AddItem('<td>'.unpack_object($el).'</td>');
parent::AddItem(new CCol($el));
}
}
}
elseif(!is_null($item)){
-// parent::AddItem('<td>'.unpack_object($item).'</td>');
parent::AddItem(new CCol($item));
}
}
@@ -157,6 +156,7 @@
}
function SetHeader($value=NULL,$class=NULL){
+ if(isset($_REQUEST['print'])) hide_form_items($value);
if(is_null($class)) $class = $this->headerClass;
if(strtolower(get_class($value))=='crow') {
@@ -169,6 +169,7 @@
}
function SetFooter($value=NULL,$class=NULL){
+ if(isset($_REQUEST['print'])) hide_form_items($value);
if(is_null($class)) $class = $this->footerClass;
$this->footer = $this->PrepareRow($value,$class);