Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 46bc75c8

Von Thomas Heck vor mehr als 12 Jahren hinzugefügt

  • ID 46bc75c8079099de22ccbc6281b04f42ade67f1a
  • Vorgänger 2465e851
  • Nachfolger 6cbad8aa

Date-Input-Felder durch 'L.date_tag's ersetzt

Unterschiede anzeigen:

templates/webpages/acctranscorrections/analyze_filter.html
1 1
[%- USE T8 %]
2 2
[% USE HTML %]
3
[%- USE L %]
3 4
<body>
4 5
 <p><div class="listheading">[% title %]</div></p>
5 6

  
......
25 26
     <td>
26 27
      [% 'Period:' | $T8 %]
27 28
      [% 'from (time)' | $T8 %]
28
      <input name="transdate_from" id="transdate_from" size="10">
29
      <input type="button" name="transdate_from_trigger" id="transdate_from_trigger" value="?">
29
      [% L.date_tag('transdate_from') %]
30 30
      [% 'to (time)' | $T8 %]
31
      <input name="transdate_to" id="transdate_to" size="10">
32
      <input type="button" name="transdate_to_trigger" id="transdate_to_trigger" value="?">
31
      [% L.date_tag('transdate_to') %]
33 32
     </td>
34 33
    </tr>
35 34
   </table>
......
41 40

  
42 41
  <input type="hidden" name="action" value="analyze">
43 42
 </form>
44

  
45
 <script type="text/javascript">
46
  <!--
47
    Calendar.setup({ inputField : "transdate_from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_from_trigger" });
48
    Calendar.setup({ inputField : "transdate_to",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_to_trigger" });
49
  //-->
50
 </script>
51 43
</body>
52 44
</html>
templates/webpages/amcvar/search_filter.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %]
3 4

  
4 5
   [%- FOREACH var = variables %]
......
16 17

  
17 18
     [%- ELSIF var.type == 'date' %]
18 19
     [% 'from (time)' | $T8 %]
19
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_from" id="cvar_[% HTML.escape(var.name) %]_from" size="12">
20
     <input type="button" name="cvar_[% HTML.escape(var.name) %]_from_button" id="cvar_[% HTML.escape(var.name) %]_from_trigger" value="?">
21
     [% 'to (time)' | $T8 %]
22
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_to" id="cvar_[% HTML.escape(var.name) %]_to" size="12">
23
     <input type="button" name="cvar_[% HTML.escape(var.name) %]_to_button" id="cvar_[% HTML.escape(var.name) %]_to_trigger" value="?">
20
     [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_from') %]
24 21

  
25
     <script type="text/javascript">
26
      <!--
27
          Calendar.setup({ inputField : "cvar_[% HTML.escape(var.name) %]_from",
28
                           ifFormat   :"[% myconfig_jsc_dateformat %]",
29
                           align      : "BR",
30
                           button     : "cvar_[% HTML.escape(var.name) %]_from_trigger" });
31
          Calendar.setup({ inputField : "cvar_[% HTML.escape(var.name) %]_to",
32
                           ifFormat   :"[% myconfig_jsc_dateformat %]",
33
                           align      : "BR",
34
                           button     : "cvar_[% HTML.escape(var.name) %]_to_trigger" });
35
        -->
36
     </script>
22
     [% 'to (time)' | $T8 %]
23
     [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_to') %]
37 24

  
38 25
     [%- ELSIF var.type == 'number' %]
39 26
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop">
templates/webpages/ap/search.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
<body>
3 4

  
4 5
 <form method=post name="search" action=[% script %]>
......
70 71
     <tr>
71 72
      <th align=right nowrap>[% 'From' | $T8 %]</th>
72 73
      <td>
73
       <input name=transdatefrom id=transdatefrom size=11 title="dateformat | html %]" onBlur=\"check_right_date_format(this)\">
74
       <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
74
       [% L.date_tag('transdatefrom') %]
75 75
      </td>
76 76
     <th align=right>[% 'Bis' | $T8 %]</th>
77 77
     <td>
78
      <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur=\"check_right_date_format(this)\">
79
      <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
78
      [% L.date_tag('transdateto') %]
80 79
     </td>
81 80
    </tr>
82 81
   <input type=hidden name=sort value=transdate>
......
176 175
 </body>
177 176
 <script type="text/javascript">
178 177
 <!--
179
   Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
180
   Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
181 178
   $(document).ready(function(){
182 179
    focus();
183 180
    setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
templates/webpages/ar/search.html
101 101
     <tr>
102 102
      <th align=right nowrap>[% 'From' | $T8 %]</th>
103 103
      <td>
104
       <input name=transdatefrom id=transdatefrom size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
105
       <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
104
       [% L.date_tag('transdatefrom') %]
106 105
      </td>
107 106
     <th align=right>[% 'Bis' | $T8 %]</th>
108 107
     <td>
109
      <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
110
      <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
108
      [% L.date_tag('transdateto') %]
111 109
     </td>
112 110
    </tr>
113 111
   <input type=hidden name=sort value=transdate>
......
218 216
  </form>
219 217
 <script type="text/javascript">
220 218
 <!--
221
   Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
222
   Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
223 219
   $(document).ready(function(){
224 220
    $('customer').focus();
225 221
    setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
templates/webpages/ct/form_footer.html
35 35

  
36 36
 <script type="text/javascript">
37 37
  <!--
38
      Calendar.setup({ inputField : "from",    ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
39
      Calendar.setup({ inputField : "to",      ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
40
      Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
41

  
42 38
      function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto');  if (s) s.disabled = (used > 0 ? true : false); }
43 39
      function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); }
44 40

  
templates/webpages/ct/form_header.html
318 318
     <tr>
319 319
      <th align="right" nowrap>[% 'From' | $T8 %]</th>
320 320
      <td>
321
       <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
322
       <input type="button" name="fromB" id="trigger_from" value="?">
321
        [% L.date_tag('from',
322
                      from,
323
                      onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
324
        %]
323 325
      </td>
324 326
      <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
325 327
      <td>
326
       <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
327
       <input type="button" name="toB" id="trigger_to" value="?">
328
       [% L.date_tag('to',
329
                      to,
330
                      onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
331
       %]
328 332
      </td>
329 333
     </tr>
330 334

  
......
393 397
      <tr>
394 398
       <td valign="right">[% 'Follow-Up On' | $T8 %]</td>
395 399
       <td>
396
        <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
397
        <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
400
        [% L.date_tag('FU_date', FU_date) %]
398 401
        [% 'for' | $T8 %]
399 402
        [% L.select_tag('FU_created_for_user', L.options_for_select(ALL_EMPLOYEES, default=(FU_created_for_user ? FU_created_for_user : USER.id), title='safe_name')) %]
400 403
       </td>
templates/webpages/do/form_header.html
19 19
        [% IF onload %][% onload %];[% END %]
20 20
        setupDateFormat('[% myconfig_dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
21 21
        setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
22

  
23
        [%- UNLESS delivered %]
24
        Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_trigger" });
25
        [%- END %]
26 22
      }
27 23
    -->
28 24
 </script>
......
47 43
 [%- SET is_customer = '0' %]
48 44
 [%- END %]
49 45
 [%- IF delivered %]
50
 [%- SET RO = ' readonly' %]
51 46
 [%- SET DISABLED = ' disabled' %]
52 47
 [%- END %]
53 48

  
......
292 287
       <tr>
293 288
        <th align="right" nowrap>[% 'Delivery Order Date' | $T8 %]</th>
294 289
        <td nowrap>
295
         <input name="transdate" id="transdate" size="11" title="[% HTML.escape(myconfig_dateformat) %]" value="[% HTML.escape(transdate) %]"
296
                onBlur="check_right_date_format(this)"[% RO %]>
297
         [% UNLESS delivered %]<input type="button" name="b_transdate" id="transdate_trigger" value="?">[% END %]
290
         [% L.date_tag('transdate', transdate, readonly => delivered) %]
298 291
        </td>
299 292
       </tr>
300 293

  
templates/webpages/do/search.html
11 11
 <script type="text/javascript">
12 12
  <!--
13 13
      function on_load() {
14
        Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdatefrom_trigger" });
15
        Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdateto_trigger" });
16 14
        document.Form.donumber.focus();
17 15
      }
18 16
    -->
......
108 106
    <tr>
109 107
     <th align="right">[% 'From' | $T8 %]</th>
110 108
     <td>
111
      <input name="transdatefrom" id="transdatefrom" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
112
      <input type="button" name="transdatefrom_button" id="transdatefrom_trigger" value="?">
109
      [% L.date_tag('transdatefrom') %]
113 110
     </td>
114 111
     <th align="right">[% 'Bis' | $T8 %]</th>
115 112
     <td>
116
      <input name="transdateto" id="transdateto" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
117
      <input type="button" name="transdateto_button" id="transdateto_trigger" value="?">
113
      [% L.date_tag('transdateto') %]
118 114
     </td>
119 115
    </tr>
120 116

  
templates/webpages/do/stock_in_form.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %][% USE LxERP %][% USE JavaScript %]<body[% UNLESS delivered %] onload="on_load();"[% END %]>
3 4

  
4 5
 [%- UNLESS delivered %]
......
129 130
     <td><input name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]"></td>
130 131
     [% IF conf_show_best_before %]
131 132
     <td>
132
       <input name="bestbefore_[% loop.count %]" id="bestbefore_[% loop.count %]" value="[% HTML.escape(row.bestbefore) %]" size="11" title="[% myconfig_dateformat %]">
133
       <input type="button" name="b_bestbefore_[% loop.count %]" id="bestbefore_trigger_[% loop.count %]" value="?">
133
       [% L.date_tag('bestbefore_'_ loop.count, row.bestbefore) %]
134 134
     </td>
135 135
     [% END %]
136 136
     <td><input name="qty_[% loop.count %]" size="12" value="[% HTML.escape(LxERP.format_amount(row.qty)) %]"></td>
......
161 161
   [%- END %]
162 162
  </p>
163 163
 </form>
164

  
165
 [%- IF NOT delivered %]
166
 [% IF conf_show_best_before %]
167
  <script type="text/javascript">
168
    <!--
169
    [%- FOREACH row = STOCK_INFO %]
170
    Calendar.setup( {
171
      inputField : "bestbefore_[% loop.count %]",
172
      ifFormat :"[% myconfig_jsc_dateformat %]",
173
      align : "BR",
174
      button : "bestbefore_trigger_[% loop.count %]"
175
    });
176
    [%- END %]
177
    //-->
178
  </script>
179
  [% END %]
180
  [%- END %]
181

  
182 164
</body>
183 165
</html>
184 166

  
templates/webpages/dunning/search.html
73 73
      <tr>
74 74
       <th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
75 75
       <td>
76
        <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
77
        <input type="button" name="transdatefrom" id="trigger1" value="?">
76
         [% L.date_tag('transdatefrom') %]
78 77
       </td>
79 78
       <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
80 79
       <td>
81
        <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
82
        <input type="button" name="transdateto" id="trigger2" value="?">
80
         [% L.date_tag('transdateto') %]
83 81
       </td>
84 82
      </tr>
85 83

  
86 84
      <tr>
87 85
       <th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
88 86
       <td>
89
        <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
90
        <input type="button" name="dunningfrom" id="trigger3" value="?">
87
        [% L.date_tag('dunningfrom') %]
91 88
       </td>
92 89
       <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
93 90
       <td>
94
        <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
95
        <input type="button" name="dunningto" id="trigger4" value="?">
91
        [% L.date_tag('dunningto') %]
96 92
       </td>
97 93
      </tr>
98 94
      <tr>
......
126 122
  <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
127 123

  
128 124
 </form>
129

  
130
 <script type="text/javascript">
131
  <!--
132
      Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
133
      Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
134
      Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
135
      Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });
136
    -->
137
 </script>
138

  
139 125
</body>
140 126

  
141 127
</html>
templates/webpages/fu/add_edit.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %]<body onload="on_load();">
3 4

  
4 5
 <script type="text/javascript">
5 6
  <!--
6 7
      function on_load() {
7
        Calendar.setup({ inputField : "follow_up_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_trigger" });
8 8
        document.Form.subject.focus();
9 9
      }
10 10
    -->
......
41 41
    <tr>
42 42
     <td valign="right">[% 'Follow-Up Date' | $T8 %]</td>
43 43
     <td>
44
      <input name="follow_up_date" id="follow_up_date" value="[% HTML.escape(follow_up_date) %]" size="12">
45
      <input type="button" name="follow_up_date_button" id="follow_up_date_trigger" value="?">
44
       [% L.date_tag('follow_up_date', follow_up_date) %]
46 45
    </tr>
47 46

  
48 47
    <tr>
templates/webpages/fu/search.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %]
3 4
<body onload="on_load()">
4 5

  
5 6
 <script type="text/javascript">
6 7
  <!--
7 8
      function on_load() {
8
        Calendar.setup({ inputField : "follow_up_date_from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_from_trigger" });
9
        Calendar.setup({ inputField : "follow_up_date_to",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "follow_up_date_to_trigger" });
10
        Calendar.setup({ inputField : "itime_from",          ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "itime_from_trigger" });
11
        Calendar.setup({ inputField : "itime_to",            ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "itime_to_trigger" });
12 9
        document.Form.subject.focus();
13 10
      }
14 11
    -->
......
58 55
     <td align="right">[% 'Follow-Up Date' | $T8 %]</td>
59 56
     <td>
60 57
      [% 'From' | $T8 %]
61
      <input name="follow_up_date_from" id="follow_up_date_from" size="12">
62
      <input type="button" name="follow_up_date_from_button" id="follow_up_date_from_trigger" value="?">
58
      [% L.date_tag('follow_up_date_from') %]
63 59
      [% 'To (time)' | $T8 %]
64
      <input name="follow_up_date_to" id="follow_up_date_to" size="12">
65
      <input type="button" name="follow_up_date_to_button" id="follow_up_date_to_trigger" value="?">
60
      [% L.date_tag('follow_up_date_to') %]
66 61
     </td>
67 62
    </tr>
68 63

  
......
70 65
     <td align="right">[% 'Created on' | $T8 %]</td>
71 66
     <td>
72 67
      [% 'From' | $T8 %]
73
      <input name="itime_from" id="itime_from" size="12">
74
      <input type="button" name="itime_from_button" id="itime_from_trigger" value="?">
68
      [% L.date_tag('itime_from') %]
75 69
      [% 'To (time)' | $T8 %]
76
      <input name="itime_to" id="itime_to" size="12">
77
      <input type="button" name="itime_to_button" id="itime_to_trigger" value="?">
70
      [% L.date_tag('itime_to') %]
78 71
     </td>
79 72
    </tr>
80 73

  
templates/webpages/ic/search.html
1
[%- USE T8 %]
1
%- USE T8 %]
2 2
[%- USE HTML %]
3 3
[%- USE LxERP %]
4
[%- USE L %]
4 5
<body>
5 6

  
6 7
 <form method="post" action="ic.pl">
......
147 148
           <table>
148 149
            <tr>
149 150
             <th>[% 'From' | $T8 %]</th>
150
             <td><input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(dateformat) %]"></td>
151
             <td><input type="button" name="transdatefrom" id="trigger1" value="[% 'button' | $T8 %]"></td>
151
             <td>[% L.date_tag('transdatefrom') %]</td>
152 152
             <th>[% 'To (time)' | $T8 %]</th>
153
             <td><input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]"></td>
154
             <td><input type="button" name="transdateto" name="transdateto" id="trigger2" value="[% 'button' | $T8 %]"></td>
153
             <td>[% L.date_tag('transdateto') %]</td>
155 154
            </tr>
156 155
           </table>
157 156
          </td>
......
297 296
   <tr><td colspan="4"><hr size="3" noshade></td></tr>
298 297
  </table>
299 298

  
300
  <script type="text/javascript">
301
   <!--
302
       Calendar.setup({ inputField : "transdatefrom",  ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
303
       Calendar.setup({ inputField : "transdateto",    ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
304
       //-->
305
  </script>
306

  
307 299
  <p>
308 300
   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
309 301
   <input class="submit" type="submit" name="action" value="[% 'TOP100' | $T8 %]">
templates/webpages/ir/_payments.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3
[%- USE L %]
3 4
  <tr>
4 5
   <td>
5 6
    <table width="100%">
......
42 43

  
43 44
    <td align="center">
44 45
    [% IF $changeable %]
45
      <input id="datepaid_[% i %]" name="datepaid_[% i %]" size="11" title="[% dateformat %]" value="[% $datepaid %]">
46
      <input type="button" name="datepaid_[% i %]" id="trigger_datepaid_[% i %]" value="?">
46
      [% L.date_tag('datepaid_'_ i, $datepaid) %]
47 47
    [% ELSE %]
48 48
      <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]">[% $datepaid %]
49 49
    [% END %]
......
101 101
    </tr>
102 102
  [% IF $changeable %]
103 103
    <script type='text/javascript'>
104
     Calendar.setup({ inputField : "datepaid_[% i %]", ifFormat :"[% myconfig_jsc_dateformat %]", align : "TR", button : "trigger_datepaid_[% i %]" });
105 104
     $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
106 105
     $('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
107 106
    </script>
templates/webpages/is/_payments.html
1
[%- USE LxERP %][% USE T8 %]
1
[%- USE LxERP %]
2
[%- USE T8 %]
3
[%- USE L %]
2 4
  <tr>
3 5
   <td>
4 6
    <table width="100%">
......
43 45
     <tr>
44 46
     <td align="center">
45 47
     [% IF $changeable %]
46
       <input id="datepaid_[% i %]" name="datepaid_[% i %]" size="11" title="[% dateformat %]" value="[% $datepaid %]">
47
       <input type="button" name="datepaid_[% i %]" id="trigger_datepaid_[% i %]" value="?">
48
       [% L.date_tag('datepaid_'_ i, $datepaid) %]
48 49
     [% ELSE %]
49 50
       <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
50 51
     [% END %]
......
105 106
    <tr style='display:none'>
106 107
     <td>
107 108
    <script type='text/javascript'>
108
     Calendar.setup({ inputField : "datepaid_[% i %]", ifFormat :"[% myconfig_jsc_dateformat %]", align : "TR", button : "trigger_datepaid_[% i %]" });
109 109
     $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
110 110
     $('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
111 111
    </script>
templates/webpages/oe/form_footer.html
188 188

  
189 189
    <script type="text/javascript">
190 190
     <!--
191
       Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
192
       Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
193

  
194 191
       $('document').ready(function(){
195 192
         setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
196 193
         setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
templates/webpages/oe/form_header.html
202 202
                     [%- END %]
203 203
                    </th>
204 204
                    <td nowrap>
205
                      <input name=transdate id=transdate size=11 title="[% HTML.escape(dateformat) %]" value="[% transdate %]" onBlur="check_right_date_format(this)">
206
                      <input type=button name=transdate id="trigger1" value="[% 'button' | $T8 %]">
205
                      [% L.date_tag('transdate', transdate) %]
207 206
                    </td>
208 207
                  </tr>
209 208
                  <tr>
......
215 214
                     [%- END %]
216 215
                    </th>
217 216
                    <td nowrap>
218
                      <input name=reqdate id=reqdate size=11 title="[% HTML.escape(dateformat) %]" value="[% reqdate %]" onBlur="check_right_date_format(this)">
219
                      <input type=button name=reqdate id="trigger2" value="[% 'button' | $T8 %]">
217
                      [% L.date_tag('reqdate', reqdate) %]
220 218
                    </td>
221 219
                  </tr>
222 220
                  <tr>
templates/webpages/oe/search.html
82 82
    <tr>
83 83
     <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
84 84
     <td>
85
      <input name="transdatefrom" id="transdatefrom" size="11" title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
86
      <input type="button" name="transdatefrom" id="trigger3" value="?">
85
       [% L.date_tag('transdatefrom') %]
87 86
     </td>
88 87
     <th align="right">[% 'Bis' | $T8 %]</th>
89 88
     <td>
90
      <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
91
      <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
89
      [% L.date_tag('transdateto') %]
92 90
     </td>
93 91
    </tr>
94 92
    <tr>
95 93
     <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
96 94
     <td>
97
      <input name=reqdatefrom id=reqdatefrom size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
98
      <input type=button name=reqdatefrom id="trigger5" value=?>
95
       [% L.date_tag('reqdatefrom') %]
99 96
     </td>
100 97
     <th align="right">[% 'Bis' | $T8 %]</th>
101 98
     <td>
102
      <input name=reqdateto id=reqdateto size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
103
      <input type=button name=reqdateto name=reqdateto id="trigger6" value=?>
99
       [% L.date_tag('reqdateto') %]
104 100
     </td>
105 101
    </tr>
106 102
    <tr>
......
245 241
 </tr>
246 242
</table>
247 243

  
248
<script type="text/javascript">
249
 <!--
250
   Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
251
   Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
252
   Calendar.setup({ inputField : "reqdatefrom",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger5" });
253
   Calendar.setup({ inputField : "reqdateto",     ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger6" });
254
 //-->
255
</script>
256

  
257 244
<br>
258 245
<input type="hidden" name="nextsub" value="orders">
259 246
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
templates/webpages/sepa/bank_transfer_create.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %][% USE LxERP %]
3 4
[% IF vc == 'vendor' %]
4 5
 [% SET is_vendor = 1 %]
......
104 105
      <td><input name="bank_transfers[].reference" value="[% HTML.escape(bank_transfer.reference) %]"></td>
105 106
      <td align="right"><input name="bank_transfers[].amount" value="[% LxERP.format_amount(bank_transfer.amount, -2) %]" style="text-align: right"></td>
106 107
      <td nowrap>
107
       <input name="bank_transfers[].requested_execution_date"
108
              id="requested_execution_date_[% loop.count %]"
109
              value="[% HTML.escape(bank_transfer.requested_execution_date) %]"
110
              size="11">
111
       <input type="button" name="requested_execution_date_[% loop.count %]_trigger" id="requested_execution_date_[% loop.count %]_trigger" value="?">
108
        [% L.date_tag('requested_execution_date_'_ loop.count, bank_transfer.requested_execution_date) %]
112 109
      </td>
113 110
     </tr>
114 111
    [%- END %]
......
128 125
  <input type="hidden" name="confirmation" value="1">
129 126
 </form>
130 127

  
131
 <script type="text/javascript">
132
  <!--
133
    [%- FOREACH row = BANK_TRANSFERS %]
134
     Calendar.setup({ inputField : "requested_execution_date_[% loop.count %]",
135
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
136
                      align      : "BL",
137
                      button     : "requested_execution_date_[% loop.count %]_trigger" });
138
    [%- END %]
139
    -->
140
 </script>
141

  
142 128
</body>
143 129
</html>
templates/webpages/sepa/bank_transfer_edit.html
1 1
[%- USE T8 %]
2 2
[% USE HTML %]
3 3
[% USE LxERP %]
4
[%- USE L %]
4 5
[% IF vc == 'vendor' %]
5 6
 [% SET is_vendor = 1 %]
6 7
 [% SET arap = 'ap' %]
......
46 47
     [%- IF show_post_payments_button %]
47 48
      <th class="listheading" colspan="3">&nbsp;</th>
48 49
      <th class="listheading">
49
       <input name="set_all_execution_date" id="set_all_execution_date" size="11">
50
       <input type="button" name="set_all_execution_date_trigger" id="set_all_execution_date_trigger" value="?">
50
        [% L.date_tag('set_all_execution_date') %]
51 51
      </th>
52 52
     [%- ELSE %]
53 53
      <th class="listheading" colspan="4">&nbsp;</th>
......
82 82
       [%- ELSIF item.export_closed %]
83 83
        [% 'not executed' | $T8 %]
84 84
       [%- ELSE %]
85
        <input name="items[].execution_date" id="execution_date_[% loop.count %]" size="11"
86
               value="[% IF item.requested_execution_date %][% HTML.escape(item.requested_execution_date) %][% ELSE %][% HTML.escape(current_date) %][% END %]">
87
        <input type="button" name="execution_date_[% loop.count %]_trigger" id="execution_date_[% loop.count %]_trigger" value="?">
85
         [% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
88 86
       [%- END %]
89 87
      </td>
90 88
     </tr>
......
116 114
          $(this).attr('checked', checked);
117 115
        });
118 116
      });
119

  
120
      [%- IF show_post_payments_button %]
121
       Calendar.setup({ inputField : "set_all_execution_date",
122
                        ifFormat   : "[% myconfig_jsc_dateformat %]",
123
                        align      : "BL",
124
                        button     : "set_all_execution_date_trigger",
125
                        onUpdate   : set_all_execution_date_fields });
126

  
127
       [%- FOREACH item = export.items %]
128
        [%- IF !item.executed %]
129
         Calendar.setup({ inputField : "execution_date_[% loop.count %]",
130
                          ifFormat   : "[% myconfig_jsc_dateformat %]",
131
                          align      : "BL",
132
                          button     : "execution_date_[% loop.count %]_trigger" });
133
        [%- END %]
134
       [%- END %]
135
      [%- END %]
136 117
    });
137 118
     -->
138 119
  </script>
templates/webpages/sepa/bank_transfer_search.html
1 1
[%- USE T8 %]
2
[% USE HTML %][% USE LxERP %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
3 5
<body>
4 6

  
5 7
 <p><div class="listtop">[% title %]</div></p>
......
20 22
    <tr>
21 23
     <td align="right">[% 'Export date from' | $T8 %]</td>
22 24
     <td>
23
      <input name="f_export_date_from" id="f_export_date_from" size="11">
24
      <input type="button" name="f_export_date_from_trigger" id="f_export_date_from_trigger" value="?">
25
      [% 'to (time)' | $T8 %]
26
      <input name="f_export_date_to" id="f_export_date_to" size="11">
27
      <input type="button" name="f_export_date_to_trigger" id="f_export_date_to_trigger" value="?">
25
       [% L.date_tag('f_export_date_from') %]
26
       [% 'to (time)' | $T8 %]
27
       [% L.date_tag('f_export_date_to') %]
28 28
     </td>
29 29
    </tr>
30 30

  
31 31
    <tr>
32 32
     <td align="right">[% 'Requested execution date from' | $T8 %]</td>
33 33
     <td>
34
      <input name="f_requested_execution_date_from" id="f_requested_execution_date_from" size="11">
35
      <input type="button" name="f_requested_execution_date_from_trigger" id="f_requested_execution_date_from_trigger" value="?">
36
      [% 'to (time)' | $T8 %]
37
      <input name="f_requested_execution_date_to" id="f_requested_execution_date_to" size="11">
38
      <input type="button" name="f_requested_execution_date_to_trigger" id="f_requested_execution_date_to_trigger" value="?">
34
       [% L.date_tag('f_requested_execution_date_from') %]
35
       [% 'to (time)' | $T8 %]
36
       [% L.date_tag('f_requested_execution_date_to') %]
39 37
     </td>
40 38
    </tr>
41 39

  
42 40
    <tr>
43 41
     <td align="right">[% 'Execution date from' | $T8 %]</td>
44 42
     <td>
45
      <input name="f_execution_date_from" id="f_execution_date_from" size="11">
46
      <input type="button" name="f_execution_date_from_trigger" id="f_execution_date_from_trigger" value="?">
47
      [% 'to (time)' | $T8 %]
48
      <input name="f_execution_date_to" id="f_execution_date_to" size="11">
49
      <input type="button" name="f_execution_date_to_trigger" id="f_execution_date_to_trigger" value="?">
43
       [% L.date_tag('f_execution_date_from') %]
44
       [% 'to (time)' | $T8 %]
45
       [% L.date_tag('f_execution_date_to') %]
50 46
     </td>
51 47
    </tr>
52 48

  
......
90 86
   <input type="submit" class="submit" name="action_bank_transfer_list" value="[% 'Continue' | $T8 %]">
91 87
  </p>
92 88
 </form>
93

  
94
 <script type="text/javascript">
95
  <!--
96
     Calendar.setup({ inputField : "f_export_date_from",
97
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
98
                      align      : "BL",
99
                      button     : "f_export_date_from_trigger" });
100
     Calendar.setup({ inputField : "f_export_date_to",
101
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
102
                      align      : "BL",
103
                      button     : "f_export_date_to_trigger" });
104

  
105
     Calendar.setup({ inputField : "f_requested_execution_date_from",
106
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
107
                      align      : "BL",
108
                      button     : "f_requested_execution_date_from_trigger" });
109
     Calendar.setup({ inputField : "f_requested_execution_date_to",
110
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
111
                      align      : "BL",
112
                      button     : "f_requested_execution_date_to_trigger" });
113

  
114
     Calendar.setup({ inputField : "f_execution_date_from",
115
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
116
                      align      : "BL",
117
                      button     : "f_execution_date_from_trigger" });
118
     Calendar.setup({ inputField : "f_execution_date_to",
119
                      ifFormat   : "[% myconfig_jsc_dateformat %]",
120
                      align      : "BL",
121
                      button     : "f_execution_date_to_trigger" });
122

  
123
    -->
124
 </script>
125

  
126 89
</body>
127 90
</html>
templates/webpages/vk/search_invoice.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
<body>
3 4

  
4 5
 <form method=post name="search_invoice" action=[% script %]>
......
195 196
     <tr>
196 197
      <th align=right nowrap>[% 'Invoice Date' | $T8 %] [% 'From' | $T8 %]</th>
197 198
      <td>
198
       <input name=transdatefrom id=transdatefrom size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
199
       <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
199
        [% L.date_tag('transdatefrom') %]
200 200
      </td>
201 201
     <th align=right>[% 'Bis' | $T8 %]</th>
202 202
     <td>
203
      <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
204
      <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
203
       [% L.date_tag('transdateto') %]
205 204
     </td>
206 205
    </tr>
207 206
    <tr>
......
296 295
  </form>
297 296
 <script type="text/javascript">
298 297
 <!--
299
   Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
300
   Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
301 298
   $(document).ready(function(){
302 299
    $('customer').focus();
303 300
    setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
templates/webpages/wh/journal_filter.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %][% USE JavaScript %]<body onload="on_load();">
3 4

  
4 5
 <script type="text/javascript">
......
109 110
       <tr>
110 111
        <th align="right" nowrap>[% 'Best Before' | $T8 %]:</th>
111 112
        <td>
112
         <input name="bestbefore" id="bestbefore" size="11" title="[% myconfig_dateformat %]">
113
         <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
113
          [% L.date_tag('bestbefore') %]
114 114
        </td>
115 115
       </tr>
116 116
       [% END %]
......
132 132
       <tr>
133 133
        <th align="right" nowrap>[% 'From Date' | $T8 %]</th>
134 134
        <td>
135
         <input name="fromdate" id="fromdate" size="11" title="[% myconfig_dateformat %]">
136
         <input type="button" name="b_fromdate" id="fromdate_trigger" value="?">
135
          [% L.date_tag('fromdate') %]
137 136
        </td>
138 137
       </tr>
139 138
       <tr>
140 139
        <th align="right">[% 'To Date' | $T8 %]</th>
141 140
        <td>
142
         <input name="todate" id="todate" size="11" title="[% myconfig_dateformat %]">
143
         <input type="button" name="b_todate" id="todate_trigger" value="?">
141
          [% L.date_tag('todate') %]
144 142
        </td>
145 143
       </tr>
146 144
      </table>
......
211 209
  </p>
212 210
 </form>
213 211

  
214
  <script type="text/javascript">
215
    <!--
216
    [% IF conf_show_best_before %]
217
    Calendar.setup( {
218
      inputField : "bestbefore",
219
      ifFormat :"[% myconfig_jsc_dateformat %]",
220
      align : "BR",
221
      button : "bestbefore_trigger"
222
    });
223
    [% END %]
224

  
225
    Calendar.setup( {
226
      inputField : "fromdate",
227
      ifFormat :"[% myconfig_jsc_dateformat %]",
228
      align : "BR",
229
      button : "fromdate_trigger"
230
    });
231

  
232
     Calendar.setup( {
233
      inputField : "todate",
234
      ifFormat :"[% myconfig_jsc_dateformat %]",
235
      align : "BL",
236
      button : "todate_trigger"
237
    });
238
     //-->
239
  </script>
240

  
241 212
</body>
242 213
</html>
templates/webpages/wh/report_filter.html
110 110
       <tr>
111 111
        <th align="right" nowrap>[% 'Best Before' | $T8 %]:</th>
112 112
        <td>
113
         <input name="bestbefore" id="bestbefore" size="11" title="[% myconfig_dateformat %]">
114
         <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
113
          [% L.date_tag('bestbefore') %]
115 114
        </td>
116 115
       </tr>
117 116
       [% END %]
......
195 194
  </p>
196 195
 </form>
197 196

  
198
 [% IF conf_show_best_before %]
199
 <script type="text/javascript">
200
   <!--
201
     Calendar.setup( {
202
     inputField : "bestbefore",
203
     ifFormat :"[% myconfig_jsc_dateformat %]",
204
     align : "BR",
205
     button : "bestbefore_trigger"
206
     });
207
   //-->
208
 </script>
209
 [% END %]
210

  
211 197
</body>
212 198
</html>
templates/webpages/wh/warehouse_selection.html
1 1
[%- USE T8 %]
2 2
[%- USE HTML %]
3
[%- USE L %]
3 4
[% USE JavaScript %]<body onload="on_load();">
4 5

  
5 6
 <script type="text/javascript" src="js/common.js"></script>
......
122 123
    <tr>
123 124
     <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
124 125
     <td>
125
       <input name="bestbefore" id="bestbefore" size="11" title="[% myconfig_dateformat %]">
126
       <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
126
       [% L.date_tag('bestbefore') %]
127 127
     </td>
128 128
    </tr>
129 129
    [% END %]
......
140 140
  </p>
141 141
 </form>
142 142

  
143
 [% IF conf_show_best_before %]
144
 <script type="text/javascript">
145
   <!--
146
     Calendar.setup( {
147
     inputField : "bestbefore",
148
     ifFormat :"[% myconfig_jsc_dateformat %]",
149
     align : "BR",
150
     button : "bestbefore_trigger"
151
     });
152
   //-->
153
 </script>
154
 [% END %]
155

  
156 143
</body>
157 144
</html>
templates/webpages/wh/warehouse_selection_assembly.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %][% USE JavaScript %][% USE LxERP %]<body onload="on_load(); [% onload %]">
3 4

  
4 5
 <script type="text/javascript" src="js/common.js"></script>
......
110 111
    <tr>
111 112
     <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
112 113
     <td>
113
       <input name="bestbefore" id="bestbefore" size="11" value="[% HTML.escape(bestbefore) %]" title="[% myconfig_dateformat %]">
114
       <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
114
      [% L.date_tag('bestbefore', bestbefore) %]
115 115
     </td>
116 116
    </tr>
117 117
    [% END %]
......
142 142
  </p>
143 143
 </form>
144 144

  
145
 [% IF conf_show_best_before %]
146
 <script type="text/javascript">
147
   <!--
148
     Calendar.setup( {
149
     inputField : "bestbefore",
150
     ifFormat :"[% myconfig_jsc_dateformat %]",
151
     align : "BR",
152
     button : "bestbefore_trigger"
153
     });
154
   //-->
155
 </script>
156
 [% END %]
157

  
158 145
</body>
159 146
</html>
templates/webpages/wh/warehouse_selection_stock.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2 3
[% USE HTML %][% USE JavaScript %][% USE LxERP %]<body onload="on_load(); [% onload %]">
3 4

  
4 5
 <script type="text/javascript" src="js/common.js"></script>
......
110 111
    <tr>
111 112
     <th align="right" nowrap>[% 'Best Before' | $T8 %]</th>
112 113
     <td>
113
       <input name="bestbefore" id="bestbefore" size="11" value="[% HTML.escape(bestbefore) %]" title="[% myconfig_dateformat %]">
114
       <input type="button" name="b_bestbefore" id="bestbefore_trigger" value="?">
114
       [% L.date_tag('bestbefore', bestbefore) %]
115 115
     </td>
116 116
    </tr>
117 117
    [% END %]
......
145 145
   <input type="submit" class="submit" name="action" value="[% 'Stock' | $T8 %]">
146 146
   [%- END %]
147 147
  </p>
148
 </form>
149

  
150
 [% IF conf_show_best_before %]
151
 <script type="text/javascript">
152
   <!--
153
     Calendar.setup( {
154
     inputField : "bestbefore",
155
     ifFormat :"[% myconfig_jsc_dateformat %]",
156
     align : "BR",
157
     button : "bestbefore_trigger"
158
     });
159
   //-->
160
 </script>
161
  [% END %]
162

  
148
 </form> 
149
 
163 150
</body>
164 151
</html>

Auch abrufbar als: Unified diff