diff options
author | jeff <jeff> | 2007-12-28 01:32:49 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-12-28 01:32:49 +0000 |
commit | 58056ec01cf4725d1273f78c7a7ec2f4c00d07a3 (patch) | |
tree | 348dac1b57a16b0194e09522acee8f75c1e270af /httemplate | |
parent | 0e57f8cae87784c336f45fd2a0d437699c4d935a (diff) |
last login reporting (#2952)
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 9 | ||||
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 1 |
2 files changed, 8 insertions, 2 deletions
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,28 +8,32 @@ '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, ( map { $_ ne 'Cust. Status' ? $link_cust : '' } FS::UI::Web::cust_header() ), ], - 'align' => 'rlll'. FS::UI::Web::cust_aligns(), + 'align' => 'rlllr'. FS::UI::Web::cust_aligns(), 'color' => [ '', '', '', '', + '', FS::UI::Web::cust_colors(), ], 'style' => [ @@ -37,6 +41,7 @@ '', '', '', + '', FS::UI::Web::cust_styles(), ], ) @@ -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: <B><% sprintf("%.3f", $input) %></B> megabytes<BR> Download: <B><% sprintf("%.3f", $output) %></B> megabytes<BR> + Last Login: <B><% $svc_acct->last_login_text %></B><BR> % my $href = qq!<A HREF="${p}search/sqlradius.cgi?svcnum=$svcnum!; View session detail: |