[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / prive / objets / liste / rubriques_associer.html
diff --git a/www/prive/objets/liste/rubriques_associer.html b/www/prive/objets/liste/rubriques_associer.html
new file mode 100644 (file)
index 0000000..fd6b161
--- /dev/null
@@ -0,0 +1,57 @@
+[(#SET{defaut_tri,#ARRAY{
+       date,#ENV{date_sens,-1},
+       num titre,1,
+       id_rubrique,1,
+       points,-1
+}})
+]
+#SET{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}}
+<B_liste_rub>
+#ANCRE_PAGINATION
+[<h3><:info_resultat_recherche:> &laquo;(#ENV{recherche})&raquo;</h3>]
+<div class="liste-objets liste-objets-associer rubriques">
+<table class='spip liste'>
+[<caption><span class="caption"><strong>(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{info_1_rubrique,info_nb_rubriques}})</strong>
+<span class="recherche">
+       <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
+       <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
+       <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
+</span>
+</span>
+</caption>]
+       <thead>
+               <tr class='first_row'>
+                       <th class='picto' scope='col'></th>
+                       <th class='titre' scope='col'>[(#TRI{num titre,<:info_titre:>,ajax})]</th>
+                       <th class='date' scope='col'>[(#TRI{date,<:date:>,ajax})]</th>
+                       <th class='id' scope='col'>[(#TRI{id_rubrique,<:info_numero_abbreviation:>,ajax})]</th>
+                       <th class='action' scope='col'>&nbsp;</th>
+               </tr>
+       </thead>
+       <tbody>
+       <BOUCLE_liste_rub(RUBRIQUES){!id_rubrique IN #GET{exclus}}{tout}{where?}{statut?}{recherche?}{tri #ENV{par,num titre},#GET{defaut_tri}}{par titre}{pagination #ENV{nb,10}}>
+               <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})][ (#EXPOSE|unique)]">
+                       <td class='picto'>[(#CHEMIN_IMAGE{rubrique-16.png}|balise_img)]</td>
+                       <td class='titre principale'>[(#LOGO_RUBRIQUE|image_reduire{20,26})]<a href="[(#ID_RUBRIQUE|generer_url_entite{rubrique})]"
+                               title="<:info_numero_abbreviation|attribut_html:> #ID_RUBRIQUE">[(#RANG). ]#TITRE</a></td>
+                       <td class='date secondaire'>[(#DATE|affdate_jourcourt)]</td>
+                       <td class='id'>#ID_RUBRIQUE</td>
+                       <td class='action'><button type="submit" class="button" name="ajouter_lien[rubrique-#ID_RUBRIQUE-#OBJET-#ID_OBJET]" value="+"><:lien_ajouter_une_rubrique:> [(#CHEMIN_IMAGE{ajouter-12.png}|balise_img{'+'})]</button></td>
+               </tr>
+       </BOUCLE_liste_rub>
+       </tbody>
+</table>
+[<p class='pagination'>(#PAGINATION{prive})</p>]
+</div>
+</B_liste_rub>
+[(#ENV{recherche}|oui)
+<div class="liste-objets liste-objets-associer rubriques caption-wrap">
+<span class="caption"><strong>[(#VAL{info_recherche_auteur_zero}|_T{#ARRAY{cherche_auteur,#ENV{recherche}}})]</strong>
+<span class="recherche">
+       <label for="recherche-#ENV{id}"><:info_rechercher_02:></label>
+       <input type="text" class="recherche" name="recherche" id="recherche-#ENV{id}" value="#ENV{recherche}" />
+       <input type="submit" class="tout_voir" name="tout_voir" value="<:info_tout_afficher:>" />
+</span>
+</span>
+</div>
+]<//B_liste_rub>