Commit 5b9bfc61 authored by fred's avatar fred

search

parent 6cf8ccd3
......@@ -11,8 +11,25 @@
</div>
]
#FORMULAIRE_RECHERCHE
<div class="formulaire_spip formulaire_recherche form-search[ (#ENV{class})]" id="formulaire_recherche">
<form action="[(#ENV{action})]" method="get"><div>
[(#ENV{action}|form_hidden)]
[<input type="hidden" name="lang" value="(#ENV{lang})" />]
<label for="#ENV{_id_champ}" class="muted"><:info_rechercher_02:></label>
<div class="input-append">
<input type="[(#HTML5|?{search,text})]" class="search text search-query" name="recherche" id="#ENV{_id_champ}"[ value="(#ENV{recherche})"] accesskey="4" autocapitalize="off" autocorrect="off" [ value="(#ENV{recherche}|?{#ENV{recherche},<:info_rechercher|attribut_html:>})"]/>
<button type="submit" class="btn" title="<:info_rechercher|attribut_html:>" >&gt;&gt;</button>
</div>
</div></form>
</div>
<script>
$("#search").on("click", function() {
if ($(this).val() == "<:info_rechercher|attribut_html:>")
$(this).val("");
});
</script>
<B_offre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment