|
|
@ -99,6 +99,11 @@ class PromoteController extends ThinkController
|
|
|
|
if (strlen(I('company_belong'))) {
|
|
|
|
if (strlen(I('company_belong'))) {
|
|
|
|
$map['company_belong'] = I("company_belong");
|
|
|
|
$map['company_belong'] = I("company_belong");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_null(I('admin_uid', null))) {
|
|
|
|
|
|
|
|
$map['admin_id'] = I('admin_uid');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->m_title = '推广员列表';
|
|
|
|
$this->m_title = '推广员列表';
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/lists/type/1','status'=>1])->find());
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/lists/type/1','status'=>1])->find());
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
@ -176,6 +181,8 @@ class PromoteController extends ThinkController
|
|
|
|
if ($page) {
|
|
|
|
if ($page) {
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$admins = M('member')->field('uid,nickname')->select();
|
|
|
|
|
|
|
|
$this->assign('admins', $admins);
|
|
|
|
$this->assign('list_data', $list_data);
|
|
|
|
$this->assign('list_data', $list_data);
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1216,6 +1223,13 @@ class PromoteController extends ThinkController
|
|
|
|
$map['pb.can_view_recharge'] = I('can_view_recharge');
|
|
|
|
$map['pb.can_view_recharge'] = I('can_view_recharge');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_null(I('company_id', null))) {
|
|
|
|
|
|
|
|
$map['p.company_id'] = I('company_id');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_null(I('admin_id', null))) {
|
|
|
|
|
|
|
|
$map['p.admin_id'] = I('admin_id');
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->m_title = '推广公会归属管理';
|
|
|
|
$this->m_title = '推广公会归属管理';
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/belong','status'=>1])->find());
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/belong','status'=>1])->find());
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
@ -1229,8 +1243,9 @@ class PromoteController extends ThinkController
|
|
|
|
$model = M('promote_belong', 'tab_');
|
|
|
|
$model = M('promote_belong', 'tab_');
|
|
|
|
$list_data = $model->alias('pb')
|
|
|
|
$list_data = $model->alias('pb')
|
|
|
|
->join('left join tab_promote as p on p.id=pb.promote_id')
|
|
|
|
->join('left join tab_promote as p on p.id=pb.promote_id')
|
|
|
|
|
|
|
|
->join('left join tab_promote_company as pc on pc.id = p.company_id')
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->field('p.*,pb.*')
|
|
|
|
->field('p.*,pb.*, pc.company_name')
|
|
|
|
->page($p, $row)
|
|
|
|
->page($p, $row)
|
|
|
|
->order('verify_status asc,applicant_time asc')
|
|
|
|
->order('verify_status asc,applicant_time asc')
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
@ -1241,8 +1256,12 @@ class PromoteController extends ThinkController
|
|
|
|
if ($page) {
|
|
|
|
if ($page) {
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$companys = M('promote_company', 'tab_')->field('id, company_name')->select();
|
|
|
|
|
|
|
|
$admins = M('member')->field('uid,nickname')->select();
|
|
|
|
$this->assign('is_admin', is_administrator());
|
|
|
|
$this->assign('is_admin', is_administrator());
|
|
|
|
$this->assign('list_data', $list_data);
|
|
|
|
$this->assign('list_data', $list_data);
|
|
|
|
|
|
|
|
$this->assign('companys', $companys);
|
|
|
|
|
|
|
|
$this->assign('admins', $admins);
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|