mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Adding DNS template listbox to user template edit_dns
This commit is contained in:
parent
fc187b3863
commit
ff8ef7955a
1 changed files with 21 additions and 0 deletions
|
@ -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, "'"))?>">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue