forked from halo-battle/game
Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
54
onyx2/tpl/game/caserne.tpl
Normal file
54
onyx2/tpl/game/caserne.tpl
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{include file='game/header.tpl'}
|
||||
<h2>File d'attente</h2>
|
||||
<div class="file">
|
||||
{if $file}
|
||||
{foreach from=$file item=element key=key}
|
||||
{if $i != true}<span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
||||
<script type="text/javascript">reste({$element.4},'resten', true);</script></span>{/if}
|
||||
<span>{$element.1} {if $element.1 > 1}{$LANG.$race.caserne.noms_pluriel[$element.0]}{else}{$LANG.$race.caserne.noms_sing[$element.0]}{/if}{if $element.2} (démolition){/if} - <em id="reste{$key}"></em><script type="text/javascript">reste({$element.3},'reste{$key}', {if $i != true}{assign var='i' value=true}true{else}false{/if});</script>
|
||||
- <a href="{$menu.caserne}&a={$key}">Annuler un</a> - <a href="{$menu.caserne}&a={$key}&n={$element.1}">Annuler tous</a></span>
|
||||
{/foreach}
|
||||
{else} <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>{$LANG.$race.batiments.noms_sing.9|ucfirst}</h2>
|
||||
{if $unites}
|
||||
<table class="construction">
|
||||
{foreach from=$unites item=unite}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&c={$unite.id}#menu">
|
||||
<img width="130" height="132" src="{$url_images}images/caserne/{$unite.image}" alt="Unité terrestre" />
|
||||
<span>{$LANG.$race.caserne.descriptions[$unite.id]}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong>{$LANG.$race.caserne.noms_sing[$unite.id]|ucfirst}{if $unite.nombre > 0} ({$unite.nombre|separerNombres} 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 {$LANG.$race.ressources.noms.metal} : {$unite.nec_metal|separerNombres}</span><br />
|
||||
{else}Coût {$LANG.$race.ressources.noms.metal} : {$unite.nec_metal|separerNombres}<br />{/if}
|
||||
{/if}
|
||||
{if $unite.nec_cristal > 0}
|
||||
{if $unite.nec_cristal > $planete->cristal}<span class="lack">Coût {$LANG.$race.ressources.noms.cristal} : {$unite.nec_cristal|separerNombres}</span><br />
|
||||
{else}Coût {$LANG.$race.ressources.noms.cristal} : {$unite.nec_cristal|separerNombres}<br />{/if}
|
||||
{/if}
|
||||
{if $unite.nec_hydrogene > 0}
|
||||
{if $unite.nec_hydrogene > $planete->hydrogene}<span class="lack">Coût {$LANG.$race.ressources.noms.hydrogene} : {$unite.nec_hydrogene|separerNombres}</span><br />
|
||||
{else}Coût {$LANG.$race.ressources.noms.hydrogene} : {$unite.nec_hydrogene|separerNombres}<br />{/if}
|
||||
{/if}
|
||||
Temps d'entraînement : {$unite.temps}<br /><br />
|
||||
<form action="{$menu.caserne}&v={$unite.id}" 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>
|
||||
{else}<div class="error" style="color: red;">Aucune unité à entraîner actuellement.</div>{/if}
|
||||
{include file='game/footer.tpl'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue