fix for meta HTML

This commit is contained in:
Roland Gruber 2010-06-12 19:38:26 +00:00
parent 28c97af558
commit 2c97c0c5f0
1 changed files with 6 additions and 5 deletions

View File

@ -67,6 +67,8 @@ class htmlTable implements htmlElement {
const header = "<table>\n<tr>\n"; const header = "<table>\n<tr>\n";
/** table footer */ /** table footer */
const footer = "</tr>\n</table>\n"; const footer = "</tr>\n</table>\n";
/** new line */
const newLine = "</tr><tr>\n";
private $elements = array(); private $elements = array();
@ -94,7 +96,7 @@ class htmlTable implements htmlElement {
* Adds another line to the table. * Adds another line to the table.
*/ */
public function addNewLine() { public function addNewLine() {
$this->elements[] = "</tr><tr>\n"; $this->elements[] = htmlTable::newLine;
} }
/** /**
@ -120,9 +122,11 @@ class htmlTable implements htmlElement {
} }
// print simple Strings // print simple Strings
else { else {
if ($i != (sizeof($this->elements) - 1) || !($this->elements[$i] == htmlTable::newLine) ) {
echo $this->elements[$i]; echo $this->elements[$i];
} }
} }
}
echo htmlTable::footer; echo htmlTable::footer;
return $return; return $return;
} }
@ -534,7 +538,6 @@ class htmlTableExtendedSelect extends htmlSelect {
echo $this->label; echo $this->label;
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";
$return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope); $return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope);
echo "\n</td>\n<td>\n";
// print help link // print help link
if ($this->helpID != null) { if ($this->helpID != null) {
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";
@ -698,7 +701,6 @@ class htmlTableExtendedInputCheckbox extends htmlInputCheckbox {
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";
echo $this->label; echo $this->label;
} }
echo "\n</td>\n<td>\n";
// print help link // print help link
if ($this->helpID != null) { if ($this->helpID != null) {
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";
@ -814,7 +816,6 @@ class htmlTableExtendedInputTextarea extends htmlInputTextarea {
} }
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";
$return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope); $return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope);
echo "\n</td>\n<td>\n";
// print help link // print help link
if ($this->helpID != null) { if ($this->helpID != null) {
echo "\n</td>\n<td>\n"; echo "\n</td>\n<td>\n";