Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 114 Rev 124
Line 1... Line 1...
1
<?php
1
<?php
2
include_once 'authentification.php' ;
2
include_once 'authentification.php' ;
-
 
3
if (!isset($debut_article)) {
-
 
4
    $debut_article=0;
-
 
5
}
3
?>
6
?>
4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<html lang="#LANG">
8
<html lang="#LANG">
6
<head>
9
<head>
7
<title>#NOM_SITE_SPIP</title>
10
<title>#NOM_SITE_SPIP</title>
Line 19... Line 22...
19
    <!-- Parcours de navigation -->
22
    <!-- Parcours de navigation -->
20
    <div id="droite">
23
    <div id="droite">
21
        <div id="pos_recherche">Vous &ecirc;tes ici : Accueil : <:derniers_articles:></div>
24
        <div id="pos_recherche">Vous &ecirc;tes ici : Accueil : <:derniers_articles:></div>
22
        <INCLURE(incl_mot_recherche.php)>
25
        <INCLURE(incl_mot_recherche.php)>
23
        <div id="contenu_accueil">
26
        <div id="contenu_accueil">
-
 
27
        	<div id="info_dte">
-
 
28
				<BOUCLE_syndic(SITES){tout}{syndication=oui}{par num nom_site}>
-
 
29
				<B_art_synd>
-
 
30
					<div class="rss">
-
 
31
						<h1 class="titre_rss">[<a href="#URL_SITE" target="_blank">(#NOM_SITE|supprimer_numero)</a>]</h1>
-
 
32
						<BOUCLE_art_synd(SYNDIC_ARTICLES){id_syndic}{0,5}{par date}{inverse}>
-
 
33
							<div class="item">
-
 
34
								[<a href="#URL_ARTICLE" target="_blank" class="intituler_rubrique">(#TITRE)</a>][<span class="date"> - (#DATE|affdate)</span>]
-
 
35
							</div>
-
 
36
						</BOUCLE_art_synd>
-
 
37
					</div>
-
 
38
					</B_art_synd>
-
 
39
					</BOUCLE_syndic>
-
 
40
			</div>
24
                <!-- Une : derniers articles publies -->
41
                <!-- Une : derniers articles publies -->
25
                <BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {0,20}>
42
                <BOUCLE_article_un(ARTICLES) {tout} {id_secteur != 28}{par date} {inverse} {debut_article,20}>
26
                <div class="menu_titre">
43
                <div class="menu_titre">
27
                        <div class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></div>
44
                        <div class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></div>
28
                        <div><span class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
45
                        <div><span class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
29
                                <B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>#NOM</BOUCLE_auteurs_un></span>
46
                                <B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>#NOM</BOUCLE_auteurs_un></span>
Line 30... Line 47...
30
                                
47
                                
31
                        </div>
48
                        </div>
32
                        <div class="descriptif_contenu">[(#INTRODUCTION|couper{400})]&nbsp;<a href="#URL_ARTICLE">Lire la suite ...</a> </div>
49
                        <div class="descriptif_contenu">[(#INTRODUCTION|couper{400})]&nbsp;<a href="#URL_ARTICLE">Lire la suite ...</a> </div>
33
                </div>
50
                </div>
34
                </BOUCLE_article_un>
51
                </BOUCLE_article_un>
-
 
52
                </B_article_un>
-
 
53
<!-- article: number ? -->
-
 
54
                <?php $nb_art_total=0; $nb_affiche=20;
-
 
55
				$requet='select count(*) as nbr from spip_articles where id_secteur<>28 and id_secteur<>45';
-
 
56
				mysql_select_db ('tela_prod_spip_actu');
-
 
57
				$resultat=mysql_query($requet);
-
 
58
				if (!$resultat) echo mysql_error($resultat);
-
 
59
				$ligne=mysql_fetch_object($resultat);
-
 
60
				$nb_art_total= $ligne -> nbr;
-
 
61
            if ($nb_art_total > $nb_affiche) {
-
 
62
                echo "<div id=\"postarticle\">Pages&nbsp;:&nbsp;";
-
 
63
                if ($debut_article >= $nb_affiche) {
-
 
64
                    echo "<a href=\"sommaire.php3?debut_article=".($debut_article-$nb_affiche)."\">Page pr&eacute;c&eacute;dente</a>&nbsp;";
-
 
65
                }
-
 
66
                for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
-
 
67
                    if ($debut_article != $article) {
-
 
68
                        echo "<a href=\"sommaire.php3?&debut_article=$article\">$page</a>&nbsp;" ;
-
 
69
                    } else {
-
 
70
                        echo $page."&nbsp;" ;
-
 
71
                    }
-
 
72
                }
-
 
73
                if ($debut_article + $nb_affiche <$nb_art_total) {
-
 
74
                ?>
-
 
75
                            <a href="sommaire.php3?&debut_article=<?php echo $debut_article + $nb_affiche; ?>">Page suivante</a>
-
 
76
                            <?php } ?>
-
 
77
                        <br />Nombre total d'articles de la rubrique : <?php echo $nb_art_total; ?>
-
 
78
                        <?php 
-
 
79
                echo "</div>";
-
 
80
                        }
35
                </B_article_un>
81
                        ?>                
36
        </div>
82
        </div>
-
 
83
        <INCLURE(incl_footer.php)>
-
 
84
        
37
        <INCLURE(incl_footer.php)>
85
       
38
    </div>
86
    </div>
39
 
-
 
40
<div id="info_dte">
-
 
41
	<BOUCLE_syndic(SITES){tout}{syndication=oui}{par num nom_site}>
-
 
42
		<B_art_synd>
-
 
43
			<div class="rss">
-
 
44
				<h1 class="titre_rss">[<a href="#URL_SITE" target="_blank">(#NOM_SITE|supprimer_numero)</a>]</h1>
-
 
45
				<BOUCLE_art_synd(SYNDIC_ARTICLES){id_syndic}{0,5}{par date}{inverse}>
-
 
46
					<div class="item">
-
 
47
						[<a href="#URL_ARTICLE" target="_blank" class="intituler_rubrique">(#TITRE)</a>][<span class="date"> - (#DATE|affdate)</span>]
-
 
48
					</div>
-
 
49
				</BOUCLE_art_synd>
-
 
50
			</div>
-
 
51
		</B_art_synd>
-
 
52
	</BOUCLE_syndic>
-
 
53
	<p style="clear:both"></p>
-
 
Line 54... Line 87...
54
</div>
87
    
Line 55... Line 88...
55
 
88
 
56
<!-- Menu de navigation rubriques -->
89
<!-- Menu de navigation rubriques -->
57
 
90
 
58
<div id="nav_gauche">
-
 
59
<INCLURE(incl_logo_tela.php)>
-
 
60
<INCLURE(incl_changer_monde.php)>
-
 
61
    <B_rubriques>
-
 
62
    <div id="menus_gauche">
-
 
63
        <ul id="menus_gauche_list">
-
 
64
            <li id="rubrique_select"><strong><a href="sommaire.php3" title="Accueil actualit&eacute;">Accueil actualit&eacute;</a></strong></li>
-
 
65
            <BOUCLE_rubriques(RUBRIQUES) {par num titre} {racine}{id_rubrique != 45}>
-
 
66
            <li ><img src="IMG/puce.png" /> <a href="#URL_RUBRIQUE" title="#DESCRIPTIF">[(#TITRE|supprimer_numero)]</a></li>
-
 
67
            </BOUCLE_rubriques>
-
 
68
        </ul>
-
 
69
        </B_rubriques>
-
 
70
        <hr />
-
 
71
        <B_thematiques>
-
 
72
        <span class="categorie"><strong>Parcours par thème :</strong></span>
-
 
73
        <ul id="menus_gauche_list">
-
 
74
            <BOUCLE_thematiques(MOTS){type=Thématiques}{par num titre}>
-
 
75
            <B_art_mots><li><img src="IMG/puce.png" /> <a href="#URL_MOT">[(#TITRE|supprimer_numero)]</a><BOUCLE_art_mots(ARTICLES){id_mot}{0,1}>&nbsp;</BOUCLE_art_mots></li></B_art_mots>
-
 
76
            </BOUCLE_thematiques>
-
 
77
        </ul>
91
	<div id="nav_gauche">
78
        </B_thematiques>
-
 
79
        <hr />
-
 
80
        <ul id="menus_gauche_list">
-
 
81
                <li<?php print ($selection=="recevoir" ? ' id="rubrique_select"' : '');?>><strong><a href="recevoir.php">Lettre d'information</a></strong></li>
-
 
82
                <li<?php print ($arti==559 ? ' id="rubrique_select"' : '');?>><strong><a href="article559.html">Syndication RSS</a></strong></li>
-
 
83
                <li<?php print ($selection=="site" ? ' id="rubrique_select"' : '');?>><strong><a href="site.php3">Sites partenaires</a></strong></li>
-
 
84
                <li<?php print ($selection=="fils" ? ' id="rubrique_select"' : '');?>><strong><a href="fils_info.php3">Fils d'informations</a></strong></li>
92
		<INCLURE(incl_logo_tela.php)>
85
        </ul>
-
 
86
       <hr />
-
 
87
        <ul id="menus_gauche_list">
-
 
88
                    <li<?php print ($arti==984 ? ' id="rubrique_select"' : '');?>><strong><a href="article984.html">Envoyer un article</a></strong></li>
-
 
89
                    <li<?php print ($arti==220 ? ' id="rubrique_select"' : '');?>><strong><a href="article220.html">Devenir rédacteur</a></strong></li>
-
 
90
                    <li><strong><a href="/actu/ecrire/articles_edit.php3?new=oui">Ecrire un article</a></strong></li>
-
 
91
                    <li<?php print ($arti==257 ? ' id="rubrique_select"' : '');?>><strong><a href="article257.html">Devenir correspondant</a></strong></li>
93
		<INCLURE(incl_changer_monde.php)>
92
       </ul>
-
 
93
       <hr />
-
 
Line 94... Line 94...
94
    </div>
94
		<INCLURE(incl_menu_gauche.php)>
95
 
95
		<INCLURE(incl_identification_ellipse.php)>
96
<INCLURE(incl_identification_ellipse.php)>
96
	</div>
Line 97... Line 97...
97
 
97
 
98
</div>
98
	
99
<INCLURE(incl_footer_print.php)>
99
	<INCLURE(incl_footer_print.php)>