From 2e2db70bdcf565cb1d8b547c8a4cef4da14a1f8e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Nov 2007 07:38:18 +0000 Subject: [PATCH] Closes #267 Added links to server service entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7881 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_divListSystemService.inc | 5 ++++- plugins/admin/systems/class_serverService.inc | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_divListSystemService.inc b/plugins/admin/systems/class_divListSystemService.inc index 9bff2bdf8..e5286b661 100644 --- a/plugins/admin/systems/class_divListSystemService.inc +++ b/plugins/admin/systems/class_divListSystemService.inc @@ -91,8 +91,11 @@ class divListSystemService extends MultiSelectWindow $WasAccount = $this->parent->plugins[$name] -> initially_was_account; + $plug = $_GET['plug']; + $link = "".$entry['Message'].""; + $field1 = array("string" => $str ,"attach" => "style='width:20px;'"); - $field2 = array("string" => $entry['Message'] ); + $field2 = array("string" => $link); $actions =""; if($entry['AllowStart'] && $WasAccount){ diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index 069c2e5d5..3c77a3a9b 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -115,6 +115,14 @@ class ServerService extends plugin $this->ServiceStatusUpdate($type,$service); } + /* Handle actions linked via href */ + if(isset($_GET['act']) && $_GET['act'] == "open" && isset($_GET['id'])){ + $id = $_GET['id']; + if(isset($this->plugins[$id])){ + $s_entry = $id; + $s_action = "EditSingleService"; + } + } /* Open service add dialog */ if($s_action == "addNewService"){ -- 2.30.2