From: hickert Date: Wed, 7 Nov 2007 11:06:50 +0000 (+0000) Subject: Fixed scroll X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2a5649874ed0695eb5b2dc3ad5178daf0f75ef0;p=gosa.git Fixed scroll git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7742 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ObjectList.inc b/include/class_ObjectList.inc index 01e7ac528..4763933b3 100644 --- a/include/class_ObjectList.inc +++ b/include/class_ObjectList.inc @@ -198,7 +198,7 @@ class ObjectList implements IteratorAggregate { "objectClass" => array('gotoWorkstation')), array("dn" => "cn=vserver-04.intranet.gonicus.de,ou=servers,ou=systems,o=Landeshauptstadt München,c=de", - "cn" => "vserver-04.intranet.gonicus.de [Mail Server]", + "cn" => "vserver-04.", "_icon" => "select_server.png", "_actions" => "CPSREDX", "objectClass" => array('gotoWorkstation')), @@ -335,7 +335,7 @@ class ObjectList implements IteratorAggregate { "objectClass" => array('gotoWorkstation')), array("dn" => "cn=vserver-04.intranet.gonicus.de,ou=servers,ou=systems,o=Landeshauptstadt München,c=de", - "cn" => "vserver-04.intranet.gonicus.de [Mail Server]", + "cn" => "vsernicus.de", "_icon" => "select_server.png", "_actions" => "CPSREDX", "objectClass" => array('gotoWorkstation')), diff --git a/include/class_ObjectListViewport.inc b/include/class_ObjectListViewport.inc index 959ae3067..2cc44af49 100644 --- a/include/class_ObjectListViewport.inc +++ b/include/class_ObjectListViewport.inc @@ -84,12 +84,12 @@ 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.=""; + $buffer.=""; $buffer.="\n"; $buffer.="
".$value['name']."".$value['name']."  
\n"; return $buffer; @@ -156,10 +156,10 @@ class ObjectListViewport { $buffer="\n"; foreach($tmp as $key => $value){ - if(empty($this->headline[$key]['width']) || preg_match("/\%/",$this->headline[$key]['width'])){ - $buffer .= "". - "
". - $value. + if(1 || empty($this->headline[$key]['width']) || preg_match("/\%/",$this->headline[$key]['width'])){ + $buffer .= "". + "
". + $value. "
". "\n"; }else{ @@ -194,22 +194,51 @@ class ObjectListViewport { */ public function render() { - /* Generate fixed headline */ - $buffer= $this->renderHeadline(); + $header = $this->renderHeadline(); + $footer = $this->renderFooter(); /* Apply current filter */ + $entries = ""; $objects= new ObjectListFilterIterator($this->objects->getIterator()); - - $buffer.="
"; - $buffer.="\n"; foreach ($objects as $value){ - $buffer.= $this->renderEntry($value); + $entries .= $this->renderEntry($value); } - $buffer.="
\n"; - $buffer.="
"; - /* Generate footer */ - $buffer.= $this->renderFooter(); + + + /* Generate fixed headline */ + $buffer = " + + + + +
+ + + + + + + + + + +
+ ".$header." +
+
+ + ".$entries." +
+
+
+ +
+"; return ($buffer); } diff --git a/test.php b/test.php index 1b156e4b7..ce027aec4 100644 --- a/test.php +++ b/test.php @@ -1,50 +1,141 @@ - + - - -
- -
+ + + + + + + + + + + +
+ hallo
+ hallo
+ hallo
+ hallo
+ hallo
+ hallo
+
+ +
+ hallo
+ hallo
+
+ hallo
+ hallo
+
+