# 7 ################################# ФАЙЛЫ $rst = dbquery("SELECT cat_id, cat_name FROM ".$db_prefix."pdp_cats"); $rows7 = dbrows($rst); if ($rows7!=0) { echo "<ul>"; echo "<li><b>".$locale['MySM123']."</b>"; echo "<ul><br/>"; while ($data = dbarray($rst)) { $count_downloads = dbcount("(*)","pdp_downloads", "cat_id=".$data['cat_id']); echo " <li> <a href='".INFUSIONS."pro_download_panel/download.php?catid=".$data['cat_id']."'><STRONG> ".$data['cat_name']."</STRONG></a> - <span class='small'>[".$locale['MySM135'].": ".$count_downloads." ] </span> <br/>"; if ($count_downloads!=0) { $rlt =dbquery("SELECT cat_id, download_id, dl_name, dl_count FROM ".$db_prefix."pdp_downloads WHERE cat_id= ".$data['cat_id'].""); echo "<ul><br/>"; while ($datt = dbarray($rlt)) { echo "<li><a href='".INFUSIONS ."pro_download_panel/download.php?did=".$datt['download_id']."'><STRONG> ".$datt['dl_name']."</STRONG> </a> - <span class='small'> [".$locale['MySM130'].": ".$datt['dl_count']."] </span><br/>"; } echo "<br/>"; } else { echo "<ul>"; echo "<br/><li><STRONG>".$locale['MySM146']."</STRONG><br/><br/>"; } echo "</ul>"; } echo "</ul>"; echo "</ul>"; echo "<hr><br/>"; }