From 95340b2e921420e6dce0627d670f6bbb553909f4 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 30 Apr 2010 09:51:23 +0000 Subject: [PATCH] Re-added images git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17989 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 46f427a28..e519909af 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -336,11 +336,11 @@ class listing { // Fill with department browser if configured this way $departmentIterator= new departmentSortIterator($this->departments, $this->sortDirection[$this->sortColumn]); foreach ($departmentIterator as $row => $entry){ - $result.=""; + $rowResult= ""; // Render multi select if needed if ($this->multiSelect || $this->singleSelect) { - $result.=" "; + $rowResult.=" "; } // Render defined department columns, fill the rest with some stuff @@ -351,19 +351,27 @@ class listing { $colspan= $config['span']; $this->useSpan= true; } - $result.="colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row).""; + $rowResult.="colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row).""; $rest-= $colspan; } // Fill remaining cols with nothing $last= $this->numColumns - $rest; for ($i= 0; $i<$rest; $i++){ - $result.= "colprops[$last+$i-1]." class='list1'> "; + $rowResult.= "colprops[$last+$i-1]." class='list1'> "; } - $result.=""; + $rowResult.=""; + // Apply label to objecttype icon? + if (preg_match("//i", $rowResult, $matches)){ + $objectType= image($matches[1], null, LDAP::fix(base64_decode($matches[2]))); + $rowResult= preg_replace("/]+>/", $objectType, $rowResult); + } + $result.= $rowResult; $alt++; } + + $deps= $alt; } -- 2.30.2