foreach $t (&list_available_templates($parentdom, $aliasdom)) { $firsttemplate ||= $t; push(@opts, [ $t->{'id'}, $t->{'name'} ]); push(@cantmpls, $t); } print " \n"; print &ui_table_row(&hlink($text{'form_template'},"template"), &ui_select("template", undef, \@opts, 1, 0, 0, 0, $config{'template_auto'} ? "" : "onChange='select_template(options[selectedIndex].value)'"), undef, \@tds); if ($aliasdom) { # Show destination of alias print &ui_table_row(&hlink($text{'form_aliasdom'}, "aliasdom"), "". "$aliasdom->{'dom'}", undef, \@tds); } elsif ($parentdom) { # Show parent domain print &ui_table_row(&hlink($text{'form_parentdom'}, "parentdom"), "". "$parentdom->{'dom'} ($parentuser)", undef, \@tds); }