67 lines
4.0 KiB
PHP
67 lines
4.0 KiB
PHP
<?php /* Smarty version 2.6.19, created on 2008-06-08 23:03:39
|
|
compiled from game/accueil.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/accueil.tpl', 18, 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);
|
|
?>
|
|
<div class="border_top"></div>
|
|
<h2>Evénements</h2>
|
|
<em>Heure du serveur: <?php echo $this->_tpl_vars['datehb']; ?>
|
|
</em>
|
|
<?php $_from = $this->_tpl_vars['attaques']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['attaque']):
|
|
?>
|
|
<h4 class="attaque">attaque: Une flotte ennemie en provenance de <?php echo $this->_tpl_vars['attaque']['0']; ?>
|
|
[<?php echo $this->_tpl_vars['attaque']['2']; ?>
|
|
:<?php echo $this->_tpl_vars['attaque']['3']; ?>
|
|
:<?php echo $this->_tpl_vars['attaque']['4']; ?>
|
|
] atteint la planète <?php echo $this->_tpl_vars['attaque']['5']; ?>
|
|
[<?php echo $this->_tpl_vars['attaque']['6']; ?>
|
|
:<?php echo $this->_tpl_vars['attaque']['7']; ?>
|
|
:<?php echo $this->_tpl_vars['attaque']['8']; ?>
|
|
] dans <span id="reste<?php echo $this->_tpl_vars['key']; ?>
|
|
"><?php echo $this->_tpl_vars['attaque']['1']; ?>
|
|
</span><script type="text/javascript">reste(<?php echo $this->_tpl_vars['attaque']['9']; ?>
|
|
,'reste<?php echo $this->_tpl_vars['key']; ?>
|
|
', true);</script></h4>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
<?php if ($this->_tpl_vars['mail']['nbre'] >= 2): ?><h4>messagerie: <a href="?p=messagerie"><?php echo $this->_tpl_vars['mail']['nbre']; ?>
|
|
messages non lu</a></h4>
|
|
<?php elseif ($this->_tpl_vars['mail']['nbre'] >= 1): ?><h4>messagerie: <a href="?p=messagerie"><?php echo $this->_tpl_vars['mail']['nbre']; ?>
|
|
message non lu</a></h4>
|
|
<?php endif; ?>
|
|
<h3><a href="?p=rename"><?php if (! $this->_tpl_vars['planete']['nom_planete']): ?>Sans nom<?php endif; ?><?php echo $this->_tpl_vars['planete']['nom_planete']; ?>
|
|
</a> (<span><?php echo $this->_tpl_vars['user']['pseudo']; ?>
|
|
</span>)</h3>
|
|
<img src="images/planetes/<?php echo $this->_tpl_vars['planete']['image']; ?>
|
|
.jpg" width="200" height="200" alt="planete" />
|
|
<h2>Infos</h2>
|
|
<h4>Diamètre: <?php echo $this->_tpl_vars['diametre']; ?>
|
|
km <ins>(<?php echo $this->_tpl_vars['caseRest']; ?>
|
|
/<?php echo $this->_tpl_vars['planete']['cases']; ?>
|
|
cases)</ins></h4>
|
|
<h4>Race : <?php echo $this->_tpl_vars['user']['race']; ?>
|
|
</h4>
|
|
<h4>position: <a href="?p=carte&galaxie=<?php echo $this->_tpl_vars['planete']['galaxie']; ?>
|
|
&ss=<?php echo $this->_tpl_vars['planete']['ss']; ?>
|
|
"><?php echo $this->_tpl_vars['planete']['galaxie']; ?>
|
|
.<?php echo $this->_tpl_vars['planete']['ss']; ?>
|
|
.<?php echo $this->_tpl_vars['planete']['position']; ?>
|
|
</a></h4>
|
|
<h4>Classement: <a href="?p=classement&j=<?php echo $this->_tpl_vars['user']['id']; ?>
|
|
&c=<?php echo $this->_tpl_vars['user']['place_points']; ?>
|
|
#moi"><?php echo $this->_tpl_vars['points']; ?>
|
|
points (<?php if ($this->_tpl_vars['user']['place_points'] == '0'): ?>non classé<?php else: ?><?php echo $this->_tpl_vars['user']['place_points']; ?>
|
|
<?php if ($this->_tpl_vars['user']['place_points'] == '1'): ?>er<?php else: ?>ème<?php endif; ?><?php endif; ?>)</a></h4>
|
|
<?php if ($this->_tpl_vars['alliance']): ?><h4>Alliance: <a href="?p=alliances">[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
|
|
] <?php echo $this->_tpl_vars['alliance']['nom']; ?>
|
|
</a></h4><?php endif; ?>
|
|
<div class="border_bt"></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);
|
|
?>
|