[PLUGINS] +acces restreint
[ptitvelo/web/www.git] / www / plugins / accesrestreint_3_5 / prive / objets / liste / zones_associer.html
1 [(#SET{defaut_tri,#ARRAY{
2 titre,1,
3 }})
4 ]
5 #SET{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}
6 #SET{debut,#ENV{debutzonea,#EVAL{_request("debutzonea");}}}
7 <input type="hidden" name="debutzonea" value="#GET{debut}" />
8 <B_liste_aut>
9 [(#REM) En cas de pagination indirecte @32, il faut refaire le set car la boucle
10 a mis a jour la valeur avec la page reelle]
11 #SET{debut,#ENV{debutzonea,#EVAL{_request("debutzonea");}}}
12 #ANCRE_PAGINATION
13 [<h3><:info_resultat_recherche:> &laquo;(#ENV{recherche})&raquo;</h3>]
14 <div class="liste-objets liste-objets-associer zones">
15 <table class='spip liste'>
16 [<caption><span class="caption"><strong>(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{accesrestreint:info_1_zone,accesrestreint:info_nb_zones}})</strong>
17 <span class="recherche">
18 <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
19 <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
20 <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
21 </span>
22 </span>
23 </caption>]
24 <thead>
25 <tr class='first_row'>
26 <th class='picto' scope='col'></th>
27 <th class='titre' scope='col'>[(#TRI{titre,<:info_titre:>,ajax})]</th>
28 <th class='publique' scope='col'><:accesrestreint:publique:></th>
29 <th class='privee' scope='col'><:accesrestreint:privee:></th>
30 <th class='action' scope='col'>&nbsp;</th>
31 </tr>
32 </thead>
33 <tbody>
34 <BOUCLE_liste_aut(ZONES){!id_zone IN #GET{exclus}}{tout}{where?}{recherche?}{statut?}{tri #ENV{par,multi titre},#GET{defaut_tri}}{pagination #ENV{nb,10} zonea}>
35 <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})][ (#EXPOSE|unique)]">
36 <td class='picto'>[(#CHEMIN_IMAGE{zone-16.png}|balise_img)]</td>
37 <td class='titre principale'><a href="[(#ID_ZONE|generer_url_entite{zone})]"
38 title="<:info_numero_abbreviation|attribut_html:> #ID_ZONE">[(#RANG). ]#TITRE</a></td>
39 <td class='publique secondaire'>[[(#CHEMIN_IMAGE{restreint-16.png}|balise_img{<:accesrestreint:publique:>})](#PUBLIQUE|=={oui}|oui)]</td>
40 <td class='privee secondaire'>[[(#CHEMIN_IMAGE{restreint-16.png}|balise_img{<:accesrestreint:publique:>})](#PRIVEE|=={oui}|oui)]</td>
41 <td class='action'><button class="button" name="ajouter_lien[zone-#ID_ZONE-#OBJET-#ID_OBJET]" value="+"><:accesrestreint:titre_ajouter_zone:> [(#CHEMIN_IMAGE{ajouter-12.png}|balise_img{'+'})]</button></td>
42 </tr>
43 </BOUCLE_liste_aut>
44 </tbody>
45 </table>
46 [<p class='pagination'>(#PAGINATION{prive})</p>]
47 </div>
48 </B_liste_aut>
49 [(#ENV{recherche}|oui)
50 <div class="liste-objets liste-objets-associer zones caption-wrap">
51 <span class="caption"><strong>[(#VAL{accesrestreint:info_recherche_auteur_zero}|_T{#ARRAY{cherche_auteur,#ENV{recherche}}})]</strong>
52 <span class="recherche">
53 <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
54 <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
55 <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
56 </span>
57 </span>
58 </div>
59 ]<//B_liste_aut>