\n"; print &ui_form_start("clone.cgi"); print &ui_hidden("dom", $d->{'id'}),"\n"; print &ui_table_start($text{'clone_header'}, undef, 2); # Domain being cloned print &ui_table_row($text{'clone_dom'}, "".&show_domain_name($d).""); # New domain name print &ui_table_row($text{'clone_newdom'}, &ui_textbox("newdomain", undef, 40)); # New username and password if (!$d->{'parent'}) { print &ui_table_row($text{'clone_newuser'}, &vui_noauto_textbox("newuser", undef, 20)); print &ui_table_row($text{'clone_newpass'}, &ui_radio("newpass_def", 1, [ [ 1, $text{'clone_samepass'} ], [ 0, &vui_noauto_password("newpass", undef, 20) ] ])); } # IP address if ($d->{'virt'} && &can_select_ip()) { $tmpl = &get_template($d->{'template'}); $ipfield = &ui_textbox("ip", undef, 20)." ". &ui_checkbox("virtalready", 1, $text{'form_virtalready'}); if ($tmpl->{'ranges'} eq 'none') { # Must enter an IP print &ui_table_row($text{'clone_newip'}, $ipfield); } else { # Can select an IP, or allocate print &ui_table_row($text{'clone_newip'}, &ui_radio("ip_def", 1, [ [ 1, $text{'clone_alloc'}."" ], [ 0, $text{'clone_vip'} ] ]). " ".$ipfield); } } print &ui_table_end(); print &ui_form_end([ [ undef, $text{'clone_ok'} ] ]); &ui_print_footer(&domain_footer_link($d), "", $text{'index_return'});