forked from halo-battle/game
Ajout d'une page de classement basique
This commit is contained in:
parent
8bb4fdf398
commit
9c353cc6e5
4 changed files with 73 additions and 1 deletions
22
onyx2/tpl/game/classement.tpl
Normal file
22
onyx2/tpl/game/classement.tpl
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{include file='game/header.tpl'}
|
||||
<h2>Classement</h2>
|
||||
|
||||
Race : <a href="{$menu.classement}">Global</a> - <a href="{$menu.classement}&r=humain">Humains</a> - <a href="{$menu.classement}&r=covenant">Covenants</a>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Rang</th>
|
||||
<th>Pseudo</th>
|
||||
<th>Race</th>
|
||||
<th>Points</th>
|
||||
</tr>
|
||||
{foreach from=$joueurs item=joueur}
|
||||
<tr {if $joueur.id == $user}style="font-weight:bold;"{/if}>
|
||||
<th>#{$joueur.place_points}</th>
|
||||
<td>{$joueur.pseudo}</td>
|
||||
<td>{$joueur.race}</td>
|
||||
<td>{$joueur.points}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{include file='game/footer.tpl'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue