105 lines
8.1 KiB
PHP
105 lines
8.1 KiB
PHP
<?php /* Smarty version 2.6.22, created on 2009-03-01 21:18:45
|
|
compiled from game/laboratoire.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/laboratoire.tpl', 6, false),array('modifier', 'separerNombres', 'game/laboratoire.tpl', 27, 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>File d'attente</h2>
|
|
<div class="file">
|
|
<?php if ($this->_tpl_vars['file']): ?>
|
|
<?php $_from = $this->_tpl_vars['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['element']):
|
|
?>
|
|
<span><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['noms_sing'][$this->_tpl_vars['element']['0']][$this->_tpl_vars['element']['1']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
|
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['element']['2']; ?>
|
|
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
|
', <?php if ($this->_tpl_vars['i'] != true): ?><?php $this->assign('i', true); ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&a=<?php echo $this->_tpl_vars['key']; ?>
|
|
">Annuler</a></span>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
<?php else: ?> <span>Aucune technologie dans la file d'attente</span><?php endif; ?>
|
|
<br />
|
|
</div>
|
|
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
|
&q=technologies">Arbre des technologies</a></h3><br />
|
|
<h2><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['6'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
</h2>
|
|
<?php if ($this->_tpl_vars['recherches']): ?>
|
|
<table class="construction">
|
|
<?php $_from = $this->_tpl_vars['recherches']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['recherche']):
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a class="bulle" href="javascript:alert('Pas de description, arbre en cours de programmation');">
|
|
<img width="130" height="132" src="<?php echo $this->_tpl_vars['url_images']; ?>
|
|
images/technologies/<?php echo $this->_tpl_vars['recherche']['image']; ?>
|
|
" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['noms_sing'][$this->_tpl_vars['recherche']['id']][$this->_tpl_vars['recherche']['tech']]; ?>
|
|
" />
|
|
<span><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['descriptions'][$this->_tpl_vars['recherche']['id']][$this->_tpl_vars['recherche']['tech']]; ?>
|
|
</span>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div>
|
|
<strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['technologies']['noms_sing'][$this->_tpl_vars['recherche']['id']][$this->_tpl_vars['recherche']['tech']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
</strong><br /><br />
|
|
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > 0): ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
</span><br />
|
|
<?php else: ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
<br /><?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > 0): ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?><span class="lack">Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
</span><br />
|
|
<?php else: ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
<br /><?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > 0): ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?><span class="lack">Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
</span><br />
|
|
<?php else: ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
<br /><?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_credits'] > 0): ?>
|
|
<?php if ($this->_tpl_vars['recherche']['nec_credits'] > $this->_tpl_vars['planete']->credits): ?><span class="lack">Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_credits'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
</span><br />
|
|
<?php else: ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits']; ?>
|
|
: <?php echo ((is_array($_tmp=$this->_tpl_vars['recherche']['nec_credits'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
|
<br /><?php endif; ?>
|
|
<?php endif; ?>
|
|
Temps de recherche : <?php echo $this->_tpl_vars['recherche']['temps']; ?>
|
|
<br /><br />
|
|
<?php if ($this->_tpl_vars['recherche']['enfile']): ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
|
&a=<?php echo $this->_tpl_vars['recherche']['enfile']; ?>
|
|
">Arrêter</a>
|
|
<?php elseif ($this->_tpl_vars['recherche']['nec_credits'] > $this->_tpl_vars['planete']->credits || $this->_tpl_vars['recherche']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['recherche']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['recherche']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack"><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['credits'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
insuffisants</span>
|
|
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['laboratoire']; ?>
|
|
&t=<?php echo $this->_tpl_vars['recherche']['id']; ?>
|
|
&f=<?php echo $this->_tpl_vars['recherche']['tech']; ?>
|
|
">Rechercher</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</table>
|
|
<?php else: ?><div class="error" style="color: red;">Aucune technologie à développer actuellement</div><?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);
|
|
?>
|