<& /elements/header.html, $title &>
% unless ( $custnum ) { <& /elements/tr-select-agent.html, 'curr_value' => scalar( $cgi->param('agentnum') ), 'disable_empty' => 0, &> % # just this customer's domains? <& /elements/tr-select-domain.html, 'element_name' => 'domsvc', 'curr_value' => scalar( $cgi->param('domsvc') ), 'disable_empty' => 0, &> % } % foreach my $field (qw( last_login last_logout )) { % my $invert = $field."_invert"; % } <& /elements/tr-selectmultiple-part_pkg.html &> % #move to /elements/tr-select-cust_pkg-fields if anything else needs it... <& /elements/tr-select-cust-fields.html &>
<% mt('Search options') |h %>
"> <% $label{$field} %> <% mt('Invert') |h %>
<& /elements/tr-input-beginning_ending.html, prefix => $field, layout => 'horiz', &>
 
<% mt('Display options') |h %>
<% mt('Package fields') |h %>

<& /elements/footer.html &> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('List packages'); #? my $title = emt('Account Report'); #false laziness w/report_cust_pkg.html my $custnum = ''; if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { $custnum = $1; my $cust_main = qsearchs({ 'table' => 'cust_main', 'hashref' => { 'custnum' => $custnum }, 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, }) or die "unknown custnum $custnum"; $title = emt("Account Report: [_1]", $cust_main->name); } <%once> my %label = ( 'last_login' => 'Last login', 'last_logout' => 'Last logout', );