Parašė pokemonu_karalius· 2010 Sau. 25 12:01:21
#4
if (!isset($cat_id)) {
openside(Kategorijos);
$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%'>\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 "<p style='margin:5px;' ><span class='small2'><img src='".THEME."images/bullet.gif'> <a href='articles.php?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a> (Straipsnių: $num)<br></P></span>";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
} else {
echo "<center><br>\n".$locale['401']."<br><br>\n</center>\n";
}
closeside();
}
Ištaisiau erorą, bet kaip paspaudžiu ant
kategorijos ir tada panelė "Kategorijos" pradingsta.