Parašė Roksys· 2009 Kov. 8 00:03:18
#1
tai gai kap padaryti kad panele butu nerodoma tam tikrame puslapyje tarkim forum/index
Paneles kodas
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("
<center><em>Skaitomiausi receptai");
$result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_reads DESC LIMIT 0,10");
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 30);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='/".seoname($data['article_subject'])."-a".$data['article_id'].".htm' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
};
closeside();
echo "
</td>
<td width='33%'>";
openside("<em><center>Naujausi receptai");$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')." ORDER BY article_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 30);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='/".seoname($data['article_subject'])."-a".$data['article_id'].".htm'>".$data['article_subject']."</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
};
closeside();echo "
</td>
<tr>
</table>";