Code

Added dhcp plugin to general include list
[gosa.git] / include / class_divlist.inc
index 17176b217b9ce96ffbe8d5f2b743a2a0ecc61291..b17dfa74e3a73cdbe9b12c81ee05bf8ed56dd6bc 100644 (file)
@@ -18,7 +18,8 @@ class divlist {
 
   var $force_height = false;
   var $list_footer = "";
-  
+  var $fix_list_for_plugins = FALSE; 
        // Added php 4 constructor
        function divlist($pageid){
 
@@ -38,6 +39,11 @@ class divlist {
        
        }
 
+  function SetPluginMode($val = TRUE)
+  {
+    $this->fix_list_for_plugins = $val;
+  }
+
   function SetFooter($str)
   {
     $this->list_footer = $str;
@@ -73,7 +79,7 @@ class divlist {
        
        function DrawList(){
                $s_return = "";
-    if(!$this->force_height){
+    if(!$this->force_height || $this->fix_list_for_plugins){
                  $s_return.= "<table summary='".$this->s_summary."' style='width:".
                   $this->s_width.";height:".$this->s_height.
                   "px;' cellspacing='0' id='t_scrolltable'>";
@@ -235,7 +241,7 @@ class divlist {
                    // Alternation of background color          
                                if($i_alternate) $i_alternate=0; else $i_alternate=1;
                                
-                               $s_return .= "\n<tr>";
+            $s_return .= "\n<tr class='rowxp".$i_alternate."'>";
                                
                                $cnt = 0;