Diff for /loncom/homework/grades.pm between versions 1.348 and 1.349

version 1.348, 2006/04/09 20:53:27 version 1.349, 2006/04/10 06:34:07
Line 726  LISTJAVASCRIPT Line 726  LISTJAVASCRIPT
         '&nbsp;<b>Grading Increments:</b> <select name="increment">'.          '&nbsp;<b>Grading Increments:</b> <select name="increment">'.
         '<option value="1">Whole Points</option>'.          '<option value="1">Whole Points</option>'.
         '<option value=".5">Half Points</option>'.          '<option value=".5">Half Points</option>'.
         '<option value=".25">Quarter Points</options>'.          '<option value=".25">Quarter Points</option>'.
         '<option values=".1">Tenths of a Point</option>'.          '<option value=".1">Tenths of a Point</option>'.
         '</select>'.          '</select>'.
   
  '<input type="hidden" name="section"     value="'.$getsec.'" />'."\n".   '<input type="hidden" name="section"     value="'.$getsec.'" />'."\n".
Line 1443  sub sub_page_kw_js { Line 1443  sub sub_page_kw_js {
 SUBJAVASCRIPT  SUBJAVASCRIPT
 }  }
   
 sub getIncrement  sub get_increment {
 {  
     my $increment = $env{'form.increment'};      my $increment = $env{'form.increment'};
     if ($increment != 1 && $increment != .5 && $increment != .25 &&      if ($increment != 1 && $increment != .5 && $increment != .25 &&
         $increment != .1) {          $increment != .1) {
Line 1476  sub gradeBox { Line 1475  sub gradeBox {
  '<b>Part: </b>'.$display_part.' <b>Points: </b></td><td>'."\n";   '<b>Part: </b>'.$display_part.' <b>Points: </b></td><td>'."\n";
     my $ctr = 0;      my $ctr = 0;
     my $thisweight = 0;      my $thisweight = 0;
     my $increment = getIncrement();      my $increment = &get_increment();
     $result.='<table border="0"><tr>'."\n";  # display radio buttons in a nice table 10 across      $result.='<table border="0"><tr>'."\n";  # display radio buttons in a nice table 10 across
     while ($thisweight<=$wgt) {      while ($thisweight<=$wgt) {
  $result.= '<td><nobr><label><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.   $result.= '<td><nobr><label><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.
Line 2015  KEYWORDS Line 2014  KEYWORDS
     '<input type="button" value="Next" '.      '<input type="button" value="Next" '.
     'onClick="javascript:checksubmit(this.form,\'Next\');" TARGET=_self> &nbsp;';      'onClick="javascript:checksubmit(this.form,\'Next\');" TARGET=_self> &nbsp;';
  $endform.='(Next and Previous (student) do not save the scores.)'."\n" ;   $endform.='(Next and Previous (student) do not save the scores.)'."\n" ;
         $endform.="<input type='hidden' value='" . getIncrement() .          $endform.="<input type='hidden' value='".&get_increment().
             "' name='increment' />";              "' name='increment' />";
  $endform.='</td><tr></table></form>';   $endform.='</td><tr></table></form>';
  $endform.=&show_grading_menu_form($symb);   $endform.=&show_grading_menu_form($symb);

Removed from v.1.348  
changed lines
  Added in v.1.349


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