forked from halo-battle/game
56 lines
2.6 KiB
Smarty
56 lines
2.6 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>
|
|
{foreach from=$bourse item=action}
|
|
<div style="float: left;">
|
|
<table>
|
|
<tr>
|
|
<td colspan="3"><a href="{$menu.bourse}&d={$action.id}"><img src="bourse.php?a={$action.id}" alt="{$action.nom}" /></a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{if $action.evolution > 0}FVerte{else}FRouge{/if}</td>
|
|
<td>{if $action.evolution > 0}+{/if}{$action.evolution|floor}%</td>
|
|
<td>{if $action.evolution > 0}+{/if}{$action.evolution|floor}%</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<form action="{$menu.bourse}&a={$action.id}" method="post">
|
|
<fieldset>
|
|
Acheter : <input type="text" class="text" name="a{$action.id}" maxlength="3" value="0" />
|
|
<input type="submit" class="submit" value="OK" />
|
|
</fieldset>
|
|
</form>
|
|
</td>
|
|
<td rowspan="2"><strong>Valeur :</strong><br />Métal : {$action.metal|floor}<br />Cristal : {$action.cristal|floor}</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<form action="{$menu.bourse}&v={$action.id}" method="post">
|
|
<fieldset>
|
|
Vendre : <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>
|
|
</table>
|
|
</div>
|
|
{/foreach}
|
|
{if $auth_level >= 3}
|
|
<h2 style="clear: both;">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'} |