Lines 63-82
my @suppliers = GetBookSeller($supplier);
Link Here
|
63 |
my $count = scalar @suppliers; |
63 |
my $count = scalar @suppliers; |
64 |
|
64 |
|
65 |
#build result page |
65 |
#build result page |
66 |
my $toggle=0; |
|
|
67 |
my @loop_suppliers; |
66 |
my @loop_suppliers; |
68 |
for (my $i=0; $i<$count; $i++) { |
67 |
for (my $i=0; $i<$count; $i++) { |
69 |
my $orders = GetPendingOrders($suppliers[$i]->{'id'}); |
68 |
my $orders = GetPendingOrders($suppliers[$i]->{'id'}); |
70 |
my $ordcount = scalar @$orders; |
69 |
my $ordcount = scalar @$orders; |
71 |
|
70 |
|
72 |
my %line; |
71 |
my %line; |
73 |
if ($toggle==0){ |
|
|
74 |
$line{even}=1; |
75 |
$toggle=1; |
76 |
} else { |
77 |
$line{even}=0; |
78 |
$toggle=0; |
79 |
} |
80 |
$line{aqbooksellerid} =$suppliers[$i]->{'id'}; |
72 |
$line{aqbooksellerid} =$suppliers[$i]->{'id'}; |
81 |
$line{name} = $suppliers[$i]->{'name'}; |
73 |
$line{name} = $suppliers[$i]->{'name'}; |
82 |
$line{active} = $suppliers[$i]->{'active'}; |
74 |
$line{active} = $suppliers[$i]->{'active'}; |
83 |
- |
|
|