2008-11-19 11:00:00 +00:00
|
|
|
<?php /* Smarty version 2.6.19, created on 2008-11-19 22:45:26
|
2008-09-20 10:00:00 +00:00
|
|
|
compiled from game/chantierterrestre.tpl */ ?>
|
|
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/chantierterrestre.tpl', 28, false),)), $this); ?>
|
|
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/header.tpl', 'smarty_include_vars' => array()));
|
|
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
|
|
unset($_smarty_tpl_vars);
|
|
|
|
?>
|
|
|
|
<h2>File d'attente</h2>
|
|
|
|
<div class="file">
|
|
|
|
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['fterr']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['key'] == 0): ?><span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
|
|
|
<script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['4']; ?>
|
|
|
|
,'resten', true);</script></span><?php endif; ?>
|
|
|
|
<span><?php echo $this->_tpl_vars['fterr']['1']; ?>
|
|
|
|
<?php echo $this->_tpl_vars['fterr']['3']; ?>
|
|
|
|
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fterr']['2']; ?>
|
|
|
|
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script>
|
|
|
|
- <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
|
|
|
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
|
|
|
&w=<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
|
|
|
&a=<?php echo $this->_tpl_vars['fterr']['0']; ?>
|
|
|
|
&n=<?php echo $this->_tpl_vars['fterr']['1']; ?>
|
|
|
|
&w=<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
">Annuler tous</a></span>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucune unité dans la file d'attente</span><?php endif; ?>
|
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
|
|
|
&q=chantierterrestre">Arbre des technologies</a></h3><br />
|
|
|
|
<h2>Chantier terrestre </h2>
|
|
|
|
<table class="construction">
|
|
|
|
<?php $_from = $this->_tpl_vars['unites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['unite']):
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a class="bulle" href="?p=description&d=<?php echo $this->_tpl_vars['unite']['num']; ?>
|
|
|
|
#menu">
|
|
|
|
<img width="130" height="132" src="images/terrestre/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
|
|
|
" alt="Unité terrestre" />
|
|
|
|
<span><?php echo $this->_tpl_vars['unite']['description']; ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div>
|
|
|
|
<strong><?php echo $this->_tpl_vars['unite']['nom']; ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
|
|
|
|
unité<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_metalS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_cristalS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?>
|
|
|
|
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['unite']['nec_hydrogeneS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
Temps de construction : <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
|
|
|
<br /><br />
|
|
|
|
<form action="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
|
|
|
|
&v=<?php echo $this->_tpl_vars['unite']['num']; ?>
|
|
|
|
" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<input class="text" type="text" name="nombre" value="0" />
|
|
|
|
<input class="submit" type="submit" value="OK" />
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</table>
|
|
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/footer.tpl', 'smarty_include_vars' => array()));
|
|
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
|
|
unset($_smarty_tpl_vars);
|
|
|
|
?>
|