1 | <form action='[(#ENV{action})]' method="post" id="formulaire_recherche_par_mot" class="formulaire_spip formulaire_recherche_par_mot"> |
---|
2 | <div> |
---|
3 | #ACTION_FORMULAIRE{#ENV{action}} |
---|
4 | <BOUCLE_Tagshidden(MOTS){id_mot IN #ENV{mots}}> |
---|
5 | <input type="hidden" name="mots[]" value="#ID_MOT" /> |
---|
6 | </BOUCLE_Tagshidden> |
---|
7 | [(#REM) N'afficher le choix du groupe que s'il y en a plusieurs ] |
---|
8 | <BOUCLE_PlusieursGroupes(GROUPES_MOTS){id_groupe ?IN #ENV**{id_groupe}}{1,1}> |
---|
9 | [(#ENV{le_groupe}|non)<input type="hidden" name="choixmot" value="1" />] |
---|
10 | |
---|
11 | <label for="recherchegroupe"><:mots:titre_mots_tous:></label> |
---|
12 | <select id="recherchegroupe" name="le_groupe" class="searchfield" onchange="if ((this.value != '')[ && (this.value != (#ENV{le_groupe}))]) { $('#formulaire_recherche_par_mot').submit();}"> |
---|
13 | [(#ENV{le_groupe}|non)<option value=""><:mots:info_dans_groupe:></option>] |
---|
14 | <BOUCLE_RechercheMot(GROUPES_MOTS){par num titre, titre}{id_groupe ?IN #ENV**{id_groupe}}> |
---|
15 | <option value="#ID_GROUPE"[ (#ID_GROUPE|=={#ENV{le_groupe}}|?{'selected="selected"'})]>[(#TITRE|supprimer_tags)]</option> |
---|
16 | </BOUCLE_RechercheMot> |
---|
17 | </select> |
---|
18 | </BOUCLE_PlusieursGroupes> |
---|
19 | <BOUCLE_LeGroupe(GROUPES_MOTS){id_groupe ?IN #ENV**{id_groupe}}> |
---|
20 | <input type="hidden" name="legroupe" value="#ID_GROUPE" /> |
---|
21 | #SET{legroupe,#ID_GROUPE} |
---|
22 | </BOUCLE_LeGroupe> |
---|
23 | <input type="hidden" name="choixmot" value="1" /> |
---|
24 | <//B_PlusieursGroupes> |
---|
25 | <B_MotsDuGroupe> |
---|
26 | <select id="recherchemot" name="mots[]" class="searchfield" onchange="if ((this.value != '')[ && (this.value != (#ENV{id_mot}))]) {$('#formulaire_recherche_par_mot').submit();}"> |
---|
27 | <option value="">[(#GET{legroupe}|?{<:mots:titre_mots_tous:>,<:public:mots_clefs_meme_groupe:>})]</option> |
---|
28 | <BOUCLE_MotsDuGroupe(MOTS){id_groupe=#ENV{le_groupe,#GET{legroupe}}}{par titre}{id_mot !IN #ENV{mots, #ARRAY{}}}> |
---|
29 | #SET{avecunmotdeplus, #ARRAY{}} |
---|
30 | [(#SET{avecunmotdeplus,[(#ENV{mots, #ARRAY{}}|push{#ID_MOT})]})] |
---|
31 | <INCLURE{fond=formulaires/recherche_par_mots_compteur, mots=#GET{avecunmotdeplus}, id_mot=#_MotsDuGroupe:ID_MOT, titre=(#_MotsDuGroupe:TITRE|supprimer_tags)}> |
---|
32 | </BOUCLE_MotsDuGroupe> |
---|
33 | </select> |
---|
34 | </B_MotsDuGroupe> |
---|
35 | <noscript><div style="display:inline;"><input type="submit" id="sendsearchmc" class="okfield form_submit" value="<:pass_ok:>" /></div></noscript> |
---|
36 | </div> |
---|
37 | </form> |
---|
38 | <B_Tags> |
---|
39 | <div id="postDetailInfos" class="clearfix"> |
---|
40 | <BOUCLE_Tags(MOTS){id_mot IN #ENV{mots}}{par titre}{" "}>[(#SET{lesautresmots,[(#ENV{mots}|critere_mots_enleve_mot_de_liste{#ID_MOT})]})]<a href="[(#ENV{action}|parametre_url{mots,#GET{lesautresmots}})]"title="<:mots:info_supprimer_mot|ucfirst|attribut_html:> ([(#TITRE|ucfirst|textebrut|attribut_html)])" class="tags">[(#TITRE|ucfirst)]</a></BOUCLE_Tags> |
---|
41 | </div><!-- #postDetailInfos --> |
---|
42 | </B_Tags> |
---|