From: cajus Date: Mon, 4 Jan 2010 15:28:55 +0000 (+0000) Subject: Re-enabled footer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5708dc893f22aa3a9c2ecb3cb07eb9160e7866f7;p=gosa.git Re-enabled footer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15012 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/themes/default/style.css b/gosa-core/html/themes/default/style.css index 51f1bcb17..37fd2d72e 100644 --- a/gosa-core/html/themes/default/style.css +++ b/gosa-core/html/themes/default/style.css @@ -1913,3 +1913,13 @@ div.listContainer { overflow: hidden; max-width:500px; } + +td.nlistFooter { + background-color:#E5E5E5; + border-left:1px solid #C0C0C0; + border-right:1px solid #C0C0C0; + border-bottom:1px solid #C0C0C0; + padding:3px; + height:16px; +} + diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index f4c2ed9a0..558e859d5 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -290,8 +290,6 @@ class listing { // Build list body $result.= "\n"; -########################### - // No results? Just take an empty colspanned row if (count($this->entries) + count($this->departments) == 0) { $result.= " "; @@ -391,23 +389,25 @@ class listing { $result.= ""; } - // Close list - $result.= ""; + // Close list body + $result.= ""; // Add the footer if requested -################################# - #if ($this->showFooter) { - # $result.= "
"; - - # foreach ($this->objectTypes as $objectType) { - # if (isset($this->objectTypeCount[$objectType['label']])) { - # $label= _($objectType['label']); - # $result.= "$label ".$this->objectTypeCount[$objectType['label']]."    "; - # } - # } - - # $result.= " 
"; - #} + if ($this->showFooter) { + $result.= ""; + + foreach ($this->objectTypes as $objectType) { + if (isset($this->objectTypeCount[$objectType['label']])) { + $label= _($objectType['label']); + $result.= "$label ".$this->objectTypeCount[$objectType['label']]."    "; + } + } + + $result.= ""; + } + + // Close list + $result.= ""; $smarty= get_smarty(); $smarty->assign("usePrototype", "true");