PHPCMSV9后台管理启用vip会员总数今天申请注册总数

2021-04-03 02:08 jianzhan

PHPCMSV9后台调用会员数量今日注册数量和待审总文章数

第一步:先开启/phpcms/modules/

检索:public function public_main() {

在define( PC_RELEASE , pc_base::load_config( version , pc_release 后边再加:

$this- content_check_db = pc_base::load_model( content_check_model $this- hits_db = pc_base::load_model( hits_model $total_content_check = $this- content_check_db- count(array( status = 0 $total_hits = $this- hits_db- count(); $this- member_db = pc_base::load_model( member_model $total_member = $this- member_db- count(); //vip会员数量 $todaytime = strtotime(date( Y-m-d , SYS_TIME)); //今天vip会员数 $today_member = $this- member_db- count( `regdate` $todaytime

第二步:/phpcms/modules/admin/templates/main.tpl.php 里启用方式:

" >PHPCMSPHPCMSvip会员总数