game/onyx/tpl_compile/%%71^717^7172D774%%ressources.tpl.php

68 lines
6.0 KiB
PHP

<?php /* Smarty version 2.6.19, created on 2009-01-04 11:11:53
compiled from game/ressources.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'separernombres', 'game/ressources.tpl', 7, 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>Ressources : Tableau récapitulatif des productions par heure</h2>
<form method="post" action="<?php echo $this->_tpl_vars['menu']['ressources']; ?>
">
<table>
<thead><tr><th> </th><th>Coefficient</th><th><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
</th><th><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
</th><th><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
</th><th><?php echo $this->_tpl_vars['nomsressources']['3']; ?>
</th></tr></thead>
<tbody>
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['0']; ?>
<?php echo $this->_tpl_vars['nombat']['0']; ?>
</td><td><input type="text" name="coeff_metal" value="<?php echo $this->_tpl_vars['ressources_coef']['0']; ?>
" maxlength="3" size="3" />%</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['0'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td>0</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['0'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr>
<?php if ($this->_tpl_vars['planete']->batiments['1']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['1']; ?>
<?php echo $this->_tpl_vars['nombat']['1']; ?>
</td><td><input type="text" name="coeff_cristal" value="<?php echo $this->_tpl_vars['ressources_coef']['1']; ?>
" maxlength="3" size="3" />%</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr><?php endif; ?>
<?php if ($this->_tpl_vars['planete']->batiments['2']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['2']; ?>
<?php echo $this->_tpl_vars['nombat']['2']; ?>
</td><td><input type="text" name="coeff_hydrogene" value="<?php echo $this->_tpl_vars['ressources_coef']['2']; ?>
" maxlength="3" size="3" />%</td><td>0</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['2'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['2'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr><?php endif; ?>
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['3']; ?>
<?php echo $this->_tpl_vars['nombat']['3']; ?>
</td><td><input type="text" name="coeff_cs" value="<?php echo $this->_tpl_vars['ressources_coef']['3']; ?>
" maxlength="3" size="3" />%</td><td>0</td><td>0</td><td>0</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['3'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr>
<?php if ($this->_tpl_vars['planete']->batiments['4']): ?><tr><td><?php echo $this->_tpl_vars['planete']->batiments['4']; ?>
<?php echo $this->_tpl_vars['nombat']['4']; ?>
</td><td><input type="text" name="coeff_ce" value="<?php echo $this->_tpl_vars['ressources_coef']['4']; ?>
" maxlength="3" size="3" />%</select></td><td>0</td><td>0</td><td class="lack">-<?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['3'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['4'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr><?php endif; ?>
<tr><td><?php echo $this->_tpl_vars['planete']->batiments['10']; ?>
<?php echo $this->_tpl_vars['nombat']['10']; ?>
</td><td>-</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_silo']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td>0</td></tr>
<tr><td><strong>Total</strong></td><td>-</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['0'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_prod']['1'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td><td><?php if ($this->_tpl_vars['planete']->batiments['3']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_toto']['0'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
<?php else: ?>0<?php endif; ?></td><td<?php if ($this->_tpl_vars['planete']->energieConso >= $this->_tpl_vars['planete']->energie): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['ressources_conso']['4'])) ? $this->_run_mod_handler('separernombres', true, $_tmp) : separernombres($_tmp)); ?>
</td></tr>
</tbody>
</table>
<input type="submit" class="submit" value="GO" /><br /><br />
</form>
<?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);
?>