From d76cd3ed429b02cd764c368adb6ade8a5ca43115 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 27 Nov 2008 12:10:02 +0000 Subject: [PATCH] Updated server service dns -DNS Zone editor/configuration wasn't intuitive when it comes to CName Records. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13054 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dns/class_servDNSeditZoneEntries.inc | 50 ++++++++++--------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc index 59cab8701..48a8c31f8 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc @@ -438,38 +438,42 @@ class servDNSeditZoneEntries extends plugin */ $name = base64_encode($objKey)."|".$id; - $str .= "\n"; - /* Only first host entry name should be editable */ if($hostNameOnce){ $hostNameOnce = false; - $str .="\n"; + $field1 ="\n"; + }else{ + $field1 = ""; } - - /* Create rest. Selectbox, icons ... - */ - $str .=" - - - ".$this->createRecordTypeSelection($record['type'],$name)." - - - - "; - + $field2 = $this->createRecordTypeSelection($record['type'],$name); + $field3 = ""; if(preg_match("/w/",$this->acl)){ - $str .= " - - "; + src='images/lists/trash.png' alt='"._("Remove")."' title='"._("Remove")."'>"; } - $str.= - " - "; + /* Display settings backwards for CNAMERecords + */ + if($record['type'] == "cNAMERecord"){ + $str .= " + + ".$field3." + ".$field2." + ".$objectName." + ".$acl." + "; + }else{ + $str .= " + + ".$field1." + ".$field2." + ".$field3." + ".$acl." + "; + } } $str .=""; return($str); @@ -481,7 +485,7 @@ class servDNSeditZoneEntries extends plugin function createRecordTypeSelection($id,$refID){ if(preg_match("/w/",$this->acl)){ - $str = "\n"; foreach($this->RecordTypes as $type => $atr) { if($id == $type){ $str .="\n"; -- 2.30.2