HB/templates/game/gestion.tpl

68 lines
2.3 KiB
Smarty
Raw Normal View History

2008-11-03 11:00:00 +00:00
{include file='game/header.tpl'}
2008-11-08 11:00:00 +00:00
<h2>Politique</h2>
<form action="{$menu.gestion}" method="post">
<fieldset class="options">
<label for="politique">Politique actuelle :</label>
<select name="politique" id="politique">{html_options options=$politiques selected=$planete->politique}</select><br /><br />
<label>Dernier changement de régime :</label>{$planete->politique_lastchange|date_format:"%A %d %B %y"}<br /><br />
2008-11-19 11:00:00 +00:00
<label>Moral global de la population :</label>{$planete->moral*100}%<br /><br /><br />
2008-11-08 11:00:00 +00:00
<input class="submit" type="submit" value="Ok" />
</fieldset>
</form>
2008-11-03 11:00:00 +00:00
<h2>Gestion</h2>
<div id="gestion">
<table>
<thead>
<tr>
<td></td>
{foreach from=$planetes item=plan}
<td><img src="images/planetes/{$plan.image}.jpg" alt="{$plan.image}" title="{$plan.nom_planete}" width="80" height="80" /></td>
{/foreach}
</tr>
<tr>
<th></th>
{foreach from=$planetes item=plan}
<th>{$plan.nom_planete|escape}</th>
{/foreach}
</tr>
</thead>
<tbody>
<tr>
<td class="hightlight">{$nomsressources.0}</td>
{foreach from=$planetes item=plan}
2008-11-08 11:00:00 +00:00
{if $plan.id == $planeteEC.id}{assign var='plan' value=$planeteEC}{/if}
2008-09-20 10:00:00 +00:00
<td>{$plan.metal|separernombres}</td>
2008-11-03 11:00:00 +00:00
{/foreach}
</tr>
<tr>
<td class="hightlight">{$nomsressources.1}</td>
{foreach from=$planetes item=plan}
2008-11-08 11:00:00 +00:00
{if $plan.id == $planeteEC.id}{assign var='plan' value=$planeteEC}{/if}
2008-09-20 10:00:00 +00:00
<td>{$plan.cristal|separernombres}</td>
2008-11-03 11:00:00 +00:00
{/foreach}
</tr>
<tr>
<td class="hightlight">{$nomsressources.2}</td>
{foreach from=$planetes item=plan}
2008-11-08 11:00:00 +00:00
{if $plan.id == $planeteEC.id}{assign var='plan' value=$planeteEC}{/if}
2008-09-20 10:00:00 +00:00
<td>{$plan.hydrogene|separernombres}</td>
2008-11-03 11:00:00 +00:00
{/foreach}
</tr>
<tr>
<td class="hightlight">{$nomsressources.3}</td>
{foreach from=$planetes item=plan}
2008-11-08 11:00:00 +00:00
{if $plan.id == $planeteEC.id}{assign var='plan' value=$planeteEC}{/if}
2008-11-19 11:00:00 +00:00
<td>{$plan.energie|separerNombres}</td>
2008-11-08 11:00:00 +00:00
{/foreach}
</tr>
<tr>
<td class="hightlight">Population</td>
{foreach from=$planetes item=plan}
{if $plan.id == $planeteEC.id}{assign var='plan' value=$planeteEC}{/if}
2008-11-19 11:00:00 +00:00
<td>{$plan.population|separerNombres}</td>
2008-11-03 11:00:00 +00:00
{/foreach}
</tr>
</tbody>
</table>
</div>
{include file='game/footer.tpl'}