From c3ed5dc319429700b4cd6200b130479133d593eb Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 Nov 2007 11:21:30 +0000 Subject: [PATCH] seperated header & footer git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7739 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ObjectListViewport.inc | 25 ++++++++++++++-------- test.php | 31 +++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/include/class_ObjectListViewport.inc b/include/class_ObjectListViewport.inc index 6f070214b..970d1aa0e 100644 --- a/include/class_ObjectListViewport.inc +++ b/include/class_ObjectListViewport.inc @@ -84,11 +84,13 @@ class ObjectListViewport { \return HTML rendered headline */ private function renderHeadline(){ - $buffer ="\n"; + $buffer ="\n"; + $buffer.="\n"; foreach($this->headline as $key => $value){ - $buffer .= "\n"; + $buffer .= "\n"; } $buffer.="\n"; + $buffer.="
".$value['name']."".$value['name']."
\n"; return $buffer; } @@ -100,10 +102,11 @@ class ObjectListViewport { \return HTML rendered footer */ private function renderFooter(){ - - $buffer ="\n"; - $buffer .= "".$this->footer."\n"; + $buffer ="\n"; + $buffer.="\n"; + $buffer.= "\n"; $buffer.="\n"; + $buffer.="\n"; return $buffer; } @@ -148,9 +151,10 @@ class ObjectListViewport { $tmp = split("\|",trim($buffer,"|")); - $buffer ="\n"; + + $buffer="\n"; foreach($tmp as $key => $value){ - $buffer .= "".$value."\n"; + $buffer .= "".$value."\n"; } $buffer.="\n"; @@ -184,15 +188,18 @@ class ObjectListViewport { /* Apply current filter */ $objects= new ObjectListFilterIterator($this->objects->getIterator()); + $buffer.="
+ \n"; foreach ($objects as $value){ $buffer.= $this->renderEntry($value); } + $buffer.="
+
\n"; /* Generate footer */ $buffer.= $this->renderFooter(); - - return ("".$buffer."
"); + return ($buffer); } diff --git a/test.php b/test.php index c58318f49..139329695 100644 --- a/test.php +++ b/test.php @@ -2,9 +2,38 @@ "http://www.w3.org/TR/html4/transitional.dtd"> + -
+
-- 2.30.2