Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 21535676

Von Sven Schöling vor fast 17 Jahren hinzugefügt

  • ID 215356761a7aa1afd6d77be3aa1997bac9cf6d0e
  • Vorgänger 9198a414
  • Nachfolger 83e061c0

Confirm Priceupdate auf Templates umgestellt

Unterschiede anzeigen:

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/\"/&quot;/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
}
templates/webpages/ic/confirm_price_update_de.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
<body>
4

  
5
<form method=post action="[% script %]">
6

  
7
[%- FOREACH row = HIDDENS %]
8
   <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" > 
9
[%- END %]
10

  
11
<h2 class=confirm>Best?tigen Sie!</h2>
12

  
13
<h4>Sind Sie sicher, dass Sie die Preise 
14
aktualisieren wollen?</h4>
15

  
16
<p>
17
<input name=action class=submit type=submit value="Weiter">
18
</form>
templates/webpages/ic/confirm_price_update_master.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
<body>
4

  
5
<form method=post action="[% script %]">
6

  
7
[%- FOREACH row = HIDDENS %]
8
   <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" > 
9
[%- END %]
10

  
11
<h2 class=confirm><translate>Confirm!</translate></h2>
12

  
13
<h4><translate>Are you sure you want to update the prices</translate></h4>
14

  
15
<p>
16
<input name=action class=submit type=submit value="<translate>Continue</translate>">
17
</form>

Auch abrufbar als: Unified diff