diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 1685af29c2cc4282b0f8ee5f1ef61ea1aa9f303e..268e5b33e2c0ee8634f14c2908195ef260715e04 100644 (file)
$s_entry = preg_replace("/^cut_/i","",$key);
}
}
-
-
+
/* Incoming handling
* If someone made a systemtype and ogroup selection
* Display the new requested entry type ... servtab in case of server and so on.
$s_action ="edit";
$s_entry = $_GET['id'];
}
+ /* Create options */
+ if(isset($_GET['act']) && preg_match("/^newsystem_/",$_GET['act'])){
+ $s_action = "newsystem";
+ $s_entry = preg_replace("/^newsystem_/","",$_GET['act']);
+ }
/* Check for exeeded sizelimit */
if (($message= check_sizelimit()) != ""){
}
$this->dn= "new";
}
+
$tabs = array(
"terminal" => array("CLASS"=>"TERMTABS", "TABNAME"=>"termgeneric", "TABCLASS" =>"termtabs", "ACL"=> "terminal"),
"workstation" => array("CLASS"=>"WORKTABS", "TABNAME"=>"workgeneric", "TABCLASS" =>"worktabs", "ACL"=> "workstation"),
"server" => array("CLASS"=>"SERVTABS", "TABNAME"=>"servgeneric", "TABCLASS" =>"servtabs", "ACL"=> "server"),
"printer" => array("CLASS"=>"PRINTTABS", "TABNAME"=>"printgeneric", "TABCLASS" =>"printtabs", "ACL"=> "printer"),
"phone" => array("CLASS"=>"PHONETABS", "TABNAME"=>"phoneGeneric", "TABCLASS" =>"phonetabs", "ACL"=> "phone"),
- "component" => array("CLASS"=>"COMPONENTTABS","TABNAME"=>"componentgeneric","TABCLASS" =>"componenttabs", "ACL"=> "component"));
+ "component" => array("CLASS"=>"COMPONENTTABS","TABNAME"=>"componentGeneric","TABCLASS" =>"componenttabs", "ACL"=> "component"));
if(isset($tabs[$sw])){
$class = $tabs[$sw]["CLASS"];
"TABCLASS" =>"printtabs", "ACL" =>"printer"),
"phone" => array( "CLASS" =>"PHONETABS", "TABNAME" =>"phoneGeneric",
"TABCLASS" =>"phonetabs", "ACL" =>"phone"),
- "component" => array( "CLASS" =>"COMPONENTTABS","TABNAME" =>"componentgeneric",
+ "component" => array( "CLASS" =>"COMPONENTTABS","TABNAME" =>"componentGeneric",
"TABCLASS" =>"componenttabs","ACL" =>"component"));
/* Add a single entry to queue */