[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / afficher_objets / prive / liste / syndic.html
diff --git a/www/plugins/auto/afficher_objets/prive/liste/syndic.html b/www/plugins/auto/afficher_objets/prive/liste/syndic.html
new file mode 100644 (file)
index 0000000..64e8eac
--- /dev/null
@@ -0,0 +1,50 @@
+[(#SET{defaut_tri,#ARRAY{
+       date,-1,
+       nom_site,1,
+       id_syndic,1
+}})
+]<B_liste_sites>
+#ANCRE_PAGINATION
+<div class="liste-elements liste-objets sites">
+<table class='spip liste'>
+[<caption><strong class="caption">(#ENV*{titre,<:info_tous_articles_presents:>}) ([(#GRAND_TOTAL)])</strong></caption>]
+       <thead>
+               <tr class='first_row'>
+                       <th class='statut' scope='col'>[(#TRI{statut,<span title="<:afficher_objets:info_statut|attribut_html:>">#</span>,ajax})]</th>
+                       <th class='nom_site' scope='col'>[(#TRI{nom_site,<:form_prop_nom_site:>,ajax})]</th>
+                       <th class='syndication' scope='col'><:info_syndication:></th>
+                       <th class='date' scope='col'>[(#TRI{date,<:date:>,ajax})]</th>
+                       <th class='id' scope='col'>[(#TRI{id_syndic,<:info_numero_abbreviation:>,ajax})]</th>
+               </tr>
+       </thead>
+       <tbody>
+       <BOUCLE_liste_sites(SYNDIC){id_mot?}{id_rubrique?}{where?}{statut?}{tri #ENV{order,date},#GET{defaut_tri}}{pagination #ENV{nb,10}}>
+               <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
+                       <td class='statut'>[(#ID_SYNDIC|puce_changement_statut{#STATUT,#ID_RUBRIQUE,site})]</td>
+                       <td class='titre'>[(#LOGO_SITE||image_reduire{26,20})]
+                               <a href="[(#ID_SYNDIC|generer_url_entite{site})]">#NOM_SITE</a> [<span class='visiter'>&#91;<a href='(#URL_SITE)'><:lien_visite_site:></a>&#93;</span>]
+                       </td>
+                       <td class='syndication'>[(#SYNDICATION|match{off|sus}|oui)
+                               <span class="etat #SYNDICATION">[(#CHEMIN{puce-orange-anim.gif}|tag_img|inserer_attribut{alt,<:info_panne_site_syndique:>})<:info_probleme_grave:>]</span>
+                       ]<BOUCLE_articlesyndic(SYNDIC_ARTICLES){id_syndic}{statut==.*}{tout} />[
+                               (#SYNDICATION|match{oui|off|sus}|oui)
+                               [(#TOTAL_BOUCLE)] <:info_syndication_articles:>
+                       ]<//B_articlesyndic>
+                       </td>
+                       <td class='date'>[
+                               (#STATUT|=={prop}|non) [(#DATE|affdate_jourcourt)]][
+                               (#STATUT|=={prop}|oui) <:info_a_valider:>
+                       ]</td>
+                       <td class='id'>[(#AUTORISER{modifier,site,#ID_SYNDIC}|?{
+                               <a href="[(#URL_ECRIRE{sites_edit,id_syndic=#ID_SYNDIC})]">#ID_SYNDIC</a>,
+                               #ID_SYNDIC
+                       })]</td>
+               </tr>
+       </BOUCLE_liste_sites>
+       </tbody>
+</table>
+[<p class='pagination'>(#PAGINATION{prive})</p>]
+</div>
+</B_liste_sites>[
+<div class="liste-elements liste-objets sites caption-wrap"><strong class="caption">(#ENV*{sinon,''})</strong></div>
+]<//B_liste_sites>