version 1.31, 2003/10/14 18:36:54
|
version 1.33, 2003/10/17 19:56:13
|
Line 288 sub get_date_from_form {
|
Line 288 sub get_date_from_form {
|
} |
} |
if (defined($ENV{'form.'.$dname.'_hour'})) { |
if (defined($ENV{'form.'.$dname.'_hour'})) { |
my $tmphour = $ENV{'form.'.$dname.'_hour'}; |
my $tmphour = $ENV{'form.'.$dname.'_hour'}; |
if (($tmphour =~ /^\d+$/) && ($tmphour > 0) && ($tmphour < 32)) { |
if (($tmphour =~ /^\d+$/) && ($tmphour >= 0) && ($tmphour < 24)) { |
$hour = $tmphour; |
$hour = $tmphour; |
} |
} |
} |
} |
Line 311 sub get_date_from_form {
|
Line 311 sub get_date_from_form {
|
} |
} |
} |
} |
if (($year<70) || ($year>137)) { return undef; } |
if (($year<70) || ($year>137)) { return undef; } |
if (eval(&timelocal($sec,$min,$hour,$day,$month,$year))) { |
if (defined($sec) && defined($min) && defined($hour) && |
|
defined($day) && defined($month) && defined($year) && |
|
eval(&timelocal($sec,$min,$hour,$day,$month,$year))) { |
return &timelocal($sec,$min,$hour,$day,$month,$year); |
return &timelocal($sec,$min,$hour,$day,$month,$year); |
} else { |
} else { |
return undef; |
return undef; |
Line 748 sub Create_PrgWin {
|
Line 750 sub Create_PrgWin {
|
"<body bgcolor=\"#88DDFF\">". |
"<body bgcolor=\"#88DDFF\">". |
"<h4>$heading</h4>". |
"<h4>$heading</h4>". |
"<form name=popremain>". |
"<form name=popremain>". |
'<input type="text" size="55" name="remaining" value="Starting"></form>'. |
'<input type="text" size="55" name="remaining" value="'. |
|
&mt('Starting').'"></form>'. |
"</body></html>\');". |
"</body></html>\');". |
"popwin.document.close();". |
"popwin.document.close();". |
"</script>"); |
"</script>"); |
Line 803 sub Increment_PrgWin {
|
Line 806 sub Increment_PrgWin {
|
$lasttime = sprintf("%3.2f",$lasttime); |
$lasttime = sprintf("%3.2f",$lasttime); |
} |
} |
if ($lasttime == 1) { |
if ($lasttime == 1) { |
$lasttime = '('.$lasttime.' '.&mt('second for').' '.&mt($extraInfo).')'; |
$lasttime = '('.$lasttime.' '.&mt('second for').' '.$extraInfo.')'; |
} else { |
} else { |
$lasttime = '('.$lasttime.' '.&mt('seconds for').' '.&mt($extraInfo).')'; |
$lasttime = '('.$lasttime.' '.&mt('seconds for').' '.$extraInfo.')'; |
} |
} |
# |
# |
my $user_browser = $ENV{'browser.type'} if (exists($ENV{'browser.type'})); |
my $user_browser = $ENV{'browser.type'} if (exists($ENV{'browser.type'})); |