echo "
Разделы
"; ### Подключить 1 раз при изменении разделов ################ $resp=mysql_query("select * from razdel where no!=23 order by razdel"); $i==0; echo "\n";
while ($row=mysql_fetch_object($resp)) {
$i++;
echo "no>$row->razdel
\n"; if (($i % 11)==0) {echo "
\n \n"; if (($i % 11)==0) {echo "
\n";}
};echo "
";
include "adaptive/inc/rtb-ya.inc";
#### Все ################
?>
-
if ($razdel) {
$resp=mysql_query("select no, razdel from razdel where no='$razdel'");
$row=mysql_fetch_object($resp);
$razdelname=$row->razdel;
echo "
$razdelname
"; $resp=mysql_query("select no, title, razdel, author, description, uri, dates, tema from articles where razdel='$razdelname' order by author"); while ($row=mysql_fetch_object($resp)) { $opa=$row->description; if ($opa) {$opisanie="$opa";} else {$opisanie="";}; if ($row->uri) {$page=$row->uri;} else {$page="article.htm?no=$row->no";} $day=substr($row->dates, 8,2); $month=substr($row->dates, 5,2); $year=substr($row->dates, 0,4); echo "
"; } echo "