+ <th>
+ <a href="player.pl?id=[% pl.player %]">[% pl.nick %]</a>
+ </th>
+ [% FOR s = pl.songs %]
+ <td class="score">[% s.score %]</td>
+ <td class="playmode">[% s.playmode %]</td>
+ <td class="difficulty">[% s.difficulty %]</td>
+ [% IF s.chosen %]
+ <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
+ [% END %]
+ [% END %]
+ [% IF p.num_songs > 1 %]
+ <td>[% pl.total %]</td>
+ [% END %]
+[% IF pl.best_rank == pl.worst_rank %]
+ <td>[% pl.best_rank %]
+[% ELSE %]
+ <td>[% pl.best_rank %]-[% pl.worst_rank %]</td>
+[% END %]
+ </tr>
+ [% ELSE %]
+ <tr>
+ <th><a href="player.pl?id=[% pl.player %]">[% pl.nick %]</a></th>
+ [% FOR s = pl.songs %]
+ <td class="score">
+ <input type="hidden" name="old-score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" />
+ <input name="score[% pl.player %]-[% s.songnumber %]" value="[% s.score %]" size="5" />
+ </td>
+ <td class="playmode">
+ <input type="hidden" name="old-playmode[% pl.player %]-[% s.songnumber %]" value="[% s.playmode %]" />
+ <select name="playmode[% pl.player %]-[% s.songnumber %]">
+ <option value=""> </option>
+ [% IF s.playmode == 'single' %]
+ <option value="single" selected="selected">S</option>
+ [% ELSE %]
+ <option value="single">S</option>
+ [% END %]
+ [% IF s.playmode == 'double' %]
+ <option value="double" selected="selected">D</option>
+ [% ELSE %]
+ <option value="double">D</option>
+ [% END %]
+ </select>
+ </td>
+ <td class="difficulty">
+[% IF !s.chosen %]
+ <input type="hidden" name="song[% pl.player %]-[% s.songnumber %]" value="[% s.song %]" />
+[% END %]
+ <input type="hidden" name="old-difficulty[% pl.player %]-[% s.songnumber %]" value="[% s.difficulty %]" />
+ <select name="difficulty[% pl.player %]-[% s.songnumber %]">
+ <option value=""> </option>
+ [% IF s.difficulty == 'beginner' %]
+ <option value="beginner" selected="selected">B</option>
+ [% ELSE %]
+ <option value="beginner">B</option>
+ [% END %]
+ [% IF s.difficulty == 'standard' %]
+ <option value="standard" selected="selected">S</option>
+ [% ELSE %]
+ <option value="standard">S</option>
+ [% END %]
+ [% IF s.difficulty == 'difficult' %]
+ <option value="difficult" selected="selected">D</option>
+ [% ELSE %]
+ <option value="difficult">D</option>
+ [% END %]
+ [% IF s.difficulty == 'expert' %]
+ <option value="expert" selected="selected">E</option>
+ [% ELSE %]
+ <option value="expert">E</option>
+ [% END %]
+ [% IF s.difficulty == 'challenge' %]
+ <option value="challenge" selected="selected">C</option>
+ [% ELSE %]
+ <option value="challenge">C</option>
+ [% END %]
+ </select>
+ </td>
+ [% IF s.chosen %]