Version 1.13a

This commit is contained in:
nemunaire 2020-11-15 16:12:30 +01:00
commit ba8f323879
1634 changed files with 10080 additions and 213021 deletions

View file

@ -1,52 +1,44 @@
{include file='game/header.tpl'}
<h2>File d'attente</h2>
<div class="file">
<ul class="onglets">
<li><a href="{$menu.chantierterrestre}"{if $onglet != "defenses"} class="hilight"{/if}>Unités</a></li>
<li><a href="{$menu.chantierterrestre}&amp;n=defenses"{if $onglet == "defenses"} class="hilight"{/if}>Défenses</a></li>
</ul><br /><br />
<h2>File d'attente</h2>
{if $file}
<ul id="file">
{foreach from=$file item=element key=key}
{if $i != true}<span><strong>Prochaine {if $element.5}unit&eacute;{else}d&eacute;fense{/if} </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.terrestre.noms_pluriel[$element.0]}{else}{$LANG.$race.terrestre.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.chantierterrestre}&amp;a={$key}">Annuler un</a> - <a href="{$menu.chantierterrestre}&amp;a={$key}&amp;n={$element.1}">Annuler tous</a></span>
{if $djpass != true}<li><strong>Prochaine {if $element.5}unit&eacute;{else}d&eacute;fense{/if} </strong> : <span class="countdown">{$element.4|countdown}</span></li>{/if}
<li>{$element.1} {if $element.1 > 1}{$LANG.$race.terrestre.noms_pluriel[$element.0]}{else}{$LANG.$race.terrestre.noms_sing[$element.0]}{/if}{if $element.2} (démolition){/if} - <span{if !$djpass} class="countdown"{assign var='djpass' value=true}{/if}>{$element.3|countdown}</span> - <a href="{$menu.chantierterrestre}&amp;n={$onglet}&amp;a={$key}">Annuler un</a> - <a href="{$menu.chantierterrestre}&amp;n={$onglet}&amp;a={$key}&amp;s={$element.1}">Annuler tous</a></li>
{/foreach}
{else} <span>Aucune unit&eacute; dans la file d'attente</span>{/if}
<br />
</div>
<h3><a href="{$menu.arbre}&amp;q=chantierterrestre">Arbre des technologies</a></h3><br />
<h2>Chantier terrestre </h2>
<table class="construction">
</ul>
{else}
<ul id="file">
<li>Aucune unit&eacute; dans la file d'attente</li>
</ul>
{/if}
<h3><a href="{$menu.arbre}&amp;q=chantierterrestre">Arbre des technologies</a></h3><br />
<h2>{$LANG.$race.batiments.noms_sing.7|ucfirst}</h2>
{if $unites}
<div id="constructions">
{foreach from=$unites item=unite}
<tr>
<td>
<a class="bulle" href="?p=description&amp;d={$unite.num}#menu">
<img width="130" height="132" src="{$url_images}images/terrestre/{$unite.image}" alt="Unit&eacute; terrestre" />
<span>{$LANG.$race.terrestre.descriptions[$unite.id]}</span>
</a>
</td>
<td>
<div>
<strong>{$LANG.$race.terrestre.noms_sing[$unite.id]|ucfirst}{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 {$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 de construction : {$unite.temps}<br /><br />
<form action="{$menu.chantierterrestre}&amp;v={$unite.id}" method="post">
<fieldset>
<input class="text" type="text" name="nombre" value="0" />
<input class="submit" name="terr{$unite.id}" type="submit" value="OK" />
</fieldset>
</form>
</div>
</td>
</tr>
<dl>
<dt>{$LANG.$race.terrestre.noms_sing[$unite.id]|ucfirst}{if $unite.nombre > 0} ({$unite.nombre} unité{if $unite.nombre > 1}s{/if}){/if}</dt>
<dd class="description"><a href="?p=description&amp;d={$unite.id}#body"><img src="{$url_images}images/terrestre/{$unite.image}" alt="{$LANG.$race.terrestre.noms_sing[$unite.id]|ucfirst}" /></a><p>{$LANG.$race.terrestre.descriptions[$unite.id]}</p></dd>
<dd>
{if $unite.nombre > 0}<strong>Nombre actuel :</strong> {$unite.nombre}<br /><br />{/if}
{if $unite.nec_metal > 0}<strong>Coût {$LANG.$race.ressources.noms.metal} :</strong> {$unite.nec_metal|separerNombres}<br />{/if}
{if $unite.nec_cristal > 0}<strong>Coût {$LANG.$race.ressources.noms.cristal} :</strong> {$unite.nec_cristal|separerNombres}<br />{/if}
{if $unite.nec_hydrogene > 0}<strong>Coût {$LANG.$race.ressources.noms.hydrogene} :</strong> {$unite.nec_hydrogene|separerNombres}<br />{/if}
<strong>Temps de construction :</strong> {$unite.temps}<br />
<br />
{if $unite.nec_hydrogene > $planete->hydrogene || $unite.nec_cristal > $planete->cristal || $unite.nec_metal > $planete->metal}<span class="lack">Ressources insuffisantes</span>
{else}<form action="{$menu.chantierterrestre}&amp;n={$onglet}&amp;v={$unite.id}" method="post"><fieldset>
<label for="terr{$unite.id}">Nombre : <input type="text" class="text" name="terr{$unite.id}" id="terr{$unite.id}" value="0" /></label>
<input type="submit" class="submit" value="OK" />
</fieldset></form>{/if}
</dd>
</dl>
{/foreach}
</table>
</div>
{else} <div id="erreur">Aucune unité ou défense ne peut être entraînée actuellement.</div>{/if}
{include file='game/footer.tpl'}