Subversion Repositories Applications.papyrus

Rev

Rev 1050 | Rev 1611 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
1456 jp_milcent 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="basculerTaille('more_motif', true);nettoyerChamp('more_motif', '<?=$more_motif_base;?>');" onblur="basculerTaille('more_motif', false);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[
11
	// Fonction aggrandissant ou diminuant la taille d'un champ
12
	// Provient du site https://addons.mozilla.org/
13
	function basculerTaille(id, grand)
14
	{
15
		var sb = document.getElementById(id);
16
		if (grand) {
17
			sb.style.width = '20em;';
18
		} else {
19
			sb.style.width = '10em;';
20
		}
21
	}
22
 
23
	// Fonction nettoyant un champ de formulaire d'une chaine donnée...
24
	function nettoyerChamp(id, chaine)
25
	{
26
		var sb = document.getElementById(id);
27
		var valeur = sb.value;
28
		if (valeur == chaine) {
29
			sb.value = '';
30
		}
31
		if (valeur == '') {
32
			sb.value = chaine;
33
		}
34
	}
35
	//]]>
36
</script>