summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/cformtable.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
commit28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 (patch)
tree8281ccd48964ee0dd11c5ea689091fa3cef706fb /frontends/php/include/classes/cformtable.inc.php
parent495799b2aa61aab23d74d7faa110a0cd09d59bf0 (diff)
downloadzabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.gz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.xz
zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.zip
- developed group permission system (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/cformtable.inc.php')
-rw-r--r--frontends/php/include/classes/cformtable.inc.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/include/classes/cformtable.inc.php b/frontends/php/include/classes/cformtable.inc.php
index e2be6439..a0bf889d 100644
--- a/frontends/php/include/classes/cformtable.inc.php
+++ b/frontends/php/include/classes/cformtable.inc.php
@@ -56,7 +56,7 @@
$this->AddVar($form_variable, get_request($form_variable, 1));
$this->AddVar('form_refresh',get_request('form_refresh',0)+1);
- $this->bottom_items = new CCol(NULL,'form_row_last');
+ $this->bottom_items = new CCol(SPACE,'form_row_last');
$this->bottom_items->SetColSpan(2);
}
function SetAction($value)
@@ -127,6 +127,9 @@
if(is_string($item1))
$item1=nbsp($item1);
+ if(is_null($item1)) $item1 = SPACE;
+ if(is_null($item2)) $item2 = SPACE;
+
$row = new CRow(array(
new CCol($item1,'form_row_l'),
new CCol($item2,'form_row_r')
@@ -137,9 +140,15 @@
}
function AddSpanRow($value, $class=NULL)
{
+ if(is_string($value))
+ $item1=nbsp($value);
+
+ if(is_null($value)) $value = SPACE;
+ if(is_null($class)) $class = 'form_row_c';
+
$col = new CCol($value,$class);
$col->SetColSpan(2);
- array_push($this->center_items,new CRow($col,$class));
+ array_push($this->center_items,new CRow($col));
}
function AddItemToBottomRow($value)
{