帝国cms 分页符添加自定义跳转模块(本次免费基础版本)含有bug下面付费版是完美无措的代码安装简单,
已有新版本:http://www.nmgsj.shop/cms-exted/2021/07/25/89.html
新版不许要怎么复杂秩序2步全部搞定
演示站:http://www.nmgqq.com.cn
演示站1:http://xadq.nmgqq.com.cn/xagl/
<?
$r['classid']=$GLOBALS[navclassid];
$classurl=sys_ReturnBqClassname($r,9);
$niuurl = $classurl;
$topurl = str_replace("niu","top","$niuurl");
?>
分页模板内添加
页次:[!--thispage--]/[!--pagenum--] 每页[!--lencord--] 总数[!--num--]
[!--pagelink--] <span class="my_page">到第<input type="text"class="href_input" name="href" id="href" value="" />页
<button id="btn" class="href_button">跳转</button></span>
<script type="text/javascript">
var hrefVal = document.getElementById('href');
var btn = document.getElementById("btn");
btn.addEventListener('click',function(){
if(hrefVal.value==1){
window.open("<?=$public_r[newsurl4]?><?=$topurl?>index.html","_self")
}else if(hrefVal.value==0){
window.open("#","_self")
}else{
window.open("<?=$public_r[newsurl4]?><?=$topurl?>index_"+hrefVal.value+".html","_self")
}
},false)
</script>
帝国cms列表分页添加
最后调用列表分页就可以出来了 ,css效果自己添加
展示效果
帝国cms,php分页跳转第几页,按照需求完美跳转优化php运行速度,分页大于最后一页自动跳转族后裔也,inpu内容展示当前页,删除当前页数字后提示最大跳转数
案例样式 这个市兴安盟地情网新版样式过几天正式上线了