[PLUGINS] +acces restreint
[ptitvelo/web/www.git] / www / plugins / accesrestreint_3_5 / prive / squelettes / inclure / acces_restreint.html
diff --git a/www/plugins/accesrestreint_3_5/prive/squelettes/inclure/acces_restreint.html b/www/plugins/accesrestreint_3_5/prive/squelettes/inclure/acces_restreint.html
new file mode 100644 (file)
index 0000000..66ef1d4
--- /dev/null
@@ -0,0 +1,39 @@
+[(#REM)
+/**
+ * Plugin Acces Restreint 3.0 pour Spip 2.0
+ * Licence GPL (c) 2006-2008 Cedric Morin
+ *
+ */
+]#SET{self,#SELF|parametre_url{debut_zones|tri,''}}
+#FORMULAIRE_RECHERCHE_ECRIRE{#GET{self},ajax}
+<div class="nettoyeur"></div>
+<B_zones>
+<p class='pagination'>[(#PAGINATION) | ]<a href='[(#GET{self}|parametre_url{tri,titre})]'><:accesrestreint:par_titre:></a> 
+[(#ENV{publique}|non)| <a href='[(#GET{self}|parametre_url{publique,oui})]'><:accesrestreint:publique:></a>]
+[(#ENV{publique}|ou{#ENV{privee}}|oui)| <a href='[(#GET{self}|parametre_url{publique|privee,''})]'><:accesrestreint:toutes:></a>]
+[(#ENV{privee}|non)| <a href='[(#GET{self}|parametre_url{privee,oui})]'><:accesrestreint:privee:></a>]
+</p>
+
+<ul class='liste-items zones'>
+<BOUCLE_zones(ZONES){par #ENV{tri,id_zone}}{publique==#ENV{publique,.*}}{privee==#ENV{privee,.*}}{pagination 10}{recherche ?}>
+<li class='item zone[ (#ID_ZONE|accesrestreint_acces_zone|?{ok,interdit})][ (#EXPOSE)]'><h3>#TITRE</h3>
+<span class='contenu'>[(#ID_ZONE|accesrestreint_liste_contenu_zone_rub|count) <:accesrestreint:rubriques:>, ]
+[(#ID_ZONE|accesrestreint_liste_contenu_zone_auteur|count) <:accesrestreint:auteurs:>]
+</span>
+<span class='descriptif'>#DESCRIPTIF</span>
+<span class='quoi'>[(#PUBLIQUE|=={oui}|oui)<:accesrestreint:publique:>[, (#PRIVEE|=={oui}|oui)]][ (#PRIVEE|=={oui}|oui)<:accesrestreint:privee:>]</span>
+<div class='actions'>
+       [(#AUTORISER{supprimer,zone,#ID_ZONE})<span class='lien_supprimer'>[(#BOUTON_ACTION{<:accesrestreint:icone_supprimer_zone:>,#URL_ACTION_AUTEUR{supprimer_zone,#ID_ZONE,#SELF},ajax,<:accesrestreint:confirmer_supprimer_zone:>})]</span>]
+       [| (#AUTORISER{modifier,zone,#ID_ZONE}) <span class='lien_modifier'><a href='[(#URL_ECRIRE{zone_edit,id_zone=#ID_ZONE}|parametre_url{redirect,#SELF})]'><:bouton_modifier:></a></span>]
+</div>
+</li>
+</BOUCLE_zones>
+</ul>
+</B_zones>
+<p class='pagination'>[(#ENV{publique}|non)| <a href='[(#GET{self}|parametre_url{publique,oui})]'><:accesrestreint:publique:></a>]
+[(#ENV{publique}|ou{#ENV{privee}}|oui)| <a href='[(#GET{self}|parametre_url{publique|privee,''})]'><:accesrestreint:toutes:></a>]
+[(#ENV{privee}|non)| <a href='[(#GET{self}|parametre_url{privee,oui})]'><:accesrestreint:privee:></a>]
+</p>
+<h3><:accesrestreint:info_aucune_zone:></h3>
+
+<//B_zones>