<?
require'../shaxty.php';
$align='left';
$title='Акции';
include_once (H.'shaxty/head.php');
echo '<br />';
$k_post=core:: $db -> querySingle("select count(*) as num from akcyi");
$k_page=func::k_page($k_post,$max);
$page=func::page($k_page);
$start=$max*$page-$max;
$r = core::$db->query("Select * from `news` order by `time` desc LIMIT $start, $max");
if ($k_post==0)func::errors('<b>Акций нет</b>', '<a href="'.getenv("HTTP_REFERER").'" class="href">Вернуться</a>');
while ($a = $r -> fetch()) {
echo $div2.''.user::nik($a[user_id]).' ('.func::times($a['time']).')'.$div9;
echo func::text($a[msg]);
echo '<dl></dl>';
}
if ($k_page>1){
func::nav('akcyi?',$k_page,$page); // Вывод страниц
}
echo '<br />';
include_once (H.'shaxty/foot.php');
?>