Code

Udpated todo
[gosa.git] / include / class_tabs.inc
index e008c73c0758103b33dc8f8ecefb76228610de8f..689d89268149b06d7e47ceb8c7d23c8f5a040e0d 100644 (file)
@@ -30,6 +30,7 @@ class tabs
   var $disabled= "";
   var $by_name= array();
   var $by_object= array();
+  var $SubDialog = false;
 
   function tabs($config, $data, $dn)
   {
@@ -78,7 +79,7 @@ class tabs
        $display.= "<tr><td>\n";
 
        $obj= $this->by_object[$this->current];
-       $display.= $obj->execute ();
+       $display.= $obj->execute();
        $this->by_object[$this->current]= $obj;
 
        /* Footer for tabbed dialog */
@@ -245,6 +246,39 @@ class tabs
          }
   }
 
+       
+  /* Save attributes posted by copy & paste dialog
+   */
+  function saveCopyDialog()
+  {
+         foreach ($this->by_object as $key => $obj){
+                 if($obj->is_account){
+                         $this->by_object[$key]->saveCopyDialog();
+                 }
+         }
+  }
+
+
+  /* return copy & paste dialog
+   */
+  function getCopyDialog()
+  {
+         $ret = "";
+         $this->SubDialog = false;
+         foreach ($this->by_object as $key => $obj){
+                 if($obj->is_account){
+                         $tmp = $this->by_object[$key]->getCopyDialog();
+                         if($tmp['status'] == "SubDialog"){
+                                 $this->SubDialog = true;
+                     return($tmp['string']);
+                 }else{
+                 $ret .= $tmp['string'];
+                         }
+                 }
+         }
+         return($ret);
+  }
+
 }
 
 ?>