Diff for /loncom/homework/grades.pm between versions 1.574.2.9 and 1.574.2.10

version 1.574.2.9, 2010/04/01 01:00:28 version 1.574.2.10, 2010/04/01 02:28:27
Line 771  sub verifyreceipt { Line 771  sub verifyreceipt {
   
     my $title.=      my $title.=
  '<h3><span class="LC_info">'.   '<h3><span class="LC_info">'.
  &mt('Verifying  Receipt No. [_1]',$receipt).   &mt('Verifying Receipt No. [_1]',$receipt).
  '</span></h3>'."\n".   '</span></h3>'."\n".
  '<h4>'.&mt('<b>Resource: </b>[_1]',$env{'form.probTitle'}).   '<h4>'.&mt('<b>Resource: </b>[_1]',$env{'form.probTitle'}).
  '</h4>'."\n";   '</h4>'."\n";
Line 831  sub verifyreceipt { Line 831  sub verifyreceipt {
  }   }
     }      }
     if ($matches == 0) {      if ($matches == 0) {
  $string = $title.&mt('No match found for the above receipt.');   $string = $title.&mt('No match found for the above receipt number.');
     } else {      } else {
  $string = &jscriptNform($symb).$title.   $string = &jscriptNform($symb).$title.
     '<p>'.      '<p>'.
     &mt('The above receipt matches the following [numerate,_1,student].',$matches).      &mt('The above receipt number matches the following [numerate,_1,student].',$matches).
     '</p>'.      '</p>'.
     $header.      $header.
     $contents.      $contents.
Line 8474  sub grading_menu { Line 8474  sub grading_menu {
     $fields{'command'} = 'verify';      $fields{'command'} = 'verify';
     $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields);      $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields);
     push(@menu, { url => "",      push(@menu, { url => "",
                    name => &mt('Verify Receipt'),                     name => &mt('Verify Receipt No.'),
                    short_description =>                     short_description =>
             &mt('')});              &mt('')});
     # Create the menu      # Create the menu
Line 8489  sub grading_menu { Line 8489  sub grading_menu {
  '<input type="hidden" name="gradingMenu" value="1" />'."\n".   '<input type="hidden" name="gradingMenu" value="1" />'."\n".
  '<input type="hidden" name="showgrading" value="yes" />'."\n";   '<input type="hidden" name="showgrading" value="yes" />'."\n";
     foreach my $menudata (@menu) {      foreach my $menudata (@menu) {
         if ($menudata->{'name'} ne &mt('Verify Receipt')) {          if ($menudata->{'name'} ne &mt('Verify Receipt No.')) {
             $Str .='    <h3><a '.              $Str .='    <h3><a '.
                 $menudata->{'jscript'}.                  $menudata->{'jscript'}.
                 ' href="'.                  ' href="'.
                 $menudata->{'url'}.'" >'.                  $menudata->{'url'}.'" >'.
                 $menudata->{'name'}."</a></h3>\n";                  $menudata->{'name'}."</a></h3>\n";
         } else {          } else {
             $Str .='<hr /><input type="button" value="'.&mt('Verify Receipt').'" '.              $Str .='<hr /><input type="button" value="'.&mt('Verify Receipt No.').'" '.
                 $menudata->{'jscript'}.                  $menudata->{'jscript'}.
                 ' onClick="javascript:checkChoice(document.forms.gradingMenu,\'5\',\'verify\')" '.                  ' onClick="javascript:checkChoice(document.forms.gradingMenu,\'5\',\'verify\')" '.
                 ' /> '.                  ' /> '.

Removed from v.1.574.2.9  
changed lines
  Added in v.1.574.2.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>