--- loncom/interface/loncommon.pm 2003/12/08 15:06:42 1.158 +++ loncom/interface/loncommon.pm 2003/12/26 16:27:20 1.163 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.158 2003/12/08 15:06:42 raeburn Exp $ +# $Id: loncommon.pm,v 1.163 2003/12/26 16:27:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -554,6 +554,8 @@ sub help_open_topic { my $template = ""; my $link; + $topic=~s/\W/\_/g; + if (!$stayOnPage) { $link = "javascript:void(open('/adm/help/${filename}.hlp', 'Help_for_$topic', 'menubar=0,toolbar=1,scrollbars=1,width=$width,height=$height,resizable=yes'))"; @@ -760,7 +762,30 @@ sub select_form { return $selectform; } - +sub select_level_form { + my ($deflevel,$name)=@_; + unless ($deflevel) { $deflevel=0; } + return &select_form($deflevel,$name,( + 0 => 'Not specified', + 1 => 'Grade 1', + 2 => 'Grade 2', + 3 => 'Grade 3', + 4 => 'Grade 4', + 5 => 'Grade 5', + 6 => 'Grade 6', + 7 => 'Grade 7', + 8 => 'Grade 8', + 9 => 'Grade 9', + 10 => 'Grade 10', + 11 => 'Grade 11', + 12 => 'Grade 12', + 13 => 'Grade 13', + 14 => '100 Level', + 15 => '200 Level', + 16 => '300 Level', + 17 => '400 Level', + 18 => 'Graduate Level')); +} #------------------------------------------- =pod @@ -1118,7 +1143,7 @@ sub authform_local{ @_, ); my $jscall = "javascript:changed_radio('loc',$in{'formname'});"; - my $result.=&mt('[_1] Local Authentication with arguement [_2]', + my $result.=&mt('[_1] Local Authentication with argument [_2]', '', '