Code

Re-enabled footer
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 15:28:55 +0000 (15:28 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 15:28:55 +0000 (15:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15012 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/themes/default/style.css
gosa-core/include/class_listing.inc

index 51f1bcb17e4c3740beb6fdbc031d9052f23c011a..37fd2d72e4a6770149e80f82edcd96a68b7bc72c 100644 (file)
@@ -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;
+}
+
index f4c2ed9a0b5f337551a41cb96edffb7713b1f2da..558e859d551279382c64c0dd2b1b2a2a6fdc304b 100644 (file)
@@ -290,8 +290,6 @@ class listing {
     // Build list body
     $result.= "<tbody class='listScrollContent listBodyFormat' id='t_nscrollbody' style='height:".$height."px;'>\n";
 
-###########################
-
     // No results? Just take an empty colspanned row
     if (count($this->entries) + count($this->departments) == 0) {
       $result.= "<tr class='rowxp0'><td class='list1nohighlight' colspan='$this->numColumns' style='height:100%;border-right:0px;width:100%;'>&nbsp;</td></tr>";
@@ -391,23 +389,25 @@ class listing {
       $result.= "</tr>";
     }
 
-    // Close list
-    $result.= "</tbody></table></div></td></tr></table>";
+    // Close list body
+    $result.= "</tbody></table></div></td></tr>";
 
     // Add the footer if requested
-#################################
-    #if ($this->showFooter) {
-    #  $result.= "<tr><td class='scrollhead'><table summary='' style='width:100%' cellspacing='0' id='t_scrollfoot'><tr><td class='listfooter' style='border-bottom:0px;'>";
-
-    #  foreach ($this->objectTypes as $objectType) {
-    #    if (isset($this->objectTypeCount[$objectType['label']])) {
-    #      $label= _($objectType['label']);
-    #      $result.= "<img class='center' src='".$objectType['image']."' title='$label' alt='$label'>&nbsp;".$this->objectTypeCount[$objectType['label']]."&nbsp;&nbsp;&nbsp;&nbsp;";
-    #    }
-    #  }
-
-    #  $result.= "<td class='listfooter' style='width:13px;border-right:0px;'>&nbsp;</td></table></td></tr>";
-    #}
+    if ($this->showFooter) {
+      $result.= "<tr><td class='nlistFooter'>";
+
+      foreach ($this->objectTypes as $objectType) {
+        if (isset($this->objectTypeCount[$objectType['label']])) {
+          $label= _($objectType['label']);
+          $result.= "<img class='center' src='".$objectType['image']."' title='$label' alt='$label'>&nbsp;".$this->objectTypeCount[$objectType['label']]."&nbsp;&nbsp;&nbsp;&nbsp;";
+        }
+      }
+
+      $result.= "</td></tr>";
+    }
+
+    // Close list
+    $result.= "</table>";
 
     $smarty= get_smarty();
     $smarty->assign("usePrototype", "true");