Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padėkit su download panele

Parašė Deiviuxsz· 2012 Sau. 8 16:01:13
#1

Sveiki,galite kas nors padaryti siuntinius is tam tikros kategorijos


 
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
 
echo "<table cellspacing='0' cellpadding='0' border='0' width='318'><tr><td class='top' align='right'>";
if (iMEMBER){
echo "<a href='/downloads.php#top' class='white'><strong>TOP50</strong></a>"; }
echo "</td></tr><tr><td class='top1' valign='top'>";
 
///kodo pradzia
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,20");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$p = trimlink($data['download_title'],40);
echo "<tr>
<td class='small' height='20'>
<img src='http://mp3laisve.us.lt/infusions/muzika_panel/icon.png'/> <a href='".BASEDIR.seoname($data['download_title'])."-".$data['download_id'].".php' onMouseover=\"ddrivetip('Parsisiųsti (siuntėsi: ".$data['download_count'].")','#eaefef')\"; onMouseout=\"hideddrivetip()\">$p</a>
</td>
<td align='right' valign='top'>";
if (iMEMBER) { echo "<a href='".BASEDIR.seoname($data['download_title'])."-".$data['download_id'].".php'  title='' class='side' onMouseover=\"ddrivetip('Parsisiųsti (siuntėsi: ".$data['download_count'].")','#eaefef', 200)\"; onMouseout=\"hideddrivetip()\"><img src='".IMAGES."klausytis.png' border='0'></a>"; } else {
echo "<img src='".IMAGES."klausytis.png' border='0' title='Nemokama muzika'></a>"; }
echo "</td>
</tr>"; }
}
echo "</table>";
/// pabaiga
echo "</td></tr></table>";
tablebreak();
?>
 

Parašė MaFetas· 2012 Sau. 9 13:01:29
#2


$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat = 'IRASYK KAT ID NUMERĮ'  ORDER BY download_count DESC LIMIT 0,20");

Parašė Deiviuxsz· 2012 Sau. 9 15:01:15
#3

Labai ačiū kad pagelbėjai ;) gal dar galėtum pagelbėti su downloads.php perklausa?:)