Code

Added workservice to ogorup tabs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Oct 2005 08:54:11 +0000 (08:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Oct 2005 08:54:11 +0000 (08:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1617 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/ogroups/tabs_ogroups.inc
plugins/admin/systems/class_workstationService.inc

index 33346fbf17311d3756a106a146bb1432ba70cf86..7bab9be66701c0a9e22012fc6c363714ac0a71b9 100644 (file)
@@ -43,6 +43,9 @@ class ogrouptabs extends tabs
 //      $this->by_object['workstartup']->remove_from_parent();
       unset($this->by_object['workstartup']);
       unset($this->by_name['workstartup']);
+//      $this->by_object['workservice']->remove_from_parent();
+      unset($this->by_object['workservice']);
+      unset($this->by_name['workservice']);
     }
   
     /* Create goPhoneAccount if theres an user with goPhoneAccount
@@ -91,6 +94,10 @@ class ogrouptabs extends tabs
         $this->by_object['workstartup']= new workstartup($this->config, $this->dn);
         $this->by_object['workstartup']->acl = "#all#";
         $this->by_object['workstartup']->parent= &$this;
+        $this->by_name['workservice']= _("Service");
+        $this->by_object['workservice']= new workservice($this->config, $this->dn);
+        $this->by_object['workservice']->acl = "#all#";
+        $this->by_object['workservice']->parent= &$this;
       }
     }
   }
index 7aa47a4744477d7c1af416bda8b791aff7ef705d..b4d1f3b0a8b67486b20529643fd5a4391a9299de 100644 (file)
@@ -185,7 +185,7 @@ class workservice extends plugin
     $smarty->assign ("gotoXMonitor", $this->gotoXMonitor);
 
     /* Show main page */
-    return($smarty->fetch (get_template_path('workstationService.tpl', TRUE)));
+    return($smarty->fetch (get_template_path('workstationService.tpl',TRUE,dirname(__FILE__))));
   }
 
   function remove_from_parent()