summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fa97ac)
raw | patch | inline | side by side (parent: 7fa97ac)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Apr 2010 09:51:23 +0000 (09:51 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Apr 2010 09:51:23 +0000 (09:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17989 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 46f427a28fe732500b423f6719494035226369bd..e519909af16a7635f88377eabe54c7e8fee2bf73 100644 (file)
// Fill with department browser if configured this way
$departmentIterator= new departmentSortIterator($this->departments, $this->sortDirection[$this->sortColumn]);
foreach ($departmentIterator as $row => $entry){
- $result.="<tr>";
+ $rowResult= "<tr>";
// Render multi select if needed
if ($this->multiSelect || $this->singleSelect) {
- $result.="<td style='text-align:center;padding:0;' class='list1'> </td>";
+ $rowResult.="<td style='text-align:center;padding:0;' class='list1'> </td>";
}
// Render defined department columns, fill the rest with some stuff
$colspan= $config['span'];
$this->useSpan= true;
}
- $result.="<td colspan='$colspan' ".$this->colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row)."</td>";
+ $rowResult.="<td colspan='$colspan' ".$this->colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row)."</td>";
$rest-= $colspan;
}
// Fill remaining cols with nothing
$last= $this->numColumns - $rest;
for ($i= 0; $i<$rest; $i++){
- $result.= "<td ".$this->colprops[$last+$i-1]." class='list1'> </td>";
+ $rowResult.= "<td ".$this->colprops[$last+$i-1]." class='list1'> </td>";
}
- $result.="</tr>";
+ $rowResult.="</tr>";
+ // Apply label to objecttype icon?
+ if (preg_match("/<objectType:([^:]+):(.*)\/>/i", $rowResult, $matches)){
+ $objectType= image($matches[1], null, LDAP::fix(base64_decode($matches[2])));
+ $rowResult= preg_replace("/<objectType[^>]+>/", $objectType, $rowResult);
+ }
+ $result.= $rowResult;
$alt++;
}
+
+
$deps= $alt;
}