echo " <td>IN</td>\n"; echo " <td>" . htmlspecialchars($record["type"]) . "</td>\n"; echo " <td>" . htmlspecialchars($clean_content) . "</td>\n"; echo " <td>" . htmlspecialchars($record["prio"]) . "</td>\n"; echo " <td>" . htmlspecialchars($record["ttl"]) . "</td>\n"; echo " </tr>\n"; } else { echo " <tr>\n"; echo " <td><input type=\"hidden\" name=\"rid\" value=\"" . $_GET["id"] . "\">\n"; echo " <input type=\"hidden\" name=\"zid\" value=\"" . $zid . "\">\n"; echo " <input type=\"text\" name=\"name\" value=\"" . htmlspecialchars(trim(str_replace($zone_name, '', $record["name"]), '.')) . "\" class=\"input\">." . $zone_name . "</td>\n"; echo " <td>IN</td>\n"; echo " <td>\n"; echo " <select name=\"type\">\n"; $found_selected_type = false; foreach (get_record_types() as $type_available) { if ($type_available == $record["type"]) { $add = " SELECTED"; $found_selected_type = true; } else { $add = ""; } echo " <option" . $add . " value=\"" . htmlspecialchars($type_available) . "\" >" . $type_available . "</option>\n"; } if (!$found_selected_type) { echo " <option SELECTED value=\"" . htmlspecialchars($record['type']) . "\"><i>" . $record['type'] . "</i></option>\n"; } echo " </select>\n"; echo " </td>\n"; echo " <td><input type=\"text\" name=\"content\" value=\"" . htmlspecialchars($clean_content) . "\" class=\"input\"></td>\n"; echo " <td><input type=\"text\" name=\"prio\" value=\"" . htmlspecialchars($record["prio"]) . "\" class=\"sinput\"></td>\n";
echo " <table border=\"0\" cellspacing=\"4\">\n"; echo " <tr>\n"; echo " <td class=\"n\">" . _('Name') . "</td>\n"; echo " <td class=\"n\"> </td>\n"; echo " <td class=\"n\">" . _('Type') . "</td>\n"; echo " <td class=\"n\">" . _('Content') . "</td>\n"; echo " <td class=\"n\">" . _('Priority') . "</td>\n"; echo " <td class=\"n\">" . _('TTL') . "</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td class=\"n\"><input type=\"text\" name=\"name\" class=\"input\" value=\"\">." . $zone_name . "</td>\n"; echo " <td class=\"n\">IN</td>\n"; echo " <td class=\"n\">\n"; echo " <select name=\"type\">\n"; $found_selected_type = !(isset($type) && $type); foreach (get_record_types() as $record_type) { if (isset($type) && $type) { if ($type == $record_type) { $add = " SELECTED"; $found_selected_type = true; } else { $add = ""; } } else { if (preg_match('/i(p6|n-addr).arpa/i', $zone_name) && strtoupper($record_type) == 'PTR') { $add = " SELECTED"; $rev = ""; } else { if (strtoupper($record_type) == 'A' && $iface_add_reverse_record) { $add = " SELECTED"; $rev = "<input type=\"checkbox\" name=\"reverse\"><span class=\"normaltext\">" . _('Add also reverse record') . "</span>\n";