Thread bilder sortieren die 2. (4 answers)
Opened by misuzu at 2004-02-23 16:27

renee
 2004-02-23 16:36
#80290 #80290
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
chdir("img/db/$result[1]/mn");

my(@bilder);

push (@bilder, glob "*.jpg");
push (@bilder, glob "*.gif");

print '<table><tr>';
my $check = 1;
foreach my $bild(@bilder){
 print '<td><img src="img/db/'.$result[1].'/mn/'.$bild.'"></td>';
 if($check == 2){
   print '</tr><tr>';
   $check = 0;
 }
 $check++
}
if($check == 1){
 print '<td>&nbsp;</td>';
}
print '</tr></table>';
\n\n

<!--EDIT|renee|1077547008-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread bilder sortieren die 2.