forked from halo-battle/game
42 lines
No EOL
1.2 KiB
Smarty
42 lines
No EOL
1.2 KiB
Smarty
{include file='game/header.tpl'}
|
|
<h2>Bourse</h2>
|
|
<table class="bourse">
|
|
<thead>
|
|
<tr>
|
|
<th>Action</th>
|
|
<th>Evolution</th>
|
|
<th>Valeur Métal</th>
|
|
<th>Valeur Cristal</th>
|
|
<th>Acheter</th>
|
|
<th>Vendre</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$bourse item=action}
|
|
<tr>
|
|
<td><a href="#">{$action.nom}</a></td>
|
|
<td>{if $action.evolution >= 0}+{/if}{$action.evolution}%</td>
|
|
<td>{$action.metal}</td>
|
|
<td>{$action.cristal}</td>
|
|
<td>
|
|
<form action="{$menu.bourse}&a={$action.id}" method="post">
|
|
<fieldset>
|
|
<input type="text" class="text" name="a{$action.id}" maxlength="3" value="0" />
|
|
<input type="submit" class="submit" value="OK" />
|
|
</fieldset>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
<form action="{$menu.bourse}&v={$action.id}" method="post">
|
|
<fieldset>
|
|
<input type="text" class="text" name="v{$action.id}" maxlength="3" value="0" />/{$action.nbactions}
|
|
<input type="submit" class="submit" value="OK" />
|
|
</fieldset>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
</table>
|
|
{include file='game/footer.tpl'} |