[freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.40.2.1, 1.40.2.2

Jeff Finucane,420,, jeff at wavetail.420.am
Thu Dec 27 17:32:51 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv26177/httemplate/search

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	svc_acct.cgi 
Log Message:
last login reporting (#2952)

Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/svc_acct.cgi,v
retrieving revision 1.40.2.1
retrieving revision 1.40.2.2
diff -u -d -r1.40.2.1 -r1.40.2.2
--- svc_acct.cgi	8 Oct 2007 19:04:50 -0000	1.40.2.1
+++ svc_acct.cgi	28 Dec 2007 01:32:49 -0000	1.40.2.2
@@ -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 @@
     $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";
   }
 



More information about the freeside-commits mailing list