Code

Removed debug content.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 14:48:13 +0000 (14:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 14:48:13 +0000 (14:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7779 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ObjectListViewport.inc
tests/ListTest/ObjectListViewport.tpl

index 477fd41321dc98b6470c9df43fec309c602fcb8d..8de6494ce09d4bcac183b61632881e280edefa25 100644 (file)
@@ -255,7 +255,7 @@ class ObjectListViewport implements GOsaGuiElement {
     }
 
     $smarty = get_smarty();
-    $smarty->assign("OLV_Entries",$entries);
+    $smarty->assign("OLV_Entries",$objects);
     $smarty->assign("OLV_List_Id",$this->id);
 
     /* Footer variables */
@@ -267,11 +267,6 @@ class ObjectListViewport implements GOsaGuiElement {
     $smarty->assign("OLV_Header_Enabled",$this->displayHeaderFlag);
     $smarty->assign("OLV_Header",$this->headline);
  
-    $buffer ="";
-    foreach($this->headline as $key => $value){
-      $buffer .= "<td class='ObjectListViewport_Header_Cell' style='".$value['style']."'>".$value['name']."</td>\n";
-    }
-
     return($smarty->fetch("ObjectListViewport.tpl"));
   }
 
index b3bfb5b038cfc96b56554b6442124a88bc89953f..11ebc08ed1329cabee1b23d85cc57f8e7792a29f 100644 (file)
                          <td class='ObjectListViewport_TD_Entries' id='ObjectListViewport_TD_Entries_{$OLV_List_Id}'>
                                <div class='ObjectListViewport_Entry_Cover' id='ObjectListViewport_Entry_Cover_{$OLV_List_Id}'>
                                  <table class='ObjectListViewport_Entry_Table' id='ObjectListViewport_Entry_Table_{$OLV_List_Id}'>
-                                       {$OLV_Entries}
+
+                                       {foreach from=$OLV_Entries key=key item=item}
+                                               {$key}
+                                       {/foreach}
                                  </table>
                                </div>
                          </td>