forked from halo-battle/game
60 lines
2.5 KiB
Smarty
60 lines
2.5 KiB
Smarty
|
{include file='game/header.tpl'}
|
||
|
<h2>Dernières infos</h2>
|
||
|
{foreach from=$infos item=info}
|
||
|
<h4><a href="{$menu.bourse}&d={$info.id}">{$info.nom} :</a> {$info.description}</h4>
|
||
|
{/foreach}
|
||
|
<br /><h2>Bourse</h2>
|
||
|
<table class="bourse">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Action</th>
|
||
|
<th>Evolution</th>
|
||
|
<th>Valeur {$nomsressources.0}</th>
|
||
|
<th>Valeur {$nomsressources.1}</th>
|
||
|
<th>Acheter</th>
|
||
|
<th>Vendre</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{foreach from=$bourse item=action}
|
||
|
<tr>
|
||
|
<td><a href="{$menu.bourse}&d={$action.id}">{$action.nom}</a></td>
|
||
|
<td>{if $action.evolution > 0}+{/if}{$action.evolution|floor}%</td>
|
||
|
<td>{$action.metal|floor}</td>
|
||
|
<td>{$action.cristal|floor}</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="a{$action.id}" maxlength="3" value="0" />/{$action.nbactions}
|
||
|
<input type="submit" class="submit" value="OK" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/foreach}
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{if $auth_level >= 3}
|
||
|
<h2>Nouvelle action</h2>
|
||
|
<form action="{$menu.bourse}&c=new" method="post">
|
||
|
<fieldset class="options">
|
||
|
<label for="nomaction">Nom de l'action :</label><input type="text" name="nomaction" id="nomaction" maxlength="255" value="{$bourse.nom}" class="text" /><br />
|
||
|
<label for="descaction">Description de l'action :</label><br />
|
||
|
<textarea id="descaction" name="descaction">{$bourse.description|escape}</textarea>
|
||
|
<label for="newsaction">News de l'action (apparaît sur la page d'accueil) :</label><input type="text" name="newsaction" id="newsaction" class="text" value="{$bourse.news}" maxlength="255" /><br />
|
||
|
<label for="prixAM">Valeur en métal de l'action :</label><input type="text" name="prixAM" id="prixAM" maxlength="15" value="{$bourse.metal}" class="text" /><br />
|
||
|
<label for="prixAC">Valeur en cristal de l'action :</label><input type="text" name="prixAC" id="prixAC" maxlength="15" value="{$bourse.cristal}" class="text" /><br />
|
||
|
<input class="submit" type="submit" value="Ok" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
{/if}
|
||
|
{include file='game/footer.tpl'}
|