Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1805
1
<form action="<?=$form_url;?>" method="post" id="form_more_recherche">
1
<form action="<?=$form_url;?>" method="post" id="form_more_recherche">
2
	<fieldset>
2
	<fieldset>
3
		<legend><?=MORE_LG_FORM_TITRE;?></legend>
3
		<legend><?=MORE_LG_FORM_TITRE;?></legend>
4
		<label for="more_motif"><?=MORE_LG_FORM_MOTIF;?></label>
4
		<label for="more_motif"><?=MORE_LG_FORM_MOTIF;?></label>
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;?>');basculerTaille('more_motif', true);" onblur="nettoyerChamp('more_motif', '<?=$more_motif_base;?>');basculerTaille('more_motif', false);" />
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;?>');" />
6
		<input id="more_ok" name="more_ok" tabindex="<?=++$form_tab;?>" value="<?=MORE_LG_FORM_VALIDER;?>" type="submit" />
6
		<input id="more_ok" name="more_ok" tabindex="<?=++$form_tab;?>" value="<?=MORE_LG_FORM_VALIDER;?>" type="submit" />
7
	</fieldset>
7
	</fieldset>
8
</form>
8
</form>
9
<script type="text/javascript">
9
<script type="text/javascript">
10
	//<![CDATA[
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
	{
11
 
15
		var sb = document.getElementById(id);
-
 
16
		if (grand) {
-
 
17
			sb.style.width = '20em;';
-
 
18
		} else {
-
 
19
			sb.style.width = '10em;';
-
 
20
		}
-
 
21
	}
-
 
22
	
12
	
23
	// Fonction nettoyant un champ de formulaire d'une chaine donnée...
13
	// Fonction nettoyant un champ de formulaire d'une chaine donnée...
24
	function nettoyerChamp(id, chaine)
14
	function nettoyerChamp(id, chaine)
25
	{
15
	{
26
		var sb = document.getElementById(id);
16
		var sb = document.getElementById(id);
27
		var valeur = sb.value;
17
		var valeur = sb.value;
28
		if (valeur == chaine) {
18
		if (valeur == chaine) {
29
			sb.value = '';
19
			sb.value = '';
30
		}
20
		}
31
		if (valeur == '') {
21
		if (valeur == '') {
32
			sb.value = chaine;
22
			sb.value = chaine;
33
		}
23
		}
34
	}
24
	}
35
	//]]>
25
	//]]>
36
</script>
26
</script>