Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Už pagalba + REP

Parašė Striochala· 2013 Geg. 15 20:05:26
#1

Sveiki reikia pagalbos .
Turiu muzikos site naudoju musicbox 1.3 ir esu padares muzikos limit = "30"; ir kai ikeliu pvz 35 dainas man nerodo next page ten 2 ar panašei tiesiog užsibaigia ir tiek nerodo kito puslapio. Už pagalba +REP
(KODAS)
<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."downloads.php";
$limit = "30"; //Limit of songs

if (!isset($_GET['cid']) || !isnum($_GET['cid'])) {
opentable($locale['MD505']);
echo '
<table border="0" cellpadding="1" align="center">

<tr>
<td class = "tbl1">'.$locale['MD500'].'</td>
<td class = "tbl1">-</td>
<td class = "tbl1">'.$locale['MD501'].'</td>
<td class = "tbl1">'.$locale['MD503'].'</td>
<td class = "tbl1">'.$locale['MD504'].'</td>
</tr>';

$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,".$limit.""
);

if (dbrows($result) != 0) {
$x = 0;
while($music = dbarray($result)) {
$x++;
$dcat = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='".$music['download_cat_id']."'"));
$duser = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$music['download_user']."'"));
echo '<tr>
<td class = "tbl2">'.$x.'</td>
<td class = "tbl2">
<a href="'.$settings['siteurl'].'groti.php?play_id='.$music['download_id'].'" onclick=\'OpenPopup(this.href); return false\'><img alt="'.$music["download_title"].'" src="'.IMAGES.'downloads/dl_cats/play.png" width="16" height="16" /></td>
<td class = "tbl2"><a href="'.BASEDIR.'downloads.php?d_id='.$music['download_id'].'" >'.$music["download_title"].'</a></td>
<td class = "tbl2">'.$music["download_count"].'</td>
<td class = "tbl2">'.profile_link($duser['user_id'], $duser["user_name"], $duser['user_status']).'</td>
</tr>';
}
} else {
echo '<tr>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">Nėra muzikos įkeltos</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
</tr>

';
}
echo '</table>';
closetable();

} elseif (isset($_GET['cid']) && isnum($_GET['cid'])) {

opentable($locale['MD505']);
echo '
<table border="0" cellpadding="1" align="center">

<tr>
<td class = "tbl1">'.$locale['MD500'].'</td>
<td class = "tbl1">-</td>
<td class = "tbl1">'.$locale['MD501'].'</td>
<td class = "tbl1">'.$locale['MD502'].'</td>
<td class = "tbl1">'.$locale['MD503'].'</td>
<td class = "tbl1">'.$locale['MD504'].'</td>
</tr>';

$limit = "150";
$cresult = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat = ".$_GET['cid']." order by download_count DESC LIMIT 0,".$limit."");

if (dbrows($cresult) != 0) {
$x = 0;
while($music = dbarray($cresult)) {
$x++;
$dcat = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='".$music['download_cat']."'"));
$duser = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$music['download_user']."'"));
echo '<tr>
<td class = "tbl2">'.$x.'</td>
<td class = "tbl2">
<a href="'.$settings['siteurl'].'groti.php?play_id='.$music['download_id'].'" onclick=\'OpenPopup(this.href); return false\'><img alt="'.$music["download_title"].'" src="'.IMAGES.'downloads/dl_cats/play.png" width="16" height="16" /></td>
<td class = "tbl2"><a href="'.BASEDIR.'downloads.php?d_id='.$music['download_id'].'" >'.$music["download_title"].'</a></td>
<td class = "tbl2"><a href="'.BASEDIR.'downloads.php?cat_id='.$music['download_cat'].'" >'.$dcat["download_cat_name"].'</a></td>
<td class = "tbl2">'.$music["download_count"].'</td>
<td class = "tbl2">'.profile_link($duser['user_id'], $duser["user_name"], $duser['user_status']).'</td>
</tr>';
}
} else {
echo '<tr>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">Nėra muzikos įkeltos</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
<td class = "tbl2">&nbsp;</td>
</tr>

';
}
echo '</table>';
closetable();
}

require_once THEMES."templates/footer.php";
?>