Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 421d94f7

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID 421d94f7bdf16a8dc8addc7f4f7ba556b6cb7468
  • Vorgänger b36ceb76
  • Nachfolger 858ce394

Umstellung einiger Vorlagen von HTML::Template auf Template.

Unterschiede anzeigen:

bin/mozilla/oe.pl
1087 1087
  }
1088 1088

  
1089 1089
  $report->set_options('top_info_text'        => join("\n", @options),
1090
                       'raw_top_info_text'    => $form->parse_html_template('oe/orders_top'),
1091
                       'raw_bottom_info_text' => $form->parse_html_template('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
1090
                       'raw_top_info_text'    => $form->parse_html_template2('oe/orders_top'),
1091
                       'raw_bottom_info_text' => $form->parse_html_template2('oe/orders_bottom', { 'SHOW_CONTINUE_BUTTON' => $allow_multiple_orders }),
1092 1092
                       'output_format'        => 'HTML',
1093 1093
                       'title'                => $form->{title},
1094 1094
                       'attachment_basename'  => $attachment_basename . strftime('_%Y%m%d', localtime time),
......
1840 1840
  $form->{VARIABLES} = [ map { { "key" => $_, "value" => $form->{$_} } } grep { ref $_ eq "" } keys %{ $form } ];
1841 1841

  
1842 1842
  $form->header();
1843
  print $form->parse_html_template("oe/check_for_direct_delivery");
1843
  print $form->parse_html_template2("oe/check_for_direct_delivery");
1844 1844

  
1845 1845
  $lxdebug->leave_sub();
1846 1846

  
templates/webpages/oe/check_for_direct_delivery_de.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3 3
 <div class="listtop" width="100%">Lieferadresse &uuml;bernehmen</div>
4 4

  
......
8 8
  <table>
9 9
   <tr>
10 10
    <th align="right" valign="top">Name:</th>
11
    <td valign="top"><TMPL_VAR CFDD_shiptoname ESCAPE=HTML></td>
11
    <td valign="top">[% HTML.escape(CFDD_shiptoname) %]</td>
12 12
   </tr>
13 13

  
14 14
   <tr>
15 15
    <th align="right" valign="top">Abteilung:</th>
16
    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_1 ESCAPE=HTML></td>
16
    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_1) %]</td>
17 17
   </tr>
18 18

  
19 19
   <tr>
20 20
    <th align="right" valign="top">&nbsp;</th>
21
    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_2 ESCAPE=HTML></td>
21
    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_2) %]</td>
22 22
   </tr>
23 23

  
24 24
   <tr>
25 25
    <th align="right" valign="top">Stra?e:</th>
26
    <td valign="top"><TMPL_VAR CFDD_shiptostreet ESCAPE=HTML></td>
26
    <td valign="top">[% HTML.escape(CFDD_shiptostreet) %]</td>
27 27
   </tr>
28 28

  
29 29
   <tr>
30 30
    <th align="right" valign="top">PLZ:</th>
31
    <td valign="top"><TMPL_VAR CFDD_shiptozipcode ESCAPE=HTML></td>
31
    <td valign="top">[% HTML.escape(CFDD_shiptozipcode) %]</td>
32 32
   </tr>
33 33

  
34 34
   <tr>
35 35
    <th align="right" valign="top">Stadt:</th>
36
    <td valign="top"><TMPL_VAR CFDD_shiptocity ESCAPE=HTML></td>
36
    <td valign="top">[% HTML.escape(CFDD_shiptocity) %]</td>
37 37
   </tr>
38 38

  
39 39
   <tr>
40 40
    <th align="right" valign="top">Land:</th>
41
    <td valign="top"><TMPL_VAR CFDD_shiptocountry ESCAPE=HTML></td>
41
    <td valign="top">[% HTML.escape(CFDD_shiptocountry) %]</td>
42 42
   </tr>
43 43

  
44 44
   <tr>
45 45
    <th align="right" valign="top">Kontakt:</th>
46
    <td valign="top"><TMPL_VAR CFDD_shiptocontact ESCAPE=HTML></td>
46
    <td valign="top">[% HTML.escape(CFDD_shiptocontact) %]</td>
47 47
   </tr>
48 48

  
49 49
   <tr>
50 50
    <th align="right" valign="top">Telefon:</th>
51
    <td valign="top"><TMPL_VAR CFDD_shiptophone ESCAPE=HTML></td>
51
    <td valign="top">[% HTML.escape(CFDD_shiptophone) %]</td>
52 52
   </tr>
53 53

  
54 54
   <tr>
55 55
    <th align="right" valign="top">Fax:</th>
56
    <td valign="top"><TMPL_VAR CFDD_shiptofax ESCAPE=HTML></td>
56
    <td valign="top">[% HTML.escape(CFDD_shiptofax) %]</td>
57 57
   </tr>
58 58

  
59 59
   <tr>
60 60
    <th align="right" valign="top">eMail:</th>
61
    <td valign="top"><TMPL_VAR CFDD_shiptoemail ESCAPE=HTML></td>
61
    <td valign="top">[% HTML.escape(CFDD_shiptoemail) %]</td>
62 62
   </tr>
63 63
  </table>
64 64
 </p>
......
76 76
  <input type="hidden" name="yes_nextsub" value="check_for_direct_delivery_yes">
77 77
  <input type="hidden" name="no_nextsub" value="check_for_direct_delivery_no">
78 78

  
79
  <TMPL_LOOP VARIABLES>
80
   <input type="hidden" name="<TMPL_VAR key ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP>
79
  [%- FOREACH row = VARIABLES %]
80
  <input type="hidden" name="[% HTML.escape(row.key) %]" value="[% HTML.escape(row.value) %]">
81
  [%- END %]
81 82

  
82 83
 </form>
83 84

  
templates/webpages/oe/check_for_direct_delivery_master.html
1
<body>
1
[% USE HTML %]<body>
2 2

  
3 3
 <div class="listtop" width="100%"><translate>Carry over shipping address</translate></div>
4 4

  
......
8 8
  <table>
9 9
   <tr>
10 10
    <th align="right" valign="top"><translate>Name</translate>:</th>
11
    <td valign="top"><TMPL_VAR CFDD_shiptoname ESCAPE=HTML></td>
11
    <td valign="top">[% HTML.escape(CFDD_shiptoname) %]</td>
12 12
   </tr>
13 13

  
14 14
   <tr>
15 15
    <th align="right" valign="top"><translate>Department</translate>:</th>
16
    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_1 ESCAPE=HTML></td>
16
    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_1) %]</td>
17 17
   </tr>
18 18

  
19 19
   <tr>
20 20
    <th align="right" valign="top">&nbsp;</th>
21
    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_2 ESCAPE=HTML></td>
21
    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_2) %]</td>
22 22
   </tr>
23 23

  
24 24
   <tr>
25 25
    <th align="right" valign="top"><translate>Street</translate>:</th>
26
    <td valign="top"><TMPL_VAR CFDD_shiptostreet ESCAPE=HTML></td>
26
    <td valign="top">[% HTML.escape(CFDD_shiptostreet) %]</td>
27 27
   </tr>
28 28

  
29 29
   <tr>
30 30
    <th align="right" valign="top"><translate>Zipcode</translate>:</th>
31
    <td valign="top"><TMPL_VAR CFDD_shiptozipcode ESCAPE=HTML></td>
31
    <td valign="top">[% HTML.escape(CFDD_shiptozipcode) %]</td>
32 32
   </tr>
33 33

  
34 34
   <tr>
35 35
    <th align="right" valign="top"><translate>City</translate>:</th>
36
    <td valign="top"><TMPL_VAR CFDD_shiptocity ESCAPE=HTML></td>
36
    <td valign="top">[% HTML.escape(CFDD_shiptocity) %]</td>
37 37
   </tr>
38 38

  
39 39
   <tr>
40 40
    <th align="right" valign="top"><translate>Country</translate>:</th>
41
    <td valign="top"><TMPL_VAR CFDD_shiptocountry ESCAPE=HTML></td>
41
    <td valign="top">[% HTML.escape(CFDD_shiptocountry) %]</td>
42 42
   </tr>
43 43

  
44 44
   <tr>
45 45
    <th align="right" valign="top"><translate>Contact</translate>:</th>
46
    <td valign="top"><TMPL_VAR CFDD_shiptocontact ESCAPE=HTML></td>
46
    <td valign="top">[% HTML.escape(CFDD_shiptocontact) %]</td>
47 47
   </tr>
48 48

  
49 49
   <tr>
50 50
    <th align="right" valign="top"><translate>Phone</translate>:</th>
51
    <td valign="top"><TMPL_VAR CFDD_shiptophone ESCAPE=HTML></td>
51
    <td valign="top">[% HTML.escape(CFDD_shiptophone) %]</td>
52 52
   </tr>
53 53

  
54 54
   <tr>
55 55
    <th align="right" valign="top"><translate>Fax</translate>:</th>
56
    <td valign="top"><TMPL_VAR CFDD_shiptofax ESCAPE=HTML></td>
56
    <td valign="top">[% HTML.escape(CFDD_shiptofax) %]</td>
57 57
   </tr>
58 58

  
59 59
   <tr>
60 60
    <th align="right" valign="top"><translate>E-mail</translate>:</th>
61
    <td valign="top"><TMPL_VAR CFDD_shiptoemail ESCAPE=HTML></td>
61
    <td valign="top">[% HTML.escape(CFDD_shiptoemail) %]</td>
62 62
   </tr>
63 63
  </table>
64 64
 </p>
......
76 76
  <input type="hidden" name="yes_nextsub" value="check_for_direct_delivery_yes">
77 77
  <input type="hidden" name="no_nextsub" value="check_for_direct_delivery_no">
78 78

  
79
  <TMPL_LOOP VARIABLES>
80
   <input type="hidden" name="<TMPL_VAR key ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP>
79
  [%- FOREACH row = VARIABLES %]
80
  <input type="hidden" name="[% HTML.escape(row.key) %]" value="[% HTML.escape(row.value) %]">
81
  [%- END %]
81 82

  
82 83
 </form>
83 84

  
templates/webpages/oe/orders_bottom_de.html
1
<TMPL_IF SHOW_CONTINUE_BUTTON>
1
[% USE HTML %]
2
 [%- IF SHOW_CONTINUE_BUTTON %]
2 3
 Neuer Auftrag<br>
3 4
 <input class="submit" type="submit" name="action" value="Weiter">
4
</TMPL_IF>
5
 [%- END %]
5 6
 <input type="hidden" name="nextsub" value="edit">
6
 <input type="hidden" name="type" value="<TMPL_VAR type ESCAPE=HTML>">
7
 <input type="hidden" name="vc" value="<TMPL_VAR vc ESCAPE=HTML>">
8
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
9
 <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
10
 <input type="hidden" name="callback" value="<TMPL_VAR callback ESCAPE=HTML>">
11
 <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount ESCAPE=HTML>">
7
 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
8
 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
9
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
10
 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
11
 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
12
 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
12 13
</form>
templates/webpages/oe/orders_bottom_master.html
1
<TMPL_IF SHOW_CONTINUE_BUTTON>
1
[% USE HTML %]
2
 [%- IF SHOW_CONTINUE_BUTTON %]
2 3
 <translate>New sales order</translate><br>
3 4
 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">
4
</TMPL_IF>
5
 [%- END %]
5 6
 <input type="hidden" name="nextsub" value="edit">
6
 <input type="hidden" name="type" value="<TMPL_VAR type ESCAPE=HTML>">
7
 <input type="hidden" name="vc" value="<TMPL_VAR vc ESCAPE=HTML>">
8
 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
9
 <input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
10
 <input type="hidden" name="callback" value="<TMPL_VAR callback ESCAPE=HTML>">
11
 <input type="hidden" name="rowcount" value="<TMPL_VAR rowcount ESCAPE=HTML>">
7
 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
8
 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
9
 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
10
 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
11
 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
12
 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
12 13
</form>

Auch abrufbar als: Unified diff