HB/templates/game/caserne.tpl

51 lines
2.5 KiB
Smarty
Raw Normal View History

2008-09-20 10:00:00 +00:00
{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&eacute; </strong> : <em id="resten"></em>
2008-11-08 11:00:00 +00:00
<script type="text/javascript">reste({$fterr.4},'resten', true);</script></span>{/if}
2008-09-20 10:00:00 +00:00
<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}&amp;a={$fterr.0}&amp;w={$key}">Annuler un</a> - <a href="{$menu.caserne}&amp;a={$fterr.0}&amp;n={$fterr.1}&amp;w={$key}">Annuler tous</a></span>
{/foreach}
{if $Vchaine}<span>Aucune unit&eacute; dans la file d'attente</span>{/if}
<br />
</div>
<h3><a href="{$menu.arbre}&amp;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&amp;c={$unite.num}#menu">
<img width="130" height="132" src="images/caserne/{$unite.image}" alt="Unit&eacute; 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}
2008-11-08 11:00:00 +00:00
Temps d'entra&icirc;nement : {$unite.temps}<br /><br />
2008-09-20 10:00:00 +00:00
<form action="{$menu.caserne}&amp;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'}