version 1.18, 2003/03/10 20:25:00
|
version 1.20, 2003/04/30 15:49:45
|
Line 251 sub get_date_from_form {
|
Line 251 sub get_date_from_form {
|
|
|
=pod |
=pod |
|
|
|
=item &pjump_javascript_definition() |
|
|
|
Returns javascript defining the 'pjump' function, which opens up a |
|
parameter setting wizard. |
|
|
|
=cut |
|
|
|
############################################## |
|
############################################## |
|
sub pjump_javascript_definition { |
|
my $Str = <<END; |
|
function pjump(type,dis,value,marker,ret,call) { |
|
parmwin=window.open("/adm/rat/parameter.html?type="+escape(type) |
|
+"&value="+escape(value)+"&marker="+escape(marker) |
|
+"&return="+escape(ret) |
|
+"&call="+escape(call)+"&name="+escape(dis),"LONCAPAparms", |
|
"height=350,width=350,scrollbars=no,menubar=no"); |
|
} |
|
END |
|
return $Str; |
|
} |
|
|
|
############################################## |
|
############################################## |
|
|
|
=pod |
|
|
=item &javascript_nothing() |
=item &javascript_nothing() |
|
|
Return an appropriate null for the users browser. This is used |
Return an appropriate null for the users browser. This is used |
Line 724 sub Increment_PrgWin {
|
Line 751 sub Increment_PrgWin {
|
} else { |
} else { |
$time_est .= ' seconds'; |
$time_est .= ' seconds'; |
} |
} |
|
my $lasttime = time-$$prog_state{'laststart'}; |
|
if ($lasttime == 1) { |
|
$lasttime = '('.$lasttime.' second for '.$extraInfo.')'; |
|
} else { |
|
$lasttime = '('.$lasttime.' seconds for '.$extraInfo.')'; |
|
} |
$r->print('<script>popwin.document.popremain.remaining.value="'. |
$r->print('<script>popwin.document.popremain.remaining.value="'. |
$$prog_state{'done'}.'/'.$$prog_state{'max'}. |
$$prog_state{'done'}.'/'.$$prog_state{'max'}. |
': '.$time_est.' remaining ('.(time-$$prog_state{'laststart'}). |
': '.$time_est.' remaining '.$lasttime.'";'.'</script>'); |
' seconds for '.$extraInfo.')";'.'</script>'); |
|
$$prog_state{'laststart'}=time; |
$$prog_state{'laststart'}=time; |
$r->rflush(); |
$r->rflush(); |
} |
} |