Parašė kLx· 2008 Sau. 26 21:01:38
#1
Sveiki :)
Kaip padaryt ,kad šis neišsiskirtų į dvi eilutes ,o būtų vienoj?(Noriu ant headerio uždėt naujausius ir populiariausius siuntinius)
$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'], 50);
echo "<tr>\n<td class='small'> <center><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
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
$result = dbquery(
"SELECT td.*,tdc.* FROM fusion_downloads td
INNER JOIN fusion_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' target='_blank' >$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
Redagavo kLx· 2008 Sau. 26 21:01:48
Parašė kLx· 2008 Sau. 27 11:01:59
#6
Gal galit parašyt kaip ten daryt ,bo man nelabai gaunas :|
(atsiprašau ,jei užknisu)