--- loncom/interface/lonhelper.pm 2005/09/28 10:37:33 1.113 +++ loncom/interface/lonhelper.pm 2005/10/11 15:44:30 1.117 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.113 2005/09/28 10:37:33 foxr Exp $ +# $Id: lonhelper.pm,v 1.117 2005/10/11 15:44:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1630,9 +1630,9 @@ sub render { $result .= " :\n"; $result .= "'."\n"; + foreach my $sec (sort {lc($a) cmp lc($b)} (keys(%sections))) { + $choice_widget .= "\n"; + } + $choice_widget .= "\n"; - my $choice_widget = '\n"; - - # Build a table without any borders to contain the section based - # selection: - - my $section_selectors = ''."\n"; - $section_selectors .= "\n\n"; - $section_selectors .= ' \n"; - $section_selectors .= ' \n"; - $section_selectors .= ' \n"; - $section_selectors .= "\n"; - $section_selectors .= ' '."\n"; - $section_selectors .= ' '."\n
For Sections:$choice_widget'; - $section_selectors .= " Current Students'; - $section_selectors .= " All students'; - $section_selectors .= " Expired Students
\n"; - $section_selectors .= "
"; + # Build a table without any borders to contain the section based + # selection: - $result .= $section_selectors; + my $section_selectors =< + + For Sections:$choice_widget + + + + + + + + +
+SECTIONSELECT + $result .= $section_selectors; + } return $result; }