|
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script> <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet">
<?php
include("../conn/conn.php");
%包含conn.php
$state=$_POST[payfor];
%获取付费状态
$type=$_POST[select];
%获取选择的类型
if($_POST[select]==""){
%若没有选择类型
$state=$_GET[state];
$type=$_GET[type];
%则使用默认的状态和类型
}
if($state=="all"){
$sql1=mysql_query("select count(*) as total from tb_leaguerinfo where
type='$type' order by id");
%如果类型是“全部”,那么就查询所有的对应类型的结果
}else{
$sql1=mysql_query("select count(*) as total from tb_leaguerinfo where
type='$type' and checkstate=$state order by id");
%否则查询相应类型和相应状态的结果
}
$minfo=mysql_fetch_array($sql1);
%根据查询语句,获得满足条件的结果
$total=$minfo[total];
%获取结果数
$pagesize=4;
if($total<=$pagesize){
$pagecount=1;
%如果结果数小于pagesize,那么页数为1
}
if(($total%$pagesize)!=0){
$pagecount=intval($total/$pagesize)+1;
%若total不能被pagesize整除,则将pagecount赋为total/pagesize的取整加1
}else{
$pagecount=$total/$pagesize;
%若能整除,则直接赋值为total/pagesize
}
if(($_GET |
|
|