Parašė Deiviux.eu· 2009 Rugp. 29 19:08:20
#3
ShadoVw >> Ačiū, jau beveik pavyko, bet va kas gaunasi:
Kaip panaikinti tą tarpą?/
else {
$res = 0;
if (!isNum($cat_id)) fallback(FUSION_SELF);
$result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE article_cat_id='$cat_id'");
if (dbrows($result) != 0) {
$cdata = dbarray($result);
if (checkgroup($cdata['article_cat_access'])) {
$res = 1;
opentable($locale['400'].": ".$cdata['article_cat_name']);
$rows = dbcount("(article_id)", "articles", "article_cat='$cat_id'");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$result = dbquery("SELECT * FROM ".$db_prefix."articles WHERE article_cat='$cat_id' ORDER BY ".$cdata['article_cat_sorting']." LIMIT $rowstart,15");
$numrows = dbrows($result); $i = 1;
while ($data = dbarray($result)) {
if ($data['article_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
$new = " <span class='small'>[".$locale['402']."]</span>";
} else {
$new = "";
}
/*echo "<td class='tbl1'><a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a></td><td class='tbl2'><br>\n".stripslashes($data['article_snippet']);
echo "</td>\n";*/
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
echo "<tr>
<td colspan='5' class='forum-caption'>
<table style='border-collapse: collapse;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><font color='#000000'><a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a></font></td>
</tr></table></td>
</tr>\n";
echo "<tr>\n
<td colspan='5' class='tbl2'>".(stripslashes($data['article_snippet']))."</td>\n</tr>\n";
echo "<tr>\n";
echo ($i != $numrows ? "<br><br>\n" : "\n"); $i++;
echo"</tr></table>";
}
closetable();
if ($rows > 15) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,15,$rows,3,FUSION_SELF."?cat_id=$cat_id&")."\n</div>\n";
} else {
echo "<center>".$locale['403']."</center>\n";
closetable();
}
}
}
if ($res == 0) redirect(FUSION_SELF);
}
Redagavo Deiviux.eu· 2009 Rugp. 29 20:08:34