X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main.cgi;h=58f2925d594d75dfa400068e9aab3bea8f3f4821;hb=7bdf17a005cf4c0fe8b6b6ad1ce97abaa52a4510;hp=322f0674e933ac9962ee7ca06b2f74bae5a56aa4;hpb=8d4abaa99403699aa5b5f02e899d2ea33980f913;p=freeside.git diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 322f0674e..58f2925d5 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -6,21 +6,16 @@ my $conf = new FS::Conf; my %uiview = (); my %uiadd = (); foreach my $part_svc ( qsearch('part_svc',{}) ) { - $uiview{$part_svc->svcpart} = popurl(2). "view/". $part_svc->svcdb . ".cgi"; - $uiadd{$part_svc->svcpart}= popurl(2). "edit/". $part_svc->svcdb . ".cgi"; + $uiview{$part_svc->svcpart} = $p. "view/". $part_svc->svcdb . ".cgi"; + $uiadd{$part_svc->svcpart}= $p. "edit/". $part_svc->svcdb . ".cgi"; } -print header("Customer View", menubar( - 'Main Menu' => popurl(2) -)); - %> - +<%= include("/elements/header.html","Customer View", + include("/elements/menubar.html", + 'Main Menu' => $p, +)) %> <% @@ -35,18 +30,43 @@ print qq!Edit this customer!; %> - + + + + + -print qq! | !. - 'Cancel this customer' - if $cust_main->ncancelled_pkgs; +<% if ( $cust_main->ncancelled_pkgs ) { %> + + | Cancel this customer + +<% } %> + +<% print qq! | !. 'Delete this customer' @@ -73,12 +93,12 @@ print "This customer's signup URL: ". %> -<%= &itable() %> +
<%= include('cust_main/contacts.html', $cust_main ) %> | -+ |
<%= include('cust_main/misc.html', $cust_main ) %>
<% if ( $conf->config('payby-default') ne 'HIDE' ) { %>
@@ -108,762 +128,12 @@ Comments <%= include('cust_main/tickets.html', $cust_main ) %> <% } %> - - - - -<% - -if ( $conf->config('payby-default') ne 'HIDE' ) { - - print - qq! !; - -} - -print qq!Packages !, - qq!( Bulk order and cancel packages (preserves services) )!, -; - -#begin display packages - -#get package info - -my $packages = get_packages($cust_main, $conf); - -if ( @$packages ) { -%> -
| \n";
-
- if ($rowspan == 0) { print qq!|||||||||||||||||||||||||||||||||||||||||||||||||
<%=svc_link($svcpart,$service)%> | -<%=svc_label_link($svcpart,$service)%> ( <%=svc_unprovision_link($service)%> ) |
-||||||||||||||||||||||||||||||||||||||||||||||||||
!.svc_provision_link($pkg, $svcpart, $conf).qq! | \n