";
if ($UseImgCatg) {
if ($imagecatg == "") {
$imagecatgsrc= "noimage.gif";
} else {
$imagecatgsrc = $imagecatg;
}
$imgdimension = @getimagesize("modules/".$module_name."/imagecatg/".$imagecatgsrc);
if ($imgdimension) {
$imgcatgwidth = $imgdimension[0];
$imgcatgheight = $imgdimension[1];
}
echo "";
echo "";
echo "";
}
echo " | ";
echo "";
echo "".$catg."";
echo " (";
$listchild = getchildcategories($id_catg);
$listchild = $id_catg."_".$listchild;
echo countads_incategory($listchild);
echo ")";
echo "";
if ($cdesc != "") {
echo " ".$cdesc;
}
echo " ";
echo "";
$sql = "select id_catg,catg from ".$prefix."_nukec_ads_catg where parentid='".$id_catg."' order by id_catg";
$resultsub =$db->sql_query($sql);
$jmlsub =$db->sql_numrows($resultsub);
$sql .= " limit 0,10";
$resultsublimit =$db->sql_query($sql);
$jmlsublimit =$db->sql_numrows($resultsublimit);
$i = 0;
$bts = 3;
while (list($id_catg2,$catg2) = $db->sql_fetchrow($resultsublimit)) {
$i++;
echo "";
echo $catg2." ";
echo " (";
$listchild2 = "";
$listchild2 = getchildcategories($id_catg2);
$listchild2 = "$id_catg2"."_".$listchild2;
echo countads_incategory($listchild2);
echo ")";
echo " ";
if ($i != $jmlsublimit){
echo ", ";
}
}
if ($jmlsub > 10) {
echo ", "._NUKECMORE."";
}
$db->sql_freeresult($resultsub);
echo " |