]> git.sesse.net Git - ccbs/blob - html/templates/player.tmpl
0e52434878f8ae1ccb64d6b581627d6263f58520
[ccbs] / html / templates / player.tmpl
1 [%# vim:set filetype=html: %]
2   <h2>Generelle fakta</h2>
3
4   <div>
5     <ul>
6       <li>Nick: [% player.nick %]</li>
7       <li>Land: [% player.countryname %]</li>
8 [% IF player.clubname != '' %]
9       <li>Klubb: [% player.clubname %]</li>
10 [% END %]      
11     </ul>
12   </div>
13
14   <h2>Beste sanger</h2>
15
16   <div>
17     <table>
18       <tr>
19         <th></th>
20         <th>Sang</th>
21         <th>Poengsum</th>
22         <th>Arrangement</th>
23       </tr>
24
25 [% SET rowno = 1 %]
26 [% FOR s = bestsongs %]
27       <tr>
28         <th>[% rowno %]</th>
29 [% SET rowno = rowno + 1 %]
30         <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
31         <td>[% s.score %]</td>
32         <td><a href="show-tournament.pl?id=[% s.tournament %]">[% s.tournamentname %]</a></td>
33       </tr>
34 [% END %]
35     </table>
36   </div>
37
38   <div>
39     <h2>Alle sanger</h2>
40    
41     <table>
42 [% FOR s = allsongs %]
43       <tr>
44         <th>[% s.title %]</th>
45 [% SET col = 0 %]
46 [% FOR score = s.scores %]
47         <td>[% score %]</td>
48 [% SET col = col + 1 %]
49 [% END %]
50 [% WHILE col != columns %]
51         <td class="empty"></td>
52 [% SET col = col + 1 %]
53 [% WEND %]
54 [% END %]
55       </tr>
56 [% END %]
57     </table>
58   </div>