forked from halo-battle/game
Version 1.13a
This commit is contained in:
parent
de31cd3e9a
commit
ba8f323879
1634 changed files with 10080 additions and 213021 deletions
|
|
@ -1,103 +1,88 @@
|
|||
<?php /* Smarty version 2.6.22, created on 2009-03-03 22:26:42
|
||||
<?php /* Smarty version 2.6.22, created on 2009-10-30 14:42:54
|
||||
compiled from game/caserne.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/caserne.tpl', 15, false),array('modifier', 'separerNombres', 'game/caserne.tpl', 28, false),)), $this); ?>
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'countdown', 'game/caserne.tpl', 6, false),array('modifier', 'ucfirst', 'game/caserne.tpl', 16, false),array('modifier', 'separerNombres', 'game/caserne.tpl', 25, 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">
|
||||
<h2>File d'attente</h2>
|
||||
<?php if ($this->_tpl_vars['file']): ?>
|
||||
<ul id="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']):
|
||||
?>
|
||||
<?php if ($this->_tpl_vars['i'] != true): ?><span><strong>Prochaine unité </strong> : <em id="resten"></em>
|
||||
<script type="text/javascript">reste(<?php echo $this->_tpl_vars['element']['4']; ?>
|
||||
,'resten', true);</script></span><?php endif; ?>
|
||||
<span><?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
<?php if ($this->_tpl_vars['djpass'] != true): ?><li><strong>Prochaine unité </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']]['caserne']['noms_pluriel'][$this->_tpl_vars['element']['0']]; ?>
|
||||
<?php else: ?><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['noms_sing'][$this->_tpl_vars['element']['0']]; ?>
|
||||
<?php endif; ?><?php if ($this->_tpl_vars['element']['2']): ?> (démolition)<?php endif; ?> - <em id="reste<?php echo $this->_tpl_vars['key']; ?>
|
||||
"></em><script type="text/javascript">reste(<?php echo $this->_tpl_vars['element']['3']; ?>
|
||||
,'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']['caserne']; ?>
|
||||
<?php endif; ?><?php if ($this->_tpl_vars['element']['2']): ?> (démolition)<?php endif; ?> - <span<?php if (! $this->_tpl_vars['djpass']): ?> class="countdown"<?php $this->assign('djpass', true); ?><?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']['caserne']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['key']; ?>
|
||||
">Annuler un</a> - <a href="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['onglet']; ?>
|
||||
&a=<?php echo $this->_tpl_vars['key']; ?>
|
||||
&n=<?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
">Annuler tous</a></span>
|
||||
&s=<?php echo $this->_tpl_vars['element']['1']; ?>
|
||||
">Annuler tous</a></li>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<?php else: ?> <span>Aucune unité dans la file d'attente</span><?php endif; ?>
|
||||
<br />
|
||||
</div>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<ul id="file">
|
||||
<li>Aucune unité dans la file d'attente</li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<h3><a href="<?php echo $this->_tpl_vars['menu']['arbre']; ?>
|
||||
&q=caserne">Arbre des technologies</a></h3><br />
|
||||
<h2><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['9'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
<h2><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['batiments']['noms_sing']['9'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
||||
</h2>
|
||||
<?php if ($this->_tpl_vars['unites']): ?>
|
||||
<table class="construction">
|
||||
<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']):
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="bulle" href="?p=description&c=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#menu">
|
||||
<img width="130" height="132" src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
<dl>
|
||||
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['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&c=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
#body"><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
||||
images/caserne/<?php echo $this->_tpl_vars['unite']['image']; ?>
|
||||
" alt="Unité terrestre" />
|
||||
<span><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['descriptions'][$this->_tpl_vars['unite']['id']]; ?>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<strong><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['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 ((is_array($_tmp=$this->_tpl_vars['unite']['nombre'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
||||
unité<?php if ($this->_tpl_vars['unite']['nombre'] > 1): ?>s<?php endif; ?>)<?php endif; ?></strong><br /><br />
|
||||
<?php if ($this->_tpl_vars['unite']['nec_metal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['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['unite']['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['unite']['nec_metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
||||
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['caserne']['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']]['caserne']['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 endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_cristal'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['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['unite']['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['unite']['nec_cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
||||
<?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 endif; ?>
|
||||
<?php if ($this->_tpl_vars['unite']['nec_hydrogene'] > 0): ?>
|
||||
<?php if ($this->_tpl_vars['unite']['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['unite']['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['unite']['nec_hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
|
||||
<?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; ?>
|
||||
<?php endif; ?>
|
||||
Temps d'entraînement : <?php echo $this->_tpl_vars['unite']['temps']; ?>
|
||||
<br /><br />
|
||||
<form action="<?php echo $this->_tpl_vars['menu']['caserne']; ?>
|
||||
&v=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" method="post">
|
||||
<fieldset>
|
||||
<input class="text" type="text" name="nombre" value="0" />
|
||||
<input class="submit" type="submit" value="OK" />
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<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']['caserne']; ?>
|
||||
&c=<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" method="post"><fieldset>
|
||||
<label for="cas<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
">Nombre : <input type="text" class="text" name="cas<?php echo $this->_tpl_vars['unite']['id']; ?>
|
||||
" id="cas<?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); ?>
|
||||
</table>
|
||||
<?php else: ?><div class="error" style="color: red;">Aucune unité à entraîner actuellement.</div><?php endif; ?>
|
||||
</div>
|
||||
<?php else: ?> <div id="erreur">Aucune unité à entraîner 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue