Subversion Repositories Sites.tela-botanica.org

Rev

Rev 396 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 david 1
<?php
2
include_once 'authentification.php' ;
124 magali 3
if (!isset($debut_article)) {
4
    $debut_article=0;
5
}
4 david 6
?>
7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8
<html lang="#LANG">
9
<head>
10
<title>#NOM_SITE_SPIP</title>
11
<INCLURE(incl_link_entete.php)>
12
</head>
13
 
14
<body >
15
<div id="reducteur">
16
    <div id="acces_direct">
17
      <a href="#nav_gauche">Aller aux menus</a>
18
      <a href="#contenu_accueil">Aller au texte</a>
19
      <a href="#info_dte">Aller aux infos</a>
20
    </div>
21
    <INCLURE(incl_bandeau.php)>
22
    <div id="droite">
326 jpm 23
	    <!-- Parcours de navigation -->
396 jpm 24
	    <div id="pos_recherche">Vous &ecirc;tes ici : Accueil actualité : <:derniers_articles:>
326 jpm 25
	    </div>
26
	    <INCLURE(incl_mot_recherche.php)>
27
        <div id="contenu">
124 magali 28
        	<div id="info_dte">
242 jpm 29
				<INCLURE(incl_rss.php)>
124 magali 30
			</div>
171 magali 31
            <!-- Une : derniers articles publies -->
32
            <BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {debut_article,20}>
33
            <div class="menu_titre">
326 jpm 34
            	<h1 class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></h1>
35
            	[<a class="logo_article" href="#URL_ARTICLE">(#LOGO_ARTICLE)</a>]
36
                <p class="date"> Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
37
					<B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>#NOM</BOUCLE_auteurs_un>
38
                </p>
39
                <p class="descriptif_contenu">[(#INTRODUCTION|couper{400})]&nbsp;<a href="#URL_ARTICLE">Lire la suite ...</a></p>
171 magali 40
            </div>
326 jpm 41
            <hr/>
171 magali 42
            </BOUCLE_article_un>
4 david 43
        </div>
326 jpm 44
<!-- article: number ? -->
45
<?php
46
$nb_art_total = 0;
47
$nb_affiche = 20;
48
$requete = 'SELECT COUNT(*) AS nbr FROM spip_articles WHERE id_secteur <> 28 AND id_secteur <> 45';
49
mysql_select_db('tela_prod_spip_actu');
50
$resultat = mysql_query($requete);
51
if (!$resultat) {
52
	echo mysql_error($resultat);
53
}
54
$ligne = mysql_fetch_object($resultat);
55
$nb_art_total = $ligne->nbr;
56
if ($nb_art_total > $nb_affiche) {
57
	echo '<div id="postarticle"><p>Pages&nbsp;:<br />';
58
	if ($debut_article >= $nb_affiche) {
59
		echo '<a href="sommaire.php3?debut_article='.($debut_article-$nb_affiche).'">Page pr&eacute;c&eacute;dente</a><br />';
60
	}
61
	for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
62
		if ($debut_article != $article) {
63
			echo '<a href="sommaire.php3?debut_article='.$article.'">'.$page.'</a>&nbsp;';
64
		} else {
65
			echo $page.'&nbsp;';
66
		}
67
	}
68
	if ($debut_article + $nb_affiche < $nb_art_total) {
69
		echo '<br /><a href="sommaire.php3?debut_article='.($debut_article + $nb_affiche).'">Page suivante</a>';
70
	}
71
	echo '</p>';
72
	echo "<p>Nombre total d'articles de la rubrique : ".$nb_art_total.'</p>';
73
	echo '</div>';
74
}
75
?>
76
 
4 david 77
    </div>
326 jpm 78
	<INCLURE(incl_footer.php)>
4 david 79
 
326 jpm 80
	<!-- Menu de navigation rubriques -->
124 magali 81
	<div id="nav_gauche">
82
		<INCLURE(incl_logo_tela.php)>
83
		<INCLURE(incl_changer_monde.php)>
84
		<INCLURE(incl_menu_gauche.php)>
85
		<INCLURE(incl_identification_ellipse.php)>
86
	</div>
87
 
88
	<INCLURE(incl_footer_print.php)>
4 david 89
</div>
90
 
91
</body>
92
</html>