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

71 lines
3.2 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 $nomLigneE */ /** @var $nomLigneA */ /** @var $idLigne */
/** @var $idBD */ /** @var $nomBD */ /** @var $mdp */
/** @var $idTable */ /** @var $nomTableA */ /** @var $nomTableE */
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><?=$langs->trans("AgefoddxSupprimer")?></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='suppression'>
<input type='hidden' name='idBD' value='<?=$idBD?>'>
<input type='hidden' name='idTable' value='<?=$idTable?>'>
<input type='hidden' name='idLigne' value='<?=$idLigne?>'>
<input type='hidden' name='nomBD' value='<?=$nomBD?>'>
<input type='hidden' name='nomTableA' value='<?=$nomTableA?>'>
<input type='hidden' name='nomTableE' value='<?=$nomTableE?>'>
<input type='hidden' name='token' value='<?=$csrfToken?>'>
<input type='hidden' name='mdp' value='<?=$mdp?>''>
<fieldset>
<table class="centpercent">
<tr class="centpercent">
<th scope="row" colspan="2" >
<legend> <?=$langs->trans("AgefoddxTexteDeSuppression")?> <?=$nomLigneA?> <?=$langs->trans("AgefoddxEt")?> <?=$nomLigneE?> ? </legend>
</th>
</tr>
<tr class="centpercent">
<th scope="row">
<input type="radio" id="true" name="ouiNon" value="true" />
<label for="true"><?=$langs->trans("AgefoddxOui")?></label>
</th>
<th scope="row">
<input type="radio" id="" name="ouiNon" value="" checked/>
<label for=""><?=$langs->trans("AgefoddxNon")?></label>
</th>
</tr>
<tr class="centpercent">
<th scope="row" colspan="2" >
<button class="centpercent" type="submit"><?=$langs->trans("AgefoddxEnvoie")?></button>
</th>
</tr>
</table>
</fieldset>
</form>