1 <% include('/elements/header.html', 'Customer Search' ) %>
3 <FORM ACTION="cust_main.cgi" METHOD="GET">
5 Search for <B>Order taker</B>:
6 <INPUT TYPE="hidden" NAME="otaker_on" VALUE="TRUE">
7 % my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_main")
9 % $sth->execute() or die $sth->errstr;
10 % #my @otakers = map { $_->[0] } @{$sth->fetchall_arrayref};
13 <SELECT NAME="otaker">
14 % my $otaker; while ( $otaker = $sth->fetchrow_arrayref ) {
16 <OPTION><% $otaker->[0] %>
21 <P><INPUT TYPE="submit" VALUE="Search">
25 <% include('/elements/footer.html') %>
29 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');