--- loncom/interface/lonhtmlcommon.pm 2003/03/10 20:21:45 1.17 +++ loncom/interface/lonhtmlcommon.pm 2003/05/12 22:04:41 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.17 2003/03/10 20:21:45 matthew Exp $ +# $Id: lonhtmlcommon.pm,v 1.21 2003/05/12 22:04:41 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -251,6 +251,33 @@ sub get_date_from_form { =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 = <Ascending'."\n". - 'Descending'."\n"; - $Str .= ''."\n"; - - return $Str; -} - -sub MapOptions { - my ($data, $page, $formName)=@_; - my $Str = ''; - $Str .= ''."\n"; } @@ -726,11 +617,15 @@ sub Increment_PrgWin { } else { $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(''); + ': '.$time_est.' remaining '.$lasttime.'";'.''); $$prog_state{'laststart'}=time; $r->rflush(); }