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

63 lines
2.3 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 $idBD */
/** @var $nomBD */
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><?=$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='bd'>
<input type='hidden' name='action' value='suppression'>
<input type='hidden' name='idBD' value='<?=$idBD?>'>
<input type='hidden' name='nomBD' value='<?=$nomBD?>'>
<input type='hidden' name='token' value='<?=$csrfToken?>'>
<fieldset>
<table class="centpercent">
<tr class="centpercent">
<th scope="row" colspan="2" >
<legend><?=$langs->trans("AgefoddxTexteDeSuppression")?> Agefodd <?=$langs->trans("AgefoddxEt")?> <?=$nomBD?> ? </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>