Agefoddx/view/gestionTable/transition.php
2025-03-26 10:22:20 +01:00

62 lines
2.2 KiB
PHP

<?php
/** @var $titre */
/** @var $nomBD */
/** @var $idBD */
/** @var $idTable */
/** @var $actionApres */
/** @var $titreAction */
/** @var $nomTableE */
/** @var $nomTableA */
global $langs , $db;
$langs->loadLangs(array("admin", "Agefoddx@Agefoddx"));
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
$form = new Form($db);
$csrfToken = function_exists('newToken') ? newToken() : $_SESSION['newtoken'];
?>
<script src="../js/envoiePost.js"></script>
<table class="centpercent">
<tr class=" left col-left">
<th>
<a href="#" onclick="envoyerPost({action:'afficherListe', controleur:'bd'},'setup.php', '<?=$csrfToken?>')"><?=$langs->trans("AgefoddxListeBD")?>\</a>
<a href="#" onclick="envoyerPost({action:'afficherListe', controleur:'table', idBD:'<?=$idBD?>', nomBD:'<?=$nomBD?>', mdp:'<?=$mdp?>'}, 'setup.php', '<?=$csrfToken?>')"><?=$nomBD?>\</a>
<a><?= $titreAction ?></a>
</th>
</tr>
<tr>
<th scope="col" class=" left col-left">
<h2><?= $titre ?></h2>
</th>
<th scope="col" class=" right col-right">
</th>
</tr>
</table>
<form method="post" autocomplete="off">
<input type="hidden" name="controleur" value="table">
<input type="hidden" name="action" value="<?=$actionApres?>">
<input type="hidden" name="token" value="<?=$csrfToken?>">
<input type="hidden" name="nomBD" value="<?=$nomBD?>">
<input type="hidden" name="idBD" value="<?=$idBD?>">
<input type="hidden" name="idTable" value="<?=$idTable?>">
<input type="hidden" name="nomTableE" value="<?=$nomTableE?>">
<input type="hidden" name="nomTableA" value="<?=$nomTableA?>">
<table>
<tbody>
<tr>
<th scope="row">
<label for="mdp"><?=$langs->trans("AgefoddxMDP")?> : </label>
</th>
<td>
<input type="password" id="mdp" name="mdp" placeholder="********" required>
</td>
</tr>
<tr>
<th scope="row" colspan="2">
<input type="submit" value="<?=$langs->trans("AgefoddxEnvoie")?>" />
</th>
</tr>
</tbody>
</table>
</form>