game/onyx/tpl_compile/%%34^347^347FB07D%%bourse_ressources.tpl.php

69 lines
3.0 KiB
PHP

<?php /* Smarty version 2.6.19, created on 2009-01-10 13:36:32
compiled from game/bourse_ressources.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'separerNombres', 'game/bourse_ressources.tpl', 12, 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>Bourse des ressources</h2>
<h3>Les prix sont donnés en milliers de crédits</h3>
<?php $_from = $this->_tpl_vars['bourse']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['action']):
?>
<div style="float: left;">
<table>
<tr>
<td colspan="3"><a href="<?php echo $this->_tpl_vars['menu']['marche']; ?>
&amp;d=<?php echo $this->_tpl_vars['action']['id']; ?>
"><img src="bourser.php?a=<?php echo $this->_tpl_vars['action']['id']; ?>
&amp;r=<?php echo $this->_tpl_vars['planete']->race; ?>
" alt="<?php echo $this->_tpl_vars['nomsressources'][$this->_tpl_vars['action']['id']]; ?>
" /></a></td>
</tr>
<tr>
<th><?php echo $this->_tpl_vars['nomsressources'][$this->_tpl_vars['action']['id']]; ?>
</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['dispo'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
<th>Prix</th>
</tr>
<tr>
<td colspan="2">
<form action="<?php echo $this->_tpl_vars['menu']['marche']; ?>
&amp;a=<?php echo $this->_tpl_vars['action']['id']; ?>
" method="post">
<fieldset>
Acheter : <input type="text" class="text" name="a<?php echo $this->_tpl_vars['action']['id']; ?>
" maxlength="8" value="0" />
<input type="submit" class="submit" value="OK" />
</fieldset>
</form>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixA'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<tr>
<td colspan="2">
<form action="<?php echo $this->_tpl_vars['menu']['marche']; ?>
&amp;v=<?php echo $this->_tpl_vars['action']['id']; ?>
" method="post">
<fieldset>
Vendre : <input type="text" class="text" name="a<?php echo $this->_tpl_vars['action']['id']; ?>
" maxlength="8" value="0" />
<input type="submit" class="submit" value="OK" />
</fieldset>
</form>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixV'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
</table>
</div>
<?php endforeach; endif; unset($_from); ?>
<?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);
?>