X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Findex.html;h=c813991f9faa8f86b099ba27e5382d72b3c8c111;hb=fc195fd7a0a2ca670cfdd62ef646436b58795c21;hp=c3e9ae45cd5b7f15c6ea8b90468f6445e0be931b;hpb=141003fc6cab41daf1a4a697a610c953ec42906e;p=freeside.git
diff --git a/httemplate/index.html b/httemplate/index.html
index c3e9ae45c..c813991f9 100644
--- a/httemplate/index.html
+++ b/httemplate/index.html
@@ -1,210 +1,54 @@
-
-
-
- Freeside Main Menu
-
-
-
-
-
-
-[ Sales / Customer service ]
-[ Bookkeeping / Collections ]
-[ Reports ]
-[ Sysadmin ]
-
- Sales / Customer service |
-
- New Customer
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-[ Sales / Customer service ]
-[ Bookkeeping / Collections ]
-[ Reports ]
-[ Sysadmin ]
-
-
-
-
-
-
-
-
-[ Sales / Customer service ]
-[ Bookkeeping / Collections ]
-[ Reports ]
-[ Sysadmin ]
-
- Reports |
-
-
- Auditing pre-Freeside services with no customer record
-
- Packages
-
- Invoices
-
- Financial reports
-
- Customers
-
-
-
-
- |
-
-
-
-
-
-
-
-[ Sales / Customer service ]
-[ Bookkeeping / Collections ]
-[ Reports ]
-[ Sysadmin ]
-
-
-
-
-
-
-
-
-
-
-
+% my $conf = new FS::Conf;
+
+<% include('/elements/header.html', 'Billing Main' ) %>
+
+<% include('/elements/dashboard-toplist.html') %>
+
+% my $sth = dbh->prepare(
+% #"SELECT DISTINCT custnum FROM h_cust_main JOIN cust_main USING ( custnum )
+% "SELECT custnum FROM h_cust_main JOIN cust_main USING ( custnum )
+% WHERE ( history_action = 'insert' OR history_action = 'replace_new' )
+% AND history_user = ?
+% ORDER BY history_date desc" # LIMIT 10
+% ) or die dbh->errstr;
+%
+% $sth->execute( getotaker() ) or die $sth->errstr;
+%
+% my %saw = ();
+% my @custnums = grep { !$saw{$_}++ } map $_->[0], @{ $sth->fetchall_arrayref };
+%
+% @custnums = splice(@custnums, 0, 10);
+%
+% if ( @custnums ) {
+
+ <% include('/elements/table-grid.html') %>
+
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = $bgcolor2;
+
+
+ Customers I recently added or modified |
+
+
+% foreach my $custnum ( @custnums ) {
+% my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } );
+% next unless $cust_main;
+
+
+ <% $cust_main->display_custnum %>: <% $cust_main->name %> |
+
+
+% if ( $bgcolor eq $bgcolor1 ) {
+% $bgcolor = $bgcolor2;
+% } else {
+% $bgcolor = $bgcolor1;
+% }
+%
+% }
+
+
+
+% }
+
+<% include('/elements/footer.html') %>