summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f92beac)
raw | patch | inline | side by side (parent: f92beac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Aug 2007 12:46:12 +0000 (12:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Aug 2007 12:46:12 +0000 (12:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7135 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNS.inc | patch | blob | history |
index 362fb6448ca98b2caff758a9cdfa414ad4a57fcb..7f562a622519991fa8c3719de4457f6aa6872e72 100644 (file)
}
}
+ 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){
$editImg = "<input type='image' src='images/edit.png' name='editZone_%s'>
<input type='image' src='images/edittrash.png' name='delZone_%s'>";
foreach($this->Zones as $zone => $values ){
+ $link = "<a href='?plug=".$_GET['plug']."&act=edit&id=%s'>%s</a>";
$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))