game/onyx2/modules/templates_anc/compile/%%FA^FA5^FA56ACEE%%gestion_grades.tpl.php

83 lines
6.0 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-31 16:35:53
compiled from game/alliance/gestion_grades.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'game/alliance/gestion_grades.tpl', 8, 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 grades existants</h2>
<table>
<tbody>
<?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']):
?>
<tr>
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
&amp;g=grades&amp;i=<?php echo $this->_tpl_vars['grade']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 1): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 2): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 4): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 8): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 16): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 32): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 64): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 128): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 256): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['grade']['auth'] & 512): ?>Oui<?php else: ?>Non<?php endif; ?></td>
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
&amp;g=grades&amp;d=<?php echo $this->_tpl_vars['grade']['id']; ?>
" onclick="return confirm('Êtes-vous sûr de vouloir supprimer ce grade ?');">Supprimer</a></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
<thead>
<tr>
<th>Nom</th>
<th>Bâtiments</th>
<th>Vaisseaux</th>
<th>Flottes</th>
<th>Diplomatie</th>
<th>Crédits</th>
<th>Membres</th>
<th>Wings</th>
<th>Alliance</th>
<th>Chat</th>
<th>Messagerie</th>
<th>Actions</th>
</tr>
</thead>
</table>
<h2><?php if ($this->_tpl_vars['grade_mod']): ?>Modifier<?php else: ?>Cr&eacute;er<?php endif; ?> un grade</h2><br />
<form action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
&amp;g=grades<?php if ($this->_tpl_vars['grade_mod']): ?>&amp;i=<?php echo $this->_tpl_vars['grade_mod']['id']; ?>
<?php endif; ?>" method="post">
<fieldset class="options">
<label for="nom">Nom :</label> <input type="text" name="nom" id="nom" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['grade_mod']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="30" maxlength="32" tabindex="1" /><br /><br />
<input type="checkbox" name="gbats" id="gbats" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 1): ?> checked="checked"<?php endif; ?> /> <label for="gbats">Gestion des bâtiments</label><br />
<input type="checkbox" name="gvais" id="gvais" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 2): ?> checked="checked"<?php endif; ?> /> <label for="gvais">Gestion des vaisseaux</label><br />
<input type="checkbox" name="gflot" id="gflot" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 4): ?> checked="checked"<?php endif; ?> /> <label for="gflot">Gestion des flottes</label><br />
<input type="checkbox" name="gdipl" id="gdipl" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 8): ?> checked="checked"<?php endif; ?> /> <label for="gdipl">Gestion de la diplomatie</label><br />
<input type="checkbox" name="gcred" id="gcred" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 16): ?> checked="checked"<?php endif; ?> /> <label for="gcred">Gestion des crédits</label><br /><br />
<input type="checkbox" name="gmemb" id="gmemb" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 32): ?> checked="checked"<?php endif; ?> /> <label for="gmemb">Gestion des membres</label><br />
<input type="checkbox" name="gwing" id="gwing" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 64): ?> checked="checked"<?php endif; ?> /> <label for="gwing">Gestion des wings</label><br />
<input type="checkbox" name="galli" id="galli" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 128): ?> checked="checked"<?php endif; ?> /> <label for="galli">Gestion de l'alliance</label><br />
<input type="checkbox" name="gchat" id="gchat" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 256): ?> checked="checked"<?php endif; ?> /> <label for="gchat">Participe au chat</label><br />
<input type="checkbox" name="gmess" id="gmess" value="1"<?php if ($this->_tpl_vars['grade_mod']['auth'] & 512): ?> checked="checked"<?php endif; ?> /> <label for="gmess">Utilisation de la messagerie d'alliance</label><br />
<br /><input type="submit" class="submit" value="GO" tabindex="3" />
</fieldset>
</form>
<?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);
?>