web_domain_advanced.htm 3.59 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
<h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>

<div class="panel panel_web_domain">

  <div class="pnl_formsarea">
    <fieldset class="inlineLabels">
        <input name="document_root" id="document_root" value="{tmpl_var name='document_root'}" size="30" maxlength="255" type="hidden" class="textInput" />
      <div class="ctrlHolder">
      	<label for="system_user">{tmpl_var name='system_user_txt'}</label>
11
12
		<label for="system_user">{tmpl_var name='system_user'}</label>
        <input name="system_user" id="system_user" value="{tmpl_var name='system_user'}" type="hidden" />
13
14
15
			</div>
      <div class="ctrlHolder">
      	<label for="system_group">{tmpl_var name='system_group_txt'}</label>
16
17
		<label for="system_group">{tmpl_var name='system_group'}</label>
        <input name="system_group" id="system_group" value="{tmpl_var name='system_group'}" type="hidden" />
18
			</div>
19
	  <div class="ctrlHolder apache">
20
21
      	<label for="allow_override">{tmpl_var name='allow_override_txt'}</label>
        <input name="allow_override" id="allow_override" value="{tmpl_var name='allow_override'}" size="30" maxlength="255" type="text" class="textInput" />
22
23
24
	  </div>
	  <div class="ctrlHolder">
      	<label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label>
25
        <input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="30" type="text" class="textInput"  style="width:400px;" />
26
27
28
29
	  </div>
	  <div class="ctrlHolder">
      	<label for="custom_php_ini">{tmpl_var name='custom_php_ini_txt'}</label>
      	<textarea name="custom_php_ini" id="custom_php_ini" rows='10' cols='50' style="width:400px;">{tmpl_var name='custom_php_ini'}</textarea>
30
	  </div>
31
      <div class="ctrlHolder apache">
32
      	<label for="apache_directives">{tmpl_var name='apache_directives_txt'}</label>
33
34
      	<textarea name="apache_directives" id="apache_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='apache_directives'}</textarea>
	  </div>
35
      <div class="ctrlHolder nginx">
36
37
38
      	<label for="nginx_directives">{tmpl_var name='nginx_directives_txt'}</label>
      	<textarea name="nginx_directives" id="nginx_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='nginx_directives'}</textarea>
	  </div>
39
40
41
42
43
44
45
46
47
48
49
    </fieldset>

    <input type="hidden" name="id" value="{tmpl_var name='id'}">

    <div class="buttonHolder buttons">
      <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','sites/web_domain_edit.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
      <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('sites/web_domain_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
    </div>
  </div>
  
</div>
Falko Timme's avatar
Falko Timme committed
50
51
52
53
<script language="JavaScript" type="text/javascript">
		var webId = jQuery('input[name="id"]').val();
		var serverId;
		getServerId(webId);
54
		adjustForm(serverId);
Falko Timme's avatar
Falko Timme committed
55
56
57
58
59
60
61
		
		function getServerId(webId){
			jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getserverid"}, function(data) {
				serverId = data.serverid;
			});
		}
		
62
		function adjustForm(serverId){
Falko Timme's avatar
Falko Timme committed
63
64
			jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, type : "getservertype"}, function(data) {
				if(data.servertype == "nginx"){
65
66
					jQuery('.nginx').show();
					jQuery('.apache').hide();
Falko Timme's avatar
Falko Timme committed
67
				} else {
68
69
					jQuery('.nginx').hide();
					jQuery('.apache').show();
Falko Timme's avatar
Falko Timme committed
70
71
72
73
74
				}
			});
		}
			
</script>