1 [(#SET{defaut_tri,#ARRAY{
6 }})]
<B_liste_almanachs>
8 <div class=
"liste-objets almanachs">
9 <table class='spip liste'
>
10 [
<caption><strong class=
"caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{almanach:info_1_almanach,almanach:info_nb_almanachs}})
</strong></caption>]
12 <tr class='first_row'
>
13 <th class='picto' scope='col'
></th>
14 <th class='statut' scope='col'
>[(#TRI{statut,
<span title=
"<:lien_trier_statut|attribut_html:>">#
</span>,ajax})]
</th>
15 <th class='titre' scope='col'
>[(#TRI{titre,
<:almanach:label_titre:>,ajax})]
</th>
16 <th class='utilisations' scope='col'
></th>
17 <th class='action' scope='col'
></th>
18 <th class='date' scope='col'
>[(#TRI{date,
<:date:>,ajax})]
</th>
19 <th class='id' scope='col'
>[(#TRI{id_almanach,
<:info_numero_abbreviation:>,ajax})]
</th>
23 <BOUCLE_liste_almanachs(ALMANACHS){id_article?}{id_mot?}{id_auteur?}{where?}{statut?}{recherche?}{tri #ENV{par,num titre},#GET{defaut_tri}}{par titre}{pagination #ENV{nb,
10}}
>
24 <tr class='[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]'
>
25 <td class='picto'
>[(#CHEMIN_IMAGE{almanach-
16.png}|balise_img)]
</td>
26 <td class='statut'
>[(#STATUT|puce_statut{almanach,#ID_ALMANACH})]
</td>
27 <td class='titre principale'
>[(#LOGO_ALMANACH|image_reduire{
20,
26})]
<a href=
"[(#ID_ALMANACH|generer_url_entite{almanach})]" title=
"<:info_numero_abbreviation|attribut_html:> #ID_ALMANACH">[(#RANG). ]#TITRE
</a></td>
28 <td class='utilisations secondaire'
>
29 <!--on compte le nombre d'événemnts liés à cet almanach et on regarde donc s'il est utilisé-->
30 <BOUCLE_combien(spip_almanachs_liens) {id_almanach}
></BOUCLE_combien>
31 #SET{utilise,#TOTAL_BOUCLE}
32 [(#TOTAL_BOUCLE|singulier_ou_pluriel{almanach:un_evenement,almanach:plusieurs_evenements})]
36 [(#GET{utilise}|=={
0}|oui)
37 [(#AUTORISER{supprimer, almanach, #ID_ALMANACH}|oui)
38 [(#BOUTON_ACTION{
<:almanach:info_supprimer_almanach:>,#URL_ACTION_AUTEUR{supprimer_almanach,#ID_ALMANACH,#SELF},ajax,'','','(function(me){$(me).parents(
"tr").animateRemove();return true;})(this)'})]
42 <td class='date secondaire'
>[(#DATE|affdate_jourcourt)]
</td>
43 <td class='id'
>[(#AUTORISER{modifier,almanach,#ID_ALMANACH}|?{
44 <a href=
"[(#URL_ECRIRE{almanach_edit,id_almanach=#ID_ALMANACH})]">#ID_ALMANACH
</a>,
48 </BOUCLE_liste_almanachs>
51 [
<p class='pagination'
>(#PAGINATION{prive})
</p>]
54 <div class=
"liste-objets almanachs caption-wrap"><strong class=
"caption">(#ENV*{sinon,''})
</strong></div>
55 ]<//B_liste_almanachs
>