game/onyx2/modules/templates_anc/compile/%%F2^F21^F21E08BB%%messagerie.tpl.php

59 lines
5.2 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-10-31 20:54:22
compiled from game/messagerie.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'game/messagerie.tpl', 13, false),array('modifier', 'nl2br', 'game/messagerie.tpl', 14, false),array('modifier', 'escape', 'game/messagerie.tpl', 14, false),array('modifier', 'bbcode', 'game/messagerie.tpl', 14, 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 $this->_tpl_vars['titreR']; ?>
</h2>
<ul class="onglets">
<li<?php if ($this->_tpl_vars['onglet'] != 'rapports' && $this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=recus">Reçus<?php if ($this->_tpl_vars['alertMail']['0']): ?> (<?php echo $this->_tpl_vars['alertMail']['0']; ?>
)<?php endif; ?></a></li>
<li<?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=rapports">Rapports<?php if ($this->_tpl_vars['alertMail']['1']): ?> (<?php echo $this->_tpl_vars['alertMail']['1']; ?>
)<?php endif; ?></a></li>
<li<?php if ($this->_tpl_vars['onglet'] == 'send'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=send">Envoyés</a></li>
<li<?php if ($this->_tpl_vars['onglet'] == 'envoyer'): ?> class="hilight"<?php endif; ?>><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=envoyer">Ecrire</a></li>
</ul><br /><br />
<?php echo $this->_tpl_vars['avertissement']; ?>
<form action="<?php echo $this->_tpl_vars['menu']['messagerie']; ?>
" method="post" id="messagerie"><fieldset>
<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['message']):
?>
<dl<?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['message']['vu']): ?> class="new"<?php endif; ?>>
<dt><input type="checkbox" class="checkbox" name="m<?php echo $this->_tpl_vars['key']; ?>
" value="<?php echo $this->_tpl_vars['message']['id']; ?>
" /> <?php if ($this->_tpl_vars['onglet'] != 'rapports'): ?><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=envoyer&amp;d=<?php if ($this->_tpl_vars['onglet'] == 'send'): ?><?php echo $this->_tpl_vars['message']['destinataire']; ?>
&amp;o=Fwd<?php else: ?><?php echo $this->_tpl_vars['message']['expediteur']; ?>
&amp;o=Re<?php endif; ?>:%20<?php echo $this->_tpl_vars['message']['sujet']; ?>
"><?php endif; ?><?php echo $this->_tpl_vars['message']['sujet']; ?>
<?php if ($this->_tpl_vars['onglet'] != 'rapports'): ?></a><?php endif; ?><?php if (! empty ( $this->_tpl_vars['message']['expediteur'] )): ?> <?php if ($this->_tpl_vars['onglet'] == 'send'): ?>vers <?php echo $this->_tpl_vars['message']['destinataire']; ?>
<?php else: ?>de <?php echo $this->_tpl_vars['message']['expediteur']; ?>
<?php endif; ?><?php endif; ?> le <?php echo ((is_array($_tmp=$this->_tpl_vars['message']['temps'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%y à %H:%M") : smarty_modifier_date_format($_tmp, "%d/%m/%y à %H:%M")); ?>
</dt>
<dd><?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['message']['contenu'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<?php else: ?><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['message']['contenu'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('bbcode', true, $_tmp) : smarty_modifier_bbcode($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
<?php endif; ?><?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['onglet'] != 'rapports'): ?><div style="text-align: right;"><a href="?p=<?php echo $this->_tpl_vars['link_P']; ?>
&amp;n=envoyer&amp;d=<?php echo $this->_tpl_vars['message']['expediteur']; ?>
&amp;o=Re:%20<?php echo $this->_tpl_vars['message']['sujet']; ?>
"><i>Répondre</i></a> | <a href="?p=messagerie&amp;avertir=<?php echo $this->_tpl_vars['message']['4']; ?>
"><i>Avertir un opérateur</i></a></div><?php endif; ?></dd>
</dl>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['onglet'] != 'send' && $this->_tpl_vars['messages']): ?><strong>Supprimer le sélection : <input class="submit" type="submit" value="OK" /></strong>
<?php elseif (! $this->_tpl_vars['messages']): ?><div id="erreur">Aucun <?php if ($this->_tpl_vars['onglet'] == 'rapports'): ?>rapport<?php else: ?>message<?php endif; ?></div><?php endif; ?>
</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);
?>