2020-11-15 15:12:30 +00:00
|
|
|
<?php /* Smarty version 2.6.22, created on 2009-10-31 13:48:50
|
2009-11-01 11:00:00 +00:00
|
|
|
compiled from game/gestion.tpl */ ?>
|
|
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
2020-11-15 15:12:30 +00:00
|
|
|
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'game/gestion.tpl', 6, false),array('modifier', 'date_format', 'game/gestion.tpl', 7, false),array('modifier', 'escape', 'game/gestion.tpl', 26, false),array('modifier', 'ucfirst', 'game/gestion.tpl', 32, false),array('modifier', 'separerNombres', 'game/gestion.tpl', 35, 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
|
|
|
<?php if (SURFACE == 'planete'): ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
<h2>Politique</h2>
|
|
|
|
<form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
|
|
|
" method="post">
|
2020-11-15 15:12:30 +00:00
|
|
|
<fieldset class="form">
|
|
|
|
<label for="politique">Politique actuelle : <select name="politique" id="politique"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['politiques'],'selected' => $this->_tpl_vars['planete']->politique), $this);?>
|
|
|
|
</select></label><br /><br />
|
|
|
|
<label>Dernier changement de régime : <em><?php echo ((is_array($_tmp=$this->_tpl_vars['planete']->politique_lastchange)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y") : smarty_modifier_date_format($_tmp, "%d/%m/%y")); ?>
|
|
|
|
</em></label><br /><br />
|
|
|
|
<label>Moral global de la population : <em><?php echo $this->_tpl_vars['planete']->moral*100; ?>
|
|
|
|
%</em></label><br /><br />
|
2009-11-01 11:00:00 +00:00
|
|
|
<input class="submit" type="submit" value="Ok" />
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2020-11-15 15:12:30 +00:00
|
|
|
<?php endif; ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
<h2>Gestion</h2>
|
|
|
|
<div id="gestion">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th></th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<td><img src="<?php echo $this->_tpl_vars['url_images']; ?>
|
|
|
|
images/planetes/<?php echo $this->_tpl_vars['plan']['image']; ?>
|
|
|
|
.jpg" alt="<?php echo $this->_tpl_vars['plan']['image']; ?>
|
|
|
|
" title="<?php echo $this->_tpl_vars['plan']['nom_planete']; ?>
|
|
|
|
" width="80" height="80" /></td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['nom_planete'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
|
|
|
|
</th>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['metal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['metal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['cristal'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['cristal'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['hydrogene'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['hydrogene'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th><?php echo ((is_array($_tmp=$this->_tpl_vars['LANG'][$this->_tpl_vars['race']]['ressources']['noms']['energie'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
|
|
|
|
</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['energie'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th>Population</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
|
|
|
<?php if ($this->_tpl_vars['plan']['id'] == $this->_tpl_vars['planeteEC']['id']): ?><?php $this->assign('plan', $this->_tpl_vars['planeteEC']); ?><?php endif; ?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['population'])) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-11-15 15:12:30 +00:00
|
|
|
<th>Moral</th>
|
2009-11-01 11:00:00 +00:00
|
|
|
<?php $_from = $this->_tpl_vars['planetes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
|
|
foreach ($_from as $this->_tpl_vars['plan']):
|
|
|
|
?>
|
2020-11-15 15:12:30 +00:00
|
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['plan']['moral']*100)) ? $this->_run_mod_handler('separerNombres', true, $_tmp) : smarty_modifier_separerNombres($_tmp)); ?>
|
2009-11-01 11:00:00 +00:00
|
|
|
%</td>
|
|
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<?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);
|
|
|
|
?>
|