HB/onyx2/modules/templates/compile/%%05^056^056EB1C9%%description.tpl.php

170 lines
8.1 KiB
PHP
Raw Normal View History

2009-11-01 11:00:00 +00:00
<?php /* Smarty version 2.6.22, created on 2009-03-02 19:56:33
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', 6, false),array('modifier', 'separerNombres', 'game/description.tpl', 26, 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']; ?>
: <?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['noms_sing'][$this->_tpl_vars['id']]; ?>
</h2>
<table style="width: 400px;">
<tbody>
<tr>
<td style="width: 120px;"><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)); ?>
" /></td>
<td><b><?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)); ?>
</b><br />Actuellement : <?php if ($this->_tpl_vars['type'] != 'vaisseaux' && $this->_tpl_vars['type'] != 'terrestre' && $this->_tpl_vars['type'] != 'caserne'): ?>niveau<?php endif; ?> <?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 if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre' || $this->_tpl_vars['type'] == 'caserne'): ?> unités<?php endif; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo $this->_tpl_vars['LANG'][$this->_tpl_vars['raceAff']][$this->_tpl_vars['type']]['descriptions'][$this->_tpl_vars['id']]; ?>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th colspan="2">Coûts <?php if ($this->_tpl_vars['type'] == 'vaisseaux' || $this->_tpl_vars['type'] == 'terrestre' || $this->_tpl_vars['type'] == 'caserne'): ?>unité<?php else: ?>prochain niveau<?php endif; ?></th>
</tr>
</thead>
<tbody>
<?php if ($this->_tpl_vars['ressourcesNext']['0']): ?>
<tr>
<th><?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)); ?>
</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['ressourcesNext']['1']): ?>
<tr>
<th><?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)); ?>
</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['ressourcesNext']['2']): ?>
<tr>
<th><?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)); ?>
</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php endif; ?>
<tr>
<th>Temps</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ressourcesNext']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<?php if ($this->_tpl_vars['tableau_prod']): ?>
<tr>
<td colspan="2">
<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) : separerNombres($_tmp)); ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : 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) : 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) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
</td>
</tr>
<?php elseif ($this->_tpl_vars['caract']): ?>
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th colspan="2">Caractéristiques</th>
</tr>
</thead>
<tbody>
<tr>
<th>Attaque</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['0'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<tr>
<th>Bouclier</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['1'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<tr>
<th>Points de vie</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['2'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php if ($this->_tpl_vars['caract']['3']): ?>
<tr>
<th>Capacité de transport</th>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['caract']['3'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : separerNombres($_tmp)); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</td>
</tr>
<?php endif; ?>
<tr>
<td colspan="2">
<table style="margin: auto; width: 100%;">
<thead>
<tr>
<th>Requiert</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $this->_tpl_vars['etat']; ?>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tfoot>
</table>
<?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);
?>