- Make the age pulldown selection based on ages, not grades

This commit is contained in:
dave 2007-01-24 03:56:46 +00:00
parent ff76c06e17
commit 668565919f

View File

@ -319,8 +319,8 @@ if($config['participant_student_personal']=="yes")
//the year selector should be based on the min/max grades possible
//assume min age of 3 for grade=0 (kindergarden)
//assume max age of 18 for grade=12
$minyearselect=$config['FAIRYEAR'] - 6 - $config['maxgrade'];
$maxyearselect=$config['FAIRYEAR'] - 3 - $config['mingrade'];
$minyearselect=$config['FAIRYEAR'] - $config['maxage'];
$maxyearselect=$config['FAIRYEAR'] - $config['minage'];
emit_year_selector("year[$x]",$year,$minyearselect,$maxyearselect);
echo "</td><td>".REQUIREDFIELD."</td></tr></table>\n";
echo "</td>\n";