game/onyx2/modules/templates_anc/compile/%%6E^6ED^6ED0416E%%bdd.tpl.php

64 lines
3.1 KiB
PHP

<?php /* Smarty version 2.6.22, created on 2009-09-19 23:46:11
compiled from admin/bdd.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'admin/bdd.tpl', 4, 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 if ($_POST['req'] || $_GET['req']): ?>
<h2>Réponse de la base de données - <a href="#req">Aller à la requête</a></h2>
<h3><strong>Requête :</strong> <em><?php echo ((is_array($_tmp=$_POST['req'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</em></h3>
<?php if ($this->_tpl_vars['affected']): ?>
<h3><strong>Enregistrement(s) affecté(s) :</strong> <?php echo $this->_tpl_vars['affected']; ?>
</h3>
<?php endif; ?>
<?php if ($this->_tpl_vars['erreur']): ?>
<h3 style="color: #FF0000;"><strong>Erreur :</strong> <em><?php echo $this->_tpl_vars['erreur']; ?>
</em></h3>
<?php endif; ?>
<?php if ($this->_tpl_vars['reponses']): ?>
<div id="gestion">
<table style="empty-cells:show;">
<tr>
<?php $_from = $this->_tpl_vars['reponses']['0']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['reponse']):
?>
<th><?php echo $this->_tpl_vars['key']; ?>
</th>
<?php endforeach; endif; unset($_from); ?>
</tr>
<?php $_from = $this->_tpl_vars['reponses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['reponse']):
?>
<tr>
<?php $_from = $this->_tpl_vars['reponse']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['ligne']):
?>
<td><?php if ($this->_tpl_vars['lien']): ?><a href="?p=bdd&amp;req=<?php echo $this->_tpl_vars['lien']; ?>
<?php echo $this->_tpl_vars['ligne']; ?>
"><?php endif; ?><?php echo $this->_tpl_vars['ligne']; ?>
</td>
<?php endforeach; endif; unset($_from); ?>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?>
<?php endif; ?>
<h2>Administration de la base de données</h2>
<form action="?p=bdd" method="post">
<fieldset class="options">
<label for="req">Requête :</label><br /><textarea name="req" id="req" rows="5" cols="15" tabindex="2"><?php if ($_GET['req']): ?><?php echo $_GET['req']; ?>
<?php endif; ?><?php echo ((is_array($_tmp=$_POST['req'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</textarea><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);
?>