Start with all the divisions set to "novice", this way, they dont specifically need to put something in every row, they only need to change the ones that they know.

This commit is contained in:
james 2010-12-16 16:49:41 +00:00
parent c098354179
commit c1afa5f00f

View File

@ -188,6 +188,7 @@ echo "<input type=\"hidden\" name=\"users_id\" value=\"{$u['id']}\">\n";
echo "<tr class=\"$trclass\"><td><b>".i18n($r->division)."</b></td>"; echo "<tr class=\"$trclass\"><td><b>".i18n($r->division)."</b></td>";
for($x=1;$x<=5;$x++) { for($x=1;$x<=5;$x++) {
if(!$u['div_prefs'][$r->id]) $u['div_prefs'][$r->id]=1;
$sel = ($u['div_prefs'][$r->id]==$x) ? "checked=\"checked\"" : ''; $sel = ($u['div_prefs'][$r->id]==$x) ? "checked=\"checked\"" : '';
echo "<td width=\"30\"><input onclick=\"fieldChanged()\" $sel type=\"radio\" name=\"division[$r->id]\" value=\"$x\" /></td>"; echo "<td width=\"30\"><input onclick=\"fieldChanged()\" $sel type=\"radio\" name=\"division[$r->id]\" value=\"$x\" /></td>";
} }