forked from halo-battle/game
97 lines
7.4 KiB
PHP
97 lines
7.4 KiB
PHP
<?php /* Smarty version 2.6.22, created on 2009-11-01 00:37:40
|
|
compiled from game/batiments.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/batiments.tpl', 14, false),array('modifier', 'countdown', 'game/batiments.tpl', 14, false),array('modifier', 'separerNombres', 'game/batiments.tpl', 33, 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);
|
|
?>
|
|
<ul class="onglets">
|
|
<li<?php if ($this->_tpl_vars['onglet'] == 0): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
">Tous</a></li>
|
|
<li<?php if ($this->_tpl_vars['onglet'] & 1): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&n=1">Mines/centrales</a></li>
|
|
<li<?php if ($this->_tpl_vars['onglet'] & 2): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&n=2">Civils</a></li>
|
|
<li<?php if ($this->_tpl_vars['onglet'] & 4): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&n=4">Militaires</a></li>
|
|
</ul>
|
|
|
|
<h2>File d'attente</h2>
|
|
<ul id="file">
|
|
<?php ob_start(); ?>
|
|
<?php $_from = $this->_tpl_vars['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['keyF'] => $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['keyE'] => $this->_tpl_vars['element']):
|
|
?>
|
|
<li><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['element']['0']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
<?php if ($this->_tpl_vars['element']['1']): ?> (démolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['3']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['2'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
|
|
</span> - <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&a=<?php echo $this->_tpl_vars['keyF']; ?>
|
|
&b=<?php echo $this->_tpl_vars['keyE']; ?>
|
|
">Annuler</a></li>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
<?php $this->_smarty_vars['capture']['expFile'] = ob_get_contents(); ob_end_clean(); ?>
|
|
<?php if ($this->_tpl_vars['files'] && $this->_smarty_vars['capture']['expFile']): ?>
|
|
<?php echo $this->_smarty_vars['capture']['expFile']; ?>
|
|
|
|
<?php else: ?>
|
|
<li>Aucun bâtiment dans la file d'attente</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
|
&q=batiments">Arbre des technologies</a></h3><br />
|
|
<h2>Bâtiments</h2>
|
|
<div id="constructions">
|
|
<?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']):
|
|
?>
|
|
<dl>
|
|
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> (Niveau <?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
|
)<?php endif; ?></dt>
|
|
<dd class="description"><a href="?p=description&b=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
|
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
|
images/batiments/<?php echo $this->_tpl_vars['batiment']['image']; ?>
|
|
" alt="<?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing'][$this->_tpl_vars['batiment']['id']]; ?>
|
|
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['descriptions'][$this->_tpl_vars['batiment']['id']]; ?>
|
|
</p></dd>
|
|
<dd>
|
|
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?>Niveau actuel : <em><?php echo $this->_tpl_vars['batiment']['niveau']; ?>
|
|
</em><br /><br /><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['batiment']['nec_metal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
|
|
: <em<?php if ($this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em><br /><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
|
|
: <em<?php if ($this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em><br /><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > 0): ?>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
|
|
: <em<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene): ?> class="lack"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['batiment']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
</em><br /><?php endif; ?>
|
|
Temps de construction : <em><?php echo $this->_tpl_vars['batiment']['temps']; ?>
|
|
</em><br />
|
|
<br />
|
|
<?php if ($this->_tpl_vars['batiment']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['batiment']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['batiment']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
|
|
<?php else: ?><?php if ($this->_tpl_vars['planete']->casesRest >= 1): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&c=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
|
">Construire</a><?php endif; ?><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['batiment']['enfile'] !== false): ?><a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&a=<?php echo $this->_tpl_vars['batiment']['enfile']['0']; ?>
|
|
&b=<?php echo $this->_tpl_vars['batiment']['enfile']['1']; ?>
|
|
">Arrêter</a><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['batiment']['niveau'] > 0): ?> <a href="<?php echo $this->_tpl_vars['menu']['batiments']; ?>
|
|
&d=<?php echo $this->_tpl_vars['batiment']['id']; ?>
|
|
">Démolir un niveau</a><?php endif; ?>
|
|
</dd>
|
|
</dl>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</div>
|
|
<?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);
|
|
?>
|