From 28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 Mon Sep 17 00:00:00 2001 From: osmiy Date: Mon, 23 Oct 2006 07:34:27 +0000 Subject: - developed group permission system (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/cformtable.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/classes/cformtable.inc.php') 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) { -- cgit