game/onyx2/modules/templates_anc/compile/%%B6^B6A^B6A46224%%version.tpl.php

63 lines
3.0 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-07-31 17:23:51
compiled from admin/version.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'admin/version.tpl', 28, false),array('modifier', 'date_format', 'admin/version.tpl', 29, 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>Gestion du cache</h2>
<a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
&amp;actuCache">Mettre à jour le cache</a>
<h2><?php if ($this->_tpl_vars['id'] == 'add'): ?>Ajouter<?php else: ?>Modifier<?php endif; ?> une version<?php if ($this->_tpl_vars['id'] != 'add'): ?> : <?php echo $this->_tpl_vars['id']; ?>
<?php endif; ?></h2>
<form action="<?php echo $this->_tpl_vars['menu']['versions']; ?>
&amp;i=<?php echo $this->_tpl_vars['id']; ?>
" method="post">
<fieldset class="options">
<label for="version">Version :</label> <input type="text" name="version" id="version" value="<?php echo $this->_tpl_vars['mod']['version']; ?>
" tabindex="1" /><br />
<label for="contenu">Contenu :</label><br /><textarea cols="10" rows="10" name="contenu" id="contenu" tabindex="2"><?php echo $this->_tpl_vars['mod']['contenu']; ?>
</textarea><br />
<input type="submit" class="submit" value="GO" tabindex="3" />
</fieldset>
</form>
<h2>Liste des versions</h2>
<table>
<thead>
<tr>
<th>Action</th>
<th>Version</th>
<th>Infos</th>
<th>Date</th>
<th>Par</th>
</tr>
</thead>
<tbody>
<?php $_from = $this->_tpl_vars['tableau']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ligne']):
?>
<tr>
<td><a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
&amp;i=<?php echo $this->_tpl_vars['ligne']['id']; ?>
">EDIT</a> | <a href="<?php echo $this->_tpl_vars['menu']['versions']; ?>
&amp;d=<?php echo $this->_tpl_vars['ligne']['id']; ?>
">SUPPR</a></td>
<td><?php echo $this->_tpl_vars['ligne']['version']; ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['contenu'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
<td><?php echo ((is_array($_tmp=$this->_tpl_vars['ligne']['temps'])) ? $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")); ?>
</td>
<td><?php echo $this->_tpl_vars['ligne']['pseudo']; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
<?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);
?>