31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
[(#REM) modele <listetranscriptions|>
|
|
* sans paramètre = le mois en cours
|
|
* periode = sous forme stricte Y-m
|
|
soit |periode=2020-02
|
|
]
|
|
#SET{'borne_debut_mois', (#ENV{date}|affdate{'Y-m'}|baz_moisdecal{0,'Y-m-d'})}
|
|
#SET{'borne_fin_mois', (#ENV{date}|affdate{'Y-m'}|baz_moisdecal{1,'Y-m-d'})}
|
|
[(#ENV{periode}|oui)
|
|
[(#SET{'borne_debut_mois', [(#ENV{periode}|baz_moisdecal{0,'Y-m-d'})]})]
|
|
[(#SET{'borne_fin_mois', [(#ENV{periode}|baz_moisdecal{1,'Y-m-d'})]})]
|
|
]
|
|
<BOUCLE_compo(RUBRIQUES){composition=transcriptions}>
|
|
<B_trans>
|
|
<ul class="spip">
|
|
<BOUCLE_trans(ARTICLES){id_rubrique}{par date}{date >= #GET{borne_debut_mois}}{date < #GET{borne_fin_mois}}>
|
|
<li><a href="#URL_ARTICLE">#TITRE</a>[ - (#DATE|affdate)][ - (#DUREE)]</li>
|
|
</BOUCLE_trans>
|
|
</ul>
|
|
</B_trans>
|
|
|
|
<B_transselect>
|
|
<ul>
|
|
<BOUCLE_transselect(ARTICLES){si #ENV{methode}|=={selection}}{id_rubrique}{fusion YEAR(date)}{fusion MONTH(date)}{!par date}>
|
|
<li><a[ href="(#SELF|parametre_url{periode,[(#DATE|affdate{Y-m})]})"]>[(#DATE|affdate{m-Y})]</li>
|
|
</BOUCLE_transselect>
|
|
</ul>
|
|
</B_transselect>
|
|
|
|
|
|
</BOUCLE_compo>
|