Code

Added gotoMode to server generic tab
[gosa.git] / plugins / admin / systems / class_servGeneric.inc
index f685d2703b27c397e6fd7ad6626a53f1e0e79ce7..0c43263ff4966c65c7d412ee442c5df95f1719b3 100644 (file)
@@ -19,15 +19,23 @@ class servgeneric extends plugin
   var $orig_dn= "";
 
   /* attribute list for save action */
-  var $attributes= array("cn", "description");
+  var $attributes= array("cn", "description","gotoMode");
   var $objectclasses= array("top", "GOhard", "goServer");
 
+  var $gotoMode= "locked";
+
   var $netConfigDNS;
+  var $modes = array();
 
   function servgeneric ($config, $dn= NULL)
   {
     plugin::plugin ($config, $dn);
 
+    $this->modes["active"]= _("Activated");
+    $this->modes["locked"]= _("Locked");
+    $this->modes["memcheck"]= _("Memory test");
+    $this->modes["sysinfo"]= _("System analysis");
+
     /* Set base */
     if ($this->dn == "new"){
       $ui= get_userinfo();
@@ -142,9 +150,9 @@ class servgeneric extends plugin
       $smarty->assign("actions", array("wake" => _("Wake up")));
     }
 
-
     /* Show main page */
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
+    $smarty->assign("modes", $this->modes);
 
     return($smarty->fetch (get_template_path('server.tpl', TRUE)));
   }