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:
parent
e997a4a11c
commit
94abcf6d98
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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'};
|
||||
|
|
|
|||
Loading…
Reference in New Issue