51 lines
3.2 KiB
PHP
51 lines
3.2 KiB
PHP
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:24:02
|
|
compiled from game/marche.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/marche.tpl', 7, false),array('modifier', 'separerNombres', 'game/marche.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>
|
|
<h3>Les achats et les ventes se font par paquet de 1000 actions (le prix est recalculé chaque 1000 actions)</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']):
|
|
?>
|
|
<dl class="bourse">
|
|
<dt><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms'][$this->_tpl_vars['action']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
</strong> <a href="<?php echo $this->_tpl_vars['menu']['marche']; ?>
|
|
&d=<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
"><img src="bourser.php?a=<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
&r=<?php echo $this->_tpl_vars['planete']->race; ?>
|
|
" class="imglink" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms'][$this->_tpl_vars['action']['id']]; ?>
|
|
" /></a></dt>
|
|
<dd>
|
|
<form action="<?php echo $this->_tpl_vars['menu']['marche']; ?>
|
|
" method="post">
|
|
<fieldset>
|
|
<input type="hidden" name="ressource" value="<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
" />
|
|
<div><strong>Total :</strong> <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['dispo'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em></div>
|
|
<label for="buy<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
">Acheter pour <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixA'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em> : <input type="text" class="text" id="buy<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
" name="nbb" value="0" /></label>
|
|
<input type="submit" class="submit" value="OK" name="buy" /><br />
|
|
<label for="sell<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
">Vendre pour <em><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixV'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em> : <input type="text" class="text" id="sell<?php echo $this->_tpl_vars['action']['id']; ?>
|
|
" name="nbs" value="0" /></label>
|
|
<input type="submit" class="submit" value="OK" name="sell" />
|
|
</fieldset>
|
|
</form>
|
|
</dd>
|
|
</dl>
|
|
<?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);
|
|
?>
|