Bifurcation depuis
spip / spip
21852 validations de retard le dépôt en amont.
naviguer.php3 14,55 Kio
<?php
include ("inc.php3");
include_ecrire ("inc_logos.php3");
include_ecrire ("inc_mots.php3");
include_ecrire ("inc_documents.php3");
$coll = intval($coll);
$flag_mots = lire_meta("articles_mots");
function enfant($collection){
global $les_enfants, $couleur_foncee;
$query2 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection\" ORDER BY titre";
$result2 = spip_query($query2);
while($row=spip_fetch_array($result2)){
$id_rubrique=$row['id_rubrique'];
$id_parent=$row['id_parent'];
$titre=$row['titre'];
$descriptif=propre($row['descriptif']);
$bouton_layer = bouton_block_invisible("enfants$id_rubrique");
$les_sous_enfants = sous_enfant($id_rubrique);
$les_enfants.= "<P>";
if ($id_parent == "0") $les_enfants .= debut_cadre_relief("secteur-24.gif", true);
else $les_enfants .= debut_cadre_relief("rubrique-24.gif", true);
$les_enfants.= "<FONT FACE=\"Verdana,Arial,Helvetica,sans-serif\">";
if (strlen($les_sous_enfants) > 0){
$les_enfants.= $bouton_layer;
}
if (acces_restreint_rubrique($id_rubrique))
$les_enfants.= "<img src='img_pack/admin-12.gif' alt='' width='12' height='12' title='"._T('image_administrer_rubrique')."'> ";
$les_enfants.= "<B><A HREF='naviguer.php3?coll=$id_rubrique'><font color='$couleur_foncee'>".typo($titre)."</font></A></B>";
if (strlen($descriptif)>1)
$les_enfants.="<BR><FONT SIZE=1>$descriptif</FONT>";
$les_enfants.= "</FONT>";
$les_enfants .= $les_sous_enfants;
$les_enfants .= fin_cadre_relief(true);
}
}
function sous_enfant($collection2){
$query3 = "SELECT * FROM spip_rubriques WHERE id_parent=\"$collection2\" ORDER BY titre";
$result3 = spip_query($query3);
if (spip_num_rows($result3) > 0){
$retour = debut_block_invisible("enfants$collection2")."\n\n<FONT SIZE=1 face='arial,helvetica,sans-serif'><ul style='list-style-image: url(img_pack/rubrique-12.gif)'>";
while($row=spip_fetch_array($result3)){
$id_rubrique2=$row['id_rubrique'];
$id_parent2=$row['id_parent'];
$titre2=$row['titre'];
$retour.="<LI><A HREF='naviguer.php3?coll=$id_rubrique2'>$titre2</A>\n";
}
$retour .= "</FONT></ul>\n\n".fin_block()."\n\n";
}
return $retour;
}
function my_sel($num,$tex,$comp){
if ($num==$comp){