alert(\"你无权访问当前页面\");"; exit(); } $page = @$_GET['p'] ? @$_GET['p'] : 1; $id = $_GET['id']; if ($page < 1) { exit('参数错误'); } if (@$_GET['action'] == 'del' && $id == true) { if ($con->query("DELETE FROM rains_notice WHERE id = $id")) { echo ''; } else { echo ''; } } $start = ($page - 1) * 15; $total = $con->query("SELECT COUNT(*) FROM rains_notice"); $total = $total->fetchAll(); $total = $total[0][0]; $PageCount = ceil($total / 15); $PageUp = $page - 1; $PageNext = $page + 1; if ($PageCount == $page) { $PageNext = '#'; } if ($page == 1) { $PageUp = '#'; } $content = $con->query("SELECT * FROM rains_notice order by time DESC LIMIT $start,15"); $content = $content->fetchAll(); ?>