--- loncom/homework/grades.pm 2007/10/11 21:27:50 1.453 +++ loncom/homework/grades.pm 2007/10/12 20:06:52 1.457 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.453 2007/10/11 21:27:50 banghart Exp $ +# $Id: grades.pm,v 1.457 2007/10/12 20:06:52 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -35,6 +35,7 @@ use Apache::loncommon; use Apache::lonhtmlcommon; use Apache::lonnavmaps; use Apache::lonhomework; +use Apache::lonpickcode; use Apache::loncoursedata; use Apache::lonmsg(); use Apache::Constants qw(:common); @@ -529,8 +530,8 @@ sub getclasslist { my @stu_groups = split(/,/,$group); if (@getgroup) { my $exclude = 1; - foreach my $grp(@getgroup) { - foreach my $stu_group(@stu_groups) { + foreach my $grp (@getgroup) { + foreach my $stu_group (@stu_groups) { if ($stu_group eq $grp) { $exclude = 0; } @@ -4893,11 +4894,10 @@ SCANTRONFORM SCANTRONFORM - $r->print(< -$grading_menu_button -SCANTRONFORM - + $r->print(''); + &Apache::lonpickcode::code_list($r,2); + $r->print(''); + $r->print($grading_menu_button); return } @@ -6325,7 +6325,7 @@ sub scantron_validate_ID { sub scantron_get_correction { my ($r,$i,$scan_record,$scan_config,$line,$error,$arg)=@_; -#FIXME in the case of a duplicated ID the previous line, probaly need +#FIXME in the case of a duplicated ID the previous line, probably need #to show both the current line and the previous one and allow skipping #the previous one or the current one @@ -7223,7 +7223,7 @@ sub grading_menu { $fields{'command'} = 'scantron_selectphase'; $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); push (@menu, { url => $url, - name => &mt('Grade Scantron Forms'), + name => &mt('Grade/Manage Scantron Forms'), short_description => &mt('')}); $fields{'command'} = 'verify'; @@ -7233,18 +7233,6 @@ sub grading_menu { name => &mt('Verify Receipt'), short_description => &mt('')}); - $fields{'command'} = 'manage'; - $url = &Apache::lonhtmlcommon::build_url('/adm/helper/resettimes.helper',\%fields); - push (@menu, { url => $url, - name => &mt('Manage Access Times'), - short_description => - &mt('')}); - $fields{'command'} = 'view'; - $url = &Apache::lonhtmlcommon::build_url('/adm/pickcode',\%fields); - push (@menu, { url => $url, - name => &mt('View Saved CODEs'), - short_description => - &mt('')}); # # Create the menu @@ -7447,6 +7435,7 @@ GRADINGMENUJS $result.=''.&mt('Sections').''; $result.=''.&mt('Groups').''; $result.=''.&mt('Access Status').''."\n"; + $result.=''.&mt('Submission Status').''."\n"; $result.=''; $result.=''."\n". '  '.''.&mt('Current Resource').': '.&mt('For one or more students'). - ' '. ''. ''. ''."\n"; + ($saveSub eq 'all' ? 'selected="selected"' : '').'>'.&mt('with any status').''; + + $result.=' '."\n"; - $result.=''. + $result.=''. ''."\n"; - $result.=''. - ''."\n"; - $result.='
'. + $result.='
'. ''. ''."\n"; @@ -8036,7 +8031,6 @@ ENDHEADER sub handler { my $request=$_[0]; - &reset_caches(); if ($env{'browser.mathml'}) { &Apache::loncommon::content_type($request,'text/xml');