Diff for /loncom/interface/lonquickgrades.pm between versions 1.48 and 1.49

version 1.48, 2009/05/16 23:21:00 version 1.49, 2009/11/21 18:07:03
Line 25 Line 25
 #  #
 # http://www.lon-capa.org/  # http://www.lon-capa.org/
 #  #
 # Created Nov. 14, 2002 by Jeremy Bowers  
   
 package Apache::lonquickgrades;  package Apache::lonquickgrades;
   
Line 65  sub real_handler { Line 64  sub real_handler {
     my $showPoints =       my $showPoints = 
         $env{'course.'.$env{'request.course.id'}.'.grading'} eq 'standard';          $env{'course.'.$env{'request.course.id'}.'.grading'} eq 'standard';
     my $notshowSPRSlink =       my $notshowSPRSlink = 
         $env{'course.'.$env{'request.course.id'}.'.grading'} eq 'external';          (($env{'course.'.$env{'request.course.id'}.'.grading'} eq 'external')
         || ($env{'course.'.$env{'request.course.id'}.'.grading'} eq 'externalnototals'));
       my $notshowTotals=
           $env{'course.'.$env{'request.course.id'}.'.grading'} eq 'externalnototals';
   
     # Create the nav map      # Create the nav map
     my $navmap = Apache::lonnavmaps::navmap->new();      my $navmap = Apache::lonnavmaps::navmap->new();
Line 234  sub real_handler { Line 236  sub real_handler {
     if ($totalAttempted) {      if ($totalAttempted) {
  $title .= " / " . &mt("Attempted");   $title .= " / " . &mt("Attempted");
     }      }
     $r->print("<th>$title / ".&mt('Total').'</td>'      $r->print("<th>$title".($notshowTotals?'':" / ".&mt('Total')).'</th>'
              .&Apache::loncommon::end_data_table_header_row());               .&Apache::loncommon::end_data_table_header_row());
     while ($depth > 0) {      while ($depth > 0) {
         if ($curRes == $iterator->BEGIN_MAP()) {$depth++;}          if ($curRes == $iterator->BEGIN_MAP()) {$depth++;}
Line 262  sub real_handler { Line 264  sub real_handler {
     $r->print('<td valign="top">'      $r->print('<td valign="top">'
                              .$thisIndent                               .$thisIndent
                              .'<span class="LC_nobreak">'                               .'<span class="LC_nobreak">'
                              .$correct.' / '.$attempted.' / '.$total                               .$correct.' / '.$attempted.($notshowTotals?'':' / '.$total)
                              .'</span></td>'                               .'</span></td>'
                              .&Apache::loncommon::end_data_table_row()                               .&Apache::loncommon::end_data_table_row()
                     );                      );
Line 270  sub real_handler { Line 272  sub real_handler {
     $r->print('<td valign="top">'      $r->print('<td valign="top">'
                              .$thisIndent                               .$thisIndent
                              .'<span class="LC_nobreak">'                               .'<span class="LC_nobreak">'
                              .$correct.' / '.$total                               .$correct.($notshowTotals?'':' / '.$total)
                              .'</span></td>'                               .'</span></td>'
                              .&Apache::loncommon::end_data_table_row());                               .&Apache::loncommon::end_data_table_row());
  }   }

Removed from v.1.48  
changed lines
  Added in v.1.49


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