Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntimu kategorijos v7

Parašė Jaunelis· 2010 Rugp. 13 23:08:40
#6

Prašė ir spalva paredaguoti tai va:
openside("Siuntinių kategorijos");
$result = dbquery("SELECT * FROM ".DB_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)", "".DB_DOWNLOADS."", "download_cat='".$data['download_cat_id']."'");
echo "<img src='http://eizo0x.xz.lt/images/failas.gif'> <a style='color:#000;' 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_DOWNLOADS."");
echo "<img src='".THEME."images/bullet.gif'> <span style='color:#000;'>Siuntinių: [".dbresult($result, 0)."]</span><br>";
$result = dbquery("SELECT SUM(download_count) FROM ".DB_DOWNLOADS."");
echo "<img src='".THEME."images/bullet.gif'> <span style='color:#000;'>Atsisiųsta: [".dbresult($result, 0)."]</span><br>";

} else {
echo "<center><br>\n&#352;iai panelei n&#279;ra turinio<br><br></center>\n";
}
closeside();



Redagavo Jaunelis· 2010 Rugp. 13 23:08:12