[ Index ] |
|
Code source de SPIP 1.8.3 |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2005 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 14 include ("inc.php3"); 15 16 if ($spip_ecran == "large") { 17 $largeur_table = 974; 18 $hauteur_table = 400; 19 $nb_col = 4; 20 } else { 21 $largeur_table = 750; 22 $hauteur_table = 300; 23 $nb_col = 3; 24 } 25 $largeur_col = round($largeur_table/$nb_col); 26 27 28 debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site", " hauteurFrame($nb_col);"); 29 30 echo "<div> </div>"; 31 32 echo "<table border='0' cellpadding='0' cellspacing='2' width='$largeur_table'>"; 33 34 if ($id_rubrique) { 35 $j = $nb_col; 36 while ($id_rubrique > 0) { 37 $query = "SELECT * FROM spip_rubriques WHERE id_rubrique='$id_rubrique' ORDER BY 0+titre, titre"; 38 $result=spip_query($query); 39 while($row=spip_fetch_array($result)){ 40 $j = $j-1; 41 $ze_rubrique = $row['id_rubrique']; 42 $titre = typo($row['titre']); 43 $id_rubrique =$row['id_parent']; 44 45 $dest[$j] = $ze_rubrique; 46 } 47 } 48 49 $dest[$j-1] = 0; 50 51 while (!$dest[1]) { 52 for ($i = 0; $i < $nb_col; $i++) { 53 $dest[$i] = $dest[$i+1]; 54 } 55 } 56 57 58 59 60 if ($dest[0] > 0 AND $parent = $dest[$nb_col-2]) { 61 // Afficher la hierarchie pour "remonter" 62 echo "<tr><td colspan='$nb_col' style='text-align: $spip_lang_left;'>"; 63 64 echo "<div id='brouteur_hierarchie'>"; // pour calculer hauteur de iframe 65 66 $la_rubrique = $dest[0]; 67 68 $query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'"; 69 $result = spip_query($query); 70 while ($row = spip_fetch_array($result)) { 71 $la_rubrique =$row['id_parent']; 72 } 73 74 while ($la_rubrique > 0) { 75 $query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'"; 76 $result = spip_query($query); 77 while ($row = spip_fetch_array($result)) { 78 $compteur = $compteur + 1; 79 $ze_rubrique = $row['id_rubrique']; 80 $titre = typo($row['titre']); 81 $la_rubrique =$row['id_parent']; 82 $lien = $dest[$nb_col-$compteur-1]; 83 if ($la_rubrique == 0) $icone = "secteur-24.gif"; 84 else $icone = "rubrique-24.gif"; 85 $ret = "<div " . 86 http_style_background($icone, 87 "$spip_lang_left no-repeat; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px") . "><a href='brouteur.php3?id_rubrique=$lien'>$titre</a></div><div style='margin-$spip_lang_left: 28px;'>$ret</div>"; 88 } 89 } 90 $lien = $dest[$nb_col-$compteur-2]; 91 $ret = "<div " . 92 http_style_background("racine-site-24.gif", 93 "$spip_lang_left no-repeat; padding-top: 5px; padding-bottom: 5px; padding-$spip_lang_left: 28px") . "><a href='brouteur.php3?id_rubrique=$lien'>"._T('info_racine_site')."</a></div><div style='margin-$spip_lang_left: 28px;'>$ret</div>"; 94 echo $ret; 95 96 echo "</div>"; 97 echo "</td></tr>"; 98 99 } 100 } else { 101 $id_rubrique = 0; 102 $dest[0] = "$id_rubrique"; 103 } 104 105 106 107 108 echo "<tr width='$largeur_table'>"; 109 110 for ($i=0; $i < $nb_col; $i++) { 111 echo "<td valign='top' width='$largeur_col'>"; 112 113 echo "<iframe width='100%' id='iframe$i' name='iframe$i' src='brouteur_frame.php3?id_rubrique=".$dest[$i]."&frame=$i' class='iframe-bouteur' height='$hauteur_table'></iframe>"; 114 115 116 echo "</td>"; 117 118 } 119 120 fin_page(); 121 122 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Feb 22 22:27:47 2007 | par Balluche grâce à PHPXref 0.7 |