summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfd83bb)
raw | patch | inline | side by side (parent: dfd83bb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 27 Nov 2008 12:25:33 +0000 (12:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 27 Nov 2008 12:25:33 +0000 (12:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13055 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZoneEntries.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index dfcba384343ad56e0b16f92c635ffbb55deff677..2decaf2553e4423894ce9cac8fea0341c12437d2 100644 (file)
*/
if($hostNameOnce){
$hostNameOnce = false;
- $str .="<input type='text' name='RenameHost_".$name."' value='".$objectName."'>\n";
+ $field1 ="<input style='width:250px;' type='text' name='RenameHost_".$name."' value='".$objectName."'>\n";
+ }else{
+ $field1 = "";
}
/* Create rest. Selectbox, icons ...
*/
- $str .="
- </td>
- <td style='width:90px;'>
- ".$this->createRecordTypeSelection($record['type'],$name)."
- </td>
- <td>
- <input type='text' value='".$record['value']."' name='ValueSelection_".$name."' style='width:250px;'>
- </td>
- <td style='width:75px;text-align:right;'>
- <input type='image' name='AddRecord_".$name."' src='images/list_new.png' alt='"._("Add")."' title='"._("Add")."'>
- <input type='image' name='RemoveRecord_".$name."' src='images/edittrash.png' alt='"._("Remove")."' title='"._("Remove")."'>
- ";
-
-# if($record['type'] == "aRecord"){
-# $str .="<input type='image' name='AddPtr_".$name."' src='images/network.png'
-# alt='"._("Add PTR")."' title='"._("Add PTR record")."'>";
-# }else{
-# $str .= "<img src='images/empty.png' alt=''>";
-# }
-
- $str.=
- "</td>
- </tr>";
+ $field2 = $this->createRecordTypeSelection($record['type'],$name);
+ $field3 = "<input type='text' value='".$record['value']."' name='ValueSelection_".$name."' style='width:250px;'>";
+ $acl =" <input type='image' name='AddRecord_".$name."'
+ src='images/list_new.png' alt='"._("Add")."' title='"._("Add")."'>
+ <input type='image' name='RemoveRecord_".$name."'
+ src='images/edittrash.png' alt='"._("Remove")."' title='"._("Remove")."'>";
+
+ if($record['type'] == "cNAMERecord"){
+ $str .= "
+ <tr>
+ <td style='width:250px;text-align:right;'>".$field3."</td>
+ <td style='width:90px;'>".$field2."</td>
+ <td>".$objectName."</td>
+ <td>".$acl."</td>
+ </tr>";
+ }else{
+ $str .= "
+ <tr>
+ <td style='width:75px;text-align:right;'>".$field1."</td>
+ <td style='width:90px;'>".$field2."</td>
+ <td>".$field3."</td>
+ <td>".$acl."</td>
+ </tr>";
+ }
}
- $str .="</table>";
return($str);
}
*/
function createRecordTypeSelection($id,$refID){
- $str = "\n<select name='RecordTypeSelection_".$refID."'>";
+ $str = "\n<select name='RecordTypeSelection_".$refID."' onChange='document.mainform.submit();'>";
foreach($this->RecordTypes as $type => $atr) {
if($id == $type){
$str .="\n<option value='".$type."' selected >".strtoupper(preg_replace("/record/i","",$type))."</option>";