Revision bb79df1e
Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
361 | 361 |
|
362 | 362 |
# with JavaScript Calendar |
363 | 363 |
$button1 = qq| |
364 |
<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}></td> |
|
364 |
<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"></td>
|
|
365 | 365 |
<td><input type=button name=transdate id="trigger1" value=| |
366 | 366 |
. $locale->text('button') . qq|></td> |
367 | 367 |
|; |
368 | 368 |
$button2 = qq| |
369 |
<td width="13"><input name=reqdate id=reqdate size=11 title="$myconfig{dateformat}" value=$form->{reqdate}></td> |
|
369 |
<td width="13"><input name=reqdate id=reqdate size=11 title="$myconfig{dateformat}" value=$form->{reqdate} onBlur=\"check_right_date_format(this)\"></td>
|
|
370 | 370 |
<td width="4"><input type=button name=reqdate name=reqdate id="trigger2" value=| |
371 | 371 |
. $locale->text('button') . qq|></td> |
372 | 372 |
|; |
... | ... | |
380 | 380 |
|
381 | 381 |
# without JavaScript Calendar |
382 | 382 |
$button1 = qq| |
383 |
<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate}></td>|; |
|
383 |
<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value=$form->{transdate} onBlur=\"check_right_date_format(this)\"></td>|;
|
|
384 | 384 |
$button2 = qq| |
385 |
<td width="13"><input name=reqdate id=reqdate size=11 title="$myconfig{dateformat}" value=$form->{reqdate}></td>|; |
|
385 |
<td width="13"><input name=reqdate id=reqdate size=11 title="$myconfig{dateformat}" value=$form->{reqdate} onBlur=\"check_right_date_format(this)\"></td>|;
|
|
386 | 386 |
} |
387 | 387 |
|
388 | 388 |
my @tmp; |
... | ... | |
725 | 725 |
} elsif ($form->{resubmit}) { |
726 | 726 |
$onload = qq|document.oe.submit()|; |
727 | 727 |
} else { |
728 |
$onload = "fokus()";
|
|
728 |
$onload = "focus()";
|
|
729 | 729 |
} |
730 | 730 |
|
731 | 731 |
$credittext = $locale->text('Credit Limit exceeded!!!'); |
732 | 732 |
if ($creditwarning) { |
733 | 733 |
$onload = qq|alert('$credittext')|; |
734 | 734 |
} |
735 |
|
|
735 |
|
|
736 |
$onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
|
737 |
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; |
|
738 |
|
|
736 | 739 |
$form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js"></script>|; |
737 | 740 |
# show history button js |
738 | 741 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_history.js"></script>|; |
... | ... | |
1400 | 1403 |
|
1401 | 1404 |
# with JavaScript Calendar |
1402 | 1405 |
$button1 = qq| |
1403 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"> |
|
1406 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
|
|
1404 | 1407 |
<input type=button name=transdatefrom id="trigger3" value=| |
1405 | 1408 |
. $locale->text('button') . qq|></td> |
1406 | 1409 |
|; |
1407 | 1410 |
$button2 = qq| |
1408 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"> |
|
1411 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
|
|
1409 | 1412 |
<input type=button name=transdateto name=transdateto id="trigger4" value=| |
1410 | 1413 |
. $locale->text('button') . qq|></td> |
1411 | 1414 |
|; |
... | ... | |
1418 | 1421 |
|
1419 | 1422 |
# without JavaScript Calendar |
1420 | 1423 |
$button1 = qq| |
1421 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}"></td>|; |
|
1424 |
<td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\"></td>|;
|
|
1422 | 1425 |
$button2 = qq| |
1423 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}"></td>|; |
|
1426 |
<td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\></td>|;
|
|
1424 | 1427 |
} |
1425 | 1428 |
|
1426 | 1429 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", |
Auch abrufbar als: Unified diff
Anpassen an common.js (Datumsüberprüfung und Nummerüberprüfung)