[MT2338] Fixed the missing content in the "active" column

This commit is contained in:
Jean-André Santoni 2009-12-02 13:20:06 +01:00 committed by Henri-Damien LAURENT
parent 438afa638c
commit b641eb0fce
2 changed files with 7 additions and 10 deletions

View file

@ -165,11 +165,13 @@ if ($op eq 'add_form') {
my $count = scalar(@$results); my $count = scalar(@$results);
my @loop; my @loop;
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){ for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
warn Data::Dumper::Dumper($results->[$i]);
push @loop, { push @loop, {
currency => $results->[$i]{'currency'}, currency => $results->[$i]{'currency'},
rate => $results->[$i]{'rate'}, rate => $results->[$i]{'rate'},
symbol => $results->[$i]{'symbol'}, symbol => $results->[$i]{'symbol'},
timestamp => format_date($results->[$i]{'timestamp'}), timestamp => format_date($results->[$i]{'timestamp'}),
active => $results->[$i]{'active'},
}; };
} }
$template->param(loop => \@loop); $template->param(loop => \@loop);

View file

@ -189,12 +189,7 @@
<td><!-- TMPL_VAR NAME="rate" --></td> <td><!-- TMPL_VAR NAME="rate" --></td>
<td><!-- TMPL_VAR NAME="symbol" ESCAPE="HTML" --></td> <td><!-- TMPL_VAR NAME="symbol" ESCAPE="HTML" --></td>
<td><!-- TMPL_VAR NAME="timestamp" --></td> <td><!-- TMPL_VAR NAME="timestamp" --></td>
<td style="color:green;"><!-- TMPL_IF NAME="active" -->✓<!-- /TMPL_IF --></td>
<td><!-- TMPL_IF NAME="active" -->
<font COLOR="#00FF00">✓</font>
<!-- /TMPL_IF -->
</td>
<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td> <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td>
<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td> <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td>
</tr> </tr>