Leser: 2
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
<table border=1>
<!-- TMPL_LOOP NAME=schleifeX -->
<tr>
<!-- TMPL_LOOP NAME=schleifeY -->
<td><img src="../../pics/<!-- TMPL_VAR NAME=NUMBER -->/<!-- TMPL_VAR NAME=inhalt -->"</td>
<!-- /TMPL_LOOP -->
</tr>
<!-- /TMPL_LOOP -->
</table>
1
2
3
4
5
6
7
8
9
10
for my $i (0..$#files) {
if ($i % $width == 0) { # new row, append to dimension X
push (@images, { schleifeY => [ { inhalt => $files[$i] } ,{ NUMBER => $ziel } ] } );
}
else { # new column, append to dimension Y
push (@{ $images[-1]->{schleifeY} }, { inhalt => $files[$i] } ,{ NUMBER => $ziel } );
} # else
} # for
$template->param(schleifeX => \@images);
1
2
3
4
5
6
7
my $row = -1;
for my $i (0..$#files) {
my $modulo = $i % $width;
$row++ if 0 == $modulo; # start a new row
$images[$row]->{schleifeY}->[$modulo]->{inhalt} = $files[$i];
} # for
1
2
3
4
5
6
7
8
9
10
for my $i (0..$#files) {
if ($i % $width == 0) { # new row, append to dimension X
push (@images, { schleifeY => [ { inhalt => $files[$i], NUMBER => $ziel } ] } );
}
else { # new column, append to dimension Y
push (@{ $images[-1]->{schleifeY} }, { inhalt => $files[$i], NUMBER => $ziel } );
} # else
} # for
$template->param(schleifeX => \@images);
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |