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>
/trunk/papyrus/applettes/moteur_recherche/moteur_recherche.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: moteur_recherche.php,v 1.19 2007-01-02 18:49:22 jp_milcent Exp $
// CVS : $Id: moteur_recherche.php,v 1.20 2007-06-15 12:27:39 jp_milcent Exp $
/**
* Applette : moteur de recherche
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.19 $ $Date: 2007-01-02 18:49:22 $
*@version $Revision: 1.20 $ $Date: 2007-06-15 12:27:39 $
// +------------------------------------------------------------------------------------------------------+
*/
 
125,6 → 125,7
$_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif'] = '';
$GLOBALS['_MOTEUR_RECHERCHE_']['formulaire']['form_url'] = str_replace('&amp;', '&', $url->getUrl());
$GLOBALS['_MOTEUR_RECHERCHE_']['formulaire']['form_tab'] = MORE_FORM_MOTIF_TAB;
$GLOBALS['_MOTEUR_RECHERCHE_']['formulaire']['more_motif_base'] = MORE_LG_FORM_MOTIF_VALUE;
if (!isset($_POST['more_motif']) || $_POST['more_motif'] == '') {
$GLOBALS['_MOTEUR_RECHERCHE_']['formulaire']['more_motif'] = MORE_LG_FORM_MOTIF_VALUE;
} else {
209,6 → 210,10
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.19 2007-01-02 18:49:22 jp_milcent
* Amélioration de la gestion du motif.
* Ajout de la gestion des expressions complête via l'utilisation de guillemets.
*
* Revision 1.18 2006/12/12 13:53:54 jp_milcent
* Mise en place du nouveau format des balises d'applette.
*