101 lines
3.2 KiB
PHP
101 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 $nomBD */
|
|
/** @var array $liste */
|
|
|
|
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("AgefoddxModifierBD")?></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='update'>
|
|
<input type='hidden' name='token' value='<?=$csrfToken?>'>
|
|
<table>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="idBD"><?=$langs->trans("AgefoddxIdDansBD")?>: </label>
|
|
</th>
|
|
<td>
|
|
<input type="text" id="idBD" name="idBD" value="<?=$liste["idBD"]?>" AUTOCOMPLETE="OFF" readonly>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="nomBD"><?=$langs->trans("AgefoddxNomBD")?> : </label>
|
|
</th>
|
|
<td>
|
|
<input type="text" id="nomBD" name="nomBD" value="<?=$liste["nomBD"]?>" AUTOCOMPLETE="OFF">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="lienBD"><?=$langs->trans("AgefoddxLienBD")?> : </label>
|
|
</th>
|
|
<td>
|
|
<input type="text" id="lienBD" name="lienBD" value="<?=$liste["lienBD"]?>" AUTOCOMPLETE="OFF">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="user"><?=$langs->trans("AgefoddxIdentifientBD")?> : </label>
|
|
</th>
|
|
<td>
|
|
<input type="text" id="user" name="user" value="<?=$liste["user"]?>" AUTOCOMPLETE="OFF">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="port"><?=$langs->trans("AgefoddxPortBD")?> : </label>
|
|
</th>
|
|
<td>
|
|
<input type="number" id="port" name="port" value="<?=$liste["port"]?>" AUTOCOMPLETE="OFF">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">
|
|
<label for="mdp">*<?=$langs->trans("AgefoddxMDP")?> : </label>
|
|
</th>
|
|
<td>
|
|
<input type="password" id="mdp" name="mdp" value="" AUTOCOMPLETE="OFF">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row" colspan="2">
|
|
<input type="submit" value="<?=$langs->trans("AgefoddxEnvoie")?>" />
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row" colspan="2">
|
|
<p>* <?=$langs->trans("AgefoddxMentionMDP")?></p>
|
|
</th>
|
|
</tr>
|
|
</table>
|
|
</form>
|