summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_main-otaker.cgi
blob: 6ac0bde183e305828762d89939b741bfc3dfaec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%= include('/elements/header.html', 'Customer Search' ) %>

<FORM ACTION="cust_main.cgi" METHOD="GET">

Search for <B>Order taker</B>: 
  <INPUT TYPE="hidden" NAME="otaker_on" VALUE="TRUE">

<% my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_main")
     or die dbh->errstr;
   $sth->execute() or die $sth->errstr;
   #my @otakers = map { $_->[0] } @{$sth->fetchall_arrayref};
%>
<SELECT NAME="otaker">
<% my $otaker; while ( $otaker = $sth->fetchrow_arrayref ) { %>
  <OPTION><%= $otaker->[0] %>
<% } %>
</SELECT>

<P><INPUT TYPE="submit" VALUE="Search">

</FORM>

<%= include('/elements/footer.html') %>