--- loncom/interface/lonhtmlcommon.pm 2002/07/25 21:23:51 1.4 +++ loncom/interface/lonhtmlcommon.pm 2002/08/01 20:49:06 1.6 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.4 2002/07/25 21:23:51 stredwic Exp $ +# $Id: lonhtmlcommon.pm,v 1.6 2002/08/01 20:49:06 stredwic Exp $ # # Copyright Michigan State University Board of Trustees # @@ -30,11 +30,40 @@ package Apache::lonhtmlcommon; use strict; +sub AscendOrderOptions { + my ($order, $page, $formName)=@_; + + my $OpSel1 = ''; + my $OpSel2 = ''; + + if($order eq 'Ascending') { + $OpSel1 = ' selected'; + } else { + $OpSel2 = ' selected'; + } + + my $Str = ''; + $Str .= ''."\n"; + + return $Str; +} + sub MapOptions { - my ($data, $page)=@_; + my ($data, $page, $formName)=@_; my $Str = ''; $Str .= ''."\n"; } +sub MultipleSectionSelect { + my ($sections,$selectedSections)=@_; + + my $Str = ''; + $Str .= ''."\n"; + + return $Str; +} + sub Title { my ($pageName)=@_; @@ -135,45 +184,6 @@ sub Title { $Str .= ''."\n"; $Str .= ''; $Str .= ''."\n"; -# $Str .= '

Current Time: '.localtime(time).'




'."\n"; - - return $Str; -} - -sub CreateStatisticsMainMenu { - my ($status, $reports)=@_; - - my $Str = ''; - - $Str .= ''."\n"; - $Str .= ''."\n"; - $Str .= ''."\n"; - $Str .= ''."\n"; - $Str .= ''."\n"; - $Str .= ''."\n"; - - $Str .= ''."\n"; - - $Str .= '
Analysis Reports:Student Status:
{'reportSelected'} eq $reports->{$_}) { - $Str .= ' selected=""'; - } - $Str .= '>'.$reports->{$_}.''."\n"; - } - $Str .= ''; - $Str .= &StatusOptions($status, 'Statistics'); - $Str .= '
'."\n"; - $Str .= '
'."\n"; return $Str; }