& /elements/header.html, $title &>
<& /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); } %init> <%once> my %label = ( 'last_login' => 'Last login', 'last_logout' => 'Last logout', ); %once>