Parašė mNm.· 2011 Lap. 15 22:11:42
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_submit = '0' ORDER BY download_datestamp DESC LIMIT 10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
$dateadded = date('Y-m-d', $data['download_datestamp']);
echo "<tr>\n<td class='small' align='left'>» <a href='".BASEDIR."downloads.php?page_id=".$data['download_id']."'title='".$data['download_title']."' class='side'><font size='1'>$itemsubject</font></a></td>
<td align='right' width='25%'>$dateadded</td>
\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>Nėra siuntinių!</center>\n";
}