1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <!-- Boutons du bas -->
<!---->
<script type='text/javascript' language='Javascript' >
var enter = false;
function envoi(champ, formul)
{
enter=true;
// mémorise le bouton clické dans un champ caché
document.getElementById("action").value = champ.name;
// demande l'envoi du formulaire (dont l'ID est table)
document.getElementById(formul).submit();
}
</script>
<!-- Fin Boutons du bas -->
...
<form id="entete" action="" method="post">
...
</form>
<form id="col47rec" action="" method="post">
...
</form>
<form id="col47rec" action="" method="post">
...
</form>
<form name="maj" id="majsecu" action="" method="post" onsubmit="return Validator.Submit(document.maj,'test()');">
...
<input type="hidden" id="action" name="bouton" value="">
<input type="button" name="Valider" onclick='envoi(this, this.form.id);' value="Valider">
<input type="button" name="Miseajour" onclick='envoi(this, this.form.id);' value="Mise à jour">
<input type="button" name="Retour" onclick='envoi(this, this.form.id);' value="Retour">
</form> |
Partager