+ <& /elements/popup_link-cust_main.html,
+ 'label' => emt('Add customer note'),
+ 'action' => $p. 'edit/cust_main_note.cgi',
+ 'actionlabel' => emt('Enter customer note'),
+ 'cust_main' => $cust_main,
+ 'width' => 616,
+ 'height' => 538, #575
+ &>
+
+% }
+
+<BR>
+
+<& cust_main/notes.html, 'custnum' => $cust_main->custnum &>
+
+% }
+<BR>
+
+% if(! $conf->config('disable_cust_attachment')
+% and $curuser->access_right('Add attachment')) {
+<& /elements/popup_link-cust_main.html,
+ 'label' => emt('Attach file'),
+ 'action' => $p.'edit/cust_main_attach.cgi',
+ 'actionlabel' => emt('Upload file'),
+ 'cust_main' => $cust_main,
+ 'width' => 480,
+ 'height' => 296,
+&>
+% }
+% if( $curuser->access_right('View attachments') ) {
+<& cust_main/attachments.html, 'custnum' => $cust_main->custnum &>
+% if ($cgi->param('show_deleted')) {
+<A HREF="<% $p.'view/cust_main.cgi?custnum=' . $cust_main->custnum .
+ ($view ? ";show=$view" : '') . '#notes'
+ %>"><I>(<% mt('Show active attachments') |h %>)</I></A>
+% }
+% elsif($curuser->access_right('View deleted attachments')) {
+<A HREF="<% $p.'view/cust_main.cgi?custnum=' . $cust_main->custnum .
+ ($view ? ";show=$view" : '') . ';show_deleted=1#notes'
+ %>"><I>(<% mt('Show deleted attachments') |h %>)</I></A>
+% }
+% }
+<BR>
+
+% }
+
+% if ( $view eq 'jumbo' ) {
+ <BR><BR>
+ <A NAME="tickets"><FONT SIZE="+2"><% mt('Tickets') |h %></FONT></A><BR>
+% }
+
+% if ( $view eq 'tickets' || $view eq 'jumbo' ) {
+
+% if ( $conf->config('ticket_system') ) {
+ <& cust_main/tickets.html, $cust_main &>
+% }
+ <BR><BR>
+
+% }
+
+% if ( $view eq 'jumbo' ) { #XXX enable me && $curuser->access_right('View customer packages') {
+
+ <A NAME="cust_pkg"><FONT SIZE="+2"><% mt('Packages') |h %></FONT></A><BR>
+% }
+
+% if ( $view eq 'packages' || $view eq 'jumbo' ) {
+
+% #XXX enable me# if ( $curuser->access_right('View customer packages') {
+<& cust_main/packages.html, $cust_main &>
+% #}
+
+% }
+
+% if ( $view eq 'jumbo' ) {
+ <BR><BR>
+ <A NAME="history"><FONT SIZE="+2"><% mt('Payment History') |h %></FONT></A>
+ <BR>
+% }
+
+% if ( $view eq 'payment_history' || $view eq 'jumbo' ) {