File size: 1.16Kb
<?php
include "head.php";
include "inc.php";
include "config.php";
print "<div align=\"center\"><div class=a>";
print "$catalog";
print "</div><br/>";
print "<div align=\"left\">";
print "<div class=b><b>ОБЪЯВЛЕНИЯ</b></div>";
$qob = @mysql_query("select * from `obyavleniya` order by id desc limit $p,8;");
print "<br/>";
while($obyavl = @mysql_fetch_array($qob))
{
print "<b>".$obyavl['zag']."</b>(".$obyavl['date'].")<br/>";
print "<u>Содержание:</u> ".$obyavl['cont']."<br/>";
print "<br/>";
}
$counts = @mysql_query("select `id` from `obyavleniya`;");
$kol = @mysql_num_rows($counts);
if ($kol > $p+8)
{
if ($p = 0)
$n = 9;
else
$n = 8;
$p = $p+$n;
print "<a href=\"obs.php?p=$p\">Далее</a><br/>";
}
print "<hr>";
print "<div class=b><a href=\"rules.php\">Правила</a></div>";
print "<hr>";
print "<div class=b><a href=\"about.php\">О каталоге</a></div>";
print "<hr>";
print "<div class=b><a href=\"registration.php?rul=y\">Регистрация</a></div>";
print "<hr>";
print "<br/><a href=\"index.php\">В Каталог</a>";
include "foot.php";
print "</div>";
echo "</body></html>";
?>