Parašė Ptycka· 2008 Sau. 20 14:01:54
#1
Iskilo klausimas dedu i viena panele kita ta prasme vienoje imigas ir ant imigo noriu deti panele top 10 ir naujausiu 10 ir meta eror noriu deti i sita:
echo "<table align='center' cellpadding='0' cellspacing='0' width='573'>
<tr><td>";
echo "<table height='144' width='298' background='".THEME."images/top10.jpg'>
<tr><td>
</td></tr>
</table>";
echo "</td><td>";
echo "<table height='144' width='275' background='".THEME."images/naujausios.jpg'>
<tr><td>
</td></tr>
</table>";
echo "</td></tr></table>";
Sita koda :
echo "<center><table width='50%</center>'>
<tr>
<td width='50%'>";
echo "<table align=center width=574 height=144 background=http://exmusic.lt/images/paneles/top_bg.png border=0";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
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'>$itemsubject</a></td>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td>
<td width='50%'>";
$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,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</tr>
</table>";
Padekit prasau.
Redagavo Ptycka· 2008 Sau. 20 14:01:18