Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 323 Rev 326
Line 1... Line 1...
1
<?php
1
<?php
2
include_once 'authentification.php' ;
2
include_once 'authentification.php' ;
3
if (!isset($debut_article)) {
3
if (!isset($debut_article)) {
4
    $debut_article=0;
4
    $debut_article = 0;
5
}
5
}
6
$nb_affiche=15;
6
$nb_affiche = 15;
7
?>
7
?>
8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9
<html lang="#LANG">
9
<html lang="#LANG">
Line 10... Line 10...
10
 
10
 
Line 23... Line 23...
23
	<meta name="keywords" content="botanique, botaniste, flore, monde v�g�tal, v�g�taux, actualit�s, articles, colloques, expositions, conf�rences, stages, sorties de terrain, revues, livres, emploi, nature, environnement, science, agronomie, protection, plante, plantes prot�g�es, biologie v�g�tale, syst�matique, taxinomie, taxonomie, taxons, floristique, ethnobotanique, phytosociologie, phytog�ographie, chorologie, �cologie, herbiers, herbier, nomenclature, noms vernaculaires, description, r�glementation, bibliographie, bibliographiques, reportage, �les juan Fernandez, pteridophytes, bryophytes, orchid�es, d�couvrir, apprentissage, classification, familles, genres, racines, tiges, feuilles, fleurs, fruits, Tela Botanica, association, fran�aise, fran�ais, langue fran�aise, France, r�seau, connaissances, connaissance, travail coop�ratif, fils d'information, RSS" />
23
	<meta name="keywords" content="botanique, botaniste, flore, monde v�g�tal, v�g�taux, actualit�s, articles, colloques, expositions, conf�rences, stages, sorties de terrain, revues, livres, emploi, nature, environnement, science, agronomie, protection, plante, plantes prot�g�es, biologie v�g�tale, syst�matique, taxinomie, taxonomie, taxons, floristique, ethnobotanique, phytosociologie, phytog�ographie, chorologie, �cologie, herbiers, herbier, nomenclature, noms vernaculaires, description, r�glementation, bibliographie, bibliographiques, reportage, �les juan Fernandez, pteridophytes, bryophytes, orchid�es, d�couvrir, apprentissage, classification, familles, genres, racines, tiges, feuilles, fleurs, fruits, Tela Botanica, association, fran�aise, fran�ais, langue fran�aise, France, r�seau, connaissances, connaissance, travail coop�ratif, fils d'information, RSS" />
Line 24... Line 24...
24
	
24
	
25
	<link rel="stylesheet" type="text/css" media="screen" href="/sites/commun/fr/styles/commun_simple.css" />
25
	<link rel="stylesheet" type="text/css" media="screen" href="/sites/commun/fr/styles/commun_simple.css" />
26
    <script type="text/javascript" src="/sites/commun/fr/scripts/commun.js"></script>    
26
    <script type="text/javascript" src="/sites/commun/fr/scripts/commun.js"></script>    
-
 
27
    <style type="text/css" media="screen">
27
    <style type="text/css" media="screen">
28
	<!-- 
28
	<!-- @import "/sites/commun/fr/styles/commun_complexe.css";
29
		@import "/sites/commun/fr/styles/commun_complexe.css";
29
		@import "/actu/css/actu.css";
-
 
30
		@import "/actu/css/rubrique28.css"
30
		@import "/actu/css/actu.css";
31
	-->
31
	-->
32
    </style>
32
    </style>
33
    <link rel="stylesheet" type="text/css" media="print" href="/sites/commun/fr/styles/impression.css" />
33
    <link rel="stylesheet" type="text/css" media="print" href="/sites/commun/fr/styles/impression.css" />
34
    <link rel="shortcut icon" type="image/x-icon" href="/sites/commun/generique/images/favicones/tela_botanica.ico" />
34
    <link rel="shortcut icon" type="image/x-icon" href="/sites/commun/generique/images/favicones/tela_botanica.ico" />
Line 64... Line 64...
64
							<BOUCLE_rub_art(RUBRIQUES){id_rubrique}{0,1}>
64
							<BOUCLE_rub_art(RUBRIQUES){id_rubrique}{0,1}>
65
								[ - <span class="lien_rub">(#TITRE|supprimer_numero)</span>]
65
								[ - <span class="lien_rub">(#TITRE|supprimer_numero)</span>]
66
							</BOUCLE_rub_art>
66
							</BOUCLE_rub_art>
67
							</div>
67
							</div>
68
						</BOUCLE_articles_rubrique> 
68
						</BOUCLE_articles_rubrique> 
-
 
69
				</BOUCLE_corps_rubriques>
-
 
70
			</div>
69
					<!-- article: number ? -->
71
<!-- article: number ? -->
-
 
72
<?php
-
 
73
$requete = 'SELECT COUNT(*) AS nbr FROM spip_articles WHERE id_secteur = 28';
70
					<?php $nb_art_total=0; ?>
74
mysql_select_db('tela_prod_spip_actu');
71
					<BOUCLE_art_count(ARTICLES){id_secteur}>
75
$resultat = mysql_query($requete);
72
						<?php $nb_art_total++ ?> 
76
if (!$resultat) {
73
					</BOUCLE_art_count> 
77
	echo mysql_error($resultat);
74
<?php 
78
}
-
 
79
$ligne = mysql_fetch_object($resultat);
-
 
80
$nb_art_total = $ligne->nbr;
75
	if ($nb_art_total > $nb_affiche) {
81
if ($nb_art_total > $nb_affiche) {
76
		echo "<div id=\"postarticle\">Pages&nbsp;:&nbsp;";
82
	echo '<div id="postarticle">Pages&nbsp;:<br />';
77
	if ($debut_article >= $nb_affiche) {
83
	if ($debut_article >= $nb_affiche) {
78
		echo "<a href=\"rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=".($debut_article-$nb_affiche)."\">Page pr&eacute;c&eacute;dente</a>&nbsp;";
84
		echo '<a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&amp;debut_article='.($debut_article-$nb_affiche).'">Page pr&eacute;c&eacute;dente</a><br />';
79
	}
85
	}
80
	for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
86
	for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
81
		if ($debut_article != $article) {
87
		if ($debut_article != $article) {
82
			echo "<a href=\"rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=$article\">$page</a>&nbsp;" ;
88
			echo '<a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&amp;debut_article='.$article.'">'.$page.'</a>&nbsp;';
83
		} else {
89
		} else {
84
			echo $page."&nbsp;" ;
90
			echo $page.'&nbsp;';
85
		}
91
		}
86
	}
92
	}
87
	if ($debut_article + $nb_affiche <$nb_art_total) {
93
	if ($debut_article + $nb_affiche < $nb_art_total) {
88
?>
-
 
89
					<a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=<?php echo $debut_article + $nb_affiche; ?>">Page suivante</a>
94
		echo '<br /><a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article='.($debut_article + $nb_affiche).'">Page suivante</a>';
90
<?php } ?>
-
 
91
					<br />Nombre total d'articles de la rubrique : <?php echo $nb_art_total; ?>
-
 
92
<?php 
-
 
93
		echo "</div>";
-
 
94
	}
95
	}
-
 
96
	echo '<p>Nombre total d\'articles de la rubrique : '.$nb_art_total.'</p>';
-
 
97
	echo '</div>';
-
 
98
}
95
?>
99
?>
96
				</BOUCLE_corps_rubriques>
-
 
97
			</div>
-
 
98
		</div>
100
		</div>
99
	</div>
101
	</div>
100
	<INCLURE(incl_footer.php)>
102
	<INCLURE(incl_footer.php)>
101
	<!-- Menu de navigation rubriques -->
103
	<!-- Menu de navigation rubriques -->
102
	<div id="nav_gauche">
104
	<div id="nav_gauche">