Code

Fixed multi query editor
[gosa.git] / gosa-core / include / class_tabs.inc
index a6a80070dc6f7be50cbdb8b42cdfc2b6694a31c5..af356229f9cd67bd8c35a4b26db99bb9c1f720b9 100644 (file)
@@ -114,6 +114,8 @@ class tabs
       $this->current = key($this->by_name);
     }
 
+    pathNavigator::registerPlugin($this);
+
     // Rotate current to last 
     $this->last= $this->current;
 
@@ -184,9 +186,15 @@ class tabs
     }
   }
 
+
+  function is_modal_dialog()
+  {
+    return($this->by_object[$this->current]->is_modal_dialog());
+  }
+
   function gen_tabs()
   {
-    if($this->by_object[$this->current]->is_modal_dialog()) return("");
+    if($this->is_modal_dialog()) return("");
 
     $display = "\n  <div class='tabs'>";
     $display.= "\n    <ul>";
@@ -351,7 +359,7 @@ class tabs
         }else{
           if(!empty($tmp['string'])){
             $ret .= $tmp['string'];
-            $ret .= "<p class='seperator'>&nbsp;</p>";
+            $ret .= "<hr>";
           }
         }
       }
@@ -425,6 +433,13 @@ class tabs
     }
     return(TRUE);
   }
+
+  function setReadOnly($s = TRUE)
+  {
+    foreach($this->by_object as $name => $obj){
+      $this->by_object[$name]->read_only = $s;
+    }
+  }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>