% include("/elements/header.html","Customer View: ". $cust_main->name ) %>
% if ( $curuser->access_right('Edit customer') ) { 
  Edit this customer | 
% } 
<% include('/elements/init_overlib.html') %>
% if ( $curuser->access_right('Cancel customer')
%        && $cust_main->ncancelled_pkgs
%      ) {
  <% include( '/elements/popup_link-cust_main.html',
              { 'action'      => $p. 'misc/cancel_cust.html',
                'label'       => 'Cancel this customer',
                'actionlabel' => 'Confirm Cancellation',
                'color'       => '#ff0000',
                'cust_main'   => $cust_main,
              }
            )
  %> | 
% }
% if ( $conf->exists('deletecustomers')
%        && $curuser->access_right('Delete customer')
%      ) {
  Delete this customer | 
% } 
% unless ( $conf->exists('disable_customer_referrals') ) { 
  Refer a new customer | 
  View this customer's referrals
% } 
%my $signupurl = $conf->config('signupurl');
%if ( $signupurl ) {
  This customer's signup URL: <% $signupurl %>?ref=<% $custnum %>
% } 
| <% include('cust_main/contacts.html', $cust_main ) %> | <% include('cust_main/misc.html', $cust_main ) %>
% if ( $conf->config('payby-default') ne 'HIDE' ) { <% include('cust_main/billing.html', $cust_main ) %> % } | 
<% encode_entities($cust_main->comments) %>