aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Helper/List.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-12-03 12:30:25 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-12-03 12:30:25 +0000
commitd30d70afd95653bb356603612db6519d6e6ebead (patch)
tree8ca2f2a7f24eeea1203b0042015d25f18f97496b /h-source/Library/Helper/List.php
parentf56fa1fc50484d99906a0a22e2931f9c1fe708b6 (diff)
improved i18n
Diffstat (limited to 'h-source/Library/Helper/List.php')
-rwxr-xr-xh-source/Library/Helper/List.php10
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'] : '&nbsp';
+ $string = "<span class='textItem'>".$text."</span>\n";
return $string;
}