classic написал:
Так там articles.php совсем немного поменять и получите то чего хотели, кажется так.
Код страницы примерно такой:
<?php
/*--------------------------------------------+
| PHP-Fusion 5 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."articles.php";
if (!isset($cat_id)) {
opentable($locale['400']);
$result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE ".groupaccess('article_cat_access'
." ORDER BY article_cat_name"
;
$rows = dbrows($result);
if ($rows != 0) {
$counter = 0; $columns = 1;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl'>\n<tr>\n";
while ($data = dbarray($result)) {
//if ($counter != 0 && ($counter % $columns == 0)) echo "</tr>\n<tr>\n";
$num = dbcount("(article_cat)", "articles", "article_cat='".$data['article_cat_id']."'"
;
echo "<td align='left' valign='top'><br> <img src='".THEME."images/bullet.gif' alt=''> <a href='".FUSION_SELF."?cat_id=".$data['article_cat_id']."'><span class='postbody'>".$data['article_cat_name']."</span></a> <span class='small2'>($num)</span>";
if ($data['article_cat_description'] != ""
echo "<br>\n<span class='small'>".$data['article_cat_description']."</span>";
echo "</td></tr>\n";
$counter++;
echo "<tr><td>";
$result2 = dbquery("SELECT * FROM ".$db_prefix."articles WHERE article_cat=".$data['article_cat_id']." ORDER BY 1 "
;
while ($cdata = dbarray($result2)) {
echo " <img src='".THEME."images/bullet.gif' alt=''> <a href='readarticle.php?article_id=".$cdata['article_id']."'>".$cdata['article_subject']."</a><b
r>\n";
}
echo "</td></tr>\n";
}
echo "</table>\n";
} else {
echo "<center><br>\n".$locale['401']."<br><br>\n</center>\n";
}
closetable();
}
require_once "side_right.php";
require_once "footer.php";
?>