Parašė Alionas· 2011 Kov. 25 18:03:55
#1
Sveiki visi gal turit koda automatines siuntiniu kategoriju as turiu tik ant v6 reik ant v7
cia v6
openside("Siuntinių 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 "<img src='http://eizo0x.xz.lt/images/failas.gif'> <a style='color:#FFF;' href='".BASEDIR."downloads.php?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']."</a> <span class='small2'>($num)</span>";
echo "<br>" ;
$counter++;
}
echo "<br>";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<img src='".THEME."images/bullet.gif'> Atsisiųsta: [".dbresult($result, 0)."]<br>";
} else {
echo "<center><br>\nŠiai panelei nėra turinio<br><br></center>\n";
}
closeside();