forked from halo-battle/game
51 lines
2.5 KiB
Smarty
51 lines
2.5 KiB
Smarty
{include file='game/header.tpl'}
|
|
<h2>File d'attente</h2>
|
|
<div class="file">
|
|
{foreach from=$file item=fterr key=key}
|
|
{if $key==0}<span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
|
<script type="text/javascript">reste({$fterr.4},'resten', true);</script></span>{/if}
|
|
<span>{$fterr.1} {$fterr.3} - <em id="reste{$key}"></em><script type="text/javascript">reste({$fterr.2},'reste{$key}', {if $key==0}true{else}false{/if});</script>
|
|
- <a href="{$menu.caserne}&a={$fterr.0}&w={$key}">Annuler un</a> - <a href="{$menu.caserne}&a={$fterr.0}&n={$fterr.1}&w={$key}">Annuler tous</a></span>
|
|
{/foreach}
|
|
{if $Vchaine}<span>Aucune unité dans la file d'attente</span>{/if}
|
|
<br />
|
|
</div>
|
|
<h3><a href="{$menu.arbre}&q=caserne">Arbre des technologies</a></h3><br />
|
|
<h2>{$titre}</h2>
|
|
<table class="construction">
|
|
{foreach from=$unites item=unite}
|
|
<tr>
|
|
<td>
|
|
<a class="bulle" href="?p=description&c={$unite.num}#menu">
|
|
<img width="130" height="132" src="{$url_images}images/caserne/{$unite.image}" alt="Unité terrestre" />
|
|
<span>{$unite.description}</span>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div>
|
|
<strong>{$unite.nom}{if $unite.nombre > 0} ({$unite.nombre} unité{if $unite.nombre > 1}s{/if}){/if}</strong><br /><br />
|
|
{if $unite.nec_metal > 0}
|
|
{if $unite.nec_metal > $planete->metal}<span class="lack">Coût {$nomsressources.0|lower} : {$unite.nec_metalS}</span><br />
|
|
{else}Coût {$nomsressources.0|lower} : {$unite.nec_metalS}<br />{/if}
|
|
{/if}
|
|
{if $unite.nec_cristal > 0}
|
|
{if $unite.nec_cristal > $planete->cristal}<span class="lack">Coût {$nomsressources.1|lower} : {$unite.nec_cristalS}</span><br />
|
|
{else}Coût {$nomsressources.1|lower} : {$unite.nec_cristalS}<br />{/if}
|
|
{/if}
|
|
{if $unite.nec_hydrogene > 0}
|
|
{if $unite.nec_hydrogene > $planete->hydrogene}<span class="lack">Coût {$nomsressources.2|lower} : {$unite.nec_hydrogeneS}</span><br />
|
|
{else}Coût {$nomsressources.2|lower} : {$unite.nec_hydrogeneS}<br />{/if}
|
|
{/if}
|
|
Temps d'entraînement : {$unite.temps}<br /><br />
|
|
<form action="{$menu.caserne}&v={$unite.num}" method="post">
|
|
<fieldset>
|
|
<input class="text" type="text" name="nombre" value="0" />
|
|
<input class="submit" type="submit" value="OK" />
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
{include file='game/footer.tpl'} |