From 58056ec01cf4725d1273f78c7a7ec2f4c00d07a3 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 28 Dec 2007 01:32:49 +0000 Subject: last login reporting (#2952) --- httemplate/search/svc_acct.cgi | 9 +++++++-- httemplate/view/svc_acct.cgi | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 6ddb1ee2d..62fb9821b 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -8,15 +8,18 @@ 'Service', 'Account', 'UID', + 'Last Login', FS::UI::Web::cust_header(), ], 'fields' => [ 'svcnum', 'svc', 'email', 'uid', + 'last_login_text', \&FS::UI::Web::cust_fields, ], 'links' => [ $link, + $link, $link, $link, $link, @@ -24,8 +27,9 @@ FS::UI::Web::cust_header() ), ], - 'align' => 'rlll'. FS::UI::Web::cust_aligns(), + 'align' => 'rlllr'. FS::UI::Web::cust_aligns(), 'color' => [ + '', '', '', '', @@ -33,6 +37,7 @@ FS::UI::Web::cust_colors(), ], 'style' => [ + '', '', '', '', @@ -71,7 +76,7 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { $sortby = "LOWER($sortby)" if $sortby eq 'username'; push @extra_sql, "$sortby IS NOT NULL" - if $sortby eq 'uid'; + if ($sortby eq 'uid' or $sortby eq 'last_login'); $orderby = "ORDER BY $sortby"; } diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 8326818d6..d764afee6 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -79,6 +79,7 @@ Upload: <% sprintf("%.3f", $input) %> megabytes
Download: <% sprintf("%.3f", $output) %> megabytes
+ Last Login: <% $svc_acct->last_login_text %>
% my $href = qq!