summaryrefslogtreecommitdiffstats
path: root/views/a.tt
diff options
context:
space:
mode:
Diffstat (limited to 'views/a.tt')
-rw-r--r--views/a.tt13
1 files changed, 12 insertions, 1 deletions
diff --git a/views/a.tt b/views/a.tt
index 781a145..6b45fac 100644
--- a/views/a.tt
+++ b/views/a.tt
@@ -6,11 +6,22 @@
<tr><td>id</td><td>isbn</td><td>tytul</td><td>autor</td><td>wlasiciciel</td><td>jest?</td><td>mozna brac?</td></tr>
<tr>
- % for (my $i=0;$i<$#tab;$i++)
+ % for (my $i=0;$i<$#tab+1;$i++)
% {
% for (my $ii=0;$ii<7;$ii++) #Jest 7 pol w kazdym rekordzie
% {
+ % if ($ii==5 || $ii==6)
+ % {
+ % if ($tab[$i][$ii]==1)
+ % {
+ % $tab[$i][$ii] = 'Tak';
+ % }
+ % else
+ % {
+ % $tab[$i][$ii] = 'Nie';
+ % }
+ % }
<td> <%= $tab[$i][$ii] %> </td>
% }
%= "\n"