1 <%= include('/elements/header.html', 'Credit report' ) %>
3 <FORM ACTION="cust_credit.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
8 <TD ALIGN="right">Credits by employee: </TD>
11 my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_credit")
13 $sth->execute or die $sth->errstr;
14 my @otakers = map { $_->[0] } @{$sth->fetchall_arrayref};
17 <TD><SELECT NAME="otaker">
18 <OPTION VALUE="">all</OPTION>
19 <% foreach my $otaker ( @otakers ) { %>
20 <OPTION VALUE="<%= $otaker %>"><%= $otaker %></OPTION>
25 <%= include( '/elements/tr-select-agent.html',
26 $cgi->param('agentnum'),
27 'label' => 'for agent: ',
30 <%= include( '/elements/tr-input-beginning_ending.html' ) %>
34 <INPUT TYPE="submit" VALUE="Get Report">
38 <%= include('/elements/footer.html') %>