[SPIP] ~maj 3.0.10 --> 3.0.14
[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 [(#INFO_LANG{#ENV{objet},#VALEUR{id}}|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 title="<:info_numero_abbreviation|attribut_html:> #VALEUR{id}">[(#RANG). ][(#INFO_TITRE{#ENV{objet},#VALEUR{id}}|sinon{<:info_sans_titre:>})]</a>
23 </td>
24 <td class='id'>[(#AUTORISER{modifier,#ENV{objet},#VALEUR{id}}|?{
25 [<a href="[(#VALEUR{id}|generer_url_ecrire_entite_edit{#ENV{objet}})]">(#VALEUR{id})</a>],
26 [(#VALEUR{id})]
27 })]</td>
28 </tr>
29 </BOUCLE_objets>
30 [(#REM|changer_typo)]
31 </tbody>
32 </table>
33 [<p class='pagination'>(#PAGINATION{prive})</p>]
34 </div>
35 </B_objets>[
36 <div class="liste-objets [(#ENV{objet}|objet_info{table_objet})] caption-wrap"><strong class="caption">(#ENV*{sinon,''})</strong></div>
37 ]<//B_objets>