--- loncom/homework/grades.pm 2007/10/04 02:00:29 1.443 +++ loncom/homework/grades.pm 2007/10/05 16:43:31 1.444 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.443 2007/10/04 02:00:29 banghart Exp $ +# $Id: grades.pm,v 1.444 2007/10/05 16:43:31 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6954,7 +6954,9 @@ sub grading_menu { # # Define menu data - + $env{'form.probTitle'} = &Apache::lonnet::gettitle($symb); + my ($table) = &showResourceInfo($symb,$env{'form.probTitle'}); + $request->print($table); my %fields = ('symb'=>&Apache::lonenc::check_encrypt($symb), 'handgrade'=>$hdgrade, 'probTitle'=>$probTitle, @@ -6989,6 +6991,7 @@ sub grading_menu { $fields{'command'} = 'verify'; $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); push (@menu, { url => $url, + jscript => ' onChange="javascript:checkReceiptNo(this.form,\'OK\')" ', name => &mt('Verify Receipt'), short_description => &mt('')}); @@ -7008,16 +7011,22 @@ sub grading_menu { # # Create the menu my $Str; - $Str .= '

'.&mt('Please select a grading task').'

'; + # $Str .= '

'.&mt('Please select a grading task').'

'; + $Str .= '
'; foreach my $menudata (@menu) { - $Str .='

{'url'}.'" >'. $menudata->{'name'}."

\n"; + if ($menudata->{'name'} eq &mt('Verify Receipt')) { + $Str .= ' receipt: 156-'; + } $Str .= ' '.(' 'x8).$menudata->{'short_description'}. "\n"; } $Str .="\n"; - + $Str .="
\n"; $request->print(< function checkChoice(formname,val,cmdx) {