Parašė Gizmis· 2008 Kov. 14 19:03:28
#4
Galit gal kas pataisyt sita koda kad rodytu normaliai ir prie naujausi 30 mp3 rodytu kiek kartu siuntesi
openside("naujinoeoosososos");
echo "<table width='100%'>
<tr>
<td width='50%'>";
openside("Top 30 mp3");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,30");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 60);
if (iMEMBER) {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "";
closeside();
echo "</td>
<td width='50%'>";
openside("Naujausi 30 mp3");
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,30"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 100);
if (iMEMBER) {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a>\n";
} else {
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."nariams.php' title='".$data['download_title']."' class='side' target='_blank'>$itemsubject</a>\n";
}
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
Redagavo Gizmis· 2008 Kov. 14 19:03:15