Parašė tm· 2009 Vas. 14 22:02:36
#5
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5"merkia akį;
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 20);
echo "<tr><td class='small' align='left'>
<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>
<td style='padding-left: 60px;' align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td><td width=120></td><td>";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access'merkia akį." ORDER BY article_datestamp DESC LIMIT 0,5"
);
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0' style='padding-top:200px;'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 20);
echo "<tr><td class='small' align='left'>
<img src='".THEME."images/bullet.gif' alt=''>
<a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a>
</td>
<td style='padding-left: 75px;' align='right'>".$data['article_reads']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</tr></table></td></tr></table>\n";
echo "</td></tr></table>";
nzn tik ar gerai nuemiau bet rodos sitas :D