|
|
@ -529,7 +529,7 @@ class AuthManagerController extends AdminController{
|
|
|
|
$auth_group = M('AuthGroup')->where( array('status'=>array('egt','0'),'module'=>'admin','type'=>AuthGroupModel::TYPE_ADMIN) )
|
|
|
|
$auth_group = M('AuthGroup')->where( array('status'=>array('egt','0'),'module'=>'admin','type'=>AuthGroupModel::TYPE_ADMIN) )
|
|
|
|
->getfield('id,id,title,rules');
|
|
|
|
->getfield('id,id,title,rules');
|
|
|
|
// var_dump($auth_group);die();
|
|
|
|
// var_dump($auth_group);die();
|
|
|
|
$empower_type = M('AuthGroup')->field('data_empower_type,show_data,show_market_admin,show_promote')->where(array('id'=>$_GET['group_id']))->find();
|
|
|
|
$empower_type = M('AuthGroup')->field('data_empower_type,show_data,show_market_admin,show_promote,allow_over_week')->where(array('id'=>$_GET['group_id']))->find();
|
|
|
|
// var_dump($empower_type);die();
|
|
|
|
// var_dump($empower_type);die();
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('data_empower_type', $empower_type['data_empower_type']);
|
|
|
|
$this->assign('data_empower_type', $empower_type['data_empower_type']);
|
|
|
@ -537,6 +537,7 @@ class AuthManagerController extends AdminController{
|
|
|
|
$this->assign('auth_group', $auth_group);
|
|
|
|
$this->assign('auth_group', $auth_group);
|
|
|
|
$this->assign('show_market_admin', $empower_type['show_market_admin']);
|
|
|
|
$this->assign('show_market_admin', $empower_type['show_market_admin']);
|
|
|
|
$this->assign('show_promote', $empower_type['show_promote']);
|
|
|
|
$this->assign('show_promote', $empower_type['show_promote']);
|
|
|
|
|
|
|
|
$this->assign('allow_over_week', $empower_type['allow_over_week']);
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -547,6 +548,7 @@ class AuthManagerController extends AdminController{
|
|
|
|
$data_empower_type = I('data_empower_type');
|
|
|
|
$data_empower_type = I('data_empower_type');
|
|
|
|
$show_data = I('show_data');
|
|
|
|
$show_data = I('show_data');
|
|
|
|
$show_market_admin = I('show_market_admin');
|
|
|
|
$show_market_admin = I('show_market_admin');
|
|
|
|
|
|
|
|
$allow_over_week = I('allow_over_week');
|
|
|
|
$show_promote = I('show_promote');
|
|
|
|
$show_promote = I('show_promote');
|
|
|
|
$promoteData = I('promote_data');
|
|
|
|
$promoteData = I('promote_data');
|
|
|
|
|
|
|
|
|
|
|
@ -577,6 +579,7 @@ class AuthManagerController extends AdminController{
|
|
|
|
'data_president' => $promoteData,
|
|
|
|
'data_president' => $promoteData,
|
|
|
|
'show_data' => $show_data,
|
|
|
|
'show_data' => $show_data,
|
|
|
|
'show_market_admin' => $show_market_admin,
|
|
|
|
'show_market_admin' => $show_market_admin,
|
|
|
|
|
|
|
|
'allow_over_week' => $allow_over_week,
|
|
|
|
'show_promote' => $show_promote,
|
|
|
|
'show_promote' => $show_promote,
|
|
|
|
))) {
|
|
|
|
))) {
|
|
|
|
|
|
|
|
|
|
|
|