| | |
| | | |
| | | <div class="buttonHolder buttons"> |
| | | <button id="dom-edit-submit" class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}"><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> |
| | | <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> |
| | | |
| | |
| | | if(data.servertype == "nginx"){ |
| | | var selected = jQuery('#php').val(); |
| | | jQuery('.apache').hide(); |
| | | jQuery('.apache').hide(); |
| | | jQuery('#php option[value="fast-cgi"]').hide(); |
| | | jQuery('#php option[value="cgi"]').hide(); |
| | | jQuery('#php option[value="mod"]').hide(); |
| | |
| | | if(selected != "no" && selected != "php-fpm") jQuery('#php option[value="php-fpm"]').attr('selected', 'selected'); |
| | | } else { |
| | | jQuery('.apache').show(); |
| | | jQuery('.apache').show(); |
| | | jQuery('#php option[value="fast-cgi"]').show(); |
| | | jQuery('#php option[value="cgi"]').show(); |
| | | jQuery('#php option[value="mod"]').show(); |
| | | jQuery('#php option[value="suphp"]').show(); |
| | | } |
| | | jQuery('#php').change(); |
| | | }); |
| | | } |
| | | |
| | |
| | | } |
| | | options += '<option value="'+key+'"'+phpfastcgiselected+'>'+val+'</option>'; |
| | | }); |
| | | $('#fastcgi_php_version').html(options); |
| | | $('#fastcgi_php_version').html(options).change(); |
| | | }); |
| | | } |
| | | |
| | | <tmpl_if name="readonly_tab"> |
| | | jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').attr('disabled', 'disabled'); |
| | | jQuery('div.tabbox_tabs').find('a').click(function() { |
| | | jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').removeAttr('disabled'); |
| | | }); |
| | | jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').click(function(e) { e.preventDefault(); }).focus(function() { $(this).blur(); }); |
| | | jQuery('#dom-edit-submit').click(function() { |
| | | jQuery('div.panel_web_domain').find('fieldset').find('input,select,button').removeAttr('disabled'); |
| | | submitForm('pageForm','sites/web_domain_edit.php'); |
| | | }); |
| | | <tmpl_else> |
| | |
| | | }); |
| | | </tmpl_if> |
| | | |
| | | </script> |
| | | </script> |