From 67c2bb1f7f0e8721884a74cbd314859cfd795c25 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 24 Aug 2007 12:46:12 +0000 Subject: [PATCH] Added edit link to serv dns git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7135 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 362fb6448..7f562a622 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -139,6 +139,13 @@ class servdns extends plugin } } + if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id'])){ + $id = base64_decode($_GET['id']); + if(isset($this->Zones[$id])){ + $this->dialog= new servdnseditZone($this->config,$this->dn,$this->Zones[$id]); + } + } + /* Show dialog */ if($this->dialog!= NULL){ @@ -157,9 +164,10 @@ class servdns extends plugin $editImg = " "; foreach($this->Zones as $zone => $values ){ + $link = "%s"; $ZoneList->AddEntry(array( - array("string" => getNameFromMix($zone)), - array("string" => _("Reverse zone")." : ".getNameFromMix($values['ReverseZone'])), + array("string" => sprintf($link,base64_encode($zone),getNameFromMix($zone))), + array("string" => sprintf($link,base64_encode($zone),_("Reverse zone")." : ".getNameFromMix($values['ReverseZone']))), array("string" => _("TTL")." : ".$values['sOAttl']), array("string" => _("Class")." : ".$values['dNSClass']), array("string" => str_replace("%s",base64_encode($zone),$editImg)) -- 2.30.2