HB/onyx2/tpl/game/batiments.tpl

47 lines
3.0 KiB
Smarty
Raw Normal View History

2009-11-01 11:00:00 +00:00
{include file='game/header.tpl'}
<h2>File d'attente</h2>
<div class="file">
{if $file}
{foreach from=$file item=element key=key}
<span>{$LANG.$race.batiments.noms_sing[$element.0]|ucfirst}{if $element.1} (démolition){/if} - <em id="reste{$key}"></em><script type="text/javascript">reste({$element.2},'reste{$key}', {if $i != true}{assign var='i' value=true}true{else}false{/if});</script> - <a href="{$menu.batiments}&amp;a={$key}">Annuler</a></span>
{/foreach}
{else} <span>Aucun b&acirc;timent dans la file d'attente</span>{/if}
<br />
</div>
<h3><a href="{$menu.arbre}&amp;q=batiments">Arbre des technologies</a></h3><br />
<h2>B&acirc;timents</h2>
<table class="construction">
{foreach from=$batiments item=batiment}
<tr>
<td>
<a class="bulle" href="?p=description&amp;b={$batiment.id}#menu">
<img width="130" height="132" src="{$url_images}images/batiments/{$batiment.image}" alt="{$LANG.$race.batiments.noms_sing[$batiment.id]}" />
<span>{$LANG.$race.batiments.descriptions[$batiment.id]}</span>
</a>
</td>
<td>
<div>
<strong>{$LANG.$race.batiments.noms_sing[$batiment.id]|ucfirst}{if $batiment.niveau > 0} (Niveau {$batiment.niveau}){/if}</strong><br /><br />
{if $batiment.nec_metal > 0}
{if $batiment.nec_metal > $planete->metal}<span class="lack">Coût {$LANG.$race.ressources.noms.metal} : {$batiment.nec_metal|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.metal} : {$batiment.nec_metal|separerNombres}<br />{/if}
{/if}
{if $batiment.nec_cristal > 0}
{if $batiment.nec_cristal > $planete->cristal}<span class="lack">Coût {$LANG.$race.ressources.noms.cristal} : {$batiment.nec_cristal|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.cristal} : {$batiment.nec_cristal|separerNombres}<br />{/if}
{/if}
{if $batiment.nec_hydrogene > 0}
{if $batiment.nec_hydrogene > $planete->hydrogene}<span class="lack">Coût {$LANG.$race.ressources.noms.hydrogene} : {$batiment.nec_hydrogene|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.hydrogene} : {$batiment.nec_hydrogene|separerNombres}<br />{/if}
{/if}
Temps de construction : {$batiment.temps}<br /><br />
{if $batiment.nec_hydrogene > $planete->hydrogene || $batiment.nec_cristal > $planete->cristal || $batiment.nec_metal > $planete->metal}<span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
{else}{if $planete->casesRest >= 1}<a href="{$menu.batiments}&amp;c={$batiment.id}">Construire</a>{/if}{/if}
{if $batiment.enfile !== false}<a href="{$menu.batiments}&amp;a={$batiment.enfile}">Arrêter</a>{/if}
{if $batiment.niveau > 0} <a href="{$menu.batiments}&amp;d={$batiment.id}">Démolir un niveau</a>{/if}
</div>
</td>
</tr>
{/foreach}
</table>
{include file='game/footer.tpl'}