Code

Closes #267 Added links to server service entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 07:38:18 +0000 (07:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 07:38:18 +0000 (07:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7881 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_divListSystemService.inc
plugins/admin/systems/class_serverService.inc

index 9bff2bdf89e52809dd58b9cb37d8fd38f3996bbc..e5286b661a50dba5c119d83b0071110b0b702919 100644 (file)
@@ -91,8 +91,11 @@ class divListSystemService extends MultiSelectWindow
   
       $WasAccount = $this->parent->plugins[$name] -> initially_was_account;    
   
+      $plug = $_GET['plug'];
+      $link = "<a href='?plug=".$plug."&amp;act=open&amp;id=".$name."'>".$entry['Message']."</a>";
+
       $field1 = array("string" => $str ,"attach" => "style='width:20px;'");
-      $field2 = array("string" => $entry['Message'] );
+      $field2 = array("string" => $link);
 
       $actions ="";
       if($entry['AllowStart'] && $WasAccount){
index 069c2e5d5ebb8b5589615e57c61a780f1a40f070..3c77a3a9bbf1c1fc1538581cc030bcaf5434acb7 100644 (file)
@@ -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"){