From: hickert Date: Mon, 22 Mar 2010 09:41:45 +0000 (+0000) Subject: Updated dns entry editor. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a02be0b3058cd6630c48216cf326a752c4e16f9;p=gosa.git Updated dns entry editor. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16981 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc index 29fad0544..6ac624fa4 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc @@ -277,31 +277,21 @@ class servdnseditZone extends plugin foreach($_POST as $name => $value){ if((preg_match("/^MXup_/",$name)) && ($once)){ $once = false; - $id = preg_replace("/^MXup_/","",$name); - $id = preg_replace("/_.*$/","",$id); - $id = base64_decode($id); - + $id = postDecode($id); $this->mXRecords = $this->ArrayUp(($id+1),$this->mXRecords); } if((preg_match("/^MXdown_/",$name)) && ($once)){ $once = false; - $id = preg_replace("/^MXdown_/","",$name); - $id = preg_replace("/_.*$/","",$id); - $id = base64_decode($id); - + $id = postDecode($id); $this->mXRecords = $this->ArrayDown(($id+1),$this->mXRecords); } if((preg_match("/^MXdel_/",$name)) && ($once)){ $once = false; - $id = preg_replace("/^MXdel_/","",$name); - $id = preg_replace("/_.*$/","",$id); - $id = base64_decode($id); - + $id = postDecode($id); unset($this->mXRecords[$id]); - $tmp =array(); foreach($this->mXRecords as $entry){ $tmp[] = $entry; @@ -344,17 +334,14 @@ class servdnseditZone extends plugin $div->setHeight(120); $recs = $this->mXRecords; - $oneup = " "; - $onedown = " "; - $onedel = " - "; + $oneup = image('images/lists/sort-up.png','MXup_%s',_("Up"),"top"); + $onedown = image('images/lists/sort-down.png','MXdown_%s',_("Down"),"bottom"); + $onedel = image('images/lists/trash.png','MXdel_%s',_("Delete")); foreach($recs as $key => $rec){ $div ->AddEntry(array( array("string"=>$rec['value']), -/* array("string"=>$key, - "attach"=>"style='width:20px;'"),*/ - array("string"=>str_replace("%s",base64_encode($key),$oneup.$onedown.$onedel), + array("string"=>str_replace("%s",postEncode($key),$oneup.$onedown.$onedel), "attach"=>"style='width:70px;border-right:0px;'") )); } @@ -582,16 +569,23 @@ class servdnseditZone extends plugin $changeStateForRecords.= "changeState('RecordValue_".$key."');\n"; $changeStateForRecords.= "changeState('RemoveRecord_".$key."');\n"; - $str.=" ". + $str.= + " ". " ".$this->generateRecordListBox($entry['type'],"RecordTypeSelectedFor_".$key)."". - " ". - " ". + " ". + " ". + " ". + " ". + " ". + " ". ""; } - $str.= " ". + $str.= + " ". " ". - " ". + " ". " ". " ". ""; diff --git a/gosa-plugins/dns/admin/systems/services/dns/servdnseditzone.tpl b/gosa-plugins/dns/admin/systems/services/dns/servdnseditzone.tpl index c324c2e50..aed0be366 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/servdnseditzone.tpl +++ b/gosa-plugins/dns/admin/systems/services/dns/servdnseditzone.tpl @@ -1,6 +1,6 @@ -

{t}Generic{/t} -

+

{t}Generic{/t}

+
@@ -154,9 +154,8 @@
-

{t}MxRecords{/t} -

- +

{t}MxRecords{/t}

+
@@ -182,12 +180,14 @@
{render acl=$mXRecordACL} @@ -166,8 +165,7 @@ {/render} {render acl=$mXRecordACL} - + {/render}
-
-

- - -

+ +
+
+ +
- +