HB/templates/game/batiments.tpl

52 lines
3.5 KiB
Smarty

{include file='game/header.tpl'}
<h2>File d'attente</h2>
<div class="file">
{foreach from=$file item=fbat key=key}
<span>{$fbat.3} - <em id="reste{$key}"></em><script type="text/javascript">reste({$fbat.2},'reste{$key}', {if $key==0}true{else}false{/if});</script> - <a href="{$menu.batiments}&amp;a={$fbat.0}">Annuler</a></span>
{/foreach}
{if $Vchaine}<span>Aucun batiment dans la file d'attente</span>
{* {else}
{if $chaine}<span><a href="{$menu.batiments}&amp;r=1">Arrêter de produire à la chaîne</a></span>
{elseif $Pchaine}<span><a href="{$menu.batiments}&amp;r=0">Produire à la chaîne</a></span>{/if}
*} {/if}
<br />
</div>
<h3><a href="{$menu.arbre}&amp;q=batiments">Arbre des technologies</a></h3><br />
<h2>Batiments</h2>
<table class="construction">
{foreach from=$batiments item=batiment}
<tr>
<td>
<a class="bulle" href="?p=description&amp;b={$batiment.num}#menu">
<img width="130" height="132" src="images/batiments/{$batiment.image}" alt="{$batiment.nom}" />
<span>{$batiment.description}</span>
</a>
</td>
<td>
<div>
<strong>{$batiment.nom}{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 {$nomsressources.0|lower} : {$batiment.nec_metalS}</span><br />
{else}Coût {$nomsressources.0|lower} : {$batiment.nec_metalS}<br />{/if}
{/if}
{if $batiment.nec_cristal > 0}
{if $batiment.nec_cristal > $planete->cristal}<span class="lack">Coût {$nomsressources.1|lower} : {$batiment.nec_cristalS}</span><br />
{else}Coût {$nomsressources.1|lower} : {$batiment.nec_cristalS}<br />{/if}
{/if}
{if $batiment.nec_hydrogene > 0}
{if $batiment.nec_hydrogene > $planete->hydrogene}<span class="lack">Coût {$nomsressources.2|lower} : {$batiment.nec_hydrogeneS}</span><br />
{else}Coût {$nomsressources.2|lower} : {$batiment.nec_hydrogeneS}<br />{/if}
{/if}
Temps de construction : {$batiment.temps}<br /><br />
{if $batiment.enfile}<a href="{$menu.batiments}&amp;a={$batiment.num}">Arrêter</a>
{elseif $batiment.nec_hydrogene > $planete->hydrogene}<span class="lack" title="manque {if $batiment.maq_metal >0}{$batiment.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $batiment.maq_cristal >0}{$batiment.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $batiment.maq_hydrogene > 0}{$batiment.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
{elseif $batiment.nec_cristal > $planete->cristal}<span class="lack" title="manque {if $batiment.maq_metal >0}{$batiment.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $batiment.maq_cristal >0}{$batiment.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $batiment.maq_hydrogene > 0}{$batiment.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
{elseif $batiment.nec_metal > $planete->metal}<span class="lack" title="manque {if $batiment.maq_metal >0}{$batiment.maq_metal} de {$nomsressources.0|lower} ; {/if}{if $batiment.maq_cristal >0}{$batiment.maq_cristal} de {$nomsressources.1|lower} ; {/if}{if $batiment.maq_hydrogene > 0}{$batiment.maq_hydrogene} de {$nomsressources.2|lower}{/if}">Ressources insuffisantes</span>
{else}<a href="{$menu.batiments}&amp;c={$batiment.num}">Construire</a>
{/if}
</div>
</td>
</tr>
{/foreach}
</table>
{include file='game/footer.tpl'}