2008-09-20 10:00:00 +00:00
|
|
|
<?php /* Smarty version 2.6.19, created on 2008-09-12 23:40:45
|
2008-12-01 11:00:00 +00:00
|
|
|
compiled from game/batiments.tpl */ ?>
|
|
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
2008-11-03 11:00:00 +00:00
|
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'lower', 'game/batiments.tpl', 29, false),)), $this); ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
<?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 $_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['fbat']):
|
|
|
|
?>
|
|
|
|
<span><?php echo $this->_tpl_vars['fbat']['3']; ?>
|
|
|
|
- <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['fbat']['2']; ?>
|
|
|
|
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
|
|
|
', <?php if ($this->_tpl_vars['key'] == 0): ?>true<?php else: ?>false<?php endif; ?>);</script> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
|
|
&a=<?php echo $this->_tpl_vars['fbat']['0']; ?>
|
|
|
|
">Annuler</a></span>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
<?php if ($this->_tpl_vars['Vchaine']): ?><span>Aucun batiment dans la file d'attente</span>
|
|
|
|
<?php endif; ?>
|
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
|
|
|
&q=batiments">Arbre des technologies</a></h3><br />
|
|
|
|
<h2>Batiments</h2>
|
|
|
|
<table class="construction">
|
|
|
|
<?php $_from = $this->_tpl_vars['batiments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['batiment']):
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a class="bulle" href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
|
|
|
#menu">
|
|
|
|
<img width="130" height="132" src="images/batiments/<?php echo $this->_tpl_vars['batiment']['image']; ?>
|
|
|
|
" alt="<?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
|
|
|
" />
|
|
|
|
<span><?php echo $this->_tpl_vars['batiment']['description']; ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div>
|
|
|
|
<strong><?php echo $this->_tpl_vars['batiment']['nom']; ?>
|
|
|
|
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
|
|
|
)<?php endif; ?></strong><br /><br />
|
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > 0): ?>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_metalS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_metalS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > 0): ?>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_cristalS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_cristalS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > 0): ?>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?><span class="lack">Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_hydrogeneS']; ?>
|
|
|
|
</span><br />
|
|
|
|
<?php else: ?>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
: <?php echo $this->_tpl_vars['batiment']['nec_hydrogeneS']; ?>
|
|
|
|
<br /><?php endif; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
Temps de construction : <?php echo $this->_tpl_vars['batiment']['temps']; ?>
|
|
|
|
<br /><br />
|
|
|
|
<?php if ($this->_tpl_vars['batiment']['enfile']): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
|
|
&a=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
|
|
|
">Arrêter</a>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php elseif ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
<?php endif; ?>">Ressources insuffisantes</span>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php elseif ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
<?php endif; ?>">Ressources insuffisantes</span>
|
2008-09-20 10:00:00 +00:00
|
|
|
<?php elseif ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack" title="manque <?php if ($this->_tpl_vars['batiment']['maq_metal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_metal']; ?>
|
2008-12-01 11:00:00 +00:00
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['0'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_cristal'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_cristal']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['1'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
; <?php endif; ?><?php if ($this->_tpl_vars['batiment']['maq_hydrogene'] > 0): ?><?php echo $this->_tpl_vars['batiment']['maq_hydrogene']; ?>
|
|
|
|
de <?php echo ((is_array($_tmp=$this->_tpl_vars['nomsressources']['2'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
|
|
|
|
<?php endif; ?>">Ressources insuffisantes</span>
|
|
|
|
<?php else: ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
|
|
&c=<?php echo $this->_tpl_vars['batiment']['num']; ?>
|
|
|
|
">Construire</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</table>
|
|
|
|
<?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);
|
|
|
|
?>
|