Revision 9f795a10
Von Sven Schöling vor fast 17 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
2069 | 2069 |
|
2070 | 2070 |
my ($numrows) = @_; |
2071 | 2071 |
|
2072 |
print qq| |
|
2073 |
<tr> |
|
2074 |
<td> |
|
2075 |
<table width=100%> |
|
2076 |
<tr> |
|
2077 |
<th class="listheading">| . $locale->text('Preisklasse') . qq|</th> |
|
2078 |
<th class="listheading">| . $locale->text('Preis') . qq|</th> |
|
2079 |
</tr> |
|
2080 |
|; |
|
2081 |
for my $i (1 .. $numrows) { |
|
2082 |
print qq| |
|
2083 |
<tr> |
|
2084 |
<td width=50%><input type=hidden name="pricegroup_$i" size=30 value="$form->{"pricegroup_$i"}">$form->{"pricegroup_$i"}</td> |
|
2085 |
<td width=50%><input name="price_$i" size=11 value="$form->{"price_$i"}"></td> |
|
2086 |
<input type=hidden name="pricegroup_id_$i" value="$form->{"pricegroup_id_$i"}"> |
|
2087 |
</tr> |
|
2088 |
|; |
|
2089 |
} |
|
2072 |
my @PRICES = map +{ |
|
2073 |
pricegroup => $form->{"pricegroup_$_"}, |
|
2074 |
pricegroup_id => $form->{"pricegroup_id_$_"}, |
|
2075 |
price => $form->{"price_$_"}, |
|
2076 |
}, 1 .. $numrows; |
|
2090 | 2077 |
|
2091 |
print qq| |
|
2092 |
</table> |
|
2093 |
</td> |
|
2094 |
</tr> |
|
2095 |
|; |
|
2078 |
print $form->parse_html_template('ic/price_row', { PRICES => \@PRICES }); |
|
2096 | 2079 |
|
2097 | 2080 |
$lxdebug->leave_sub(); |
2098 | 2081 |
} |
templates/webpages/ic/price_row_de.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- IF PRICES.count %] |
|
3 |
<tr> |
|
4 |
<td> |
|
5 |
<table width=100%> |
|
6 |
<tr> |
|
7 |
<th class="listheading">Preisgruppe</th> |
|
8 |
<th class="listheading">Preis</th> |
|
9 |
</tr> |
|
10 |
[%- FOREACH row = PRICES %] |
|
11 |
<tr> |
|
12 |
<td width=50%><input type=hidden name="pricegroup_[% loop.count %]" size=30 value="[% HTML.escape(row.pricegroup) %]">[% HTML.escape(row.pricegroup) %]</td> |
|
13 |
<td width=50%><input name="price_[% loop.count %]" size=11 value="[% HTML.escape(row.price) %]"></td> |
|
14 |
<input type=hidden name="pricegroup_id_[% loop.count %]" value="[% HTML.escape(row.pricegroup_id) %]"> |
|
15 |
</tr> |
|
16 |
[%- END %] |
|
17 |
</table> |
|
18 |
</td> |
|
19 |
</tr> |
|
20 |
[%- END %] |
templates/webpages/ic/price_row_master.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- IF PRICES.count %] |
|
3 |
<tr> |
|
4 |
<td> |
|
5 |
<table width=100%> |
|
6 |
<tr> |
|
7 |
<th class="listheading"><translate>Preisklasse</translate></th> |
|
8 |
<th class="listheading"><translate>Preis</translate></th> |
|
9 |
</tr> |
|
10 |
[%- FOREACH row = PRICES %] |
|
11 |
<tr> |
|
12 |
<td width=50%><input type=hidden name="pricegroup_[% loop.count %]" size=30 value="[% HTML.escape(row.pricegroup) %]">[% HTML.escape(row.pricegroup) %]</td> |
|
13 |
<td width=50%><input name="price_[% loop.count %]" size=11 value="[% HTML.escape(row.price) %]"></td> |
|
14 |
<input type=hidden name="pricegroup_id_[% loop.count %]" value="[% HTML.escape(row.pricegroup_id) %]"> |
|
15 |
</tr> |
|
16 |
[%- END %] |
|
17 |
</table> |
|
18 |
</td> |
|
19 |
</tr> |
|
20 |
[%- END %] |
Auch abrufbar als: Unified diff
Warendialog -> Preisgruppen in Template ausgelagert.
Template blendet die komplette Tabelle aus, wenn keine Preisgruppen gefunden werden.