diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-03 12:30:25 +0000 |
commit | d30d70afd95653bb356603612db6519d6e6ebead (patch) | |
tree | 8ca2f2a7f24eeea1203b0042015d25f18f97496b /h-source/Library/Helper/List.php | |
parent | f56fa1fc50484d99906a0a22e2931f9c1fe708b6 (diff) |
improved i18n
Diffstat (limited to 'h-source/Library/Helper/List.php')
-rwxr-xr-x | h-source/Library/Helper/List.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/h-source/Library/Helper/List.php b/h-source/Library/Helper/List.php index 3ffce1c..51ed09c 100755 --- a/h-source/Library/Helper/List.php +++ b/h-source/Library/Helper/List.php @@ -55,9 +55,12 @@ class Helper_List extends Helper_Html { 'link' => 'associate the record' ); - //properties of each column + //properties of columns public $colProperties = array(); + //table attributes + public $tableAttributes = array('class'=>'listTable','cellspacing'=>'0'); + //$position: array. First element: page number, second element: number of pages public $position = array(); @@ -180,7 +183,7 @@ class Helper_List extends Helper_Html { } public function wrapList($string) { - return wrap($string,array('table'=>'listTable')); + return wrap($string,array('table'=>$this->tableAttributes)); } //method to create the HTML of the head of the table @@ -335,7 +338,8 @@ class Helper_List extends Helper_Html { } public function simpleText($itemArray) { - $string = "<span class='textItem'>".$itemArray['action']."</span>\n"; + $text = strcmp($itemArray['action'],'') !== 0 ? $itemArray['action'] : ' '; + $string = "<span class='textItem'>".$text."</span>\n"; return $string; } |