53 lines
1 KiB
PHP
53 lines
1 KiB
PHP
<?
|
|
echo "<a href=\"redirect.php?s=".$id."\" target=\"_blank\"&theme=$theme>".$sitenom."</a>
|
|
<br>".$description."<br><font size=2>".$url."";
|
|
|
|
if (isset($cat))
|
|
{
|
|
// affichage de la categorie
|
|
$x=0;
|
|
$i=0;
|
|
$requete3=mysql_db_query($base,"select * from ".$basecat." where id=".$cat." ",$link);
|
|
|
|
$nomcat = mysql_result($requete3,$i,"nomcat");
|
|
$nomcat=lire($nomcat);
|
|
$id = mysql_result($requete3,$i,"id");
|
|
$idsubcat = mysql_result($requete3,$i,"idsubcat");
|
|
|
|
$varid[$x]=$id;
|
|
$varnom[$x]=$nomcat;
|
|
|
|
echo "<br>Voir la catégorie
|
|
<a href=index.php?m=c&c=$varid[0]>
|
|
";
|
|
|
|
if($idsubcat!=0)
|
|
{
|
|
$x=1;
|
|
|
|
while($idsubcat!=0)
|
|
{
|
|
$requete2=mysql_db_query($base,"select nomcat, id, idsubcat from $basecat where id=".$idsubcat." ",$link);
|
|
|
|
$nomcat = mysql_result($requete2,$i,"nomcat");
|
|
$nomcat=lire($nomcat);
|
|
$id = mysql_result($requete2,$i,"id");
|
|
$idsubcat = mysql_result($requete2,$i,"idsubcat");
|
|
|
|
$varid[$x]=$id;
|
|
$varnom[$x]=$nomcat;
|
|
$x++;
|
|
}
|
|
|
|
$x=$x-1;
|
|
}
|
|
|
|
while($x!=-1)
|
|
{
|
|
echo " > ".$varnom[$x]."";
|
|
$x=$x-1;
|
|
}
|
|
echo "</a>";
|
|
}
|
|
echo "</font><br><br>";
|
|
?>
|