1050 |
jp_milcent |
1 |
<form action="<?=$form_url;?>" method="post" id="form_more_recherche">
|
|
|
2 |
<fieldset>
|
|
|
3 |
<legend><?=MORE_LG_FORM_TITRE;?></legend>
|
|
|
4 |
<label for="more_motif"><?=MORE_LG_FORM_MOTIF;?></label>
|
1805 |
alexandre_ |
5 |
<input id="more_motif" name="more_motif" tabindex="<?=$form_tab;?>" maxlength="<?=MORE_FORM_MOTIF_MAXLENGTH;?>" accesskey="<?=MORE_LG_FORM_ACCESSKEY;?>" type="text" value="<?=$more_motif;?>" onfocus="nettoyerChamp('more_motif', '<?=$more_motif_base;?>');" onblur="nettoyerChamp('more_motif', '<?=$more_motif_base;?>');" />
|
1050 |
jp_milcent |
6 |
<input id="more_ok" name="more_ok" tabindex="<?=++$form_tab;?>" value="<?=MORE_LG_FORM_VALIDER;?>" type="submit" />
|
|
|
7 |
</fieldset>
|
1456 |
jp_milcent |
8 |
</form>
|
|
|
9 |
<script type="text/javascript">
|
|
|
10 |
//<![CDATA[
|
1805 |
alexandre_ |
11 |
|
1456 |
jp_milcent |
12 |
|
|
|
13 |
// Fonction nettoyant un champ de formulaire d'une chaine donnée...
|
|
|
14 |
function nettoyerChamp(id, chaine)
|
|
|
15 |
{
|
|
|
16 |
var sb = document.getElementById(id);
|
|
|
17 |
var valeur = sb.value;
|
|
|
18 |
if (valeur == chaine) {
|
|
|
19 |
sb.value = '';
|
|
|
20 |
}
|
|
|
21 |
if (valeur == '') {
|
|
|
22 |
sb.value = chaine;
|
|
|
23 |
}
|
|
|
24 |
}
|
|
|
25 |
//]]>
|
|
|
26 |
</script>
|