HB/onyx/tpl_compile/%%9E^9EB^9EB1F2F0%%bourse.tpl.php

95 lines
5.0 KiB
PHP

<?php /* Smarty version 2.6.19, created on 2008-09-21 17:13:59
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', 15, false),array('modifier', 'escape', 'game/bourse.tpl', 48, 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']; ?>
&amp;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>
<?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"><img src="bourse.php?a=<?php echo $this->_tpl_vars['action']['id']; ?>
" alt="<?php echo $this->_tpl_vars['action']['nom']; ?>
" /></td>
</tr>
<tr>
<td><?php if ($this->_tpl_vars['action']['evolution'] > 0): ?>FVerte<?php else: ?>FRouge<?php endif; ?></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 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>
</tr>
<tr>
<td colspan="2">
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&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="3" value="0" />
<input type="submit" class="submit" value="OK" />
</fieldset>
</form>
</td>
<td rowspan="2"><strong>Valeur :</strong><br />Métal : <?php echo ((is_array($_tmp=$this->_tpl_vars['action']['metal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
<br />Cristal : <?php echo ((is_array($_tmp=$this->_tpl_vars['action']['cristal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</td>
</tr>
<tr>
<td colspan="2">
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&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="3" value="0" />/<?php echo $this->_tpl_vars['action']['nbactions']; ?>
<input type="submit" class="submit" value="OK" />
</fieldset>
</form>
</td>
</tr>
</table>
</div>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['auth_level'] >= 3): ?>
<h2 style="clear: both;">Nouvelle action</h2>
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;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);
?>