Author: fil@rezo.net
Date: Sun Jul 2 15:51:18 2006
New Revision: 3786
Log:
amélioration de la pagination de la liste "des sites sous spip"
http://www.spip.net/article884.html
Modified:
_squelettes_/spip.net/article.html
_squelettes_/spip.net/backend-sites-sous-spip.html
_squelettes_/spip.net/mes_options.php
Modified: _squelettes_/spip.net/article.html
--- _squelettes_/spip.net/article.html (original)
+++ _squelettes_/spip.net/article.html Sun Jul 2 15:51:18 2006
@@ -302,24 +302,21 @@
</td>
<td style="width: 50px;"></td>
<td style="width: 500px; vertical-align: top; text-align: #LANG_LEFT;">
- <?php
- <B_compt_signatures>
- echo "<p>";
- <BOUCLE_compt_signatures(SIGNATURES){id_article}>
- </BOUCLE_compt_signatures>
- $total=#TOTAL_BOUCLE;
- for ($numero = 0; $numero < $total; $numero = $numero + 50){
- echo "[<A HREF='article#ID_ARTICLE.html?debut_signatures=$numero'>".($numero+1)."</A>] ";
- }
- echo "<p>";
- </B_compt_signatures>
- ?>
+ <B_signatures>
+ [<p class="pagination">(#PAGINATION)</p>]
<table style="border: 0px; width:500px;" cellspacing="0" cellpadding="0">
<tr style="width:500px;">
<td style="vertical-align: top; width:240px;"><img src="#CHEMIN{IMG/NAVPICS/rien.gif}" alt="" width="240" height="1">
- <BOUCLE_signatures(SIGNATURES){id_article}{debut_signatures,50}{1/2}{!par date}>
+ <BOUCLE_signatures(SIGNATURES){id_article}{pagination 50}{!par date}>
+
+ [(#COMPTEUR_BOUCLE|modulo{50}|=={26}|?{
+ </td><td style="width: 20px;"><img src="rien.gif" /></td>
+ <td style="vertical-align: top; width:240px;">
+ <img src="rien.gif" alt="" width="240" height="1" />
+ ,''})]
+
<div class="droitpetit" style="margin-top: 5px;"><b><a href="#URL_SITE">#NOM_SITE</a></b>
<div class="droitpetit">[(#NOM), ]<span dir="#LANG_DIR">[(#DATE|affdate)]</span></div>
<div style="float: #LANG_RIGHT"><a href="#URL_SITE"><img src="http://open.thumbshots.org/image.pxf?url=#URL_SITE" alt="" border="0" /></a></div>
@@ -325,20 +322,13 @@
<div style="float: #LANG_RIGHT"><a href="#URL_SITE"><img src="http://open.thumbshots.org/image.pxf?url=#URL_SITE" alt="" border="0" /></a></div>
[<div class="droitxpetit" style="padding-#LANG_LEFT: 15px; background: url(#CHEMIN{img_interface/carre-noir.gif}) 0px 3px no-repeat;"> (#MESSAGE)</div>]
<div style="clear:#LANG_RIGHT;"></div>
+
</BOUCLE_signatures>
- </TD>
- <TD style="width: 20px;"><img src="#CHEMIN{IMG/NAVPICS/rien.gif}" alt="" width="20" height="8"></TD>
- <TD style="vertical-align: top; width:240px;"><img src="#CHEMIN{IMG/NAVPICS/rien.gif}" alt="" width="240" height="1">
- <BOUCLE_signatures2(SIGNATURES){id_article}{debut_signatures,50}{2/2}{!par date}>
- <div class="droitpetit" style="margin-top: 5px;"><b><a href="#URL_SITE">#NOM_SITE</a></b>
- <div class="droitpetit">[(#NOM), ]<span dir="#LANG_DIR">[(#DATE|affdate)]</span></div>
- <div style="float: #LANG_RIGHT"><a href="#URL_SITE"><img src="http://open.thumbshots.org/image.pxf?url=#URL_SITE" alt="" border="0" /></a></div>
- [<div class="droitxpetit" style="padding-#LANG_LEFT: 15px; background: url(#CHEMIN{img_interface/carre-noir.gif}) 0px 3px no-repeat;"> (#MESSAGE)</div>]
- <div style="clear:#LANG_RIGHT;"></div>
- </BOUCLE_signatures2>
- </TD>
- </TR></table>
+ </td>
+ </tr></table>
+
+ </B_signatures>
</td>
</tr>
Modified: _squelettes_/spip.net/backend-sites-sous-spip.html
--- _squelettes_/spip.net/backend-sites-sous-spip.html (original)
+++ _squelettes_/spip.net/backend-sites-sous-spip.html Sun Jul 2 15:51:18 2006
@@ -18,8 +18,8 @@
<dc:date>[(#DATE|date_iso)]</dc:date>
<dc:format>text/html</dc:format>
<description>[(#MESSAGE|texte_backend)]
- &lt;<a
-href="[(#URL_SITE|texte_backend)]">[(#URL_SITE|texte_backend)]</a>&gt;
+ [<a
+href="[(#URL_SITE|texte_backend)]">[(#URL_SITE|texte_backend)]</a>]
<BOUCLE_lang(ARTICLES){id_article}>
([(#LANG|traduire_nom_langue)])
</description>
Modified: _squelettes_/spip.net/mes_options.php
--- _squelettes_/spip.net/mes_options.php (original)
+++ _squelettes_/spip.net/mes_options.php Sun Jul 2 15:51:18 2006
@@ -15,8 +15,8 @@
$quota_cache = 20;
# pour la page www.spip.fr/download
- define('VERSION_STABLE', '1.8.3');
- define('VERSION_STABLE_URL', 'spip-dev/DISTRIB/SPIP-v1-8-3.zip');
+ define('VERSION_STABLE', '1.9.0');
+ define('VERSION_STABLE_URL', 'spip-dev/DISTRIB/SPIP-v1-9-0.zip');
$type_urls = 'trad';