Subversion Repositories Sites.tela-botanica.org

Rev

Rev 990 | Rev 1013 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 990 Rev 998
Line 114... Line 114...
114
            <!-- Forums -->
114
            <!-- Forums -->
115
		<style>#box_forum li {
115
		<style>#box_forum li {
116
			list-style:none
116
			list-style:none
117
		}</style>
117
		}</style>
118
            <h1><:Forum_article:></h1>
118
            <h1><:Forum_article:></h1>
119
            <span class="acceder-outil"><a  href="forum.php3?#PARAMETRES_FORUM" accesskey="3"><:repondre_article:></a></span><br />
119
            <span class="acceder-outil"><a  href="forum.php3?#PARAMETRES_FORUM" accesskey="3"><:repondre_article:></a></span><br /><br />
120
            <B_forums>
120
            <B_forums>
121
                <ul class="forum-total">	
121
                <ul class="forum-total">	
122
                    <BOUCLE_forums(FORUMS){id_article} {par date} {inverse}>
122
                    <BOUCLE_forums(FORUMS){id_article} {par date} {inverse}>
123
                        <li class="forum-total">
123
                        <li class="forum-total">
124
                            <div class="forum-fil">
124
                            <div class="forum-fil">
Line 182... Line 182...
182
    </div>
182
    </div>
Line 183... Line 183...
183
    
183
    
Line 184... Line -...
184
</BOUCLE_article_principal>
-
 
185
			
-
 
186
 
-
 
187
            <div id="zone_contenu_pied">
-
 
188
                <!-- article: number ? -->
-
 
189
			<?php 
-
 
190
				$nb_art_total = 0;
-
 
191
				$nb_affiche = 20;
-
 
192
				$requete = 'SELECT COUNT(*) AS nbr FROM spip_articles WHERE id_secteur <> 28 AND id_secteur <> 45';
-
 
193
				mysql_select_db('tela_prod_spip_actu');
-
 
194
				$resultat = mysql_query($requete);
-
 
195
				if (!$resultat) {
-
 
196
					echo mysql_error($resultat);
-
 
197
				}
-
 
198
				$ligne = mysql_fetch_object($resultat);
-
 
199
				$nb_art_total = $ligne->nbr;
-
 
200
				if ($nb_art_total > $nb_affiche) {
-
 
201
					echo '<div id="postarticle"><p>Pages&nbsp;:<br />';
-
 
202
					if ($debut_article >= $nb_affiche) {
-
 
203
						echo '<a href="sommaire.php3?debut_article='.($debut_article-$nb_affiche).'">Page pr&eacute;c&eacute;dente</a><br />';
-
 
204
					}
-
 
205
					for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
-
 
206
					if ($debut_article != $article) {
-
 
207
						echo '<a href="sommaire.php3?debut_article='.$article.'">'.$page.'</a>&nbsp;';
-
 
208
					} else {
-
 
209
						echo $page.'&nbsp;';
-
 
210
					}
-
 
211
				}
-
 
212
				if ($debut_article + $nb_affiche < $nb_art_total) {
-
 
213
					echo '<br /><a href="sommaire.php3?debut_article='.($debut_article + $nb_affiche).'">Page suivante</a>';
-
 
214
				}
-
 
215
				echo '</p>';
-
 
216
				echo "<p>Nombre total d'articles de la rubrique : ".$nb_art_total.'</p>';
-
 
217
				echo '</div>';
-
 
218
				}
-
 
219
			?>
184
</BOUCLE_article_principal>
Line 220... Line 185...
220
            </div>
185
			
221
        </div>
186