From 6fe75a3900beebc7b818f12c8490e4bd900e2bdd Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 2 Aug 2005 13:27:00 +0000 Subject: [PATCH] Added seperate buttons to create workstation,terminal ... directly git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1052 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_systemManagement.inc | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 0d8f03731..6efa50af3 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -128,6 +128,9 @@ class systems extends plugin $s_entry = preg_replace("/user_setpwd_/i","",$key); }elseif(preg_match("/dep_root.*/i",$key)){ $s_action="root"; + }elseif(preg_match("/newsystem_.*/i",$key)){ + $s_action="newsystem"; + $s_entry = preg_replace("/newsystem_/i","",$key); } } @@ -180,11 +183,17 @@ class systems extends plugin } /* Create new default terminal */ - if (isset($_POST['create_system'])) { + if (isset($_POST['create_system'])||$s_action=="newsystem") { $this->dn= "new"; $this->acl= array(":all"); - switch ($_POST['system']){ + if(isset($_POST['system'])){ + $sw = $_POST['system']; + }else{ + $sw = $s_entry; + } + + switch ($sw){ case 'terminal': $this->systab= new termtabs($this->config, $this->config->data['TABS']['TERMTABS'], $this->dn); @@ -535,7 +544,14 @@ class systems extends plugin "  ". "  ". "  ". - "  ". + " ". + " ". + " ". + " ". + " ". + " ". + "  ". + "  ". "  ". _("Current base")." ". "  ". -- 2.30.2