Parašė E01· 2008 Gru. 30 22:12:56
#4
Sry už flooda
Bet man velniškai reikia kad pasakytumet ką padaryti ?
Štai panelės kodas:
if (!isset($cat_id)) {
openside("Siuntiniu kategorijos");
$result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE ".groupaccess('download_cat_access')." ORDER BY download_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
$counter = 0; $columns = 2;
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $columns == 0)) echo "";
$num = dbcount("(download_cat)", "downloads", "download_cat='".$data['download_cat_id']."'");
echo "<a href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']."</a> <span class='small2'>($num)</span>";
echo "<br>" ;
$counter++;
}
echo "";
} else {
echo "<center><br>\n".$locale['430']."<br><br></center>\n";
}
closeside();
}