[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / vertebres / prive / squelettes / contenu / vertebres.html
index 6f594a2..bb2d1df 100644 (file)
@@ -8,6 +8,26 @@
 ]
 
 <hr />
-<BOUCLE_t(POUR){tableau #REM|sql_alltable}{', '}>
-       <a href="#URL_ECRIRE{vertebres,table=#VALEUR}">#VALEUR</a>
-</BOUCLE_t>
\ No newline at end of file
+#SET{lettre_old,''}
+#SET{radical_old,''}
+<B_t>
+       <div class="toutes_les_tables">
+<BOUCLE_t(POUR){tableau #REM|sql_alltable}{'<br /> '}{par valeur}>
+               [(#SET{radical,#VALEUR|explode{_}|reset})][(#SET{lettre,#VALEUR|explode{_}|table_valeur{1}|initiale})]
+               [(#GET{radical}|!={#GET{radical_old}}|oui)#SET{radical_old,#GET{radical}}<h3>#GET{radical}</h3>]
+               [(#GET{lettre}|!={#GET{lettre_old}}|oui)#SET{lettre_old,#GET{lettre}}<h4>#GET{lettre}</h4>]
+               <a href="#URL_ECRIRE{vertebres,table=#VALEUR}">#VALEUR</a>
+</BOUCLE_t>
+       </div>
+       <style type="text/css">
+               .toutes_les_tables {
+                       -o-columns: auto 200px;
+                       -webkit-columns: auto 200px;
+                       -moz-columns: auto 200px;
+                       columns: auto 200px;
+               }
+               .toutes_les_tables h3 { margin-bottom:.5em; margin-top:1em; }
+               .toutes_les_tables h3:first-child { margin-top:0; }
+               .toutes_les_tables h4 { margin-bottom:0; margin-top:.5em; }
+       </style>
+</B_t>