?如果有什么問題需要咨詢的,可以加我的扣236-0248-666

?

?




當前模塊參數(shù)




public function _infoModule(" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > 交友網(wǎng)站平臺開發(fā)搭建 第十篇

交友網(wǎng)站平臺開發(fā)搭建 第十篇

時間:2023-08-16 10:42:01 | 來源:網(wǎng)站運營

時間:2023-08-16 10:42:01 來源:網(wǎng)站運營

交友網(wǎng)站平臺開發(fā)搭建 第十篇:今天,還是跟以往的一樣,接著把后臺的功能都記錄下來,先上一些圖片先。

?如果有什么問題需要咨詢的,可以加我的扣236-0248-666

?

?




當前模塊參數(shù)




public function _infoModule()

{

$data = array(

'info' => array(

'name' => '金錢記錄管理',

'description' => '管理用戶金錢變化記錄',

),

'menu' => array(

array(

'name' => '金錢記錄列表',

'url' => U('Admin/JinqianLog/index',array('type'=>1)),

'icon' => 'list',

),

array(

'name' => '聊天變動列表',

'url' => U('Admin/JinqianLog/index',array('type'=>2)),

'icon' => 'list',

),

array(

'name' => '照片變動列表',

'url' => U('Admin/JinqianLog/index',array('type'=>3)),

'icon' => 'list',

),

array(

'name' => '簽到變動列表',

'url' => U('Admin/JinqianLog/index',array('type'=>4)),

'icon' => 'list',

)

),

);

return $data;

}




列表




public function index(){

$type = I('get.type','');

$flag = I('request.flag','');

if($type == 1){

$model = M("AccountMoneyLog");

if(!empty($flag)) $where['type'] = $flag;

$this -> assign('name','金錢變動');

$breadCrumb = array('金錢記錄列表' => U('index',array('type'=>1)));

}elseif($type == 2){

$model = M("AccountMoneyLogLt"); //聊天

$this -> assign('name','聊天變動');

$breadCrumb = array('聊天變動列表' => U('index',array('type'=>2)));

}elseif($type == 3){

$model = M("AccountMoneyLogPhoto"); //上傳照片

$this -> assign('name','照片變動');

$breadCrumb = array('照片變動列表' => U('index',array('type'=>3)));

}elseif($type == 4){

$model = M("AccountMoneyLogQd"); //簽到

$this -> assign('name','簽到變動');

$breadCrumb = array('簽到變動列表' => U('index',array('type'=>4)));

}

$keyword = I('request.keyword','','trim');

$pageMaps['keyword'] = $keyword;

$pageMaps['type'] = $type;

if(!empty($keyword)){

$where['_string'] = 'uid = '.$keyword;

}

$count = $model -> where($where) -> count();

$limit = $this -> getPageLimit($count,19); //獲取每頁要顯示的條數(shù)

$list = $model -> where($where) -> order('time desc') -> limit($limit) -> select();

foreach($list as $k => $v ){

$ids[] = $v['uid'];

}

$ids = array_unique($ids);

$ids = join($ids, ',');

$result = D('Users') -> getNicename($ids);

$this->assign('breadCrumb', $breadCrumb);

$this -> assign('niceName',$result);

$this -> assign('page',$this->getPageShow($pageMaps));

$this -> assign('list',$list);

$this -> assign('type',$type);

$this->adminDisplay();

}




會員列表現(xiàn)金




public function index()

{

$keyword = I('request.keyword','','trim');

$type =I('request.type','','intval');

$status =I('request.status','','intval');

$breadCrumb = array('現(xiàn)金發(fā)放列表' => U());

$this->assign('breadCrumb', $breadCrumb);

//$this->assign('list', D('User')->loadData());

$pageMaps = array();

$pageMaps['keyword'] = $keyword;

$pageMaps['type'] = $type;

$pageMaps['status'] = $status;

$where = array();

if(!empty($keyword)){

$where['_string'] = '(B.user_login like "%'.$keyword.'%") OR (A.uid = "'.$keyword.'")';

}

if(!empty($type)){

$where['A.type'] = $type;

}

if(!empty($status)){

$where['A.status'] = $status;

}

// $pageMaps['class_id'] = $classId;

// $pageMaps['position_id'] = $positionId;

//查詢數(shù)據(jù)

$count = D('Tixian')->countList($where);

$limit = $this->getPageLimit($count,20);

//dump($limit);

$list = D('Tixian')->loadList($where,$limit);

$this->assign('pageMaps',$pageMaps);

$type =array(

1=>'微信',

2=>'支付寶',

3=>'話費充值',

);

$status =array(

0=>'失敗',

1=>'成功',

2=>'審核中'

);

$this->assign('type',$type);

$this->assign('page',$this->getPageShow($pageMaps));

$this->assign('list',$list);

$this->assign('status',$status);

//print_r($list);

$this->adminDisplay();

}




修改




public function edit(){

if(!IS_POST){

$breadCrumb = array('列表'=>U('index'),'修改'=>U());

$this->assign('breadCrumb',$breadCrumb);

$Id = I('Identity and Documents Verification Online - GetID','','intval');

if(empty($Id)) $this->error('參數(shù)不能為空!');

//獲取記錄

$info = M ( 'Tixian' )->where ( "id=$Id" )->find ();

if(!$info) $this->error('無數(shù)據(jù)!');

$type =array(

-1=>'后臺操作',

1=>'分享文章送',

2=>'關(guān)注送',

3=>'分享好友送',

4=>'提現(xiàn)',

5=>'搖一搖',

);

$this->assign('info',$info);

$this->assign('type',$type);

$this->adminDisplay('info');

}else{

if(I('post.status')==1){

$res = A('Home/Site')->new_tixian(I('Under Construction'));

if($res!= 1) $this->error($res);

}

if(D('Tixian')->saveData('edit')){

$this->success('修改成功!');

}else{

$msg = D('Tixian')->getError();

if(empty($msg)){

$this->error('修改失敗');

}else{

$this->error($msg);

}

}

}

}







?

關(guān)鍵詞:平臺

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉