2020-11-15 15:12:32 +00:00
|
|
|
<?php /* Smarty version 2.6.22, created on 2009-10-31 21:33:14
|
2009-11-01 11:00:00 +00:00
|
|
|
compiled from game/description.tpl */ ?>
|
|
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
2020-11-15 15:12:32 +00:00
|
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'game/description.tpl', 4, false),array('modifier', 'separerNombres', 'game/description.tpl', 7, false),array('modifier', 'temps', 'game/description.tpl', 10, false),)), $this); ?>
|
2009-11-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);
|
|
|
|
?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<h2>Détails <?php echo $this->_tpl_vars['type']; ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</h2>
|
2020-11-15 15:12:30 +00:00
|
|
|
<dl id="description">
|
|
|
|
<dt><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['noms_sing'][$this->_tpl_vars['id']])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
</dt>
|
|
|
|
<dd><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
images/<?php echo $this->_tpl_vars['type']; ?>
|
|
|
|
/<?php echo $this->_tpl_vars['image']; ?>
|
|
|
|
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['type'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
" /><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['descriptions'][$this->_tpl_vars['id']]; ?>
|
|
|
|
</p>
|
2020-11-15 15:12:32 +00:00
|
|
|
<div><h5>Actuellement : </h5><?php if ($this->_tpl_vars['type'] == 'caserne'): ?><?php echo $this->_tpl_vars['planete']->casernes[$this->_tpl_vars['id']]; ?>
|
|
|
|
unité(s)<?php elseif ($this->_tpl_vars['type'] == 'terrestre'): ?><?php echo $this->_tpl_vars['planete']->terrestres[$this->_tpl_vars['id']]; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
unité(s)<?php elseif ($this->_tpl_vars['type'] == 'vaisseaux'): ?><?php echo $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]; ?>
|
|
|
|
vaisseau(x)<?php else: ?>niveau <?php echo $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]; ?>
|
|
|
|
<?php endif; ?></div>
|
|
|
|
<?php if ($this->_tpl_vars['ressourcesNext']['0']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div><?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['ressourcesNext']['1']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div><?php endif; ?>
|
|
|
|
<?php if ($this->_tpl_vars['ressourcesNext']['2']): ?><div><h5>Coût <?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
: </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div><?php endif; ?>
|
2020-11-15 15:12:32 +00:00
|
|
|
<div><h5>Temps de construction : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['3'])) ? $this->_run_mod_handler('temps', true, $_tmp) : smarty_modifier_temps($_tmp)); ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
</div>
|
|
|
|
<?php if ($this->_tpl_vars['caract']): ?>
|
|
|
|
<div><h5>Attaque : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div>
|
|
|
|
<div><h5>Bouclier : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div>
|
|
|
|
<div><h5>Point de vie : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div>
|
|
|
|
<div><h5>Capacité de transpost : </h5><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
|
|
|
</div>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<div><h5>Nécessite : </h5><?php echo $this->_tpl_vars['etat']; ?>
|
|
|
|
</div>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php if ($this->_tpl_vars['tableau_prod']): ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<br /><br /><table style="margin: auto; width: 100%;">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="5">Production et consomation théoriques</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Niveau</th>
|
|
|
|
<th>Production</th>
|
|
|
|
<th>Consomation</th>
|
|
|
|
<th>Différence prod.</th>
|
|
|
|
<th>Différence conso.</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php $_from = $this->_tpl_vars['tableau_prod']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
2009-11-01 11:00:00 +00:00
|
|
|
foreach ($_from as $this->_tpl_vars['ligne']):
|
|
|
|
?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<?php if ($this->_tpl_vars['ligne']['0'] == $this->_tpl_vars['planete']->{(($_var=$this->_tpl_vars['type']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[$this->_tpl_vars['id']]): ?><tr style="color: #F0F0F0;"><?php else: ?><tr><?php endif; ?>
|
|
|
|
<td style="font-weight: bold;"><?php echo $this->_tpl_vars['ligne']['0']; ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php if ($this->_tpl_vars['ligne']['3'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php if ($this->_tpl_vars['ligne']['4'] > 0): ?>+<?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['4'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
2020-11-15 15:12:30 +00:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?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);
|
|
|
|
?>
|