| Line 1... | Line 1... | 
          
            | 1 | <?php
 | 1 | <?php
 | 
          
            | 2 | include_once 'authentification.php' ;
 | 2 | include_once 'authentification.php' ;
 | 
          
            | 3 | if (!isset($debut_article)) {
 | 3 | if (!isset($debut_article)) {
 | 
          
            | 4 |     $debut_article=0;
 | 4 |     $debut_article = 0;
 | 
          
            | 5 | }
 | 5 | }
 | 
          
            | 6 | $nb_affiche=10;
 | 6 | $nb_affiche = 10;
 | 
          
            | 7 | ?>
 | 7 | ?>
 | 
          
            | 8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 | 8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 | 
          
            | 9 | <html lang="#LANG">
 | 9 | <html lang="#LANG">
 | 
          
            | Line 10... | Line 10... | 
          
            | 10 |  
 | 10 |  
 | 
          
            | Line 36... | Line 36... | 
          
            | 36 |                         <!-- Rubriques -->
 | 36 |                         <!-- Rubriques -->
 | 
          
            | 37 |                         <BOUCLE_corps_rubriques(RUBRIQUES){id_rubrique}>
 | 37 |                         <BOUCLE_corps_rubriques(RUBRIQUES){id_rubrique}>
 | 
          
            | 38 |                         <!-- Articles de la rubrique -->
 | 38 |                         <!-- Articles de la rubrique -->
 | 
          
            | 39 |                         <BOUCLE_articles_rubrique(ARTICLES){id_rubrique}{par date} {inverse} {"<hr />"}{debut_article,10}> 
 | 39 |                         <BOUCLE_articles_rubrique(ARTICLES){id_rubrique}{par date} {inverse} {"<hr />"}{debut_article,10}> 
 | 
          
            | 40 |                         <div class="menu_titre">
 | 40 |                         <div class="menu_titre">
 | 
          
            | 41 |                                     [<a href="#URL_ARTICLE">(#LOGO_ARTICLE|right)</a>]
 | 41 | 							<h2 class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></h2>
 | 
          
            | 42 |                                     <h2 class="intituler_rubrique"><a href="#URL_ARTICLE">#TITRE</a></h2>
 | 42 | 							[<a href="#URL_ARTICLE">(#LOGO_ARTICLE|right)</a>]
 | 
          
            | 43 |                                     <div class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
 | 43 | 							<p class="date">Mis en ligne [(#DATE|nom_jour)] [(#DATE|affdate)]
 | 
          
            | 44 |                                             <B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>
 | 44 | 							        <B_auteurs_un><:par_auteur:> <BOUCLE_auteurs_un(AUTEURS) {id_article} {", "}>
 | 
          
            | 45 |                                             #NOM</BOUCLE_auteurs_un>
 | 45 | 							        #NOM</BOUCLE_auteurs_un>
 | 
          
            | 46 |                                             <B_motscles>
 | 46 | 							        <B_motscles>
 | 
          
            | 47 |                                             -<span class="categorie">
 | 47 | 							        -<span class="categorie">
 | 
          
            | 48 |                                             <BOUCLE_motscles(MOTS){id_article}{type=Thématiques}{", "}> <a href="#URL_MOT">[(#TITRE|supprimer_numero)]</a></BOUCLE_motscles>
 | 48 | 							        <BOUCLE_motscles(MOTS){id_article}{type=Thématiques}{", "}> <a href="#URL_MOT">[(#TITRE|supprimer_numero)]</a></BOUCLE_motscles>
 | 
          
            | 49 |                                             </span>
 | 49 | 							        </span>
 | 
          
            | 50 |                                             </B_motscles>
 | 50 | 							        </B_motscles>
 | 
          
            | 51 |                                     </div>
 | 51 | 							</p>
 | 
          
            | 52 |                                     <div class="descriptif_contenu ">[(#INTRODUCTION|couper{400})] <a href="#URL_ARTICLE">Lire la suite ...</a></div>
 | 52 | 							<p class="descriptif_contenu ">[(#INTRODUCTION|couper{400})] <a href="#URL_ARTICLE">Lire la suite ...</a></p>
 | 
          
            | 53 |                                     [<div ><:voir_en_ligne:> : <a href="#URL_SITE" >(#NOM_SITE)</a></div>]
 | 53 | 							[<p><:voir_en_ligne:> : <a href="#URL_SITE" >(#NOM_SITE)</a></p>]
 | 
          
            | 54 |                         </div>
 | 54 |                         </div>
 | 
          
            | 55 |                         </BOUCLE_articles_rubrique> 
 | 55 |                         </BOUCLE_articles_rubrique> 
 | 
          
            | - |   | 56 | 					</div>
 | 
          
            | - |   | 57 | 				</div>
 | 
          
            | 56 |                         <!-- article: number ? -->
 | 58 | <!-- article: number ? -->
 | 
          
            | - |   | 59 | <?php
 | 
          
            | 57 |                         <?php $nb_art_total=0; ?>
 | 60 | $requete = 'SELECT COUNT(*) AS nbr FROM spip_articles WHERE id_secteur = '.$id_rubrique;
 | 
          
            | 58 |                         <BOUCLE_art_count(ARTICLES){id_rubrique}>
 | 61 | mysql_select_db('tela_prod_spip_actu');
 | 
          
            | 59 |                         <?php $nb_art_total++ ?> 
 | 62 | $resultat = mysql_query($requete);
 | 
          
            | - |   | 63 | if (!$resultat) {
 | 
          
            | - |   | 64 | 	echo mysql_error($resultat);
 | 
          
            | - |   | 65 | }
 | 
          
            | 60 |                         </BOUCLE_art_count> 
 | 66 | $ligne = mysql_fetch_object($resultat);
 | 
          
            | 61 |                         <?php 
 | 67 | $nb_art_total = $ligne->nbr;
 | 
          
            | 62 |             if ($nb_art_total > $nb_affiche) {
 | 68 | if ($nb_art_total > $nb_affiche) {
 | 
          
            | 63 |                 echo "<div id=\"postarticle\">Pages : ";
 | 69 | 	echo '<hr/><div id="postarticle">Pages :<br />';
 | 
          
            | 64 |                 if ($debut_article >= $nb_affiche) {
 | 70 | 	if ($debut_article >= $nb_affiche) {
 | 
          
            | 65 |                     echo "<a href=\"rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=".($debut_article-$nb_affiche)."\">Page précédente</a> ";
 | 71 | 		echo '<a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article='.($debut_article-$nb_affiche).'">Page précédente</a><br />';
 | 
          
            | 66 |                 }
 | 72 | 	}
 | 
          
            | 67 |                 for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
 | 73 | 	for ($article = 0, $page = 1; $article < $nb_art_total; $article += $nb_affiche, $page++) {
 | 
          
            | 68 |                     if ($debut_article != $article) {
 | 74 | 		if ($debut_article != $article) {
 | 
          
            | 69 |                         echo "<a href=\"rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=$article\">$page</a> " ;
 | 75 | 			echo '<a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article='.$article.'">'.$page.'</a> ';
 | 
          
            | 70 |                     } else {
 | 76 | 		} else {
 | 
          
            | 71 |                         echo $page." " ;
 | 77 | 			echo $page.' ';
 | 
          
            | 72 |                     }
 | 78 | 		}
 | 
          
            | 73 |                 }
 | 79 | 	}
 | 
          
            | 74 |                 if ($debut_article + $nb_affiche <$nb_art_total) {
 | 80 | 	if ($debut_article + $nb_affiche < $nb_art_total) {
 | 
          
            | 75 |                 ?>
 | - |   | 
          
            | 76 |                             <a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article=<?php echo $debut_article + $nb_affiche; ?>">Page suivante</a>
 | 81 | 		echo '<br /><a href="rubrique.php3?id_rubrique=#ID_RUBRIQUE&debut_article='.($debut_article + $nb_affiche).'">Page suivante</a>';
 | 
          
            | 77 |                             <?php } ?>
 | - |   | 
          
            | - |   | 82 | 	}
 | 
          
            | 78 |                         <br />Nombre total d'articles de la rubrique : <?php echo $nb_art_total; ?>
 | 83 | 	echo '<p>Nombre total d\'articles de la rubrique : '.$nb_art_total.'</p>';
 | 
          
            | 79 |                         <?php 
 | - |   | 
          
            | 80 |                 echo "</div>";
 | 84 | 	echo '</div>';
 | 
          
            | 81 |                         }
 | 85 | }
 | 
          
            | 82 |                         ?>
 | 86 | ?>
 | 
          
            | 83 |                         <B_corps_sous_rubriques>
 | 87 |                         <B_corps_sous_rubriques>
 | 
          
            | 84 |                         <div class="menu_titre">
 | 88 |                         <div class="menu_titre">
 | 
          
            | 85 |                                     <BOUCLE_corps_sous_rubriques(RUBRIQUES){id_parent}{par date}{inverse}>
 | 89 |                                     <BOUCLE_corps_sous_rubriques(RUBRIQUES){id_parent}{par date}{inverse}>
 | 
          
            | 86 |                                     [<a href="#URL_ARTICLE">(#LOGO_RUBRIQUE|right)</a>]
 | 90 |                                     [<a href="#URL_ARTICLE">(#LOGO_RUBRIQUE|right)</a>]
 | 
          
            | 87 |                                     <div class="intituler_rubrique">
 | 91 |                                     <div class="intituler_rubrique">
 | 
          
            | 88 |                                                 <img src="IMG/emblem-web-18.png" width="18px" height="18px" /> <a href="#URL_RUBRIQUE">#TITRE</a>
 | 92 | 										<img src="IMG/emblem-web-18.png" width="18px" height="18px" /> <a href="#URL_RUBRIQUE">#TITRE</a>
 | 
          
            | 89 |                                     </div>
 | 93 |                                     </div>
 | 
          
            | 90 |                                     <div class="descriptif_contenu ">#TEXTE</div>
 | 94 |                                     <div class="descriptif_contenu ">#TEXTE</div>
 | 
          
            | 91 |                                     <p style="clear:both"></p>
 | 95 |                                     <p style="clear:both"></p>
 | 
          
            | 92 |                                     </BOUCLE_corps_sous_rubriques>
 | 96 |                                     </BOUCLE_corps_sous_rubriques>
 | 
          
            | 93 |                         </div>
 | 97 |                         </div>
 | 
          
            | Line 107... | Line 111... | 
          
            | 107 |                                     <div class="texte">Il n'y a pas de commentaires dans cette rubrique</div>
 | 111 |                                     <div class="texte">Il n'y a pas de commentaires dans cette rubrique</div>
 | 
          
            | 108 |                                     <div class="texte"><:participer_site:></div>
 | 112 |                                     <div class="texte"><:participer_site:></div>
 | 
          
            | 109 |                                     <//B_forum_rubrique>
 | 113 |                                     <//B_forum_rubrique>
 | 
          
            | 110 |                         </ul>
 | 114 |                         </ul>
 | 
          
            | 111 |                         </BOUCLE_corps_rubriques>
 | 115 |                         </BOUCLE_corps_rubriques>
 | 
          
            | 112 | 						<INCLURE(incl_footer.php)>        
 | 116 | 						<INCLURE(incl_footer.php)>
 | 
          
            | 113 | 					</div>            
 | - |   | 
          
            | 114 | 				</div>
 | - |   | 
          
            | 115 | 			</div>
 | 117 | 			</div>
 | 
          
            | 116 | 			<!-- Menu de navigation rubriques -->
 | 118 | 			<!-- Menu de navigation rubriques -->
 | 
          
            | 117 | 			<div id="nav_gauche">
 | 119 | 			<div id="nav_gauche">
 | 
          
            | 118 | 				<INCLURE(incl_logo_tela.php)>
 | 120 | 				<INCLURE(incl_logo_tela.php)>
 | 
          
            | 119 | 				<INCLURE(incl_changer_monde.php)>
 | 121 | 				<INCLURE(incl_changer_monde.php)>
 |