File size: 818B
<?php
include"../../sys/fnc.php";
$page_news=$_GET['page_news'];
if(empty($page_news)){$page_news=0;}
$res=$db->query("select * from `news` order by `id` DESC LIMIT ".$page_news." ,".$str."");
while($pole = $res->fetch_array())
{
echo'<p><b>'.$pole[name].'</b><br/><i>'.$pole[data].'</i><br/>'.bbcod($pole[msg]).'<br/>';
if($user[leval]==4){echo'<a href="javascript:news_del('.$pole[id].')">Удалить новость</a>';}
if($user[leval]==4){echo'| <a href="javascript:news_msg_edit('.$pole[id].')">Редактировать новость</a><br/>';}
echo'..........................................</p>';
}
if($res->num_rows==0)
{
echo'Новостей пока нет :)';
}
$res->close();
$dop_news="";
mess_str("news",$page_news,$dop_news);
?>
<?include"../sch2.php";?>