Adding DNS template listbox to user template edit_dns

This commit is contained in:
myvesta 2018-09-07 14:32:10 +02:00 committed by GitHub
commit ff8ef7955a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,27 @@
<?php print __('IP Address');?>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('Template') . "<span class='optional'>" . strtoupper($_SESSION['DNS_SYSTEM']) . "</span>";?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_template">
<?php
foreach ($templates as $key => $value) {
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
$svalue = "'".$value."'";
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
echo ' selected' ;
}
echo ">".htmlentities($value)."</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">