83 lines
4.7 KiB
PHP
83 lines
4.7 KiB
PHP
<?php /* Smarty version 2.6.22, created on 2009-10-31 16:36:06
|
|
compiled from game/alliance/gestion_membres.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/alliance/gestion_membres.tpl', 10, false),array('modifier', 'escape', 'game/alliance/gestion_membres.tpl', 34, false),array('modifier', 'nl2br', 'game/alliance/gestion_membres.tpl', 34, 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/alliance/gestion_common.tpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|
|
<h2>Gestion des membres</h2>
|
|
<table>
|
|
<tbody>
|
|
<?php $_from = $this->_tpl_vars['membres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['membre']):
|
|
?>
|
|
<tr>
|
|
<td><?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
|
</td>
|
|
<td><?php echo $this->_tpl_vars['membre']['race']; ?>
|
|
</td>
|
|
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['membre']['last_visite'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
|
</td>
|
|
<td><form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
|
&g=membres&i=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
|
" method="post"><p><select name="grade" onchange="this.form.submit();"><option label="Aucun" value="0">Aucun</option><?php $_from = $this->_tpl_vars['grades']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['grade']):
|
|
?><option label="<?php echo $this->_tpl_vars['grade']['nom']; ?>
|
|
" value="<?php echo $this->_tpl_vars['grade']['id']; ?>
|
|
"<?php if ($this->_tpl_vars['grade']['id'] == $this->_tpl_vars['membre']['id_grade_alliance']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['grade']['nom']; ?>
|
|
</option><?php endforeach; endif; unset($_from); ?></select><noscript> <input type="submit" class="submit" value="GO" /></noscript></p></form></td>
|
|
<td><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
|
|
&n=envoyer&d=<?php echo $this->_tpl_vars['membre']['pseudo']; ?>
|
|
" class="msg"><span>Message</span></a></td>
|
|
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
|
&g=membres&u=<?php echo $this->_tpl_vars['membre']['id']; ?>
|
|
"><em>Exclure</em></a></td>
|
|
</tr>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</tbody>
|
|
<thead>
|
|
<tr>
|
|
<th>Pseudo</th>
|
|
<th>Race</th>
|
|
<th>Dernière connexion </th>
|
|
<th>Grade</th>
|
|
<th>MP</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<h2>Gestion des postulants</h2>
|
|
<?php if ($this->_tpl_vars['postulants']): ?>
|
|
<div id="messagerie">
|
|
<?php $_from = $this->_tpl_vars['postulants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|
foreach ($_from as $this->_tpl_vars['postulant']):
|
|
?>
|
|
<dl class="new">
|
|
<dt><a href="?p=...&i=<?php echo $this->_tpl_vars['postulant']['id_user']; ?>
|
|
"><?php echo $this->_tpl_vars['postulant']['pseudo']; ?>
|
|
</a> le <?php echo ((is_array($_tmp=$this->_tpl_vars['postulant']['timestamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y %H:%M:%S") : smarty_modifier_date_format($_tmp, "%d/%m/%y %H:%M:%S")); ?>
|
|
</dt>
|
|
<dd><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['postulant']['message'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
|
|
<br /><div style="text-align: right;"><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
|
&g=membres&pa=<?php echo $this->_tpl_vars['postulant']['id']; ?>
|
|
"><em>Accepter</em></a> | <a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
|
|
&g=membres&pr=<?php echo $this->_tpl_vars['postulant']['id']; ?>
|
|
"><em>Refuser</em></a></div></dd>
|
|
</dl>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<div id="erreur">Aucun postulant actuellement</div>
|
|
<?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);
|
|
?>
|