diff --git a/Application/Admin/Controller/MendController.class.php b/Application/Admin/Controller/MendController.class.php
index b4a22e062..08172daa0 100644
--- a/Application/Admin/Controller/MendController.class.php
+++ b/Application/Admin/Controller/MendController.class.php
@@ -12,18 +12,8 @@ class MendController extends ThinkController {
public function lists($p=1){
$this->m_title = '推广补链';
- $this->assign('commonset',M('Kuaijieicon')->where(['url'=>'Mend/lists','status'=>1])->find());
-
- switch ($_GET['type']) {
- case '':
- case 1:
- $this->mendList();
- break;
- default:
- $this->recordList();
- break;
- }
-
+ $this->assign('commonset',M('Kuaijieicon')->where(['url'=>'Mend/lists','status'=>1])->find());
+ $this->mendList();
}
public function mendList(){
@@ -42,8 +32,16 @@ class MendController extends ThinkController {
parent::lists("user",$p,$map);
}
- public function recordList()
+ public function recordList($p=1)
{
+ $page = intval($p);
+ $page = $page ? $page : 1;
+ if (isset($_REQUEST['row'])) {
+ $row = $_REQUEST['row'];
+ } else {
+ $row = 10;
+ }
+
if(isset($_REQUEST['account'])){
if ($_REQUEST['account']=='全部') {
unset($_REQUEST['account']);
@@ -51,9 +49,22 @@ class MendController extends ThinkController {
$map['user_account']=array('like','%'.$_REQUEST['account'].'%');
unset($_REQUEST['account']);
}
- $p = I('p');
+
+ $data = M("Mend","tab_")
+ ->where($map)
+ ->order("create_time desc")
+ ->page($page, $row)
+ ->select();
+ $count = M("Mend","tab_")->where($map)->count();
+
$this->assign('show_status',1);
- parent::lists("Mend",$p,$map);
+ $this->assign('list_data', $data);
+
+ $page = set_pagination($count,$row);
+ if($page) {$this->assign('_page', $page);}
+
+ $this->display();
+ // parent::lists("Mend",$p,$map);
}
public function edit($id = null)
diff --git a/Application/Admin/View/Mend/lists.html b/Application/Admin/View/Mend/lists.html
index 8cb0c4723..82544ba27 100644
--- a/Application/Admin/View/Mend/lists.html
+++ b/Application/Admin/View/Mend/lists.html
@@ -8,8 +8,8 @@
推广补链
diff --git a/Application/Admin/View/Mend/recordList.html b/Application/Admin/View/Mend/recordList.html
new file mode 100644
index 000000000..4e04e0aee
--- /dev/null
+++ b/Application/Admin/View/Mend/recordList.html
@@ -0,0 +1,254 @@
+
+
+
+
+
+
+
+
+
+
+
补链记录
+
说明:此处功能查看玩家推广补链记录。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 玩家账号 |
+ 注册时间 |
+ 最后登录时间 |
+ 注册来源 |
+ 注册IP源 |
+ 上次登录 |
+ 所属推广员 |
+ 操作 |
+
+
+
+
+
+
+ aOh! 暂时还没有内容! |
+
+
+
+
+ {$data.account} |
+ {$data.register_time|date='Y-m-d H:i:s',###} |
+ {$data.login_time|date='Y-m-d H:i:s',###} |
+ {:get_registertype($data['register_type'])} |
+ {$data.register_ip} |
+ {$data.login_time|date='Y-m-d H:i:s',###} |
+
+
+ {$data['promote_account']}{:get_parent_promoteto($data['promote_id'])}
+
+ {:get_promote_name($data['promote_id'])}
+ |
+
+
+ 补链
+
+ 补链中
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ 导出
+
+ 导出
+
+ {$_page|default=''}
+
+
+
+
+
+
+
+
+
+if(C('COLOR_STYLE')=='blue_color') echo '';
+
+
+
+
+
+
+
+
+
+