if (confirm(message) == true)
window.location.href = href;
}
+function areyousure_popup(message, action, actionlabel) {
+ if (confirm(message) == true) {
+<% include('/elements/popup_link_onclick.html',
+ 'js_action' => 'action',
+ 'js_actionlabel' => 'actionlabel',
+ ) %>
+ }
+}
</SCRIPT>
+
+% ###
+% # Basics
+% ###
+
% if ( $view eq 'basics' || $view eq 'jumbo' ) {
% if ( $curuser->access_right('Edit customer') ) {
'actionlabel' => emt('Confirm Suspension'),
'color' => '#ff9900',
'cust_main' => $cust_main,
- 'width' => 616, #make room for reasons
- 'height' => 366,
+ 'width' => 768, #make room for reasons
+ 'height' => 450,
}
&> |
% }
'color' => '#ff0000',
'cust_main' => $cust_main,
'width' => 616, #make room for reasons
- 'height' => 366,
+ 'height' => 410,
}
&> |
% }
% }
+
+% ###
+% # Notes
+% ###
+
% if ( $view eq 'notes' || $view eq 'jumbo' ) {
<& cust_main/notes.html, 'cust_main' => $cust_main &>
<BR>
+
+% ###
+% # Tickets
+% ###
+
% if ( $view eq 'tickets' || $view eq 'jumbo' ) {
% if ( $conf->config('ticket_system') ) {
% }
+% ###
+% # Appointments
+% ###
+
% if ( $view eq 'appointments' || $view eq 'jumbo' ) {
% if ( $conf->config('ticket_system')
% }
+
+% ###
+% # Quotations
+% ###
+
+% if ( $view eq 'jumbo' && $curuser->access_right('Generate quotation') ) {
+ <A NAME="quotations"><FONT SIZE="+2"><% mt('Quotations') |h %></FONT></A><BR>
+% }
+
+% if ( $view eq 'quotations' || $view eq 'jumbo' ) {
+
+% if ( $curuser->access_right('Generate quotation') ) {
+ <& cust_main/quotations.html, $cust_main &>
+% }
+
+% }
+
+
+% ###
+% # Packages
+% ###
+
% 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>
% }
+
+% ###
+% # Payment History
+% ###
+
% if ( $view eq 'jumbo' ) {
<BR><BR>
<A NAME="history"><FONT SIZE="+2"><% mt('Payment History') |h %></FONT></A>
% }
+
+% ###
+% # Change History
+% ###
+
% if ( $view eq 'change_history' ) { # || $view eq 'jumbo'
<& cust_main/change_history.html, $cust_main &>
% }
$views{emt('Appointments')} = 'appointments'
if $curuser->access_right('View appointments');
}
+$views{emt('Quotations')} = 'quotations';
$views{emt('Packages')} = 'packages';
$views{emt('Payment History')} = 'payment_history'
unless $conf->config('payby-default' eq 'HIDE');