[freeside-commits] freeside/httemplate/elements tr-select-otaker.html, NONE, 1.1 select-otaker.html, NONE, 1.1 menu.html, 1.32, 1.33

Ivan,,, ivan at wavetail.420.am
Tue Dec 4 12:51:53 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv25475/httemplate/elements

Modified Files:
	menu.html 
Added Files:
	tr-select-otaker.html select-otaker.html 
Log Message:
add some time-worked reporting

--- NEW FILE: tr-select-otaker.html ---
<TR>
  <TD ALIGN="right"><% $opt{'label'} || 'Employee: ' %></TD>
  <TD><% include('select-otaker.html', %opt) %></TD>
</TR>

<%init>

my %opt = @_;

</%init>

Index: menu.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/menu.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- menu.html	4 Dec 2007 18:20:58 -0000	1.32
+++ menu.html	4 Dec 2007 20:51:51 -0000	1.33
@@ -162,6 +162,7 @@
 tie my %report_rating, 'Tie::IxHash',
   'RADIUS sessions' => [ $fsurl.'search/sqlradius.html', '' ],
   'Call Detail Records (CDRs)' => [ $fsurl.'search/report_cdr.html', '' ],
+  'Time worked' => [ $fsurl.'search/report_rt_transaction.html', '' ],
 ;
 
 tie my %report_bill_event, 'Tie::IxHash',

--- NEW FILE: select-otaker.html ---
<SELECT NAME="otaker">

% unless ( $opt{'multiple'} || $opt{'disable_empty'} ) {
  <OPTION VALUE="">all</OPTION>
% }

% foreach my $otaker ( @{ $opt{'otakers'} } ) { 
    <OPTION VALUE="<% $otaker %>"><% $otaker %></OPTION>
% } 

</SELECT>

<%init>

my %opt = @_;

unless ( $opt{'otakers'} ) {

  my $sth = dbh->prepare("SELECT username FROM access_user".
                       " WHERE disabled = '' or disabled IS NULL")
    or die dbh->errstr;
  $sth->execute or die $sth->errstr;
  $opt{'otakers'} = [ map { $_->[0] } @{$sth->fetchall_arrayref} ];

}

</%init>



More information about the freeside-commits mailing list