Bug 2889: Removed toggle variable from Serials vendor search.

Removed toggle variable from acqui-search-result.pl.  Added highlighting using __odd__ to acqui-search-result.tmpl.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Garry Collum 2009-07-22 23:53:00 -04:00 committed by Galen Charlton
parent e997a4a11c
commit 94abcf6d98
2 changed files with 5 additions and 9 deletions

View File

@ -27,7 +27,11 @@ function GetIt(aqbooksellerid,name)
<th>Select</th>
</tr>
<!-- TMPL_LOOP name="loop_suppliers" -->
<tr>
<!-- TMPL_UNLESS name="__odd__">
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_UNLESS -->
<td><!-- TMPL_VAR name="name" --></td>
<td><a href="#" onclick="GetIt(<!-- TMPL_VAR NAME="aqbooksellerid" -->,'<!-- TMPL_VAR escape="URL" NAME="name" -->')">Choose</a></td>
</tr>

View File

@ -63,20 +63,12 @@ my @suppliers = GetBookSeller($supplier);
my $count = scalar @suppliers;
#build result page
my $toggle=0;
my @loop_suppliers;
for (my $i=0; $i<$count; $i++) {
my $orders = GetPendingOrders($suppliers[$i]->{'id'});
my $ordcount = scalar @$orders;
my %line;
if ($toggle==0){
$line{even}=1;
$toggle=1;
} else {
$line{even}=0;
$toggle=0;
}
$line{aqbooksellerid} =$suppliers[$i]->{'id'};
$line{name} = $suppliers[$i]->{'name'};
$line{active} = $suppliers[$i]->{'active'};