HB/onyx2/tpl/game/description.tpl

130 lines
3.6 KiB
Smarty

{include file='game/header.tpl'}
<h2>Détails {$type} : {$LANG.$raceAff.$type.noms_sing.$id}</h2>
<table style="width: 400px;">
<tbody>
<tr>
<td style="width: 120px;"><img src="{$url_images}images/{$type}/{$image}" alt="{$type|ucfirst}" /></td>
<td><b>{$LANG.$raceAff.$type.noms_sing.$id|ucfirst}</b><br />Actuellement : {if $type != 'vaisseaux' && $type != 'terrestre' && $type != 'caserne'}niveau{/if} {$planete->$type.$id}{if $type == 'vaisseaux' || $type == 'terrestre' || $type == 'caserne'} unités{/if}</td>
</tr>
<tr>
<td colspan="2">{$LANG.$raceAff.$type.descriptions.$id}</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th colspan="2">Coûts {if $type == 'vaisseaux' || $type == 'terrestre' || $type == 'caserne'}unité{else}prochain niveau{/if}</th>
</tr>
</thead>
<tbody>
{if $ressourcesNext.0}
<tr>
<th>{$LANG.$raceAff.ressources.noms.metal|ucfirst}</th>
<td>{$ressourcesNext.0|separerNombres}</td>
</tr>
{/if}
{if $ressourcesNext.1}
<tr>
<th>{$LANG.$raceAff.ressources.noms.cristal|ucfirst}</th>
<td>{$ressourcesNext.1|separerNombres}</td>
</tr>
{/if}
{if $ressourcesNext.2}
<tr>
<th>{$LANG.$raceAff.ressources.noms.hydrogene|ucfirst}</th>
<td>{$ressourcesNext.2|separerNombres}</td>
</tr>
{/if}
<tr>
<th>Temps</th>
<td>{$ressourcesNext.3|separerNombres}</td>
</tr>
</tbody>
</table>
</td>
</tr>
{if $tableau_prod}
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th colspan="5">Production et consomation théoriques</th>
</tr>
<tr>
<th>Niveau</th>
<th>Production</th>
<th>Consomation</th>
<th>Différence prod.</th>
<th>Différence conso.</th>
</tr>
</thead>
<tbody>
{foreach from=$tableau_prod item=ligne}
{if $ligne.0 == $planete->$type.$id}<tr style="color: #F0F0F0;">{else}<tr>{/if}
<td style="font-weight: bold;">{$ligne.0}</td>
<td>{$ligne.1|separerNombres}</td>
<td>{$ligne.2|separerNombres}</td>
<td>{if $ligne.3 > 0}+{/if}{$ligne.3|separerNombres}</td>
<td>{if $ligne.4 > 0}+{/if}{$ligne.4|separerNombres}</td>
</tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
{elseif $caract}
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th colspan="2">Caractéristiques</th>
</tr>
</thead>
<tbody>
<tr>
<th>Attaque</th>
<td>{$caract.0|separerNombres}</td>
</tr>
<tr>
<th>Bouclier</th>
<td>{$caract.1|separerNombres}</td>
</tr>
<tr>
<th>Points de vie</th>
<td>{$caract.2|separerNombres}</td>
</tr>
{if $caract.3}
<tr>
<th>Capacité de transport</th>
<td>{$caract.3|separerNombres}</td>
</tr>
{/if}
</tbody>
</table>
</td>
</tr>
{/if}
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th>Requiert</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$etat}</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tfoot>
</table>
{include file='game/footer.tpl'}