I have been looking at this too long. I have put this sub in to print the search results to a page that can be printed by a user. It works, but only prints the number of lines limited by db_max_hits in config - which is 15.
I just want it to continue listing for all of the hits from the query. I have tried changing the $numhits to $db_total_hits but that does not work either. I get the first 15 rows of data and the rest are blank.
What am I overlooking?
## Print to Screen ##
##########################################################
sub html_printout {
my (@hits) = @_;
my ($numhits) = ($#hits+1) / ($#db_cols+1);
for (0 .. $numhits - 1) {
%rec = &array_to_hash($_, @hits);
# }
print qq|
<TABLE WIDTH="800" CELLPADDING=0 CELLSPACING=0 BORDER=1 BGCOLOR="#FFFFCC">
<TR>
<TD WIDTH=5 VALIGN=TOP>
<P>
<a href="$long_url"><FONT Face="verdana,arial,helvetica" Size=1>$rec{'Item_No'}</a></TD>
<TD WIDTH=400 VALIGN=TOP>
<P><UL>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">$rec{'Issue'}</TD>
<TD WIDTH=200 VALIGN=TOP>
<P>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">Client:$rec{'Status'}</TD>
<TD WIDTH=200 VALIGN=TOP>
<P>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">Vendor:$rec{'Vend_Status'}</TD>
</FONT></TR>
</TABLE>
|;
}
}
#
I just want it to continue listing for all of the hits from the query. I have tried changing the $numhits to $db_total_hits but that does not work either. I get the first 15 rows of data and the rest are blank.
What am I overlooking?
Code:
########################################################## ## Print to Screen ##
##########################################################
sub html_printout {
my (@hits) = @_;
my ($numhits) = ($#hits+1) / ($#db_cols+1);
for (0 .. $numhits - 1) {
%rec = &array_to_hash($_, @hits);
# }
print qq|
<TABLE WIDTH="800" CELLPADDING=0 CELLSPACING=0 BORDER=1 BGCOLOR="#FFFFCC">
<TR>
<TD WIDTH=5 VALIGN=TOP>
<P>
<a href="$long_url"><FONT Face="verdana,arial,helvetica" Size=1>$rec{'Item_No'}</a></TD>
<TD WIDTH=400 VALIGN=TOP>
<P><UL>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">$rec{'Issue'}</TD>
<TD WIDTH=200 VALIGN=TOP>
<P>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">Client:$rec{'Status'}</TD>
<TD WIDTH=200 VALIGN=TOP>
<P>
<FONT Face="verdana,arial,helvetica" Size=1 color="black">Vendor:$rec{'Vend_Status'}</TD>
</FONT></TR>
</TABLE>
|;
}
}
#