summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64e51b5)
raw | patch | inline | side by side (parent: 64e51b5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Oct 2010 14:41:24 +0000 (14:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Oct 2010 14:41:24 +0000 (14:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20114 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_ItemSelector.inc | patch | blob | history |
index 88bdc56ecb660a425b7c5210d323556e451e086b..9223a73cdbd1f9bdbc81f23f979bf6ca8bd34fc3 100644 (file)
foreach ($bases as $base => $dummy) {
// Build path style display
- $elements= explode(',', substr($base, 0, strlen($base) - strlen($this->releaseBase)));
- $elements= array_reverse($elements, true);
- $this->pathMapping[$base]= $base == $this->releaseBase? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements)));
-
- $this->releaseInfo[$base]['name'] = ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '', $elements[0]));
+ $this->pathMapping[$base]= $base == $this->releaseBase? '/' : $dummy;
+ $this->releaseInfo[$base]['name'] = preg_replace("/^.*\//","",$base);
$this->releaseInfo[$base]['description'] = $dummy;
}
}
$this->tree.= "</script>";
- $selected= $this->base == $this->releaseBase?"Selected":"";
- $this->tree.= "<div class='treeList' style='display:none;max-height:".$this->height."px' id='bs_".$this->pid."' onmouseover=\"window.clearTimeout(rtimer);\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\"><a class='treeList$selected' $link>/ ["._("Root")."]</a><ul class='treeList'>\n";
+ $this->tree.= "<div class='treeList' style='display:none;max-height:".$this->height."px' id='bs_".$this->pid."' onmouseover=\"window.clearTimeout(rtimer);\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\">
+
+ <ul class='treeList'>\n";
$first= true;
$last_indent= 2;
}
// Build path style display
- $elements= explode(',', substr($base, 0, strlen($base) - strlen($this->releaseBase)));
-
- $indent= count($elements);
+ $elements= explode('/', substr($base, strlen($this->releaseBase), strlen($base)));
+ $indent= count($elements) ;
+
if (!$first && ($indent == $last_indent)) {
$this->tree.= "</li>\n";
}