Skip to content

Commit f2c417f

Browse files
committed
"Limited" interface Custom docroot
1 parent 5b48ba7 commit f2c417f

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

web/templates/user/edit_web.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,63 @@
256256
</td>
257257
</tr>
258258
<?php } ?>
259+
<tr>
260+
<td class="vst-text step-top">
261+
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_custom_doc_root_check" <?php if (!empty($v_costum_doc_root)) echo "checked=yes" ?> onclick="javascript:elementHideShow('v_custom_doc_root');"> <?php print __('Custom document root');?></label>
262+
</td>
263+
</tr>
264+
<tr>
265+
<td class="step-left">
266+
<table style="display:<?php if (empty($v_costum_doc_root)) { echo 'none';} else {echo 'block';}?> ;" id="v_custom_doc_root">
267+
<tr>
268+
<td class="vst-text input-label">
269+
<?php print __('Point to');?>
270+
</td>
271+
</tr>
272+
<tr>
273+
<td>
274+
<input type="hidden" name="v-costum-doc-root_prepath"" value="<?php echo $v_custom_doc_root_prepath;?>">
275+
<select class="vst-list" name="v-costum-doc-domain">
276+
<option value="<?php echo $v_domain;?>"><?php echo $v_domain;?></option>
277+
<?php
278+
foreach ($domains as $key => $d) {
279+
if($key != $v_domain ){
280+
if($v_costum_doc_domain == $key){
281+
?>
282+
<option value="<?php echo $key;?>" selected="selected"><?php echo $key;?></option>
283+
<?php
284+
}else{
285+
?>
286+
<option value="<?php echo $key;?>"><?php echo $key;?></option>
287+
<?php
288+
}
289+
}
290+
}
291+
?>
292+
</select>
293+
</td>
294+
</tr>
295+
<tr>
296+
<td class="vst-text input-label">
297+
<?php print( __('Folder'));?>
298+
</td>
299+
</tr>
300+
<tr>
301+
<td>
302+
<input type="text" size="20" class="vst-input"
303+
name="v-costum-doc-folder" value="<?=htmlentities(trim($v_costum_doc_folder, "'"))?>">
304+
</td>
305+
</tr>
306+
<tr>
307+
<td>
308+
<small class="custom_docroot_hint"></small>
309+
</td>
310+
</tr>
311+
312+
</table>
313+
</td>
314+
</tr>
315+
259316
<tr>
260317
<td class="vst-text step-top">
261318
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');"> <?php print __('SSL Support');?></label>

0 commit comments

Comments
 (0)