php 分页、全选、反选、全不选、批量删除(7)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
?>
<a href="<?php echo $_SERVER['PHP_SELF']?>?page=<?PHP if($page<$pagecount-1) echo $page+1; else echo $pagecount;?>">下一页</a>
<a href="<?php echo $_SERVER['PHP_SELF']."?page={$pagecount}"?>">尾页</a>
</span>
</li>
</ul>
</div>
</form>
</div>
</body>
</html>
<?php
/**
* 用户管理
* 2011/8/22
* kcj
*
* */
include "isLogin.php";
include "../conn/conn.php";
$sql="select * from user";
$rst=mysql_query($sql);
$totalnum=mysql_num_rows($rst);
$pagesize=5;
$page=$_GET['page'];
if($page==''){
$page=1;
}
$begin=($page-1)*$pagesize;
$pagecount=ceil($totalnum/$pagesize);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<meta name="Author" content="kcj" />
<meta name="Keywords" content="php,kcj" />
<link rel="stylesheet" type="text/css" href="style/lampcms.css">
<script src="javascript/common0.js"></script>
<script type="text/javascript">
var checkall=document.getElementsByName("dell[]");
function select(){ //全选
相关新闻>>
- 发表评论
-
- 最新评论 更多>>