Revision 21535676
Von Sven Schöling vor fast 17 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
120 | 120 |
sub confirm_price_update { |
121 | 121 |
$lxdebug->enter_sub(); |
122 | 122 |
|
123 |
|
|
124 | 123 |
$form->{nextsub} = "update_prices"; |
125 | 124 |
$form->header; |
126 | 125 |
|
127 |
print qq| |
|
128 |
<body> |
|
129 |
|
|
130 |
<form method=post action=$form->{script}> |
|
131 |
|; |
|
132 |
|
|
133 |
# delete action variable |
|
134 | 126 |
map { delete $form->{$_} } qw(action header); |
135 |
|
|
136 |
foreach my $key (keys %$form) { |
|
137 |
$form->{$key} =~ s/\"/"/g; |
|
138 |
print qq|<input type=hidden name=$key value="$form->{$key}">\n|; |
|
139 |
} |
|
140 |
|
|
141 |
print qq| |
|
142 |
<h2 class=confirm>| . $locale->text('Confirm!') . qq|</h2> |
|
143 |
|
|
144 |
<h4>| . $locale->text('Are you sure you want to update the prices') . qq| </h4> |
|
145 |
|
|
146 |
<p> |
|
147 |
<input name=action class=submit type=submit value="| . $locale->text('Continue') . qq|"> |
|
148 |
</form> |
|
149 |
|; |
|
127 |
|
|
128 |
print $form->parse_html_template('ic/confirm_price_update', { HIDDENS => [ map { name => $_, value => $form->{$_} }, keys %$form ] }); |
|
150 | 129 |
|
151 | 130 |
$lxdebug->leave_sub(); |
152 | 131 |
} |
Auch abrufbar als: Unified diff
Confirm Priceupdate auf Templates umgestellt