[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / prive / objets / liste / objets.html
1 #SET{picto,#ENV{objet}|objet_icone{16}}
2 [(#SET{req,[select [(#ENV{objet}|id_table_objet)] as id from (#ENV{objet}|table_objet_sql) order by [(#ENV{objet}|id_table_objet)] desc]})]
3 <B_objets>
4 #ANCRE_PAGINATION
5 <div class="liste-objets [(#ENV{objet}|objet_info{table_objet})]">
6 <table class='spip liste'>
7 [<caption><strong class="caption">(#ENV*{titre,#GRAND_TOTAL|singulier_ou_pluriel{#ENV{objet}|objet_info{info_1_objet},#ENV{objet}|objet_info{info_nb_objets}}})</strong></caption>]
8 <thead>
9 <tr class='first_row'>
10 <th class='picto' scope='col'></th>
11 <th class='titre principale' scope='col'><:info_titre:></th>
12 <th class='id' scope='col'><:info_numero_abbreviation:></th>
13 </tr>
14 </thead>
15 <tbody>
16 <BOUCLE_objets(DATA){source sql,#GET{req}}{pagination #ENV{nb,10}}>
17 #SET{lang,#INFO_LANG{#ENV{objet},#VALEUR{id}}}[(#GET{lang}|changer_typo)]
18 <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
19 <td class='picto'>#GET{picto}</td>
20 <td class='titre principale'><a
21 href="[(#VALEUR{id}|generer_url_entite{#ENV{objet}})]"
22 [hreflang="(#ENV{lang}|=={#GET{lang}}|non|?{#GET{lang}})"]
23 title="<:info_numero_abbreviation|attribut_html:> #VALEUR{id}">[(#RANG). ][(#INFO_TITRE{#ENV{objet},#VALEUR{id}}|sinon{<:info_sans_titre:>})]</a>
24 </td>
25 <td class='id'>[(#AUTORISER{modifier,#ENV{objet},#VALEUR{id}}|?{
26 [<a href="[(#VALEUR{id}|generer_url_ecrire_entite_edit{#ENV{objet}})]">(#VALEUR{id})</a>],
27 [(#VALEUR{id})]
28 })]</td>
29 </tr>
30 </BOUCLE_objets>
31 [(#REM|changer_typo)]
32 </tbody>
33 </table>
34 [<p class='pagination'>(#PAGINATION{prive})</p>]
35 </div>
36 </B_objets>[
37 <div class="liste-objets [(#ENV{objet}|objet_info{table_objet})] caption-wrap"><strong class="caption">(#ENV*{sinon,''})</strong></div>
38 ]<//B_objets>