File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 99
1010
1111 {tmpl_hook name="begin_form"}
12- < tmpl _if name ="vhostdomain_type " value ="domain ">
12+ < tmpl _if name ="vhostdomain_type " value ="domain ">
13+ < tmpl _if name ="web_aliasdomains_info ">
14+ Children:
15+ < ul >
16+ < tmpl _loop name ="web_aliasdomains_info "> < li > {tmpl_var name='type'}: {tmpl_var name='domain'}</ li > </ tmpl _loop>
17+ </ ul >
18+ < br />
19+ </ tmpl _if>
1320 < tmpl _if name ="is_admin ">
1421 < div class ="form-group ">
1522 < tmpl _if name ="edit_disabled ">
Original file line number Diff line number Diff line change @@ -960,6 +960,10 @@ function onShowEnd() {
960960 function onShowEdit () {
961961 global $ app ;
962962 if ($ app ->tform ->checkPerm ($ this ->id , 'riud ' )) $ app ->tform ->formDef ['tabs ' ]['domain ' ]['readonly ' ] = false ;
963+ $ sql = "SELECT domain, type FROM web_domain WHERE (type='alias' OR type='subdomain') AND parent_domain_id = ? " ;
964+ $ subs = $ app ->db ->queryAllRecords ($ sql , $ this ->id );
965+ $ app ->tpl ->setLoop ('web_aliasdomains_info ' , $ subs );
966+
963967 parent ::onShowEdit ();
964968 }
965969
You can’t perform that action at this time.
0 commit comments