HB/onyx/tpl_compile/%%CA^CAC^CACA9A3D%%bourseDetails.tpl.php

89 lines
5.6 KiB
PHP
Raw Normal View History

2008-09-20 10:00:00 +00:00
<?php /* Smarty version 2.6.19, created on 2008-09-13 16:39:09
compiled from game/bourseDetails.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'floor', 'game/bourseDetails.tpl', 5, false),array('modifier', 'escape', 'game/bourseDetails.tpl', 18, false),array('modifier', 'nl2br', 'game/bourseDetails.tpl', 18, 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 : <?php echo $this->_tpl_vars['bourse']['nom']; ?>
</h2>
<h4>Valeurs au <?php echo $this->_tpl_vars['date']; ?>
</h4>
<br />
<h4>Valeur métal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['metal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<h4>Valeur cristal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['cristal'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<h4>Evolution de l'action depuis l'ouverture de la bourse : <?php if ($this->_tpl_vars['bourse']['evolution'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['evolution'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
%</h4>
<br />
<h4>Achat unité métal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['metal']*$this->_tpl_vars['taxeA'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<h4>Achat unité cristal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['cristal']*$this->_tpl_vars['taxeA'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<br />
<h4>Vente unité métal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['metal']/$this->_tpl_vars['taxeV'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<h4>Vente unité cristal : <?php echo ((is_array($_tmp=$this->_tpl_vars['bourse']['cristal']/$this->_tpl_vars['taxeV'])) ? $this->_run_mod_handler('floor', true, $_tmp) : floor($_tmp)); ?>
</h4>
<br />
<h4>Vous possédez <?php echo $this->_tpl_vars['poss']; ?>
actions de <?php echo $this->_tpl_vars['bourse']['nom']; ?>
</h4>
<h4>Vous avez acheté <?php echo $this->_tpl_vars['poss24']; ?>
actions de <?php echo $this->_tpl_vars['bourse']['nom']; ?>
dans les dernières 24h</h4>
<br />
<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['bourse']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<br /><br />
<h4><form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;a=<?php echo $this->_tpl_vars['bourse']['id']; ?>
" method="post"><p>Acheter : <input type="text" class="text" name="a<?php echo $this->_tpl_vars['bourse']['id']; ?>
" maxlength="1" value="0" /><input type="submit" class="submit" value="OK" /></p></form></h4>
<h4><form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;v=<?php echo $this->_tpl_vars['bourse']['id']; ?>
" method="post"><p>Vendre : <input type="text" class="text" name="a<?php echo $this->_tpl_vars['bourse']['id']; ?>
" maxlength="1" value="0" /><input type="submit" class="submit" value="OK" /></p></form></h4>
<?php if ($this->_tpl_vars['auth_level'] >= 3): ?>
<br /><h2>Modification de l'action</h2>
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;e=<?php echo $this->_tpl_vars['bourse']['id']; ?>
" 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>
<input class="submit" type="submit" value="Ok" />
</fieldset>
</form>
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;e=<?php echo $this->_tpl_vars['bourse']['id']; ?>
" method="post">
<fieldset class="options">
<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 />
<input class="submit" type="submit" value="Créer la news" />
</fieldset>
</form>
<form action="<?php echo $this->_tpl_vars['menu']['bourse']; ?>
&amp;e=<?php echo $this->_tpl_vars['bourse']['id']; ?>
" method="post">
<fieldset class="options">
<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);
?>