|
|
|
@ -193,6 +193,31 @@ unset($_REQUEST['parent_id']);
|
|
|
|
|
$model = D('Promote');
|
|
|
|
|
$data = $model->find($id);
|
|
|
|
|
$data['bank_area']=explode(',',$data['bank_area']);
|
|
|
|
|
$idcardpic = $data["idcarpic"];
|
|
|
|
|
$businesspic = $data['businesspic'];
|
|
|
|
|
$agreementpic = $data["agreementpic"];
|
|
|
|
|
|
|
|
|
|
if(!empty($idcardpic)) {
|
|
|
|
|
$idcardpicArr = explode(',', $idcardpic);
|
|
|
|
|
foreach ($idcardpicArr as $key => $value) {
|
|
|
|
|
$idcardImg[$key] = get_cover($value, 'path');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!empty($businesspic)) {
|
|
|
|
|
$businesspicArr = explode(',', $businesspic);
|
|
|
|
|
foreach ($businesspicArr as $key => $value1) {
|
|
|
|
|
$businesspicImg[$key] = get_cover($value1, 'path');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!empty($agreementpic)) {
|
|
|
|
|
$agreementpicArr = explode(',', $agreementpic);
|
|
|
|
|
foreach ($agreementpicArr as $key => $value2) {
|
|
|
|
|
$agreementpicImg[$key] = get_cover($value2, 'path');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->assign("agreementpicimg",$agreementpicImg);
|
|
|
|
|
$this->assign('businesspicImg',$businesspicImg);
|
|
|
|
|
$this->assign('idcardimg',$idcardImg);
|
|
|
|
|
$this->assign('data',$data);
|
|
|
|
|
$this->meta_title ='编辑渠道信息';
|
|
|
|
|
|
|
|
|
@ -233,6 +258,39 @@ unset($_REQUEST['parent_id']);
|
|
|
|
|
$this->success('操作失败');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*资质审核
|
|
|
|
|
*/
|
|
|
|
|
public function idcar_status($model='Promote') {
|
|
|
|
|
if(empty($_REQUEST['ids'])){
|
|
|
|
|
$this->error('请选择要操作的数据');
|
|
|
|
|
}
|
|
|
|
|
if(isset($_REQUEST['model'])){
|
|
|
|
|
$model=$_REQUEST['model'];
|
|
|
|
|
unset($_REQUEST['model']);
|
|
|
|
|
}
|
|
|
|
|
$a=0;
|
|
|
|
|
$map['id']=array('in',$_REQUEST['ids']);
|
|
|
|
|
$set = M('promote','tab_')->where($map)->setField('ver_status',$_REQUEST['status']);
|
|
|
|
|
if($set){
|
|
|
|
|
if($_REQUEST['status']==1){
|
|
|
|
|
$select=M('promote','tab_')->where($map)->select();
|
|
|
|
|
foreach ($select as $key => $value) {
|
|
|
|
|
if($count=="000000"){
|
|
|
|
|
$a++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->success('操作成功');/**,已通知'.$a.'人'*/
|
|
|
|
|
}else{
|
|
|
|
|
$this->success('操作成功');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
$set=M('promote','tab_')->where($map)->setField('ver_status',2);
|
|
|
|
|
$this->success('操作失败');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*短信发送
|
|
|
|
|