Próbuje przerobić latest_article_panel na latest_news_panel. Mam problem i nie wiem gdzie on jest bo pokazuje mi odpowiednie 101, 102 i 103 newsa a nie 5 ostatnio dodanych.
Oto skrypt:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside($locale['023']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."news ta
INNER JOIN ".$db_prefix."news_cats tac ON ta.news_cat=tac.news_cat_id
WHERE ".groupaccess('news_id')." ORDER BY news_datestamp DESC LIMIT 0,5"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."news.php?readmore.php=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
?>
|