迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
把序列号key分页后继续累积值的读取方法(https://www.xunruicms.com/doc/1091.html){php echo ($page>1 ? $key + (($page-1) * $pagesize) : $key) + 1;}试了下,后台的分页不生效
-------------------------- {php $key = dr_count($list);$page=max(1,(int)$_GET['page']); echo ($page>1 ? $key + (($page-1) * SYS_ADMIN_PAGESIZE) : $key) + 1;}
{loop $list $key $t} <?php $cg = dr_string2array($t['setting']);?> {if !$cg.dev || $cg.dev == 1} <tr class="odd gradeX" id="dr_row_{$t.id}"> {if $ci->_is_admin_auth('del')} <td class="myselect"> <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline"> <input type="checkbox" class="checkboxes" name="ids[]" value="{$t.id}" /> <span></span> </label> </td> {/if} <td> {php $page=max(1,(int)$_GET['page']); echo ($page>1 ? $key + (($page-1) * SYS_ADMIN_PAGESIZE) : $key) + 1;} {dr_lang($t.name)}</td> <td>{$t.table}</td> <td> <label><a target="_blank" href="{dr_url('form/'.$t['table'].'/index')}" class="btn btn-xs blue"> <i class="fa fa-table"></i> {dr_lang('已审核内容')} </a></label> <label><a target="_blank" href="{dr_url('form/'.$t['table'].'_verify/index')}" class="btn btn-xs red"> <i class="fa fa-edit"></i> {dr_lang('待审核内容')} </a></label> {if !$cg.dev}<label><a target="_blank" href="{SITE_URL}index.php?s=form&c={$t.table}&m=post" target="_blank" class="btn btn-xs yellow"> <i class="fa fa-send"></i> {dr_lang('预览')} </a></label>{/if} {if $ci->_is_admin_auth('edit')}<label><a target="_blank" href="{dr_url('form/form/edit', ['id'=>$t.id])}" class="btn btn-xs green"> <i class="fa fa-edit"></i> {dr_lang('修改')} </a></label>{/if} {if $ci->_is_admin_auth()}<label><a target="_blank" href="{dr_url('field/index', ['rname'=>'form-'.SITE_ID, 'rid'=>$t.id])}" class="btn btn-xs dark"> <i class="fa fa-code"></i> {dr_lang('自定义字段')} </a></label>{/if} {if $ci->_is_admin_auth()}<label><a target="_blank" href="javascript:dr_iframe_show('{dr_lang('导出')}', '{dr_url('form/form/export', ['id'=>$t.id])}');" class="btn btn-xs red"> <i class="fa fa-sign-out"></i> {dr_lang('导出')} </a></label>{/if} </td> </tr> {/if} {/loop}
麻烦问下,这段代码放在什么位置了,我试了下,每页设置500条数据,第一页这个显示501,第二页就是1001...GoWorkRoom