\n"; } elsif (!$d->{'parent'}) { print "$text{'move_desc'}
\n"; } else { print "$text{'move_desc2'}
\n"; } print &ui_form_start("move.cgi"); print &ui_hidden("dom", $d->{'id'}),"\n"; print &ui_table_start($text{'move_header'}, undef, 2); # Domain being moved print &ui_table_row($text{'move_dom'}, "".&show_domain_name($d).""); if ($d->{'alias'}) { # New alias target @pdoms = sort { lc($a->{'dom'}) cmp lc($b->{'dom'}) } grep { !$_->{'alias'} && can_config_domain($_) } &list_domains(); print &ui_table_row($text{'move_target2'}, &ui_select("parent", undef, [ map { [ $_->{'id'}, &show_domain_name($_) ] } @pdoms ])); } else { # New parent @pdoms = sort { lc($a->{'dom'}) cmp lc($b->{'dom'}) } grep { !$_->{'parent'} && &can_config_domain($_) } &list_visible_domains(); if ($d->{'parent'}) { @pdoms = grep { $_->{'id'} ne $d->{'parent'} } @pdoms; } else { @pdoms = grep { $_->{'id'} ne $d->{'id'} } @pdoms; } print &ui_table_row($text{'move_target'}, &ui_select("parent", undef, [ $d->{'parent'} ? ( [ 0, $text{'move_up'} ] ) : ( ), map { [ $_->{'id'}, &show_domain_name($_) ] } @pdoms ])); # Options for making a new parent domain if ($d->{'parent'}) { print &ui_table_row($text{'move_newuser'}, &ui_textbox("newuser", $d->{'user'}, 20)); print &ui_table_row($text{'move_newpass'}, &ui_password("newpass", $d->{'pass'}, 20)); } } print &ui_table_end(); print &ui_form_end([ [ "move", $text{'move_ok'} ] ]); &ui_print_footer(&domain_footer_link($d), "", $text{'index_return'});