3 Einträge, 1 Seite |
1
2
3
4
5
6
<TMPL_LOOP NAME="MAINLOOP">
<b><TMPL_VAR NAME="MAIN"></b><br>
<TMPL_LOOP NAME="SUBLOOP">
<TMPL_VAR NAME="SUBS"><br>
</TMPL_LOOP>
</TMPL_LOOP>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my @mainloopdata = ();
foreach my $main (@mains)
{
my %mainhash = ();
$mainhash{MAIN} = $main->{MAIN};
my @subsloopdata = ();
foreach my subs (@{$main->{SUBS}})
{
my %subhash = ();
$subhash{SUBS} = $subs;
push @subsloopdata, \%subhash;
}
$mainhash{SUBLOOP} = \@subsloopdata;
push @mainloopdata , \%mainhash;
}
$tpl->param(MAINLOOP => \@mainloopdata);
3 Einträge, 1 Seite |