game/onyx2/modules/templates_anc/compile/%%04^048^0483A7BB%%chantierterrestre.tpl.php

106 lines
7.9 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-31 21:22:39
compiled from game/chantierterrestre.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'countdown', 'game/chantierterrestre.tpl', 11, false),array('modifier', 'ucfirst', 'game/chantierterrestre.tpl', 24, false),array('modifier', 'separerNombres', 'game/chantierterrestre.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'] != 'defenses'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
">Unités</a></li>
<li<?php if ($this->_tpl_vars['onglet'] == 'defenses'): ?> class="hilight"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
&amp;n=defenses">Défenses</a></li>
</ul><br /><br />
<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']):
?>
<?php if ($this->_tpl_vars['element']['5']): ?><li><strong>Prochaine <?php if ($this->_tpl_vars['element']['6']): ?>unit&eacute;<?php else: ?>d&eacute;fense<?php endif; ?> </strong> : <span class="countdown"><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['4'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
</span></li><?php endif; ?>
<li><?php echo $this->_tpl_vars['element']['1']; ?>
<?php if ($this->_tpl_vars['element']['1'] > 1): ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_pluriel'][$this->_tpl_vars['element']['0']]; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
<?php endif; ?> <?php if ($this->_tpl_vars['element']['2']): ?> (démolition)<?php endif; ?> - <span<?php if ($this->_tpl_vars['element']['5']): ?> class="countdown"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['element']['3'])) ? $this->_run_mod_handler('countdown', true, $_tmp) : smarty_modifier_countdown($_tmp)); ?>
</span> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
&amp;n=<?php echo $this->_tpl_vars['onglet']; ?>
&amp;a=<?php echo $this->_tpl_vars['keyF']; ?>
&amp;b=<?php echo $this->_tpl_vars['keyE']; ?>
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
&amp;n=<?php echo $this->_tpl_vars['onglet']; ?>
&amp;a=<?php echo $this->_tpl_vars['keyF']; ?>
&amp;b=<?php echo $this->_tpl_vars['keyE']; ?>
&amp;s=<?php echo $this->_tpl_vars['element']['1']; ?>
">Annuler tous</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>Aucune unit&eacute; dans la file d'attente</li>
<?php endif; ?>
</ul>
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
&amp;q=chantierterrestre">Arbre des technologies</a></h3><br />
<h2><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['7'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</h2>
<?php if ($this->_tpl_vars['unites']): ?>
<div id="constructions">
<?php $_from = $this->_tpl_vars['unites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['unite']):
?>
<dl>
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?> (<?php echo $this->_tpl_vars['unite']['nombre']; ?>
unité<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></dt>
<dd class="description"><a href="?p=description&amp;d=<?php echo $this->_tpl_vars['unite']['id']; ?>
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
images/terrestre/<?php echo $this->_tpl_vars['unite']['image']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['noms_sing'][$this->_tpl_vars['unite']['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
" /></a><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['terrestre']['descriptions'][$this->_tpl_vars['unite']['id']]; ?>
</p></dd>
<dd>
<?php if ($this->_tpl_vars['unite']['nombre'] > 0): ?><strong>Nombre actuel :</strong> <?php echo $this->_tpl_vars['unite']['nombre']; ?>
<br /><br /><?php endif; ?>
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal']; ?>
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
<br /><?php endif; ?>
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal']; ?>
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
<br /><?php endif; ?>
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?><strong>Coût <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene']; ?>
:</strong> <?php echo ((is_array($_tmp=$this->_tpl_vars['unite']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
<br /><?php endif; ?>
<strong>Temps de construction :</strong> <?php echo $this->_tpl_vars['unite']['temps']; ?>
<br />
<br />
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > $this->_tpl_vars['planete']->hydrogene || $this->_tpl_vars['unite']['nec_cristal'] > $this->_tpl_vars['planete']->cristal || $this->_tpl_vars['unite']['nec_metal'] > $this->_tpl_vars['planete']->metal): ?><span class="lack">Ressources insuffisantes</span>
<?php else: ?><form action="<?php echo $this->_tpl_vars['menu']['chantierterrestre']; ?>
&amp;n=<?php echo $this->_tpl_vars['onglet']; ?>
&amp;v=<?php echo $this->_tpl_vars['unite']['id']; ?>
" method="post"><fieldset>
<label for="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
">Nombre : <input type="text" class="text" name="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
" id="terr<?php echo $this->_tpl_vars['unite']['id']; ?>
" value="0" /></label>
<input type="submit" class="submit" value="OK" />
</fieldset></form><?php endif; ?>
</dd>
</dl>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php else: ?> <div id="erreur">Aucune unité ou défense ne peut être entraînée 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);
?>