game/onyx2/modules/templates_anc/compile/%%96^96C^96C9174C%%gestion_wing.tpl.php

68 lines
3.2 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-04 15:37:48
compiled from game/alliance/gestion_wing.tpl */ ?>
<?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 wings</h2>
<?php if ($this->_tpl_vars['wings']): ?>
<table>
<tbody>
<?php $_from = $this->_tpl_vars['wings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['wing']):
?>
<tr>
<td><?php echo $this->_tpl_vars['wing']['nom_alliance']; ?>
</td>
<td><?php echo $this->_tpl_vars['wing']['race']; ?>
</td>
<td><?php echo $this->_tpl_vars['wing']['nbMembres']; ?>
</td>
<td><?php if ($this->_tpl_vars['wing']['pseudo_fondateur']): ?><?php echo $this->_tpl_vars['wing']['pseudo_fondateur']; ?>
<?php else: ?>Attente de l'acceptation<?php endif; ?></td>
<td><?php if ($this->_tpl_vars['wing']['pseudo_fondateur']): ?><a href="<?php echo $this->_tpl_vars['menu']['messages']; ?>
&amp;n=envoyer&amp;d=<?php echo $this->_tpl_vars['wing']['pseudo_fondateur']; ?>
" class="msg"><span>Message</span></a><?php endif; ?></td>
<td><a href="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
&amp;g=wing&amp;u=<?php echo $this->_tpl_vars['membre']['id']; ?>
"><em>supprimer</em></a></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
<thead>
<tr>
<th>Nom de la wing</th>
<th>Race</th>
<th>Nombre de membres</th>
<th>Fondateur</th>
<th>MP fondateur</th>
<th>Actions</th>
</tr>
</thead>
</table>
<?php else: ?>
<div id="erreur">L'alliance ne possède aucune wing.</div>
<?php endif; ?>
<h2>Créer une wing</h2>
<form method="post" action="<?php echo $this->_tpl_vars['menu']['gestion']; ?>
&amp;g=wings">
<fieldset class="options">
<label for="nom">Nom de la wing : <input type="text" class="text" name="nom" id="nom" maxlength="32" /></label><br />
<label for="tag">Tag de la wing : <input type="text" class="text" name="tag" id="tag" maxlength="5" /></label><br />
<label for="race">Race de la wing : <select name="race" id="race"><option value="humain">Humaine</option><option value="covenant">Covenante</option></select></label><br />
<label for="fondateur">Membre fondateur : <input type="text" class="text" name="fondateur" id="fondateur" maxlength="64" /></label><br />
<em>Le membre fondateur ne doit faire actuellement parti d'aucune alliance.<br />La wing sera créée une fois que le fondateur aura accepté votre demande.</em><br />
<input type="submit" class="submit" value="Go" />
</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);
?>