echo "
Темы статей
"; ### Подключить при добавлении тем ############ $resp=mysql_query("select * from tems where no!='52' order by tema"); $i==0; echo "\n";
while ($row=mysql_fetch_object($resp)) {
$i++;
echo "no>$row->tema
\n"; if (($i % 25)==0) {echo "
\n \n"; if (($i % 25)==0) {echo "
\n";}
};
echo "
";
include "adaptive/inc/rtb-ya.inc";
?>
-
if ($tema) {
$resp=mysql_query("select no, tema from tems where no='$tema'");
$row=mysql_fetch_object($resp);
$temaname=$row->tema;
echo "
$temaname
"; $resp=mysql_query("select no, title, razdel, author, description, uri, dates, tema from articles where tema='$temaname' 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 "