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

70 lines
2.5 KiB
PHP

<?php
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'];
/** @var $titre */ /** @var $actionApres */ /** @var $titreAction */
/** @var $idBD */ /** @var $nomBD */ /** @var $mdp */
/** @var $idTable */ /** @var $nomTableA */ /** @var $nomTableE */
/** @var $valeurBase */
if (!isset($titre)) {
$titre = "Agefoddx";
}
?>
<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 href="#" onclick="envoyerPost({action:'afficherListe', controleur:'ligne', idTable:'<?=$idTable?>', idBD:'<?=$idBD?>', nomBD:'<?=$nomBD?>', mdp:'<?=$mdp?>'}, 'setup.php', '<?=$csrfToken?>')"><?=$langs->trans("AgefoddxListeLigne")?>\</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="ligne">
<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="valeurBase" value="<?=$valeurBase?>">
<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>