forked from halo-battle/game
41 lines
2.8 KiB
PHP
41 lines
2.8 KiB
PHP
<?php /* Smarty version 2.6.22, created on 2009-11-01 01:31:55
|
|
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', 6, false),array('modifier', 'separerNombres', 'game/marche.tpl', 9, 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']):
|
|
?>
|
|
<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="#" method="post"><fieldset>
|
|
<div><b>Total :</b> <?php echo ((is_array($_tmp=$this->_tpl_vars['action']['dispo'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</div>
|
|
<label for="buyM">Acheter pour <?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixA'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
: <input type="text" class="text" id="buyM" name="buyM" value="0" /></label>
|
|
<input type="submit" class="submit" value="OK" name="buy" /><br />
|
|
<label for="sellM">Vendre pour <?php echo ((is_array($_tmp=$this->_tpl_vars['action']['prixV'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
: <input type="text" class="text" id="sellM" name="sellM" 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);
|
|
?>
|