Skip to content

Commit 01c1b54

Browse files
authored
Allow user to change Web Template (tpl modification)
1 parent 6c2f4e3 commit 01c1b54

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

web/templates/user/edit_web.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,53 @@
8585
<textarea size="20" class="vst-textinput" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
8686
</td>
8787
</tr>
88+
<tr>
89+
<td class="vst-text input-label">
90+
<?php print __('Web Template') . "<span class='optional'>" .strtoupper($_SESSION['WEB_SYSTEM']) . "</span>";?>
91+
</td>
92+
</tr>
93+
<tr>
94+
<td>
95+
<select class="vst-list" name="v_template">
96+
<?php
97+
foreach ($templates as $key => $value) {
98+
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
99+
$svalue = "'".$value."'";
100+
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
101+
echo ' selected' ;
102+
}
103+
echo ">".htmlentities($value)."</option>\n";
104+
}
105+
?>
106+
</select>
107+
</td>
108+
</tr>
109+
<?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
110+
<tr>
111+
<td class="vst-text input-label">
112+
<?php print __('Backend Template') . " <span class='optional'>" . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
113+
</td>
114+
</tr>
115+
<tr>
116+
<td>
117+
<select class="vst-list" name="v_backend_template">
118+
<?php
119+
foreach ($backend_templates as $key => $value) {
120+
echo "\t\t\t\t<option value=\"".$value."\"";
121+
$svalue = "'".$value."'";
122+
if ((!empty($v_backend_template)) && ( $value == $v_backend_template ) || ($svalue == $v_backend_template)){
123+
echo ' selected' ;
124+
}
125+
if ((empty($v_backend_template)) && ($value == 'default')){
126+
echo ' selected' ;
127+
}
128+
echo ">".htmlentities($value)."</option>\n";
129+
}
130+
?>
131+
</select>
132+
</td>
133+
</tr>
134+
<?php }?>
88135
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
89136
<tr>
90137
<td class="vst-text step-top">

0 commit comments

Comments
 (0)