Subversion Repositories Sites.tela-botanica.org

Rev

Rev 114 | Rev 171 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
include_once 'authentification.php' ;
if (!isset($debut_article)) {
    $debut_article=0;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="#LANG">
<head>
<title>#NOM_SITE_SPIP</title>
<INCLURE(incl_link_entete.php)>
</head>

<body >
<div id="reducteur">
    <div id="acces_direct">
      <a href="#nav_gauche">Aller aux menus</a>
      <a href="#contenu_accueil">Aller au texte</a>
      <a href="#info_dte">Aller aux infos</a>
    </div>
    <INCLURE(incl_bandeau.php)>
    <!-- Parcours de navigation -->
    <div id="droite">
        <div id="pos_recherche">Vous &ecirc;tes ici : Accueil : <:derniers_articles:></div>
        <INCLURE(incl_mot_recherche.php)>
        <div id="contenu_accueil">
                <div id="info_dte">
                                <BOUCLE_syndic(SITES){tout}{syndication=oui}{par num nom_site}>
                                <B_art_synd>
                                        <div class="rss">
                                                <h1 class="titre_rss">[<a href="#URL_SITE" target="_blank">(#NOM_SITE|supprimer_numero)</a>]</h1>
                                                <BOUCLE_art_synd(SYNDIC_ARTICLES){id_syndic}{0,5}{par date}{inverse}>
                                                        <div class="item">
                                                                [<a href="#URL_ARTICLE" target="_blank" class="intituler_rubrique">(#TITRE)</a>][<span class="date"> - (#DATE|affdate)</span>]
                                                        </div>
                                                </BOUCLE_art_synd>
                                        </div>
                                        </B_art_synd>
                                        </BOUCLE_syndic>
                        </div>
                <!-- Une : derniers articles publies -->
                <BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {debut_article,20}>
                <div class="menu_titre">
                        <div class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></div>
                        <div><span class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
                                <B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>#NOM</BOUCLE_auteurs_un></span>
                                
                        </div>
                        <div class="descriptif_contenu">[(#INTRODUCTION|couper{400})]&nbsp;<a href="#URL_ARTICLE">Lire la suite ...</a> </div>
                </div>
                </BOUCLE_article_un>
                </B_article_un>
<!-- article: number ? -->
                <?php $nb_art_total=0; $nb_affiche=20;
                                $requet='select count(*) as nbr from spip_articles where id_secteur<>28 and id_secteur<>45';
                                mysql_select_db ('tela_prod_spip_actu');
                                $resultat=mysql_query($requet);
                                if (!$resultat) echo mysql_error($resultat);
                                $ligne=mysql_fetch_object($resultat);
                                $nb_art_total= $ligne -> nbr;
            if ($nb_art_total > $nb_affiche) {
                echo "<div id=\"postarticle\">Pages&nbsp;:&nbsp;";
                if ($debut_article >= $nb_affiche) {
                    echo "<a href=\"sommaire.php3?debut_article=".($debut_article-$nb_affiche)."\">Page pr&eacute;c&eacute;dente</a>&nbsp;";
                }
                for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
                    if ($debut_article != $article) {
                        echo "<a href=\"sommaire.php3?&debut_article=$article\">$page</a>&nbsp;" ;
                    } else {
                        echo $page."&nbsp;" ;
                    }
                }
                if ($debut_article + $nb_affiche <$nb_art_total) {
                ?>
                            <a href="sommaire.php3?&debut_article=<?php echo $debut_article + $nb_affiche; ?>">Page suivante</a>
                            <?php } ?>
                        <br />Nombre total d'articles de la rubrique : <?php echo $nb_art_total; ?>
                        <?php 
                echo "</div>";
                        }
                        ?>                
        </div>
        <INCLURE(incl_footer.php)>
        
       
    </div>
    

<!-- Menu de navigation rubriques -->

        <div id="nav_gauche">
                <INCLURE(incl_logo_tela.php)>
                <INCLURE(incl_changer_monde.php)>
                <INCLURE(incl_menu_gauche.php)>
                <INCLURE(incl_identification_ellipse.php)>
        </div>

        
        <INCLURE(incl_footer_print.php)>
</div>

</body>
</html>