mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
improved template logic
This commit is contained in:
parent
3cec339748
commit
ef33765d31
56 changed files with 710 additions and 282 deletions
|
@ -28,22 +28,23 @@
|
|||
<tr><td><input type="text" size="20" class="add-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".$v_domain; ?> ></td></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">IP address</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Template</td></tr>
|
||||
<tr><td><select class="add-list" name="v_template">
|
||||
<?php
|
||||
foreach ($templates as $key => $value) {
|
||||
echo "\t\t\t\t<option value=\"".$key."\"";
|
||||
if ((!empty($v_template)) && ( $key == $_POST['v_template'])){
|
||||
echo ' selected' ;
|
||||
}
|
||||
echo ">".$key."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select></td></tr>
|
||||
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;"><a href="javascript:elementHideShow('advtable');" class="add-advanced">Advanced Options ⇢</a></td></tr>
|
||||
<tr><td class="add-text" style="padding: 9px 0 0 0px;">
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 0px;">
|
||||
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Template</td></tr>
|
||||
<tr><td><select class="add-list" name="v_template">
|
||||
<?php
|
||||
echo "<option value=''></option>";
|
||||
foreach ($templates as $key => $value) {
|
||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||
if ((!empty($v_template)) && ( $value == $_POST['v_template'])){
|
||||
echo ' selected' ;
|
||||
}
|
||||
echo ">".$value."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select></td></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">Domain Expiriation</td></tr>
|
||||
<tr><td><input type="text" size="20" class="add-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".$v_exp; ?>></tr>
|
||||
<tr><td class="add-text" style="padding: 10px 0 0 2px;">SOA</td></tr>
|
||||
|
@ -60,4 +61,4 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="data-spacer" style="height:9px"><tr><td></td></tr></table>
|
||||
<table class="data-spacer" style="height:68px"><tr><td></td></tr></table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue