summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c59a8b1)
raw | patch | inline | side by side (parent: c59a8b1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Nov 2007 07:29:30 +0000 (07:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Nov 2007 07:29:30 +0000 (07:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7753 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ObjectListViewport.inc | patch | blob | history |
index 340a69f7d5dc4d8969400bf525daa9e4c652a572..efecf1dd777fc8573b0400c8bf2f19a7b2c27f4a 100644 (file)
private $entryFormat;
private $attributes= array('cn', '_icon', '_actions', 'dn');
- private $b_displayHeader = TRUE;
- private $b_displayFooter = TRUE;
/* <---- Dummy here */
+ private $b_displayHeader = TRUE;
+ private $b_displayFooter = TRUE;
+ private $i_numberOfCols = 0;
/*!
\brief Container for objects
/* Dummy here */
$cr= Registry::getInstance("ConfigManager");
$cr->setSection($config);
- $this->headline= $this->parseHeadline($cr->getValue("headline"));
+ $this->parseHeadline($cr->getValue("headline"));
$this->footer= $cr->getValue("footer");
$this->entryFormat= $cr->getValue("entryFormat");
\return HTML rendered headline
*/
private function renderHeadline(){
- $buffer ="<table class='ObjectListViewport_Header_Table'>\n";
+ $buffer ="<table class='ObjectListViewport_Header_Table' id='ObjectListViewport_Header_Table".$this->id."'>\n";
$buffer.="<tr>\n";
foreach($this->headline as $key => $value){
$buffer .= "<td class='ObjectListViewport_Header_Cell' style='".$value['style']."'>".$value['name']."</td>\n";
}
- $buffer.="<td class='ObjectListViewport_Header_Cell' style='border-right:0px;width:14px;'> </td>";
$buffer.="</tr>\n";
$buffer.="</table>\n";
return $buffer;
$buffer="<tr>\n";
- foreach($tmp as $key => $value){
- $buffer .= "<td class='ObjectListViewport_Entry_Cell' style='".$this->headline[$key]['style']."'>".
- "<div style='width:100%;overflow:hidden;".$this->headline[$key]['style']."'>".
+// foreach($tmp as $key => $value){
+// $buffer .= "<td class='ObjectListViewport_Entry_Cell' style='".$this->headline[$key]['style']."'>".
+// "<div style='width:100%;overflow:hidden;".$this->headline[$key]['style']."'>".
+// $value.
+// "</div>".
+// "</td>\n";
+// }
+ for($i = 0 ; $i < $this->i_numberOfCols ; $i ++){
+
+ $value = $tmp[$i];
+ if($i == ($this->i_numberOfCols -1 )){
+
+ $buffer .= "<td class='ObjectListViewport_Entry_Cell' style='".$this->headline[$i]['style']."'>".
+ "<div style='width:100%;overflow:hidden;'>".
+ $value.
+ "test</div>".
+ "</td>\n";
+ }else{
+ $buffer .= "<td class='ObjectListViewport_Entry_Cell' style='".$this->headline[$i]['style']."'>".
+ "<div style='width:100%;overflow:hidden;".$this->headline[$i]['style']."'>".
$value.
"</div>".
"</td>\n";
+ }
}
+
+
$buffer.="</tr>\n";
return $buffer."\n";
/* Each cell definition is seperated by |
* split by and go through each definition
*/
+ $this->headline = array();
+ $this->i_numberOfCols = 0;
$tmp = split("\|",trim($data,"|"));
$cell_formats = array();
foreach($tmp as $key => $data){
}
}
$cell_formats[$key] = array("name" => $s_name, "width" => $s_width, "alignment" => $s_alignment,"style" => $s_style);
+ $this->i_numberOfCols ++;
}
- return($cell_formats);
+ $this->headline = $cell_formats;
}