game/onyx/tpl_compile/%%7E^7E6^7E6EEC5C%%alliance_accueil.tpl.php

115 lines
6.8 KiB
PHP

<?php /* Smarty version 2.6.19, created on 2008-09-12 23:40:40
compiled from game/alliance_accueil.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'game/alliance_accueil.tpl', 2, false),array('modifier', 'capitalize', 'game/alliance_accueil.tpl', 2, false),array('modifier', 'escape', 'game/alliance_accueil.tpl', 10, false),array('modifier', 'nl2br', 'game/alliance_accueil.tpl', 37, false),array('modifier', 'date_format', 'game/alliance_accueil.tpl', 60, 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);
?>
<h2>[<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
] <?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
</h2>
<table cellpadding="2" cellspacing="0" style="text-align: center; width: 100%;">
<tbody>
<tr>
<td colspan="2"><img src="<?php echo $this->_tpl_vars['alliance']['image']; ?>
" /></td>
</tr>
<tr>
<td style="text-align: right; vertical-align: middle;"><strong>Nom : </strong></td>
<td style="width: 70%;"><?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
(<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['tag'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>
</tr>
<tr>
<td style="text-align: right;"><strong>Membres : </strong></td>
<td><?php echo $this->_tpl_vars['nbmembre']; ?>
(<a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=liste">Liste des membres</a>)</td>
</tr>
<tr>
<td style="text-align: right;"><strong>Votre grade :</strong></td>
<td><?php if ($this->_tpl_vars['access']['fondateur']): ?>Fondateur<?php elseif ($this->_tpl_vars['grade']['nom']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['grade']['nom'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php else: ?>Aucun<?php endif; ?><br /><?php if ($this->_tpl_vars['access']['chat']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=adm_chat">Mod&eacute;rer le chat</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['membre']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=adm_membres">Gestion des membres</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['ecriture']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=adm_ecrits">Gestion des &eacute;critures</a> |<?php endif; ?> <?php if ($this->_tpl_vars['access']['alliance']): ?> <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=adm_alliance">Gestion de l'alliance</a><?php else: ?> <a onclick="return confirm('Êtes-vous sûr de vouloir quitter l\'alliance ?');" href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=quit_alliance&amp;a=<?php echo $this->_tpl_vars['quitalliance']; ?>
">Quitter l'alliance</a><?php endif; ?></td>
</tr>
<tr>
<td style="text-align: right;"><strong>Statut des inscriptions :</strong></td>
<td><?php if ($this->_tpl_vars['alliance']['etat_inscription']): ?>Ouvertes<?php else: ?>Ferm&eacute;e<?php endif; ?></td>
</tr>
<?php if ($this->_tpl_vars['access']['membre']): ?>
<tr>
<td style="text-align: right; font-weight: bolder;">Mail collectif :</td>
<td><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=adm_mp">Envoyer un message collectif</a></td>
<?php endif; ?>
</tr>
<tr>
<td style="text-align: right; font-weight: bolder;">Ressources dans la banque :</td>
<td><?php echo $this->_tpl_vars['nomsressources']['0']; ?>
: <?php echo $this->_tpl_vars['alliance']['metal']; ?>
<br /><?php echo $this->_tpl_vars['nomsressources']['1']; ?>
: <?php echo $this->_tpl_vars['alliance']['cristal']; ?>
<br /><?php echo $this->_tpl_vars['nomsressources']['2']; ?>
: <?php echo $this->_tpl_vars['alliance']['hydrogene']; ?>
<br /><a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=donner">Donner</a> | <a href="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=emprunt">Demander financement</a></td>
</tr>
</tbody>
</table>
<h2>Présentation</h2>
<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['presentation'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<table style="width: 100%;">
<tbody>
<tr>
<td style="text-align: right;"><strong>Forum :</strong></td>
<td style="width: 70%;"><a href="<?php echo $this->_tpl_vars['alliance']['url']; ?>
"><?php echo $this->_tpl_vars['alliance']['url']; ?>
</a></td>
</tr>
</tbody>
</table>
<h2>Texte interne</h2>
<?php echo ((is_array($_tmp=$this->_tpl_vars['alliance']['texte_interne'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<h2>Chat</h2>
<div style="height: 150px; overflow: auto; width: 99%;" id="chat">
<table style="width: 100%; margin: 0px;">
<thead>
<tr>
<th style="width: 172px;">[pseudo] heure</td>
<th style="width: 536px;">Message</td>
</tr>
</thead>
<tbody>
<?php $_from = $this->_tpl_vars['chat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['message']):
?>
<tr>
<td>[<?php echo $this->_tpl_vars['message']['emetteur']; ?>
] <i><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['message']['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")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</i></td>
<td><?php echo $this->_tpl_vars['message']['message']; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
</div>
<form method="post" action="<?php echo $this->_tpl_vars['menu']['alliance']; ?>
&amp;q=chat">
Réponse :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="msg" type="text" size="50" maxlength="250">&nbsp;&nbsp;&nbsp;&nbsp;<input value="GO" class="submit" type="submit">
</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);
?>