diff options
author | jeff <jeff> | 2007-02-14 23:32:22 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-02-14 23:32:22 +0000 |
commit | c193fc003020c040668cd801fca6447939c07e6c (patch) | |
tree | eb2db187abde6afcb42709c1f16977f7b1fe5267 /httemplate/edit/cust_main.cgi | |
parent | ebd4a44b502b55a883ee1c7179f38d45318ef2ae (diff) |
selectable domain on first package in edit/cust_main
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 83eda7fcd..a843772d2 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -15,7 +15,7 @@ %#get record % %my $error = ''; -%my($custnum, $username, $password, $popnum, $cust_main, $saved_pkgpart); +%my($custnum, $username, $password, $popnum, $cust_main, $saved_pkgpart, $saved_domsvc); %my(@invoicing_list); %my $payinfo; %my $same = ''; @@ -25,6 +25,12 @@ % map { $_, scalar($cgi->param($_)) } fields('cust_main') % } ); % $custnum = $cust_main->custnum; +% $saved_domsvc = $cgi->param('domsvc') || ''; +% if ( $saved_domsvc =~ /^(\d+)$/ ) { +% $saved_domsvc = $1; +% } else { +% $saved_domsvc = ''; +% } % $saved_pkgpart = $cgi->param('pkgpart_svcpart') || ''; % if ( $saved_pkgpart =~ /^(\d+)_/ ) { % $saved_pkgpart = $1; @@ -50,6 +56,7 @@ % $cust_main->paycvv($paycvv); % } % $saved_pkgpart = 0; +% $saved_domsvc = 0; % $username = ''; % $password = ''; % $popnum = 0; @@ -61,6 +68,7 @@ % $cust_main->otaker( &getotaker ); % $cust_main->referral_custnum( $cgi->param('referral_custnum') ); % $saved_pkgpart = 0; +% $saved_domsvc = 0; % $username = ''; % $password = ''; % $popnum = 0; @@ -427,7 +435,7 @@ function copyelement(from, to) { % #eslaf % % my @part_pkg = grep { $_->svcpart('svc_acct') && $pkgpart->{ $_->pkgpart } } -% qsearch( 'part_pkg', { 'disabled' => '' },'','ORDER BY pkg' ); # case? +% qsearch( 'part_pkg', { 'disabled' => '' }, '', 'ORDER BY pkg' ); # case? % % if ( @part_pkg ) { % @@ -441,15 +449,12 @@ function copyelement(from, to) { <TR> <TD COLSPAN=2> - <SELECT NAME="pkgpart_svcpart"> - <OPTION VALUE="">(none) -% foreach my $part_pkg ( @part_pkg ) { - - - <OPTION VALUE="<% $part_pkg->pkgpart. "_". $part_pkg->svcpart('svc_acct') %>"<% ( $saved_pkgpart && $part_pkg->pkgpart == $saved_pkgpart ) ? ' SELECTED' : '' %>><% $part_pkg->pkg. " - ". $part_pkg->comment %> -% } - - </SELECT> + <% include('cust_main/select-domain.html', + 'pkgparts' => \@part_pkg, + 'saved_pkgpart' => $saved_pkgpart, + 'saved_domsvc' => $saved_domsvc, + ) + %> </TD> </TR> % @@ -470,6 +475,15 @@ function copyelement(from, to) { </TR> <TR> + <TD ALIGN="right">Domain</TD> + <TD> + <SELECT NAME="domsvc"> + <OPTION>(none)</OPTION> + </SELECT> + </TD> + </TR> + + <TR> <TD ALIGN="right">Password</TD> <TD> <INPUT TYPE="text" NAME="_password" VALUE="<% $password %>" SIZE=<% $pmax2 %> MAXLENGTH=<% $passwordmax %>> |