diff --git a/.gitattributes b/.gitattributes index 124aedcf75c0b60961027ea832f77c2640fcf844..6f9e1a793806b6dda1035353e2be2c25770e0b24 100644 --- a/.gitattributes +++ b/.gitattributes @@ -390,6 +390,8 @@ prive/formulaires/editer_rubrique.html -text prive/formulaires/editer_rubrique.php -text prive/formulaires/inc-logo_auteur.html -text prive/formulaires/login.php -text +prive/formulaires/recherche_ecrire.html -text +prive/formulaires/recherche_ecrire.php -text prive/formulaires/selecteur_groupe_mot.html -text prive/formulaires/selecteur_groupe_mot_fonctions.php -text prive/ical_prive.html -text diff --git a/prive/formulaires/recherche_ecrire.html b/prive/formulaires/recherche_ecrire.html new file mode 100644 index 0000000000000000000000000000000000000000..95eb94b623ea2c7267aad74b5f61184a5194c67b --- /dev/null +++ b/prive/formulaires/recherche_ecrire.html @@ -0,0 +1,10 @@ +<div class="formulaire_spip formulaire_recherche"> +<form action="[(#ENV{action})]" method="get"><div> + [(#ENV{action}|form_hidden)] + [<input type="hidden" name="lang" value="(#ENV{lang})" />] + <label for="recherche"><:info_rechercher_02:></label> + <input type="text" class="text" size="10" name="recherche" id="recherche"[ value="(#ENV{recherche})"] accesskey="4" /> + <input type='image' src='[(#CHEMIN_IMAGE{loupe.png})]' name='submit' class="image" alt='<:info_rechercher|attribut_html:>' /> + [(#ENV{recherche}|oui)<a href='#ENV{action}' title='<:annuler_recherche|attribut_html:>'>[(#CHEMIN{img_pack/annuler-recherche.png}|balise_img|inserer_attribut{alt,<:annuler_recherche:>})]</a>] +</div></form> +</div> diff --git a/prive/formulaires/recherche_ecrire.php b/prive/formulaires/recherche_ecrire.php new file mode 100644 index 0000000000000000000000000000000000000000..1c064b174c6e5f81f89937acf7dd773802fff19d --- /dev/null +++ b/prive/formulaires/recherche_ecrire.php @@ -0,0 +1,30 @@ +<?php + +/***************************************************************************\ + * SPIP, Systeme de publication pour l'internet * + * * + * Copyright (c) 2001-2009 * + * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * + * * + * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * + * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * +\***************************************************************************/ + +if (!defined("_ECRIRE_INC_VERSION")) return; + +// chargement des valeurs par defaut des champs du formulaire +function formulaires_recherche_ecrire_charger_dist($action = ''){ + if ($GLOBALS['spip_lang'] != $GLOBALS['meta']['langue_site']) + $lang = $GLOBALS['spip_lang']; + else + $lang=''; + + return + array( + 'action' => ($action ? $action : generer_url_ecrire('recherche')), # action specifique, ne passe pas par Verifier, ni Traiter + 'recherche' => _request('recherche'), + 'lang' => $lang + ); +} + +?> diff --git a/prive/style_prive.html b/prive/style_prive.html index 6c5e23f7a18687996bde891ed8841046c65313b2..2ea49141c378900b75a42d730e226833abb68090 100644 --- a/prive/style_prive.html +++ b/prive/style_prive.html @@ -408,9 +408,15 @@ div.brouteur_rubrique_on div a { color: #000; } #wysiwyg a { /*color: #604A7F;*/ text-decoration: underline; } #wysiwyg a:hover { /*color: #f57900;*/ text-decoration: underline; } -.spip_recherche { width: 240px; float: [(#GET{right})]; } -.spip_recherche .recherche{ padding: 3px; width: 200px; font-size: 10px; border: 1px solid #fff; background-color: #GET{foncee}; color: #fff; margin: 0 3px 6px 0; } +/* version old style */ +.spip_recherche { width: 240px; float: [(#GET{right})]; border:0;background:none;} +.spip_recherche .recherche { padding: 3px; width: 200px; font-size: 10px; border: 1px solid #fff; background-color: #GET{foncee}; color: #fff; margin: 0 3px 6px 0; } .spip_recherche .submit {vertical-align:middle;} +/* version moderne */ +.formulaire_spip.formulaire_recherche { width: 240px; float: [(#GET{right})]; border:0;background:none;} +.formulaire_spip.formulaire_recherche .text{ padding: 3px; width: 200px; font-size: 10px; border: 1px solid #fff; background-color: #GET{foncee}; color: #fff; margin: 0 3px 6px 0; } +.formulaire_spip.formulaire_recherche label {display:none;} +.formulaire_spip.formulaire_recherche .submit,.formulaire_spip.formulaire_recherche .image {vertical-align:middle;} .boutonlien { font-weight: bold; font-size: 9px; } a.boutonlien:hover { color: #454545; text-decoration: none; }