From: hickert Date: Thu, 27 Nov 2008 12:25:33 +0000 (+0000) Subject: Updated server DNS zone editor. Fixed CName entry order. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f66d833387854951470aed3bd9c3b50f90918098;p=gosa.git Updated server DNS zone editor. Fixed CName entry order. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13055 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index dfcba3843..2decaf255 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -429,36 +429,38 @@ class servDNSeditZoneEntries extends plugin */ if($hostNameOnce){ $hostNameOnce = false; - $str .="\n"; + $field1 ="\n"; + }else{ + $field1 = ""; } /* Create rest. Selectbox, icons ... */ - $str .=" - - - ".$this->createRecordTypeSelection($record['type'],$name)." - - - - - - - - "; - -# if($record['type'] == "aRecord"){ -# $str .=""; -# }else{ -# $str .= ""; -# } - - $str.= - " - "; + $field2 = $this->createRecordTypeSelection($record['type'],$name); + $field3 = ""; + $acl =" + "; + + if($record['type'] == "cNAMERecord"){ + $str .= " + + ".$field3." + ".$field2." + ".$objectName." + ".$acl." + "; + }else{ + $str .= " + + ".$field1." + ".$field2." + ".$field3." + ".$acl." + "; + } } - $str .=""; return($str); } @@ -467,7 +469,7 @@ class servDNSeditZoneEntries extends plugin */ function createRecordTypeSelection($id,$refID){ - $str = "\n"; foreach($this->RecordTypes as $type => $atr) { if($id == $type){ $str .="\n";