--- loncom/interface/lonhtmlcommon.pm 2003/03/21 15:59:14 1.19 +++ loncom/interface/lonhtmlcommon.pm 2003/05/21 16:16:32 1.22 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.19 2003/03/21 15:59:14 matthew Exp $ +# $Id: lonhtmlcommon.pm,v 1.22 2003/05/21 16:16:32 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -65,6 +65,9 @@ use strict; =item &date_setter +&date_setter returns html and javascript for a compact date-setting form. +To retrieve values from it, use &get_date_from_form(). + Inputs =over 4 @@ -82,6 +85,12 @@ The current setting for this time parame An undefined value is taken to indicate the value is the current time. Also, to be explicit, a value of 'now' also indicates the current time. +=back + +Bugs + +The method used to restrict user input will fail in the year 2400. + =cut ############################################## @@ -177,8 +186,12 @@ ENDJS ############################################## ############################################## +=pod + =item &get_date_from_form +get_date_from_form retrieves the date specified in an &date_setter form. + Inputs: =over 4 @@ -251,6 +264,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"; }