forked from halo-battle/game
46 lines
2.8 KiB
Smarty
46 lines
2.8 KiB
Smarty
{include file='game/header.tpl'}
|
|
<h2>Bourse : {$bourse.nom}</h2>
|
|
<h4>Valeurs au {$date}</h4>
|
|
<br />
|
|
<h4>Valeur métal : {$bourse.metal|floor}</h4>
|
|
<h4>Valeur cristal : {$bourse.cristal|floor}</h4>
|
|
<h4>Evolution de l'action depuis l'ouverture de la bourse : {if $bourse.evolution > 0}+{/if}{$bourse.evolution|floor}%</h4>
|
|
<br />
|
|
<h4>Achat unité métal : {$bourse.metal*$taxeA|floor}</h4>
|
|
<h4>Achat unité cristal : {$bourse.cristal*$taxeA|floor}</h4>
|
|
<br />
|
|
<h4>Vente unité métal : {$bourse.metal/$taxeV|floor}</h4>
|
|
<h4>Vente unité cristal : {$bourse.cristal/$taxeV|floor}</h4>
|
|
<br />
|
|
<h4>Vous possédez {$poss} actions de {$bourse.nom}</h4>
|
|
<h4>Vous avez acheté {$poss24} actions de {$bourse.nom} dans les dernières 24h</h4>
|
|
<br />
|
|
{$bourse.description|escape|nl2br}
|
|
<br /><br />
|
|
<h4><form action="{$menu.bourse}&a={$bourse.id}" method="post"><p>Acheter : <input type="text" class="text" name="a{$bourse.id}" maxlength="1" value="0" /><input type="submit" class="submit" value="OK" /></p></form></h4>
|
|
<h4><form action="{$menu.bourse}&v={$bourse.id}" method="post"><p>Vendre : <input type="text" class="text" name="a{$bourse.id}" maxlength="1" value="0" /><input type="submit" class="submit" value="OK" /></p></form></h4>
|
|
{if $auth_level >= 3}
|
|
<br /><h2>Modification de l'action</h2>
|
|
<form action="{$menu.bourse}&e={$bourse.id}" 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>
|
|
<input class="submit" type="submit" value="Ok" />
|
|
</fieldset>
|
|
</form>
|
|
<form action="{$menu.bourse}&e={$bourse.id}" method="post">
|
|
<fieldset class="options">
|
|
<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 />
|
|
<input class="submit" type="submit" value="Créer la news" />
|
|
</fieldset>
|
|
</form>
|
|
<form action="{$menu.bourse}&e={$bourse.id}" method="post">
|
|
<fieldset class="options">
|
|
<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'} |