澳门新葡萄京娱乐场Php经典分页源码

#*********************************************************#文件名称:function.php#功能描述:音讯增多改善管理模块#程序制作:留印(adleyliu卡塔尔#联系qq:14339095#联系邮箱:[email=adleyliu@163.com]adleyliu@163.com[/email]#官网:[url=][/url]#copyright(c)2007-2008115000.com.cnallrightsreserved.#最后更新:二〇〇六-11-20#*********************************************************#*********************************************************#澳门新葡萄京娱乐场,分页函数#*********************************************************functionyl_list_page($pageurl,$rsnum,$pages,$pagecount,$pagesize){#url#总记录#总页数#日前页码#每页突显数//$pageurl=’?’;$pcount=$pages;$page_info=’divclass=pagenum’;$page_info.=’divclass=num’;if(($pcount1)($pcount==$pagecount)){$page_info.=’ahref=’.$pageurl.’page=’.intval($pagecount-1).’/a’;}elseif(($pagecount!=1)($pcount!=$pagecount)){$page_info.=’ahref=’.$pageurl.’page=’.intval($pagecount-1).’/a’;}$page_info.=’ahref=’.$pageurl.’page=1页首/a’;if($pagecount4){$page_info.=’ahref=’.$pageurl.’page=1[1]/aspanclass=dot…/span’;}if($pcount$pagecount+2){$endpage=$pagecount+2;}else{$endpage=$pcount;}for($n=($pagecount-2);$n=$endpage;$n++){if(!($n1)){if($n==intval($pagecount)){$page_info.=’spanclass=normal’.$n.’/span’;}else{$page_info.=’ahref=’.$pageurl.’page=’.$n.'[‘.$n.’]/a’;}}}if($pagecount+2$pcount){$page_info.=’spanclass=dot…/spanahref=’.$pageurl.’page=’.$pcount.'[‘.$pcount.’]/a’;}$page_info.=’ahref=’.$pageurl.’page=’.$pcount.’页尾/a’;if(($pagecount==1)($pcount!=$pagecount)($pcount!=0)){$page_info.=’ahref=’.$pageurl.’page=’.intval($pagecount+1).’/a’;}elseif(($pagecount!=1)($pcount!=$pagecount)){$page_info.=’ahref=’.$pageurl.’page=’.intval($pagecount+1).’/a’;}$page_info.=’/div/div’;$page_info.=’divclass=pagenum’;$page_info.=’divclass=numspanclass=normal共:’.$rsnum.’条/’.$pcount.’页每页/’.$pagesize.’条/span/div’;$page_info.=’divclass=num’;//echo’formname=pageaction=’.$pageurl.”;$page_info.=’转到’;$page_info.=’inputtype=textname=pagevalue=/’1/’class=login_leftstyle=/’width:28px;height:18px;/”;$page_info.=’页inputtype=submitname=submit3class=login_submitstyle=/’width:28px;height:18px;padding-top:1px;/’onclick=document.myform.action.value=/’go/”;//echo’/form’;$page_info.=’/div’;$page_info.=’/div’;return$page_info;}

发表评论

电子邮件地址不会被公开。 必填项已用*标注