Bug 2889: Removed toggle variable from currency.tmpl. Used template __odd__ instead.
Removed toggle variable from currency.tmpl and currency.pl. Used template __odd_ variable instead. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
527898f6f3
commit
c09bdabaf4
2 changed files with 5 additions and 7 deletions
|
@ -165,7 +165,6 @@ if ($op eq 'add_form') {
|
||||||
|
|
||||||
my ($count,$results)=StringSearch($searchfield,'web');
|
my ($count,$results)=StringSearch($searchfield,'web');
|
||||||
my @loop;
|
my @loop;
|
||||||
my $toggle = 0;
|
|
||||||
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
|
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
|
||||||
my %row = (
|
my %row = (
|
||||||
currency => $results->[$i]{'currency'},
|
currency => $results->[$i]{'currency'},
|
||||||
|
@ -173,7 +172,6 @@ if ($op eq 'add_form') {
|
||||||
symbol => $results->[$i]{'symbol'},
|
symbol => $results->[$i]{'symbol'},
|
||||||
timestamp => format_date($results->[$i]{'timestamp'}),
|
timestamp => format_date($results->[$i]{'timestamp'}),
|
||||||
);
|
);
|
||||||
($i % 2) and $row{toggle} = 1;
|
|
||||||
push @loop, \%row;
|
push @loop, \%row;
|
||||||
}
|
}
|
||||||
$template->param(loop => \@loop);
|
$template->param(loop => \@loop);
|
||||||
|
|
|
@ -204,12 +204,12 @@
|
||||||
<th colspan="2"> </th>
|
<th colspan="2"> </th>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- TMPL_LOOP NAME="loop" -->
|
<!-- TMPL_LOOP NAME="loop" -->
|
||||||
<!-- TMPL_IF NAME="toggle" -->
|
<!-- TMPL_UNLESS NAME="__odd__" -->
|
||||||
<tr class="highlight"><td class="highlight">
|
<tr class="highlight">
|
||||||
<!-- TMPL_ELSE -->
|
<!-- TMPL_ELSE -->
|
||||||
<tr><td>
|
<tr>
|
||||||
<!-- /TMPL_IF -->
|
<!-- /TMPL_UNLESS -->
|
||||||
<!-- TMPL_VAR NAME="currency" --></td>
|
<td><!-- TMPL_VAR NAME="currency" --></td>
|
||||||
<td><!-- TMPL_VAR NAME="rate" --></td>
|
<td><!-- TMPL_VAR NAME="rate" --></td>
|
||||||
<td><!-- TMPL_VAR NAME="symbol" --></td>
|
<td><!-- TMPL_VAR NAME="symbol" --></td>
|
||||||
<td><!-- TMPL_VAR NAME="timestamp" --></td>
|
<td><!-- TMPL_VAR NAME="timestamp" --></td>
|
||||||
|
|
Loading…
Reference in a new issue