game/onyx2/modules/templates_anc/compile/%%05^056^056EB1C9%%description.tpl.php

89 lines
6.9 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-31 21:33:14
compiled from game/description.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
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); ?>
<?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>Détails <?php echo $this->_tpl_vars['type']; ?>
</h2>
<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']; ?>
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)); ?>
" /><p><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['descriptions'][$this->_tpl_vars['id']]; ?>
</p>
<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']]; ?>
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; ?>
<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)); ?>
</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>
<?php endif; ?>
<div><h5>Nécessite : </h5><?php echo $this->_tpl_vars['etat']; ?>
</div>
<?php if ($this->_tpl_vars['tableau_prod']): ?>
<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)):
foreach ($_from as $this->_tpl_vars['ligne']):
?>
<?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']; ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
</td>
<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)); ?>
</td>
<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)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
<?php endif; ?>
</dd>
</dl>
<?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);
?>