mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
Allow user to change Web Template (tpl modification)
This commit is contained in:
parent
6c2f4e34a4
commit
01c1b54b4d
1 changed files with 47 additions and 0 deletions
|
@ -85,6 +85,53 @@
|
|||
<textarea size="20" class="vst-textinput" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<?php print __('Web Template') . "<span class='optional'>" .strtoupper($_SESSION['WEB_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>
|
||||
<?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
|
||||
<tr>
|
||||
<td class="vst-text input-label">
|
||||
<?php print __('Backend Template') . " <span class='optional'>" . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select class="vst-list" name="v_backend_template">
|
||||
<?php
|
||||
foreach ($backend_templates as $key => $value) {
|
||||
echo "\t\t\t\t<option value=\"".$value."\"";
|
||||
$svalue = "'".$value."'";
|
||||
if ((!empty($v_backend_template)) && ( $value == $v_backend_template ) || ($svalue == $v_backend_template)){
|
||||
echo ' selected' ;
|
||||
}
|
||||
if ((empty($v_backend_template)) && ($value == 'default')){
|
||||
echo ' selected' ;
|
||||
}
|
||||
echo ">".htmlentities($value)."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
|
||||
<tr>
|
||||
<td class="vst-text step-top">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue