Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1455 → Rev 1456

/trunk/papyrus/applettes/moteur_recherche/squelettes/formulaire.tpl.html
2,7 → 2,35
<fieldset>
<legend><?=MORE_LG_FORM_TITRE;?></legend>
<label for="more_motif"><?=MORE_LG_FORM_MOTIF;?></label>
<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;?>" />
<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;?>');" />
<input id="more_ok" name="more_ok" tabindex="<?=++$form_tab;?>" value="<?=MORE_LG_FORM_VALIDER;?>" type="submit" />
</fieldset>
</form>
</form>
<script type="text/javascript">
//<![CDATA[
// Fonction aggrandissant ou diminuant la taille d'un champ
// Provient du site https://addons.mozilla.org/
function basculerTaille(id, grand)
{
var sb = document.getElementById(id);
if (grand) {
sb.style.width = '20em;';
} else {
sb.style.width = '10em;';
}
}
// Fonction nettoyant un champ de formulaire d'une chaine donnée...
function nettoyerChamp(id, chaine)
{
var sb = document.getElementById(id);
var valeur = sb.value;
if (valeur == chaine) {
sb.value = '';
}
if (valeur == '') {
sb.value = chaine;
}
}
//]]>
</script>