summaryrefslogtreecommitdiffstats
path: root/views/a.tt
diff options
context:
space:
mode:
authorJon Doe <you@example.com>2013-03-19 17:38:07 -0400
committerJon Doe <you@example.com>2013-03-19 17:38:07 -0400
commit8179e55fe0df90b3316a88b4f85073c11b43388e (patch)
tree9f7e9ea1227778aa240adf113af2ec0916cbe2fa /views/a.tt
parent022f4e34f25216d96c26556b44a4b588ac7f7e67 (diff)
downloadBiblioteka-8179e55fe0df90b3316a88b4f85073c11b43388e.tar.gz
Biblioteka-8179e55fe0df90b3316a88b4f85073c11b43388e.tar.bz2
Biblioteka-8179e55fe0df90b3316a88b4f85073c11b43388e.tar.xz
Biblioteka-8179e55fe0df90b3316a88b4f85073c11b43388e.zip
Poprawion blad przy wyswietlaniu ksiazek,
Dodano informacje o dostepnosci ksiazki i mozliwosci wypozyczenia w postaci Tak/Nie zamiast 0/1
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"