print"";
print"";
print"";
// category chain
$chain = new catchain();
$array = $chain->chain($cat);
$catchain = $array[0];
$id = $array[1];
$catname = $array[2];
print "";
// sub categories
$result = mysql_query("SELECT * FROM dir_cats WHERE Parent='$id'");
$list = mysql_num_rows($result);
if ($list!='NULL') {
print " ";
print "$categories - $catname ";
print "";
print "";
$n=1;
while ($i < $list) {
$row= mysql_fetch_array($result);
$subid = $row["CatID"];
$subname = $row["Name"];
$parent = $row["Parent"];
// $resulta = mysql_query("SELECT * FROM dir_links WHERE CatID='$subid' AND Approved='1'");
// $lista = mysql_num_rows($resulta);
// $linkcount = " (" . $lista . ")";
if ($n==$catcols) {
print" | ";
print"";
print"$subname$linkcount";
print" | ";
print" ";
$i++;
$n=1;
}
else {
print" | ";
print"";
print"$subname$linkcount";
print" | ";
$n++;
$i++;
}
}
while ($n<=$catcols) {
print " | ";
$n++;
}
print" ";
print" ";
}
else {
}
print" | ";
print"
";
// links within category
$resultl = mysql_query("SELECT *, DATE_FORMAT(Date, '%D %M %Y') AS Date FROM dir_links WHERE CatID=$id AND Approved='1'");
$listl = @mysql_num_rows($resultl);
if ($listl!='NULL') {
print"$links - $catname ($listl) ";
print"";
while ($il < $listl) {
$rowl = mysql_fetch_array($resultl);
$namel = $rowl["Name"];
$idl = $rowl["LinkID"];
$ura = $rowl["URL"];
$descl = $rowl["Description"];
$datel = $rowl["Date"];
$hitsl = $rowl["Hits"];
print"$namel ";
print"$descl ";
print"$ura $dateadd : $datel $hittxt : $hitsl ";
print" ";
$il++;
}
print" | ";
print" ";
}
else {
}
?>
|
if ($mod_sub == "1"){
print " ";
}
?>
|
if ($mod_sub == "1"){
// enter include here if mods required
// include ("./mods/topten.mod.php");
// end of include for mods
print " ";
}
?>
|