Parašė sniuff· 2007 Gru. 26 22:12:07
#21
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("Populiariausi Demo");
$result = dbquery("SELECT * FROM ".$db_prefix."demos ORDER BY demo_reads DESC LIMIT 0,5");
while($data = dbarray($result)) {
$itemsubject = trimlink($data['demo_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readdemo.php?demo_id=".$data['demo_id']."' title='".$data['demo_subject']."' class='side'>$itemsubject</a><br>\n";
}
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['demo_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readdemo.php?demo_id=".$data['demo_id']."' title='".$data['demo_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
<td width='33%'>";
openside("Naujausi Demo");
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."demos ta
INNER JOIN ".$db_prefix."demo_cats tac ON ta.demo_cat=tac.demo_cat_id
WHERE ".groupaccess('demo_cat_access')." ORDER BY demo_datestamp DESC LIMIT 0,5"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['demo_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readdemo.php?demo_id=".$data['demo_id']."' title='".$data['demo_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</tr>
</table>";
Čia populiariausių ir Naujausių Demo Kodas.
WEIKIA TIK SU MANO MODU.
Redagavo sniuff· 2007 Gru. 26 22:12:14