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 |
<!-- Parcours de navigation -->
|
171 |
magali |
23 |
<div id="pos_recherche">Vous êtes ici : Accueil : <:derniers_articles:>
|
|
|
24 |
</div>
|
|
|
25 |
<INCLURE(incl_mot_recherche.php)>
|
4 |
david |
26 |
<div id="droite">
|
|
|
27 |
<div id="contenu_accueil">
|
124 |
magali |
28 |
<div id="info_dte">
|
|
|
29 |
<BOUCLE_syndic(SITES){tout}{syndication=oui}{par num nom_site}>
|
|
|
30 |
<B_art_synd>
|
|
|
31 |
<div class="rss">
|
|
|
32 |
<h1 class="titre_rss">[<a href="#URL_SITE" target="_blank">(#NOM_SITE|supprimer_numero)</a>]</h1>
|
160 |
magali |
33 |
<BOUCLE_art_synd(SYNDIC_ARTICLES){id_syndic}{1,5}{par date}{inverse}>
|
124 |
magali |
34 |
<div class="item">
|
|
|
35 |
[<a href="#URL_ARTICLE" target="_blank" class="intituler_rubrique">(#TITRE)</a>][<span class="date"> - (#DATE|affdate)</span>]
|
|
|
36 |
</div>
|
|
|
37 |
</BOUCLE_art_synd>
|
|
|
38 |
</div>
|
|
|
39 |
</B_art_synd>
|
|
|
40 |
</BOUCLE_syndic>
|
|
|
41 |
</div>
|
171 |
magali |
42 |
<!-- Une : derniers articles publies -->
|
|
|
43 |
<BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {debut_article,20}>
|
|
|
44 |
<div class="menu_titre">
|
|
|
45 |
<div class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a>
|
4 |
david |
46 |
</div>
|
171 |
magali |
47 |
<div><span class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
|
|
|
48 |
<B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>#NOM</BOUCLE_auteurs_un></span>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="descriptif_contenu">[(#INTRODUCTION|couper{400})] <a href="#URL_ARTICLE">Lire la suite ...</a>
|
|
|
51 |
</div>
|
|
|
52 |
</div>
|
|
|
53 |
</BOUCLE_article_un>
|
|
|
54 |
</B_article_un>
|
|
|
55 |
<!-- article: number ? -->
|
124 |
magali |
56 |
<?php $nb_art_total=0; $nb_affiche=20;
|
|
|
57 |
$requet='select count(*) as nbr from spip_articles where id_secteur<>28 and id_secteur<>45';
|
|
|
58 |
mysql_select_db ('tela_prod_spip_actu');
|
|
|
59 |
$resultat=mysql_query($requet);
|
|
|
60 |
if (!$resultat) echo mysql_error($resultat);
|
|
|
61 |
$ligne=mysql_fetch_object($resultat);
|
|
|
62 |
$nb_art_total= $ligne -> nbr;
|
|
|
63 |
if ($nb_art_total > $nb_affiche) {
|
|
|
64 |
echo "<div id=\"postarticle\">Pages : ";
|
|
|
65 |
if ($debut_article >= $nb_affiche) {
|
|
|
66 |
echo "<a href=\"sommaire.php3?debut_article=".($debut_article-$nb_affiche)."\">Page précédente</a> ";
|
|
|
67 |
}
|
|
|
68 |
for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
|
|
|
69 |
if ($debut_article != $article) {
|
|
|
70 |
echo "<a href=\"sommaire.php3?&debut_article=$article\">$page</a> " ;
|
|
|
71 |
} else {
|
|
|
72 |
echo $page." " ;
|
|
|
73 |
}
|
|
|
74 |
}
|
|
|
75 |
if ($debut_article + $nb_affiche <$nb_art_total) {
|
|
|
76 |
?>
|
|
|
77 |
<a href="sommaire.php3?&debut_article=<?php echo $debut_article + $nb_affiche; ?>">Page suivante</a>
|
|
|
78 |
<?php } ?>
|
|
|
79 |
<br />Nombre total d'articles de la rubrique : <?php echo $nb_art_total; ?>
|
|
|
80 |
<?php
|
|
|
81 |
echo "</div>";
|
|
|
82 |
}
|
|
|
83 |
?>
|
4 |
david |
84 |
</div>
|
171 |
magali |
85 |
|
124 |
magali |
86 |
|
4 |
david |
87 |
</div>
|
171 |
magali |
88 |
<INCLURE(incl_footer.php)>
|
4 |
david |
89 |
|
|
|
90 |
<!-- Menu de navigation rubriques -->
|
|
|
91 |
|
124 |
magali |
92 |
<div id="nav_gauche">
|
|
|
93 |
<INCLURE(incl_logo_tela.php)>
|
|
|
94 |
<INCLURE(incl_changer_monde.php)>
|
|
|
95 |
<INCLURE(incl_menu_gauche.php)>
|
|
|
96 |
<INCLURE(incl_identification_ellipse.php)>
|
|
|
97 |
</div>
|
4 |
david |
98 |
|
124 |
magali |
99 |
|
|
|
100 |
<INCLURE(incl_footer_print.php)>
|
4 |
david |
101 |
</div>
|
|
|
102 |
|
|
|
103 |
</body>
|
|
|
104 |
</html>
|