game/onyx2/modules/templates_anc/compile/%%2A^2AD^2ADF286A%%general.tpl.php

87 lines
8.5 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-31 16:46:21
compiled from game/diplomatie/general.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/diplomatie/general.tpl', 6, 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);
?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'game/diplomatie/common.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<h2>Demandes de pactes</h2>
<?php if ($this->_tpl_vars['demandes']): ?>
<?php $_from = $this->_tpl_vars['demandes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['demande']):
?>
<h4><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['demande']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['demande']['alliance_id']; ?>
">[<?php echo $this->_tpl_vars['demande']['tag']; ?>
] <?php echo $this->_tpl_vars['demande']['nom_alliance']; ?>
</a> veut <?php if ($this->_tpl_vars['demande']['type'] == 0): ?>engager un cesser le feu<?php else: ?>passer un pacte <?php if ($this->_tpl_vars['demande']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['demande']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?>.<?php if ($this->_tpl_vars['planete']->permissions_alliance & 8): ?> <a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
&amp;a=<?php echo $this->_tpl_vars['demande']['id']; ?>
">Accepter</a> - <a href="<?php echo $this->_tpl_vars['menu']['diplomatie']; ?>
&amp;r=<?php echo $this->_tpl_vars['demande']['id']; ?>
">Rejeter</a><?php endif; ?></h4>
<?php endforeach; endif; unset($_from); ?>
<?php else: ?>
<h3>Aucune demande en cours</h3>
<?php endif; ?>
<br />
<h2>Actualités des pactes et des guerres</h2>
<?php if ($this->_tpl_vars['actus_alli']): ?>
<?php $_from = $this->_tpl_vars['actus_alli']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['actu_alli']):
?>
<?php if ($this->_tpl_vars['actu_alli']['time_fin'] && $this->_tpl_vars['actu_alli']['type'] != 0): ?><h3><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_fin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
:: Le pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?> avec l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
</a> a été abrogé</h3>
<?php else: ?><?php if (( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance1'] && $this->_tpl_vars['actu_alli']['type'] != 0 ) || ( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance2'] && $this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['accepter'] == 1 ) || ( $this->_tpl_vars['planete']->id == $this->_tpl_vars['actu_alli']['id_alliance1'] && $this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] != ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")) )): ?><h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
</a> <?php if ($this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] == ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S"))): ?>nous a déclaré la guerre<?php else: ?><?php if ($this->_tpl_vars['actu_alli']['accepte'] == 2): ?>a refusé notre<?php elseif ($this->_tpl_vars['actu_alli']['accepte'] == 1): ?>a accepté notre<?php else: ?>n'a pas encore répondu à notre demande de<?php endif; ?> <?php if ($this->_tpl_vars['actu_alli']['type'] == 0): ?>cesser le feu<?php else: ?>pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?><?php endif; ?>.</h3>
<?php else: ?><h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
::</strong> Nous avons <?php if ($this->_tpl_vars['actu_alli']['type'] == 0 && $this->_tpl_vars['actu_alli']['time_demand'] == ((is_array($_tmp=$this->_tpl_vars['actu_alli']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S"))): ?>déclaré la guerre à<?php else: ?><?php if ($this->_tpl_vars['actu_alli']['accepte'] == 1): ?>accepté<?php else: ?>refusé<?php endif; ?> le <?php if ($this->_tpl_vars['actu_alli']['type'] == 0): ?>cesser le feu<?php else: ?>pacte <?php if ($this->_tpl_vars['actu_alli']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_alli']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?><?php endif; ?> proposé par<?php endif; ?> l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['actu_alli']['alliance_id']; ?>
">[<?php echo $this->_tpl_vars['actu_alli']['tag']; ?>
] <?php echo $this->_tpl_vars['actu_alli']['nom_alliance']; ?>
</a></h3>
<?php endif; ?><?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php else: ?>
<h3>Aucune actualité disponible</h3>
<?php endif; ?>
<br />
<h2>Actualités de la galaxie</h2>
<?php if ($this->_tpl_vars['actus_world']): ?>
<?php $_from = $this->_tpl_vars['actus_world']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['actu_world']):
?>
<h3><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['actu_world']['time_creation'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M")); ?>
::</strong> L'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['actu_world']['alliance1_id']; ?>
">[<?php echo $this->_tpl_vars['actu_world']['tag1']; ?>
] <?php echo $this->_tpl_vars['actu_world']['nom_alliance1']; ?>
</a> <?php if ($this->_tpl_vars['actu_world']['type'] == 0): ?>a déclaré la guerre à<?php else: ?>a engagé un pacte <?php if ($this->_tpl_vars['actu_world']['type'] == 1): ?>de non-agression<?php elseif ($this->_tpl_vars['actu_world']['type'] == 2): ?>commercial<?php else: ?>militaire<?php endif; ?> avec<?php endif; ?> l'alliance <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;v=<?php echo $this->_tpl_vars['actu_world']['alliance2_id']; ?>
">[<?php echo $this->_tpl_vars['actu_world']['tag2']; ?>
] <?php echo $this->_tpl_vars['actu_world']['nom_alliance2']; ?>
</a>.</h3>
<?php endforeach; endif; unset($_from); ?>
<?php else: ?>
<h3>Aucune actualité disponible</h3>
<?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;
unset($_smarty_tpl_vars);
?>