@@ -146,6 +146,12 @@ App.HTML.Build.web_domain_form = function (options, id) {
146146 tpl . set ( ':title' , 'Edit WEB domain' ) ;
147147 tpl . set ( ':save_button' , 'SAVE' ) ;
148148 tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
149+ if ( options . SSL == 'yes' ) {
150+ tpl . set ( ':ssl_checked' , 'checked="checked"' ) ;
151+ }
152+ else {
153+ tpl . set ( ':ssl_checked' , '' ) ;
154+ }
149155 }
150156 options = ! App . Helpers . isEmpty ( options ) ? options : App . Empty . WEB_DOMAIN ;
151157 if ( in_edit == true ) {
@@ -581,6 +587,9 @@ App.HTML.Build.ssl_key_file = function () {
581587App . HTML . Build . ssl_cert_file = function ( ) {
582588 return '<iframe src="' + App . Helpers . getUploadUrl ( ) + '?action=show&type=cert" width="500px;" height="53px;" framevorder="0" scroll="no">..</iframe>' ;
583589}
590+ App . HTML . Build . ssl_ca_file = function ( ) {
591+ return '<iframe src="' + App . Helpers . getUploadUrl ( ) + '?action=show&type=ca" width="500px;" height="53px;" framevorder="0" scroll="no">..</iframe>' ;
592+ }
584593App . HTML . Build . user_selects = function ( tpl , options ) {
585594 var acc = [ ] ;
586595 var pkg = App . Env . initialParams . USERS . PACKAGE ;
@@ -615,6 +624,7 @@ App.HTML.Build.db_selects = function (tpl, options) {
615624 acc [ acc . length ++ ] = tpl . finalize ( ) ;
616625 } ) ;
617626 tpl . set ( ':TYPE_OPTIONS' , acc . done ( ) ) ;
627+
618628 acc = [ ] ;
619629 var items = App . Env . initialParams . DB . HOST ;
620630 $ . each ( items , function ( val ) {
@@ -625,6 +635,18 @@ App.HTML.Build.db_selects = function (tpl, options) {
625635 acc [ acc . length ++ ] = tpl . finalize ( ) ;
626636 } ) ;
627637 tpl . set ( ':HOST_OPTIONS' , acc . done ( ) ) ;
638+
639+ acc = [ ] ;
640+ var items = App . Env . initialParams . DB . ENCODING ;
641+ $ . each ( items , function ( val ) {
642+ var tpl = App . Templates . get ( 'select_option' , 'general' ) ;
643+ tpl . set ( ':VALUE' , val ) ;
644+ tpl . set ( ':TEXT' , items [ val ] ) ;
645+ tpl . set ( ':SELECTED' , val == options . ENCODING ? 'selected="selected"' : '' ) ;
646+ acc [ acc . length ++ ] = tpl . finalize ( ) ;
647+ } ) ;
648+ tpl . set ( ':ENCODING_OPTIONS' , acc . done ( ) ) ;
649+
628650 return tpl ;
629651}
630652App . HTML . Build . ip_selects = function ( tpl , options ) {
0 commit comments