Parašė NoNy· 2010 Lie. 23 12:07:04
#12
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' style='margin-top:-8px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='343' class='header1'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr><td class='small' align='center' style='padding-right: 20px;'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='downloads'>$itemsubject</a>
</td>
<td align='left' class='downloads'style='padding-right: 10px;'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
}
echo" </td>
Kas gali iš šito kodo padaryti, kad vietoi naujausių siuntinių rodytų pupuliariausias naujienas?