<?php /* Smarty version 2.6.26, created on 2009-11-15 23:04:05
compiled from D:%5Chtdocs%5Cle-peuple/mod/admin/tpl/user.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'link', 'D:\\htdocs\\le-peuple/mod/admin/tpl/user.tpl', 7, false),array('modifier', 'cat', 'D:\\htdocs\\le-peuple/mod/admin/tpl/user.tpl', 39, false),)), $this); ?>
<html>
<head>
<title>Gestion des droits d'acces</title>
</head>
<body>
<h1>Droit d'accès de <?php echo $this->_tpl_vars['current']['pseudo']; ?>
</h1>
<p><a href="<?php echo smarty_function_link(array('module' => "",'action' => ""), $this);?>
">Retour accueil</a>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => 'admin'), $this);?>
">Liste des utilisateurs</a>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ""), $this);?>
">Administration</a></p>
<?php if ($this->_tpl_vars['current']['id'] == $this->_tpl_vars['user']['id']): ?>
<p><u>Note :</u> Vous ne pouvez pas changer vos propres droits d'accès.</p>
<?php endif; ?>
<table cellspacing="0" cellpadding="0" border="1px" width="500px" align="center">
<thead>
<tr>
<td>ID</td>
<td>droit</td>
<td>niveau</td>
<td>Modifier</td>
</tr>
</thead>
<tbody>
<?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['line']):
?>
<tr>
<td><?php echo $this->_tpl_vars['line']['acc']['id']; ?>
</td>
<td><?php echo $this->_tpl_vars['line']['acc']['droit']; ?>
</td>
<td><?php if ($this->_tpl_vars['line']['acc']['acces'] == '0'): ?>
Refusé
<?php elseif ($this->_tpl_vars['line']['acc']['acces'] == '1'): ?>
Utilisateur
<?php else: ?>
Admin
<?php endif; ?>
</td>
<td>
<?php if ($this->_tpl_vars['line']['me'] > 1 && $this->_tpl_vars['current']['id'] != $this->_tpl_vars['user']['id']): ?>
<?php if ($this->_tpl_vars['line']['acc']['acces'] == '0'): ?>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ((is_array($_tmp=((is_array($_tmp="admin/droit/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['current']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['current']['id'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "/add.htm") : smarty_modifier_cat($_tmp, "/add.htm")),'Var' => ((is_array($_tmp="dir=")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['line']['acc']['droit']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['line']['acc']['droit']))), $this);?>
">Autoriser</a>
<?php elseif ($this->_tpl_vars['line']['acc']['acces'] == '1'): ?>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ((is_array($_tmp=((is_array($_tmp="admin/droit/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['current']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['current']['id'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "/admin.htm") : smarty_modifier_cat($_tmp, "/admin.htm")),'Var' => ((is_array($_tmp="dir=")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['line']['acc']['droit']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['line']['acc']['droit']))), $this);?>
">Admin</a>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ((is_array($_tmp=((is_array($_tmp="admin/droit/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['current']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['current']['id'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "/refus.htm") : smarty_modifier_cat($_tmp, "/refus.htm")),'Var' => ((is_array($_tmp="dir=")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['line']['acc']['droit']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['line']['acc']['droit']))), $this);?>
">Refuser</a>
<?php else: ?>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ((is_array($_tmp=((is_array($_tmp="admin/droit/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['current']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['current']['id'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "/user.htm") : smarty_modifier_cat($_tmp, "/user.htm")),'Var' => ((is_array($_tmp="dir=")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['line']['acc']['droit']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['line']['acc']['droit']))), $this);?>
">User</a>
<a href="<?php echo smarty_function_link(array('module' => 'admin','action' => ((is_array($_tmp=((is_array($_tmp="admin/droit/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['current']['id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['current']['id'])))) ? $this->_run_mod_handler('cat', true, $_tmp, "/refus.htm") : smarty_modifier_cat($_tmp, "/refus.htm")),'Var' => ((is_array($_tmp="dir=")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['line']['acc']['droit']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['line']['acc']['droit']))), $this);?>
">Refuser</a>
<?php endif; ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
</body>
</html>