Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision be4e11d3

Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt

  • ID be4e11d36f40d90622fdf35eb07ab207422b5455
  • Vorgänger bb79df1e
  • Nachfolger 25160f38

Überprüfen auf korrekte Eingaben eingepflegt. (common.js check_right_date_format usw)

Unterschiede anzeigen:

bin/mozilla/ap.pl
461 461

  
462 462
    # with JavaScript Calendar
463 463
    $button1 = qq|
464
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}> $readonly</td>
464
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"> $readonly</td>
465 465
       <td><input type=button name=transdate id="trigger1" value=|
466 466
      . $locale->text('button') . qq|></td>
467 467
       |;
468 468
    $button2 = qq|
469
       <td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}> $readonly</td>
469
       <td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate} onBlur=\"check_right_date_format(this)\"> $readonly</td>
470 470
       <td><input type=button name=duedate id="trigger2" value=|
471 471
      . $locale->text('button') . qq|></td></td>
472 472
     |;
......
479 479

  
480 480
    # without JavaScript Calendar
481 481
    $button1 =
482
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}> $readonly</td>|;
482
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"> $readonly</td>|;
483 483
    $button2 =
484
      qq|<td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}> $readonly</td>|;
484
      qq|<td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate} onBlur=\"check_right_date_format(this)\"> $readonly</td>|;
485 485
  }
486

  
486
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
487 487
  $form->header;
488

  
488
  $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
489
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
489 490
  print qq|
490
<body>
491
<body onLoad="$onload">
491 492

  
492 493
<form method=post action=$form->{script}>
493 494

  
......
775 776
|;
776 777

  
777 778
    $column_data{"paid_$i"} =
778
      qq|<td align=center><input name="paid_$i" size=11 value=$form->{"paid_$i"}></td>|;
779
      qq|<td align=center><input name="paid_$i" size=11 value=$form->{"paid_$i"} onBlur=\"check_right_number_format(this)\"></td>|;
779 780
    $column_data{"AP_paid_$i"} =
780 781
      qq|<td align=center>${selectAP_paid}</td>|;
781 782
    $column_data{"exchangerate_$i"} = qq|<td align=center>$exchangerate</td>|;
782 783
    $column_data{"datepaid_$i"}     =
783
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 title="($myconfig{'dateformat'})" value=$form->{"datepaid_$i"}>
784
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 title="($myconfig{'dateformat'})" value=$form->{"datepaid_$i"} onBlur=\"check_right_date_format(this)\">
784 785
         <input type="button" name="datepaid_$i" id="trigger_datepaid_$i" value="?"></td>|;
785 786
    $column_data{"source_$i"} =
786 787
      qq|<td align=center><input name="source_$i" size=11 value="$form->{"source_$i"}"></td>|;
......
1207 1208

  
1208 1209
    # with JavaScript Calendar
1209 1210
    $button1 = qq|
1210
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}">
1211
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
1211 1212
       <input type=button name=transdatefrom id="trigger1" value=|
1212 1213
      . $locale->text('button') . qq|></td>
1213 1214
      |;
1214 1215
    $button2 = qq|
1215
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}">
1216
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
1216 1217
       <input type=button name=transdateto name=transdateto id="trigger2" value=|
1217 1218
      . $locale->text('button') . qq|></td>
1218 1219
     |;
......
1225 1226

  
1226 1227
    # without JavaScript Calendar
1227 1228
    $button1 = qq|
1228
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|;
1229
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
1229 1230
    $button2 = qq|
1230
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|;
1231
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
1231 1232
  }
1232 1233

  
1233 1234
  $form->get_lists("projects" => { "key" => "ALL_PROJECTS",
......
1242 1243
  my $projectnumber =
1243 1244
    NTI($cgi->popup_menu('-name' => 'project_id', '-values' => \@values,
1244 1245
                         '-labels' => \%labels));
1245

  
1246
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
1246 1247
  $form->header;
1247

  
1248
  $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
1249
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
1248 1250
  print qq|
1249
<body>
1251
<body onLoad="$onload">
1250 1252

  
1251 1253
<form method=post action=$form->{script}>
1252 1254

  
bin/mozilla/ar.pl
102 102
  # show history button
103 103
  $form->{javascript} = qq|<script type="text/javascript" src="js/show_history.js"></script>|;
104 104
  #/show hhistory button
105

  
105
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
106 106
  $form->{title} = "Edit";
107 107

  
108 108
  &create_links;
......
322 322
  # show history button js
323 323
  $form->{javascript} .= qq|<script type="text/javascript" src="js/show_history.js"></script>|;
324 324
  #/show history button js
325

  
325
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
326 326
  $readonly = ($form->{id}) ? "readonly" : "";
327 327

  
328 328
  $form->{radier} =
......
476 476

  
477 477
    # with JavaScript Calendar
478 478
    $button1 = qq|
479
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}></td>
479
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"></td>
480 480
       <td><input type=button name=transdate id="trigger1" value=|
481 481
      . $locale->text('button') . qq|></td>
482 482
       |;
483 483
    $button2 = qq|
484
       <td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>
484
       <td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate} onBlur=\"check_right_date_format(this)\"></td>
485 485
       <td><input type=button name=duedate id="trigger2" value=|
486 486
      . $locale->text('button') . qq|></td></td>
487 487
     |;
......
494 494

  
495 495
    # without JavaScript Calendar
496 496
    $button1 =
497
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}></td>|;
497
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"></td>|;
498 498
    $button2 =
499
      qq|<td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>|;
499
      qq|<td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate} onBlur=\"check_right_date_format(this)\"></td>|;
500 500
  }
501 501

  
502 502
  $form->header;
503

  
503
  $onload = qq|focus()|;
504
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
505
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
504 506
  print qq|
505
<body onLoad="fokus()">
507
<body onLoad="$onload">
506 508

  
507 509
<form method=post name="arledger" action=$form->{script}>
508 510

  
......
787 789
|;
788 790

  
789 791
    $column_data{paid} =
790
      qq|<td align=center><input name="paid_$i" size=11 value=$form->{"paid_$i"}></td>|;
792
      qq|<td align=center><input name="paid_$i" size=11 value=$form->{"paid_$i"} onBlur=\"check_right_number_format(this)\"></td>|;
791 793
    $column_data{AR_paid} =
792 794
      qq|<td align=center>${selectAR_paid}</td>|;
793 795
    $column_data{exchangerate} = qq|<td align=center>$exchangerate</td>|;
794 796
    $column_data{datepaid}     =
795
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 value=$form->{"datepaid_$i"}>
797
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 value=$form->{"datepaid_$i"} onBlur=\"check_right_date_format(this)\">
796 798
         <input type="button" name="datepaid_$i" id="trigger_datepaid_$i" value="?"></td>|;
797 799
    $column_data{source} =
798 800
      qq|<td align=center><input name="source_$i" size=11 value="$form->{"source_$i"}"></td>|;
......
1215 1217
| if $form->{selectdepartment};
1216 1218

  
1217 1219
  $form->{title} = $locale->text('AR Transactions');
1218

  
1220
  
1221
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
1222
  
1219 1223
  # use JavaScript Calendar or not
1220 1224
  $form->{jsscript} = $jscalendar;
1221 1225
  $jsscript = "";
......
1223 1227

  
1224 1228
    # with JavaScript Calendar
1225 1229
    $button1 = qq|
1226
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}">
1230
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
1227 1231
       <input type=button name=transdatefrom id="trigger1" value=|
1228 1232
      . $locale->text('button') . qq|></td>
1229 1233
      |;
1230 1234
    $button2 = qq|
1231
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}">
1235
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
1232 1236
       <input type=button name=transdateto name=transdateto id="trigger2" value=|
1233 1237
      . $locale->text('button') . qq|></td>
1234 1238
     |;
......
1241 1245

  
1242 1246
    # without JavaScript Calendar
1243 1247
    $button1 = qq|
1244
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|;
1248
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
1245 1249
    $button2 = qq|
1246
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|;
1250
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
1247 1251
  }
1248 1252

  
1249 1253
  $form->get_lists("projects" => { "key" => "ALL_PROJECTS",
......
1261 1265

  
1262 1266
  $form->{fokus} = "search.customer";
1263 1267
  $form->header;
1264

  
1268
  $onload = qq|focus()|;
1269
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
1270
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
1265 1271
  print qq|
1266
<body onLoad="fokus()">
1272
<body onLoad="$onload">
1267 1273

  
1268 1274
<form method=post name="search" action=$form->{script}>
1269 1275

  
bin/mozilla/bp.pl
161 161

  
162 162
    # with JavaScript Calendar
163 163
    $button1 = qq|
164
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}">
164
       <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
165 165
       <input type=button name=transdatefrom id="trigger1" value=|
166 166
      . $locale->text('button') . qq|></td>
167 167
      |;
168 168
    $button2 = qq|
169
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}">
169
       <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
170 170
       <input type=button name=transdateto name=transdateto id="trigger2" value=|
171 171
      . $locale->text('button') . qq|></td>
172 172
     |;
......
179 179

  
180 180
    # without JavaScript Calendar
181 181
    $button1 = qq|
182
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|;
182
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
183 183
    $button2 = qq|
184
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|;
184
                              <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
185 185
  }
186

  
186
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
187 187
  $form->header;
188

  
188
  $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
189
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
189 190
  print qq|
190
<body>
191
<body onLoad="$onload">
191 192

  
192 193
<form method=post action=$form->{script}>
193 194

  
bin/mozilla/cp.pl
184 184

  
185 185
    # with JavaScript Calendar
186 186
    $button1 = qq|
187
       <td><input name=datepaid id=datepaid size=11 title="$myconfig{dateformat}" value="$form->{datepaid}">
187
       <td><input name=datepaid id=datepaid size=11 title="$myconfig{dateformat}" value="$form->{datepaid}" onBlur=\"check_right_date_format(this)\">
188 188
       <input type=button name=datepaid id="trigger1" value=|
189 189
      . $locale->text('button') . qq|></td>
190 190
       |;
......
196 196

  
197 197
    # without JavaScript Calendar
198 198
    $button1 = qq|
199
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|;
199
                              <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
200 200
  }
201

  
201
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
202 202
  $form->header;
203 203

  
204 204
  $arap = lc $form->{ARAP};
205

  
205
  $onload = qq|focus()|;
206
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
207
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
206 208
  print qq|
207
<body>
209
<body onLoad="$onload">
208 210

  
209 211
<form method=post action=$form->{script}>
210 212

  
......
306 308
	      <tr>
307 309
		<th align=right nowrap>| . $locale->text('Amount') . qq|</th>
308 310
		<td colspan=3><input name=amount size=10 value=|
309
    . $form->format_amount(\%myconfig, $form->{amount}, 2) . qq|></td>
311
    . $form->format_amount(\%myconfig, $form->{amount}, 2) . qq| onBlur=\"check_right_number_format(this)\"></td>
310 312
	      </tr>
311 313
	    </table>
312 314
	  </td>
bin/mozilla/dn.pl
271 271

  
272 272
    # with JavaScript Calendar
273 273
    $button1 = qq|
274
      <td><input name=paymentuntil id=paymentuntil size=11 title="$myconfig{dateformat}">
274
      <td><input name=paymentuntil id=paymentuntil size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
275 275
      <input type=button name=paymentuntil id="trigger1" value=|
276 276
      . $locale->text('button') . qq|></td>
277 277
      |;
......
283 283

  
284 284
    # without JavaScript Calendar
285 285
    $button1 =
286
      qq|<td><input name=paymentuntil id=paymentuntil size=11 title="$myconfig{dateformat}"></td>|;
286
      qq|<td><input name=paymentuntil id=paymentuntil size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
287 287
  }
288 288
  $form->{fokus} = "search.customer";
289
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
289 290
  $form->header;
291
  $onload = qq|focus()|;
292
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
293
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
290 294
  print qq|
291
<body onLoad="fokus()">
295
<body onLoad="$onload">
292 296

  
293 297
<form method=post name="search" action=$form->{script}>
294 298

  
......
687 691

  
688 692
    # with JavaScript Calendar
689 693
    $button1 = qq|
690
      <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}">
694
      <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
691 695
      <input type=button name=transdatefrom id="trigger1" value=|
692 696
      . $locale->text('button') . qq|></td>
693 697
      |;
694 698
    $button2 = qq|
695
      <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}">
699
      <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
696 700
      <input type=button name=transdateto id="trigger2" value=|
697 701
      . $locale->text('button') . qq|></td>
698 702
      |;
699 703
    $button3 = qq|
700
      <td><input name=dunningfrom id=dunningfrom size=11 title="$myconfig{dateformat}">
704
      <td><input name=dunningfrom id=dunningfrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
701 705
      <input type=button name=dunningfrom id="trigger3" value=|
702 706
      . $locale->text('button') . qq|></td>
703 707
      |;
704 708
    $button4 = qq|
705
      <td><input name=dunningto id=dunningto size=11 title="$myconfig{dateformat}">
709
      <td><input name=dunningto id=dunningto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
706 710
      <input type=button name=dunningto id="trigger4" value=|
707 711
      . $locale->text('button') . qq|></td>
708 712
      |;
......
714 718

  
715 719
    # without JavaScript Calendar
716 720
    $button1 =
717
      qq|<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|;
721
      qq|<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
718 722
    $button2 =
719
      qq|<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|;
720
    $button1 =
721
      qq|<td><input name=dunningfrom id=dunningfrom size=11 title="$myconfig{dateformat}"></td>|;
722
    $button1 =
723
      qq|<td><input name=dunningfrom id=dunningto size=11 title="$myconfig{dateformat}"></td>|;
723
      qq|<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
724
    $button3 =
725
      qq|<td><input name=dunningfrom id=dunningfrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
726
    $button4 =
727
      qq|<td><input name=dunningfrom id=dunningto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
724 728
  }
725 729

  
726 730
  $form->{fokus} = "search.customer";
731
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
727 732
  $form->header;
733
  $onload = qq|focus()|;
734
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
735
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
736

  
728 737
  print qq|
729
<body onLoad="fokus()">
738
<body onLoad="$onload">
730 739

  
731 740
<form method=post name="search" action=$form->{script}>
732 741

  
bin/mozilla/gl.pl
233 233

  
234 234
    # with JavaScript Calendar
235 235
    $button1 = qq|
236
       <td><input name=datefrom id=datefrom size=11 title="$myconfig{dateformat}">
236
       <td><input name=datefrom id=datefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
237 237
       <input type=button name=datefrom id="trigger1" value=|
238 238
      . $locale->text('button') . qq|></td>  
239 239
       |;
240 240
    $button2 = qq|
241
       <td><input name=dateto id=dateto size=11 title="$myconfig{dateformat}">
241
       <td><input name=dateto id=dateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
242 242
       <input type=button name=dateto id="trigger2" value=|
243 243
      . $locale->text('button') . qq|></td>
244 244
     |;
......
251 251

  
252 252
    # without JavaScript Calendar
253 253
    $button1 =
254
      qq|<td><input name=datefrom id=datefrom size=11 title="$myconfig{dateformat}"></td>|;
254
      qq|<td><input name=datefrom id=datefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
255 255
    $button2 =
256
      qq|<td><input name=dateto id=dateto size=11 title="$myconfig{dateformat}"></td>|;
256
      qq|<td><input name=dateto id=dateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
257 257
  }
258

  
258
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
259 259
  $form->header;
260

  
260
  $onload = qq|focus()|;
261
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
262
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
261 263
  print qq|
262
<body>
264
<body onLoad="$onload">
263 265

  
264 266
<form method=post action=$form->{script}>
265 267

  
......
1296 1298

  
1297 1299
    # with JavaScript Calendar
1298 1300
    $button1 = qq|
1299
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly>
1301
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly onBlur=\"check_right_date_format(this)\">
1300 1302
       <input type=button name=transdate id="trigger1" value=|
1301 1303
      . $locale->text('button') . qq|></td>  
1302 1304
       |;
......
1308 1310

  
1309 1311
    # without JavaScript Calendar
1310 1312
    $button1 =
1311
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly></td>|;
1313
      qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly onBlur=\"check_right_date_format(this)\"></td>|;
1312 1314
  }
1313 1315

  
1314 1316
  $form->header;
......
1354 1356
	  <table>
1355 1357
	      <tr>
1356 1358
		<th align=right width=50%>| . $locale->text('Buchungsdatum') . qq|</th>
1357
		<td align=left><input name=gldate size=11 title="$myconfig{dateformat}" value=$form->{gldate} $readonly></td>
1359
		<td align=left><input name=gldate size=11 title="$myconfig{dateformat}" value=$form->{gldate} $readonly onBlur=\"check_right_date_format(this)\"></td>
1358 1360
	      </tr>
1359 1361
	    </table>
1360 1362
	  </td>
bin/mozilla/ir.pl
357 357

  
358 358
    # with JavaScript Calendar
359 359
    $button1 = qq|
360
       <td><input name=invdate id=invdate size=11 title="$myconfig{dateformat}" value=$form->{invdate}></td>
360
       <td><input name=invdate id=invdate size=11 title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\"></td>
361 361
       <td><input type=button name=invdate id="trigger1" value=|
362 362
      . $locale->text('button') . qq|></td>
363 363
       |;
364 364
    $button2 = qq|
365
       <td width="13"><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>
365
       <td width="13"><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value="$form->{duedate}"  onBlur=\"check_right_date_format(this)\"></td>
366 366
       <td width="4"><input type=button name=duedate id="trigger2" value=|
367 367
      . $locale->text('button') . qq|></td></td>
368 368
     |;
......
375 375

  
376 376
    # without JavaScript Calendar
377 377
    $button1 =
378
      qq|<td><input name=invdate size=11 title="$myconfig{dateformat}" value=$form->{invdate}></td>|;
378
      qq|<td><input name=invdate size=11 title="$myconfig{dateformat}" value="$form->{invdate}"  onBlur=\"check_right_date_format(this)\"></td>|;
379 379
    $button2 =
380
      qq|<td width="13"><input name=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>|;
380
      qq|<td width="13"><input name=duedate size=11 title="$myconfig{dateformat}" value="$form->{duedate}" onBlur=\"check_right_date_format(this)\"></td>|;
381 381
  }
382 382

  
383 383
  $form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js"></script>|;
384
  $form->{"javascript"} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
384 385

  
385 386
  $jsscript .=
386 387
    $form->write_trigger(\%myconfig, 2,
......
388 389
                         "quodate", "BL", "trigger_quodate");
389 390

  
390 391
  $form->header;
391

  
392
  $onload = qq|focus()|;
393
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
394
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
392 395
  print qq|
393
<body>
396
<body onLoad="$onload">
394 397

  
395 398
<form method=post action=$form->{script}>
396 399

  
......
483 486
	      </tr>
484 487
        <tr>
485 488
          <th align="right" nowrap>| . $locale->text('Order Date') . qq|</th>
486
          <td><input name="orddate" id="orddate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{orddate}) . qq|"></td>
489
          <td><input name="orddate" id="orddate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{orddate}) . qq|" onBlur=\"check_right_date_format(this)\"></td>
487 490
          <td><input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
488 491
        </tr>
489 492
        <tr>
490 493
          <th align="right" nowrap>| . $locale->text('Quotation Date') . qq|</th>
491
          <td><input name="quodate" id="quodate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{quodate}) . qq|"></td>
494
          <td><input name="quodate" id="quodate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{quodate}) . qq|" onBlur=\"check_right_date_format(this)\"></td>
492 495
          <td><input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
493 496
        </tr>
494 497
	      <tr>
......
755 758
|;
756 759

  
757 760
    $column_data{"paid_$i"} =
758
      qq|<td align=center><input name="paid_$i" size=11 value=$form->{"paid_$i"}></td>|;
761
      qq|<td align=center><input name="paid_$i" size=11 value="$form->{"paid_$i"}" onBlur=\"check_right_number_format(this)\"></td>|;
759 762
    $column_data{"exchangerate_$i"} = qq|<td align=center>$exchangerate</td>|;
760 763
    $column_data{"AP_paid_$i"}      =
761 764
      qq|<td align=center><select name="AP_paid_$i">$form->{"selectAP_paid_$i"}</select></td>|;
762 765
    $column_data{"datepaid_$i"} =
763
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 title="$myconfig{dateformat}" value=$form->{"datepaid_$i"}>
766
      qq|<td align=center><input name="datepaid_$i" id="datepaid_$i" size=11 title="$myconfig{dateformat}" value="$form->{"datepaid_$i"}" onBlur=\"check_right_date_format(this)\">
764 767
         <input type="button" name="datepaid_$i" id="trigger_datepaid_$i" value="?"></td>|;
765 768
    $column_data{"source_$i"} =
766 769
      qq|<td align=center><input name="source_$i" size=11 value=$form->{"source_$i"}></td>|;
bin/mozilla/is.pl
531 531
  
532 532
      # with JavaScript Calendar
533 533
      $button1 = qq|
534
        <td><input name="invdate" id="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}"></td>
534
        <td><input name="invdate" id="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\"></td>
535 535
        <td><input type="button" name="invdate" id="trigger1" value="|
536 536
        . $locale->text('button') . qq|"></td>|;
537 537
       
......
544 544
  
545 545
      # without JavaScript Calendar
546 546
      $button1 =
547
        qq|<td><input name="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}"></td>|;
547
        qq|<td><input name="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\"></td>|;
548 548
      $button2 =
549 549
        qq|<td width="13"><input name="duedate" size="11" title="$myconfig{dateformat}" value="$form->{duedate}"></td>|;
550 550
    }
......
553 553
  
554 554
      # with JavaScript Calendar
555 555
      $button1 = qq|
556
        <td><input name="invdate" id="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}"></td>
556
        <td><input name="invdate" id="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\"></td>
557 557
        <td><input type="button" name="invdate" id="trigger1" value="|
558 558
        . $locale->text('button') . qq|"></td>
559 559
        |;
560 560
      $button2 = qq|
561
        <td width="13"><input name="duedate" id="duedate" size="11" title="$myconfig{dateformat}" value="$form->{duedate}"></td>
561
        <td width="13"><input name="duedate" id="duedate" size="11" title="$myconfig{dateformat}" value="$form->{duedate}" onBlur=\"check_right_date_format(this)\"></td>
562 562
        <td width="4"><input type="button" name="duedate" id="trigger2" value="|
563 563
        . $locale->text('button') . qq|"></td></td>
564 564
      |;
565 565
      $button3 = qq|
566
        <td width="13"><input name="deliverydate" id="deliverydate" size="11" title="$myconfig{dateformat}" value="$form->{deliverydate}"></td>
566
        <td width="13"><input name="deliverydate" id="deliverydate" size="11" title="$myconfig{dateformat}" value="$form->{deliverydate}" onBlur=\"check_right_date_format(this)\"></td>
567 567
        <td width="4"><input type="button" name="deliverydate" id="trigger3" value="|
568 568
        . $locale->text('button') . qq|"></td></td>
569 569
      |;
......
580 580
  
581 581
      # without JavaScript Calendar
582 582
      $button1 =
583
        qq|<td><input name="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}"></td>|;
583
        qq|<td><input name="invdate" size="11" title="$myconfig{dateformat}" value="$form->{invdate}" onBlur=\"check_right_date_format(this)\"></td>|;
584 584
      $button2 =
585
        qq|<td width="13"><input name=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>|;
585
        qq|<td width="13"><input name=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate} onBlur=\"check_right_date_format(this)\"></td>|;
586 586
    }
587 587
  }
588 588
  if ($form->{resubmit} && ($form->{format} eq "html")) {
......
591 591
  } elsif ($form->{resubmit}) {
592 592
    $onload = qq|document.invoice.submit()|;
593 593
  } else {
594
    $onload = "fokus()";
594
    $onload = "focus()";
595 595
  }
596

  
596
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
597
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
597 598
  $credittext = $locale->text('Credit Limit exceeded!!!');
598 599
  if ($creditwarning) {
599 600
    $onload = qq|alert('$credittext')|;
......
755 756
	      </tr>
756 757
        <tr>
757 758
          <th align="right" nowrap>| . $locale->text('Order Date') . qq|</th>
758
          <td><input name="orddate" id="orddate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{orddate}) . qq|"></td>
759
          <td><input name="orddate" id="orddate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{orddate}) . qq|" onBlur=\"check_right_date_format(this)\"></td>
759 760
          <td><input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
760 761
        </tr>
761 762
	      <tr>
......
764 765
	      </tr>
765 766
        <tr>
766 767
          <th align="right" nowrap>| . $locale->text('Quotation Date') . qq|</th>
767
          <td><input name="quodate" id="quodate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{quodate}) . qq|"></td>
768
          <td><input name="quodate" id="quodate" size="11" title="$myconfig{dateformat}" value="| . Q($form->{quodate}) . qq|" onBlur=\"check_right_date_format(this)\"></td>
768 769
          <td><input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
769 770
        </tr>
770 771
	      <tr>
......
1041 1042
    $exchangerate .= qq|<input type="hidden" name="forex_$i" value="$form->{"forex_$i"}">|;
1042 1043

  
1043 1044
    $column_data{"paid_$i"} =
1044
      qq|<td align="center"><input name="paid_$i" size="11" value="$form->{"paid_$i"}"></td>|;
1045
      qq|<td align="center"><input name="paid_$i" size="11" value="$form->{"paid_$i"}" onBlur=\"check_right_number_format(this)\"></td>|;
1045 1046
    $column_data{"exchangerate_$i"} = qq|<td align="center">$exchangerate</td>|;
1046 1047
    $column_data{"AR_paid_$i"}      =
1047 1048
      qq|<td align="center"><select name="AR_paid_$i">$form->{"selectAR_paid_$i"}</select></td>|;
1048 1049
    $column_data{"datepaid_$i"} =
1049
      qq|<td align="center"><input id="datepaid_$i" name="datepaid_$i"  size="11" title="$myconfig{dateformat}" value=$form->{"datepaid_$i"}>
1050
      qq|<td align="center"><input id="datepaid_$i" name="datepaid_$i"  size="11" title="$myconfig{dateformat}" value="$form->{"datepaid_$i"}" onBlur=\"check_right_date_format(this)\">
1050 1051
         <input type="button" name="datepaid_$i" id="trigger_datepaid_$i" value="?"></td>|;
1051 1052
    $column_data{"source_$i"} =
1052 1053
      qq|<td align=center><input name="source_$i" size="11" value="$form->{"source_$i"}"></td>|;
bin/mozilla/rc.pl
49 49
    @{ $form->{PR} };
50 50

  
51 51
  $form->{title} = $locale->text('Reconciliation');
52

  
52
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
53 53
  $form->{"jsscript"} = 1;
54 54
  $form->header;
55
  $onload = qq|focus()|;
56
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
55 57

  
56 58
  print qq|
57
<body>
59
<body onLoad="$onload">
58 60

  
59 61
<form method=post action=$form->{script}>
60 62

  
......
73 75
	</tr>
74 76
	<tr>
75 77
	  <th align=right>| . $locale->text('From') . qq|</th>
76
	  <td><input name=fromdate id=fromdate size=11 title="$myconfig{dateformat}">
78
	  <td><input name=fromdate id=fromdate size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
77 79
     <input type="button" name="fromdate" id="trigger_fromdate" value="?"></td>
78 80
	  <th align=right>| . $locale->text('Until') . qq|</th>
79
	  <td><input name=todate id=todate size=11 title="$myconfig{dateformat}">
81
	  <td><input name=todate id=todate size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
80 82
     <input type="button" name="todate" id="trigger_todate" value="?"></td>
81 83
	</tr>
82 84
      </table>
bin/mozilla/rp.pl
200 200
    if ($name_1 eq "") {
201 201

  
202 202
      $button1 = qq|
203
         <input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}">|;
203
         <input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">|;
204 204
      $button1_2 = qq|
205 205
        <input type=button name=$name_2 id="$trigger_2" value=|
206 206
        . $locale->text('button') . qq|>|;
......
210 210
        Form->write_trigger(\%myconfig, "1", "$name_2", "BR", "$trigger_2");
211 211
    } else {
212 212
      $button1 = qq|
213
         <input name=$name_1 id=$id_1 size=11 title="$myconfig{dateformat}" value=$value_1>|;
213
         <input name=$name_1 id=$id_1 size=11 title="$myconfig{dateformat}" value="$value_1" onBlur=\"check_right_date_format(this)\">|;
214 214
      $button1_2 = qq|
215 215
        <input type=button name=$name_1 id="$trigger_1" value=|
216 216
        . $locale->text('button') . qq|>|;
217 217
      $button2 = qq|
218
         <input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}">|;
218
         <input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">|;
219 219
      $button2_2 = qq|
220 220
         <input type=button name=$name_2 id="$trigger_2" value=|
221 221
        . $locale->text('button') . qq|>
......
231 231
    # without JavaScript Calendar
232 232
    if ($name_1 eq "") {
233 233
      $button1 =
234
        qq|<input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}">|;
234
        qq|<input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">|;
235 235
    } else {
236 236
      $button1 =
237
        qq|<input name=$name_1 id=$id_1 size=11 title="$myconfig{dateformat}" value=$value_1>|;
237
        qq|<input name=$name_1 id=$id_1 size=11 title="$myconfig{dateformat}" value=$value_1 onBlur=\"check_right_date_format(this)\">|;
238 238
      $button2 =
239
        qq|<input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}">|;
239
        qq|<input name=$name_2 id=$id_2 size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">|;
240 240
    }
241 241
  }
242

  
242
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
243 243
  $form->header;
244

  
244
  $onload = qq|focus()|;
245
  $onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
246
  $onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
245 247
  print qq|
246
<body>
248
<body onLoad="$onload">
247 249

  
248 250
<form method=post action=$form->{script}>
249 251

  

Auch abrufbar als: Unified diff