Subversion Repositories Sites.tela-botanica.org

Compare Revisions

No changes between revisions

Ignore whitespace Rev 607 → Rev 608

/tags/v4.0/actu/sommaire.html
New file
0,0 → 1,92
<?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)>
<div id="droite">
<!-- Parcours de navigation -->
<div id="pos_recherche">Vous &ecirc;tes ici : Accueil actualité : <:derniers_articles:>
</div>
<INCLURE(incl_mot_recherche.php)>
<div id="contenu">
<div id="info_dte">
<INCLURE(incl_rss.php)>
</div>
<!-- Une : derniers articles publies -->
<BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {debut_article,20}>
<div class="menu_titre">
<h1 class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></h1>
[<a class="logo_article" href="#URL_ARTICLE">(#LOGO_ARTICLE)</a>]
<p 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>
</p>
<p class="descriptif_contenu">[(#INTRODUCTION|couper{400})]&nbsp;<a href="#URL_ARTICLE">Lire la suite ...</a></p>
</div>
<hr/>
</BOUCLE_article_un>
</div>
<!-- article: number ? -->
<?php
$nb_art_total = 0;
$nb_affiche = 20;
$requete = '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($requete);
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"><p>Pages&nbsp;:<br />';
if ($debut_article >= $nb_affiche) {
echo '<a href="sommaire.php3?debut_article='.($debut_article-$nb_affiche).'">Page pr&eacute;c&eacute;dente</a><br />';
}
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) {
echo '<br /><a href="sommaire.php3?debut_article='.($debut_article + $nb_affiche).'">Page suivante</a>';
}
echo '</p>';
echo "<p>Nombre total d'articles de la rubrique : ".$nb_art_total.'</p>';
echo '</div>';
}
?>
 
</div>
<INCLURE(incl_footer.php)>
 
<!-- 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>
Property changes:
Added: svn:executable
+*
\ No newline at end of property