1+ < h2 > < tmpl _var name ="list_head_txt "> </ h2 >
2+ < p > < tmpl _var name ="list_desc_txt "> </ p >
3+
4+ < div class ="panel panel_web_domain ">
5+
6+ < div class ="pnl_formsarea ">
7+ < fieldset class ="inlineLabels ">
8+ < input name ="document_root " id ="document_root " value ="{tmpl_var name='document_root'} " size ="30 " maxlength ="255 " type ="hidden " class ="textInput " />
9+ < div class ="ctrlHolder ">
10+ < label for ="system_user "> {tmpl_var name='system_user_txt'}</ label >
11+ < label for ="system_user "> {tmpl_var name='system_user'}</ label >
12+ < input name ="system_user " id ="system_user " value ="{tmpl_var name='system_user'} " type ="hidden " />
13+ </ div >
14+ < div class ="ctrlHolder ">
15+ < label for ="system_group "> {tmpl_var name='system_group_txt'}</ label >
16+ < label for ="system_group "> {tmpl_var name='system_group'}</ label >
17+ < input name ="system_group " id ="system_group " value ="{tmpl_var name='system_group'} " type ="hidden " />
18+ </ div >
19+ < div class ="ctrlHolder apache ">
20+ < label for ="allow_override "> {tmpl_var name='allow_override_txt'}</ label >
21+ < input name ="allow_override " id ="allow_override " value ="{tmpl_var name='allow_override'} " size ="30 " maxlength ="255 " type ="text " class ="textInput " />
22+ </ div >
23+ < div class ="phpfpm ">
24+ < div class ="ctrlHolder ">
25+ < p class ="label "> {tmpl_var name='php_fpm_use_socket_txt'}</ p >
26+ < div class ="multiField ">
27+ {tmpl_var name='php_fpm_use_socket'}
28+ </ div >
29+ </ div >
30+ < div class ="ctrlHolder ">
31+ < label for ="pm "> {tmpl_var name='pm_txt'}</ label >
32+ < select name ="pm " id ="pm " class ="selectInput ">
33+ {tmpl_var name='pm'}
34+ </ select >
35+ </ div >
36+ < div class ="ctrlHolder pm_ondemand " style ="background: #ffdfdf; border: 1px solid #df7d7d; border-width: 1px 0; margin: 1.5em 0 1.5em 0; padding: 7px; ">
37+ {tmpl_var name='pm_ondemand_hint_txt'}
38+ </ div >
39+ < div class ="ctrlHolder ">
40+ < label for ="pm_max_children "> {tmpl_var name='pm_max_children_txt'}</ label >
41+ < input name ="pm_max_children " id ="pm_max_children " value ="{tmpl_var name='pm_max_children'} " size ="3 " maxlength ="3 " type ="text " class ="textInput formLengthLimit " />
42+ </ div >
43+ < div class ="ctrlHolder pm_dynamic ">
44+ < label for ="pm_start_servers "> {tmpl_var name='pm_start_servers_txt'}</ label >
45+ < input name ="pm_start_servers " id ="pm_start_servers " value ="{tmpl_var name='pm_start_servers'} " size ="3 " maxlength ="3 " type ="text " class ="textInput formLengthLimit " />
46+ </ div >
47+ < div class ="ctrlHolder pm_dynamic ">
48+ < label for ="pm_min_spare_servers "> {tmpl_var name='pm_min_spare_servers_txt'}</ label >
49+ < input name ="pm_min_spare_servers " id ="pm_min_spare_servers " value ="{tmpl_var name='pm_min_spare_servers'} " size ="3 " maxlength ="3 " type ="text " class ="textInput formLengthLimit " />
50+ </ div >
51+ < div class ="ctrlHolder pm_dynamic ">
52+ < label for ="pm_max_spare_servers "> {tmpl_var name='pm_max_spare_servers_txt'}</ label >
53+ < input name ="pm_max_spare_servers " id ="pm_max_spare_servers " value ="{tmpl_var name='pm_max_spare_servers'} " size ="3 " maxlength ="3 " type ="text " class ="textInput formLengthLimit " />
54+ </ div >
55+ < div class ="ctrlHolder pm_ondemand ">
56+ < label for ="pm_process_idle_timeout "> {tmpl_var name='pm_process_idle_timeout_txt'}</ label >
57+ < input name ="pm_process_idle_timeout " id ="pm_process_idle_timeout " value ="{tmpl_var name='pm_process_idle_timeout'} " size ="3 " maxlength ="6 " type ="text " class ="textInput formLengthLimit " /> s
58+ </ div >
59+ < div class ="ctrlHolder ">
60+ < label for ="pm_max_requests "> {tmpl_var name='pm_max_requests_txt'}</ label >
61+ < input name ="pm_max_requests " id ="pm_max_requests " value ="{tmpl_var name='pm_max_requests'} " size ="3 " maxlength ="6 " type ="text " class ="textInput formLengthLimit " />
62+ </ div >
63+ </ div >
64+ < div class ="ctrlHolder ">
65+ < label for ="php_open_basedir "> {tmpl_var name='php_open_basedir_txt'}</ label >
66+ < 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; " />
67+ </ div >
68+ < div class ="ctrlHolder ">
69+ < label for ="custom_php_ini "> {tmpl_var name='custom_php_ini_txt'}</ label >
70+ < textarea name ="custom_php_ini " id ="custom_php_ini " rows ='10 ' cols ='50 ' style ="width:400px; "> {tmpl_var name='custom_php_ini'}</ textarea >
71+ </ div >
72+ < div class ="ctrlHolder apache ">
73+ < label for ="apache_directives "> {tmpl_var name='apache_directives_txt'}</ label >
74+ < textarea name ="apache_directives " id ="apache_directives " rows ='10 ' cols ='50 ' style ="width:400px; "> {tmpl_var name='apache_directives'}</ textarea >
75+ </ div >
76+ < div class ="ctrlHolder nginx ">
77+ < label for ="nginx_directives "> {tmpl_var name='nginx_directives_txt'}</ label >
78+ < textarea name ="nginx_directives " id ="nginx_directives " rows ='10 ' cols ='50 ' style ="width:400px; "> {tmpl_var name='nginx_directives'}</ textarea >
79+ </ div >
80+ </ fieldset >
81+
82+ < input type ="hidden " name ="id " value ="{tmpl_var name='id'} ">
83+
84+ < div class ="buttonHolder buttons ">
85+ < 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 >
86+ < 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 >
87+ </ div >
88+ </ div >
89+
90+ </ div >
91+ < script language ="JavaScript " type ="text/javascript ">
92+ var webId = jQuery ( 'input[name="id"]' ) . val ( ) ;
93+ var serverId ;
94+ getServerId ( ) ;
95+ adjustForm ( ) ;
96+
97+ var pm = jQuery ( '#pm' ) . val ( ) ;
98+ pmMode ( pm ) ;
99+ jQuery ( '#pm' ) . change ( function ( ) {
100+ pm = jQuery ( this ) . val ( ) ;
101+ pmMode ( pm ) ;
102+ } ) ;
103+
104+ function pmMode ( pm ) {
105+ switch ( pm ) {
106+ case "static" :
107+ jQuery ( '.pm_dynamic' ) . add ( '.pm_ondemand' ) . hide ( ) ;
108+ jQuery ( '.pm_static' ) . show ( ) ;
109+ break ;
110+ case "dynamic" :
111+ jQuery ( '.pm_static' ) . add ( '.pm_ondemand' ) . hide ( ) ;
112+ jQuery ( '.pm_dynamic' ) . show ( ) ;
113+ break ;
114+ case "ondemand" :
115+ jQuery ( '.pm_static' ) . add ( '.pm_dynamic' ) . hide ( ) ;
116+ jQuery ( '.pm_ondemand' ) . show ( ) ;
117+ break ;
118+ }
119+ }
120+
121+ function getServerId ( ) {
122+ jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { web_id : webId , type : "getserverid" } , function ( data ) {
123+ serverId = data . serverid ;
124+ } ) ;
125+ }
126+
127+ function adjustForm ( ) {
128+ jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { server_id : serverId , type : "getservertype" } , function ( data ) {
129+ if ( data . servertype == "nginx" ) {
130+ jQuery ( '.nginx' ) . show ( ) ;
131+ jQuery ( '.apache' ) . hide ( ) ;
132+ } else {
133+ jQuery ( '.nginx' ) . hide ( ) ;
134+ jQuery ( '.apache' ) . show ( ) ;
135+ }
136+ } ) ;
137+ jQuery . getJSON ( 'sites/ajax_get_json.php' + '?' + Math . round ( new Date ( ) . getTime ( ) ) , { web_id : webId , type : "getphptype" } , function ( data ) {
138+ if ( data . phptype == "php-fpm" ) {
139+ jQuery ( '.phpfpm' ) . show ( ) ;
140+ } else {
141+ jQuery ( '.phpfpm' ) . hide ( ) ;
142+ }
143+ } ) ;
144+ }
145+
146+ </ script >
0 commit comments