projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Will things ever be the same again?
[freeside.git]
/
httemplate
/
search
/
cust_main-otaker.cgi
diff --git
a/httemplate/search/cust_main-otaker.cgi
b/httemplate/search/cust_main-otaker.cgi
index
6ac0bde
..
210172f
100755
(executable)
--- a/
httemplate/search/cust_main-otaker.cgi
+++ b/
httemplate/search/cust_main-otaker.cgi
@@
-1,23
+1,25
@@
-<%
=
include('/elements/header.html', 'Customer Search' ) %>
+<% 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">
<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};
+%
-<% 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">
<SELECT NAME="otaker">
-<% my $otaker; while ( $otaker = $sth->fetchrow_arrayref ) { %>
- <OPTION><%= $otaker->[0] %>
-<% } %>
+% my $otaker; while ( $otaker = $sth->fetchrow_arrayref ) {
+
+ <OPTION><% $otaker->[0] %>
+% }
+
</SELECT>
<P><INPUT TYPE="submit" VALUE="Search">
</FORM>
</SELECT>
<P><INPUT TYPE="submit" VALUE="Search">
</FORM>
-<%
=
include('/elements/footer.html') %>
+<% include('/elements/footer.html') %>