101 lines
4.8 KiB
PHP
101 lines
4.8 KiB
PHP
|
<?php /* Smarty version 2.6.19, created on 2008-09-13 16:36:47
|
||
|
compiled from game/bourse.tpl */ ?>
|
||
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'floor', 'game/bourse.tpl', 22, false),array('modifier', 'escape', 'game/bourse.tpl', 52, 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>Dernières infos</h2>
|
||
|
<?php $_from = $this->_tpl_vars['infos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||
|
foreach ($_from as $this->_tpl_vars['info']):
|
||
|
?>
|
||
|
<h4><a href="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
|
||
|
&d=<?php echo $this->_tpl_vars['info']['id']; ?>
|
||
|
"><?php echo $this->_tpl_vars['info']['nom']; ?>
|
||
|
:</a> <?php echo $this->_tpl_vars['info']['description']; ?>
|
||
|
</h4>
|
||
|
<?php endforeach; endif; unset($_from); ?>
|
||
|
<br /><h2>Bourse</h2>
|
||
|
<table class="bourse">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Action</th>
|
||
|
<th>Evolution</th>
|
||
|
<th>Valeur <?php echo $this->_tpl_vars['nomsressources']['0']; ?>
|
||
|
</th>
|
||
|
<th>Valeur <?php echo $this->_tpl_vars['nomsressources']['1']; ?>
|
||
|
</th>
|
||
|
<th>Acheter</th>
|
||
|
<th>Vendre</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?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']):
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><a href="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
|
||
|
&d=<?php echo $this->_tpl_vars['action']['id']; ?>
|
||
|
"><?php echo $this->_tpl_vars['action']['nom']; ?>
|
||
|
</a></td>
|
||
|
<td><?php if ($this->_tpl_vars['action']['evolution'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['evolution'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
|
||
|
%</td>
|
||
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['metal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
|
||
|
</td>
|
||
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['action']['cristal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
|
||
|
&a=<?php echo $this->_tpl_vars['action']['id']; ?>
|
||
|
" method="post">
|
||
|
<fieldset>
|
||
|
<input type="text" class="text" name="a<?php echo $this->_tpl_vars['action']['id']; ?>
|
||
|
" maxlength="3" value="0" />
|
||
|
<input type="submit" class="submit" value="OK" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</td>
|
||
|
<td>
|
||
|
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
|
||
|
&v=<?php echo $this->_tpl_vars['action']['id']; ?>
|
||
|
" method="post">
|
||
|
<fieldset>
|
||
|
<input type="text" class="text" name="a<?php echo $this->_tpl_vars['action']['id']; ?>
|
||
|
" maxlength="3" value="0" />/<?php echo $this->_tpl_vars['action']['nbactions']; ?>
|
||
|
|
||
|
<input type="submit" class="submit" value="OK" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; endif; unset($_from); ?>
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<?php if ($this->_tpl_vars['auth_level'] >= 3): ?>
|
||
|
<h2>Nouvelle action</h2>
|
||
|
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
|
||
|
&c=new" method="post">
|
||
|
<fieldset class="options">
|
||
|
<label for="nomaction">Nom de l'action :</label><input type="text" name="nomaction" id="nomaction" maxlength="255" value="<?php echo $this->_tpl_vars['bourse']['nom']; ?>
|
||
|
" class="text" /><br />
|
||
|
<label for="descaction">Description de l'action :</label><br />
|
||
|
<textarea id="descaction" name="descaction"><?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
||
|
</textarea>
|
||
|
<label for="newsaction">News de l'action (apparaît sur la page d'accueil) :</label><input type="text" name="newsaction" id="newsaction" class="text" value="<?php echo $this->_tpl_vars['bourse']['news']; ?>
|
||
|
" maxlength="255" /><br />
|
||
|
<label for="prixAM">Valeur en métal de l'action :</label><input type="text" name="prixAM" id="prixAM" maxlength="15" value="<?php echo $this->_tpl_vars['bourse']['metal']; ?>
|
||
|
" class="text" /><br />
|
||
|
<label for="prixAC">Valeur en cristal de l'action :</label><input type="text" name="prixAC" id="prixAC" maxlength="15" value="<?php echo $this->_tpl_vars['bourse']['cristal']; ?>
|
||
|
" class="text" /><br />
|
||
|
<input class="submit" type="submit" value="Ok" />
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
<?php endif; ?>
|
||
|
<?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);
|
||
|
?>
|