HB/onyx2/tpl/game/flotte1.tpl

45 lines
1.8 KiB
Smarty
Raw Normal View History

2009-11-01 11:00:00 +00:00
{include file='game/header.tpl'}
<h2>Flottes en action</h2>
<table>
<thead>
<tr><th>Nom</th><th>Mission</th><th>Nb.vaisseau(x)</th><th>Destination</th><th>Heure d'arrivée</th><th>Retour</th><th>Heure de retour</th></tr>
</thead>
<tbody>
{foreach from=$flottesEC item=flotteEC}
<tr>
<td><a href="{$menu.flotte}&amp;n={$flotteEC.0}">{$flotteEC.1|escape}</a></td>
<td>{$flotteEC.2}</td>
<td>{$flotteEC.3}</td>
<td>{$flotteEC.4|escape}</td>
<td>{$flotteEC.5}</td>
<td>{$flotteEC.6|escape}</td>
<td>{$flotteEC.7}</td>
</tr>
{/foreach}
</tbody>
</table>
<h2>Vaisseaux disponibles sur cette planète</h2>
<form action="{$menu.flotte}" method="post">
<table>
<thead>
<tr><th>Vaisseaux</th><th>Nombre disponible</th><th>Max</th><th>A envoyer<br />Flottes : {$nbflotte}/{$nbflottemax}</th></tr>
</thead>
<tfoot>
<tr><td colspan="4"><input class="button" type="button" value="Tous les vaisseaux" onclick="vaisseaux(true)" /> <input class="button" type="button" value="Aucun vaisseau" onclick="vaisseaux(false)" /></td></tr>
<tr><td colspan="4">{$action}</td></tr>
</tfoot>
<tbody>
{foreach from=$planete->vaisseaux key=key item=vaisseau}
{if $vaisseau > 0}
<tr>
<td>{if $vaisseau > 1}{$LANG.$race.vaisseaux.noms_pluriel[$key]|ucfirst}{else}{$LANG.$race.vaisseaux.noms_sing[$key]|ucfirst}{/if}</td>
<td>{$vaisseau|separerNombres}<span id="v_{$key}" style="display: none;">{$vaisseau}</span></td>
<td><input class="button" type="button" value="Max" onclick="max('{$key}')" /></td>
<td><input class="text" type="text" name="v{$key}" value="0" /></td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</form>
{include file='game/footer.tpl'}