Rev 609 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php/***************************************************************************\* SPIP, Systeme de publication pour l'internet ** ** Copyright (c) 2001-2005 ** Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James ** ** Ce programme est un logiciel libre distribue sous licence GNU/GPL. ** Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *\***************************************************************************/include ("inc.php3");if ($spip_ecran == "large") {$largeur_table = 974;$hauteur_table = 400;$nb_col = 4;} else {$largeur_table = 750;$hauteur_table = 300;$nb_col = 3;}$largeur_col = round($largeur_table/$nb_col);debut_page(_T('titre_page_articles_tous'), "asuivre", "tout-site", " hauteurFrame($nb_col);");echo "<div> </div>";echo "<table border='0' cellpadding='0' cellspacing='2' width='$largeur_table'>";if ($id_rubrique) {$j = $nb_col;while ($id_rubrique > 0) {$query = "SELECT * FROM spip_rubriques WHERE id_rubrique='$id_rubrique' ORDER BY 0+titre, titre";$result=spip_query($query);while($row=spip_fetch_array($result)){$j = $j-1;$ze_rubrique = $row['id_rubrique'];$titre = typo($row['titre']);$id_rubrique =$row['id_parent'];$dest[$j] = $ze_rubrique;}}$dest[$j-1] = 0;while (!$dest[1]) {for ($i = 0; $i < $nb_col; $i++) {$dest[$i] = $dest[$i+1];}}if ($dest[0] > 0 AND $parent = $dest[$nb_col-2]) {// Afficher la hierarchie pour "remonter"echo "<tr><td colspan='$nb_col' style='text-align: $spip_lang_left;'>";echo "<div id='brouteur_hierarchie'>"; // pour calculer hauteur de iframe$la_rubrique = $dest[0];$query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'";$result = spip_query($query);while ($row = spip_fetch_array($result)) {$la_rubrique =$row['id_parent'];}while ($la_rubrique > 0) {$query = "SELECT * FROM spip_rubriques WHERE id_rubrique ='$la_rubrique'";$result = spip_query($query);while ($row = spip_fetch_array($result)) {$compteur = $compteur + 1;$ze_rubrique = $row['id_rubrique'];$titre = typo($row['titre']);$la_rubrique =$row['id_parent'];$lien = $dest[$nb_col-$compteur-1];if ($la_rubrique == 0) $icone = "secteur-24.gif";else $icone = "rubrique-24.gif";$ret = "<div " .http_style_background($icone,"$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>";}}$lien = $dest[$nb_col-$compteur-2];$ret = "<div " .http_style_background("racine-site-24.gif","$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>";echo $ret;echo "</div>";echo "</td></tr>";}} else {$id_rubrique = 0;$dest[0] = "$id_rubrique";}echo "<tr width='$largeur_table'>";for ($i=0; $i < $nb_col; $i++) {echo "<td valign='top' width='$largeur_col'>";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>";echo "</td>";}fin_page();?>