Code

Save scroll position
[gosa.git] / gosa-core / include / class_management.inc
index 359cad23bc8970998fb510a10878639b47b458dc..98f02cee2fa00e1f020fc4958dc88d4833b15697 100644 (file)
@@ -58,7 +58,10 @@ class management
   protected $last_dialogObject = null;
 
   // Whether to display the apply button or not
-  protected $displayApplyBtn = "";
+  protected $displayApplyBtn = FALSE;
+
+  // Whether to display a header or not.
+  protected $skipHeader = false;
 
   // Whether to display a footer or not.
   protected $skipFooter = false;
@@ -203,6 +206,8 @@ class management
    */
   protected function getHeader()
   {
+    if($this->skipHeader) return("");
+
     if (get_object_info() != ""){
       $display= print_header(get_template_path($this->plIcon),_($this->plDescription),
           "<img alt=\"\" class=\"center\" src=\"".get_template_path('images/lists/locked.png')."\">".
@@ -746,6 +751,7 @@ class management
     $this->dns = array();
     $this->tabObject = null;
     $this->dialogObject = null;
+    $this->skipFooter = FALSE;
     set_object_info();
   }