sandm 3 жил өмнө
parent
commit
0da9ddadfd

+ 5 - 4
app/Admin/Controllers/Recruit/RecruitController.php

@@ -231,7 +231,7 @@ class RecruitController extends Controller
             $form->number('ordid', '排序')->default(0);
             $form->number('ordid', '排序')->default(0);
             $form->multipleFile('addFile', '附件')->move('storage/app/public/recruit/' . time());
             $form->multipleFile('addFile', '附件')->move('storage/app/public/recruit/' . time());
         })->tab('报名表单与条件', function ($form) {
         })->tab('报名表单与条件', function ($form) {
-            $form->checkbox('forms', '报名表单模块')->options(['basic' => '基础信息模块','expand_special' => '扩展模块-加分','detail' => '详情介绍模块','identification' => '身份证明上传模块','education_certification' => '学历证明上传模块','other_certification' => '其他证明上传模块', 'remark' => '备注模块'])->default(['basic'])->setMustMark();
+            $form->checkbox('forms', '报名表单模块')->options(['basic' => '基础信息模块','expand_special' => '扩展模块-加分','detail' => '详情介绍模块','identification' => '身份证明上传模块','education_certification' => '学历证明上传模块','other_certification' => '其他证明上传模块', 'remark' => '备注模块','internship' => '实习专场'])->default(['basic'])->setMustMark();
             $form->text('limit_times', '报名次数限制')->rules('required|regex:/^\d+$/', [
             $form->text('limit_times', '报名次数限制')->rules('required|regex:/^\d+$/', [
                 'required' => '报名限制次数必须填写',
                 'required' => '报名限制次数必须填写',
                 'regex' => '次数必须为数字'
                 'regex' => '次数必须为数字'
@@ -317,6 +317,7 @@ class RecruitController extends Controller
         $data['limit_times'] = $verify['limit_times'];
         $data['limit_times'] = $verify['limit_times'];
         $data['post_times'] = $verify['post_times'];
         $data['post_times'] = $verify['post_times'];
         $data['pay_switch'] = $verify['pay_switch'];
         $data['pay_switch'] = $verify['pay_switch'];
+        $data['forms'] = implode(',',array_filter($verify['forms']));
         $data['pen_ticket_type'] = $verify['pen_ticket_type'];
         $data['pen_ticket_type'] = $verify['pen_ticket_type'];
         $data['pen_ticket_content'] = $verify['pen_ticket_content'];
         $data['pen_ticket_content'] = $verify['pen_ticket_content'];
         $data['pen_ticket_status'] = 0;
         $data['pen_ticket_status'] = 0;
@@ -759,7 +760,7 @@ class RecruitController extends Controller
                 $data->material = [];
                 $data->material = [];
             }
             }
         }
         }
-        if(in_array('identification',$recruit->forms)){
+        if(in_array('identification',$recruit->forms) || in_array('internship',$recruit->forms)){
             if(json_decode($data->identification)){
             if(json_decode($data->identification)){
                 $data->identification = json_decode($data->identification);
                 $data->identification = json_decode($data->identification);
                 $photo_data = [];
                 $photo_data = [];
@@ -780,7 +781,7 @@ class RecruitController extends Controller
                 $data->identification = [];
                 $data->identification = [];
             }
             }
         }
         }
-        if(in_array('education_certification',$recruit->forms)){
+        if(in_array('education_certification',$recruit->forms) || in_array('internship',$recruit->forms)){
             if(json_decode($data->education_certification)){
             if(json_decode($data->education_certification)){
                 $data->education_certification = json_decode($data->education_certification);
                 $data->education_certification = json_decode($data->education_certification);
                 $photo_data = [];
                 $photo_data = [];
@@ -801,7 +802,7 @@ class RecruitController extends Controller
                 $data->education_certification = [];
                 $data->education_certification = [];
             }
             }
         }
         }
-        if(in_array('other_certification',$recruit->forms)){
+        if(in_array('other_certification',$recruit->forms) || in_array('internship',$recruit->forms)){
             if(json_decode($data->other_certification)){
             if(json_decode($data->other_certification)){
                 $data->other_certification = json_decode($data->other_certification);
                 $data->other_certification = json_decode($data->other_certification);
                 $photo_data = [];
                 $photo_data = [];

+ 208 - 99
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -283,29 +283,29 @@ class IndexController extends WebBaseController
         //招考id
         //招考id
         $id = $request->input('id', 0);
         $id = $request->input('id', 0);
         if (!$id) {
         if (!$id) {
-            return $this->showMessage('请选择招考项目!', route('home'), true, '上一页', '3');
+            return $this->showMessage('请选择报名项目!', route('home'), true, '上一页', '3');
         }
         }
 
 
         //招考信息
         //招考信息
         $recruit = Recruit::find($id);
         $recruit = Recruit::find($id);
         if(!$recruit['status'] && !$user->recruit_test){
         if(!$recruit['status'] && !$user->recruit_test){
-            return $this->showMessage('抱歉,该招考状态不正确,请联系客服!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+            return $this->showMessage('抱歉,该项目状态不正确,请联系客服!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
         }
         }
         if($recruit['current'] != 1){
         if($recruit['current'] != 1){
-            return $this->showMessage('抱歉,该招考报名通道已关闭,如有疑问,请联系客服!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+            return $this->showMessage('抱歉,该项目报名通道已关闭,如有疑问,请联系客服!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
         }
         }
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$id)->first();
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$id)->first();
         $time = time();
         $time = time();
         $formDisabled = 0;
         $formDisabled = 0;
         if(($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time)){//过了招考时间
         if(($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time)){//过了招考时间
             if(!$appoint_info){
             if(!$appoint_info){
-                return $this->showMessage('抱歉,该招考已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+                return $this->showMessage('抱歉,该项目已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
             }
             }
             if($appoint_info){
             if($appoint_info){
                 //如果有报名记录,先查询首次报名是什么时候
                 //如果有报名记录,先查询首次报名是什么时候
                 $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('appoint_id',$appoint_info->id)->orderBy('created_at','asc')->first();
                 $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('appoint_id',$appoint_info->id)->orderBy('created_at','asc')->first();
                 if(!$first_post){//没有记录代表只是暂存
                 if(!$first_post){//没有记录代表只是暂存
-                    return $this->showMessage('抱歉,该招考已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+                    return $this->showMessage('抱歉,该项目已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
                 }
                 }
 //                $has_late_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('created_at','>',$recruit['apply_end'])->first();//查找在过了报名时间后,有报名记录,且仍是审核失败的报名记录,看其是否在报名时间后是否有再次提交的记录
 //                $has_late_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('created_at','>',$recruit['apply_end'])->first();//查找在过了报名时间后,有报名记录,且仍是审核失败的报名记录,看其是否在报名时间后是否有再次提交的记录
 //                if($has_late_post){
 //                if($has_late_post){
@@ -319,43 +319,22 @@ class IndexController extends WebBaseController
         $view_data['module'] = $forms = explode(',', $recruit['forms']);
         $view_data['module'] = $forms = explode(',', $recruit['forms']);
         //查询报名表是否已有记录
         //查询报名表是否已有记录
         if($appoint_info){
         if($appoint_info){
-            //如果已有该场次的报名记录,读取录入的数据集合
-            $user_info = $appoint_info;
-            $user_info['sex'] = (string)$user_info['sex'];
-            $user_info['edu_type'] = (string)$user_info['edu_type'];
-            $user_info['family'] = json_decode($user_info['family']);
-            if(in_array('expand_special',$forms)){
-                $special = RecruitAppointExpandSpecial::where('recruit_appoint_id',$user_info['id'])->first();
-                if(json_decode($special['material'])){
-                    $material = json_decode($special['material'],true);
-                    foreach ($material as $k => $v){
-                        if(array_key_exists('response',$v)){
-                            $material[$k]['url'] = $v['response']['path'];
-                        }
-                    }
-                }else{
-                    $material = [];
-                }
-                $user_info['special'] = [
-                    'point_apply'   =>  (string)$special['point_apply'],
-                    'condition'     =>  $special['condition'],
-                    'material'      =>  $material
-                ];
-            }
-            if(in_array('detail',$forms)){
+            if(in_array('internship',$forms)) {
+                //如果已有该场次的报名记录,读取录入的数据集合
+                $user_info = $appoint_info;
+                $user_info['sex'] = (string)$user_info['sex'];
+                $user_info['adjust'] = (string)$user_info['adjust'];
+                $user_info['edu_type'] = (string)$user_info['edu_type'];
+                $user_info['family'] = json_decode($user_info['family']);
                 $detail = RecruitAppointDetail::where('recruit_appoint_id',$user_info['id'])->first();
                 $detail = RecruitAppointDetail::where('recruit_appoint_id',$user_info['id'])->first();
                 if($detail){
                 if($detail){
                     $user_info['detail'] = $detail->toArray();
                     $user_info['detail'] = $detail->toArray();
                 }else{
                 }else{
                     $user_info['detail'] = [
                     $user_info['detail'] = [
-                        'train' =>  '',
                         'rewards_and_punishments' => '',
                         'rewards_and_punishments' => '',
                         'introduce' => ''
                         'introduce' => ''
                     ];
                     ];
                 }
                 }
-            }
-            //如果有身份证明模块
-            if(in_array('identification',$forms)){
                 if(json_decode($user_info['identification'])){
                 if(json_decode($user_info['identification'])){
                     $identification = json_decode($user_info['identification'],true);
                     $identification = json_decode($user_info['identification'],true);
                     foreach ($identification as $k => $v){
                     foreach ($identification as $k => $v){
@@ -368,9 +347,6 @@ class IndexController extends WebBaseController
                     $identification = [];
                     $identification = [];
                 }
                 }
                 $user_info['identification'] = $identification;
                 $user_info['identification'] = $identification;
-            }
-            //如果有教育证明模块
-            if(in_array('education_certification',$forms)){
                 if(json_decode($user_info['education_certification'])){
                 if(json_decode($user_info['education_certification'])){
                     $education_certification = json_decode($user_info['education_certification'],true);
                     $education_certification = json_decode($user_info['education_certification'],true);
                     foreach ($education_certification as $k => $v){
                     foreach ($education_certification as $k => $v){
@@ -383,9 +359,7 @@ class IndexController extends WebBaseController
                     $education_certification = [];
                     $education_certification = [];
                 }
                 }
                 $user_info['education_certification'] = $education_certification;
                 $user_info['education_certification'] = $education_certification;
-            }
-            //如果有其他证明模块
-            if(in_array('other_certification',$forms)){
+
                 if(json_decode($user_info['other_certification'])){
                 if(json_decode($user_info['other_certification'])){
                     $other_certification = json_decode($user_info['other_certification'],true);
                     $other_certification = json_decode($user_info['other_certification'],true);
                     foreach ($other_certification as $k => $v){
                     foreach ($other_certification as $k => $v){
@@ -398,59 +372,194 @@ class IndexController extends WebBaseController
                     $other_certification = [];
                     $other_certification = [];
                 }
                 }
                 $user_info['other_certification'] = $other_certification;
                 $user_info['other_certification'] = $other_certification;
-            }
 
 
-            //获取最新的报名审核信息
-            $logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
-            if($logs){
-                $user_info['audit_log'] = $logs->log;
+                //获取最新的报名审核信息
+                $logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
+                if($logs){
+                    $user_info['audit_log'] = $logs->log;
+                }else{
+                    $user_info['audit_log'] = '';
+                }
+
             }else{
             }else{
-                $user_info['audit_log'] = '';
+                //如果已有该场次的报名记录,读取录入的数据集合
+                $user_info = $appoint_info;
+                $user_info['sex'] = (string)$user_info['sex'];
+                $user_info['edu_type'] = (string)$user_info['edu_type'];
+                $user_info['family'] = json_decode($user_info['family']);
+                if(in_array('expand_special',$forms)){
+                    $special = RecruitAppointExpandSpecial::where('recruit_appoint_id',$user_info['id'])->first();
+                    if(json_decode($special['material'])){
+                        $material = json_decode($special['material'],true);
+                        foreach ($material as $k => $v){
+                            if(array_key_exists('response',$v)){
+                                $material[$k]['url'] = $v['response']['path'];
+                            }
+                        }
+                    }else{
+                        $material = [];
+                    }
+                    $user_info['special'] = [
+                        'point_apply'   =>  (string)$special['point_apply'],
+                        'condition'     =>  $special['condition'],
+                        'material'      =>  $material
+                    ];
+                }
+                if(in_array('detail',$forms)){
+                    $detail = RecruitAppointDetail::where('recruit_appoint_id',$user_info['id'])->first();
+                    if($detail){
+                        $user_info['detail'] = $detail->toArray();
+                    }else{
+                        $user_info['detail'] = [
+                            'train' =>  '',
+                            'rewards_and_punishments' => '',
+                            'introduce' => ''
+                        ];
+                    }
+                }
+                //如果有身份证明模块
+                if(in_array('identification',$forms)){
+                    if(json_decode($user_info['identification'])){
+                        $identification = json_decode($user_info['identification'],true);
+                        foreach ($identification as $k => $v){
+                            if(array_key_exists('response',$v)){
+                                $identification[$k]['url'] = $v['response']['path'];
+                            }
+
+                        }
+                    }else{
+                        $identification = [];
+                    }
+                    $user_info['identification'] = $identification;
+                }
+                //如果有教育证明模块
+                if(in_array('education_certification',$forms)){
+                    if(json_decode($user_info['education_certification'])){
+                        $education_certification = json_decode($user_info['education_certification'],true);
+                        foreach ($education_certification as $k => $v){
+                            if(array_key_exists('response',$v)){
+                                $education_certification[$k]['url'] = $v['response']['path'];
+                            }
+
+                        }
+                    }else{
+                        $education_certification = [];
+                    }
+                    $user_info['education_certification'] = $education_certification;
+                }
+                //如果有其他证明模块
+                if(in_array('other_certification',$forms)){
+                    if(json_decode($user_info['other_certification'])){
+                        $other_certification = json_decode($user_info['other_certification'],true);
+                        foreach ($other_certification as $k => $v){
+                            if(array_key_exists('response',$v)){
+                                $other_certification[$k]['url'] = $v['response']['path'];
+                            }
+
+                        }
+                    }else{
+                        $other_certification = [];
+                    }
+                    $user_info['other_certification'] = $other_certification;
+                }
+
+                //获取最新的报名审核信息
+                $logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
+                if($logs){
+                    $user_info['audit_log'] = $logs->log;
+                }else{
+                    $user_info['audit_log'] = '';
+                }
+
+                //获取提交报名的次数
+//                $number = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',3)->count();
+//                $post_number = $number+1;//todo
             }
             }
 
 
-            //获取提交报名的次数
-            $number = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',3)->count();
-            $post_number = $number+1;//todo
 
 
         }
         }
         else{
         else{
-            $post_number = 1;
-            //如果没有,结合基础数据及模块表单信息,制作数据对象
-            $user_info = RecruitAppointBasic::where('uid',$uid)->first();
-            if(!$user_info){
-                //没有基础信息跳转完善route('person.recruitInfo')
-                return $this->showMessage('请先完善招考基础信息!', route('person.recruitInfo',array('recruit_id',$id)), true, '上一页', '3');
-            }
-            $user_info['sex'] = (string)$user_info['sex'];
-            $user_info['edu_type'] = (string)$user_info['edu_type'];
-            $user_info['family'] = json_decode($user_info['family']);
-            if(in_array('expand_special',$forms)){
-                $user_info['special'] = [
-                    'point_apply'   =>  '0',
-                    'condition'     =>  '',
-                    'material'      =>  []
-                ];
-            }
-            if(in_array('detail',$forms)){
-                $user_info['detail'] = [
-                    'train'                     =>  '',
-                    'rewards_and_punishments'   =>  '',
-                    'introduce'                 =>  ''
-                ];
-            }
-            if(in_array('identification',$forms)){
-                $user_info['identification'] = [];
-            }
-            if(in_array('education_certification',$forms)){
-                $user_info['education_certification'] = [];
-            }
-            if(in_array('other_certification',$forms)){
-                $user_info['other_certification'] = [];
+            //实习专场
+            if(in_array('internship',$forms)){
+                $user_info = json_encode([
+                    'recruit_id' => $id,
+                    'operation' => 1,
+                    'realname' => '',
+                    'sex' => '1',
+                    'birthday' => '',
+                    'card' => '',
+                    'nation' => '',
+                    'native_place' => '',
+                    'political_affiliation' => '',
+                    'join_time' => '',
+                    'house_register' => '',
+                    'education' => '',
+                    'school' => '',
+                    'pro' => '',
+                    'adjust' => '',
+                    'mobile' => '',
+                    'email' => '',
+                    'address' => '',
+                    'post_id' => '',
+                    'concat_name' => '',
+                    'concat_mobile' => '',
+                    'resume' => '',
+                    'avatar' => '',
+                    'family' => [
+                        [
+                            'relation' => '',
+                            'realname' => '',
+                            'birthday' => '',
+                            'political_affiliation' => '',
+                            'work' => ''
+                        ]
+                    ],
+                    'detail' => [
+                        'rewards_and_punishments'   =>  '',
+                        'introduce'                 =>  ''
+                    ],
+                    'identification' => [],
+                    'education_certification' => [],
+                    'other_certification' => []
+                ]);
+            }else{
+                //如果没有,结合基础数据及模块表单信息,制作数据对象
+                $user_info = RecruitAppointBasic::where('uid',$uid)->first();
+                if(!$user_info){
+                    //没有基础信息跳转完善route('person.recruitInfo')
+                    return $this->showMessage('请先完善招考基础信息!', route('recruit.recruitInfo',array('recruit_id',$id)), true, '上一页', '3');
+                }
+                $user_info['sex'] = (string)$user_info['sex'];
+                $user_info['edu_type'] = (string)$user_info['edu_type'];
+                $user_info['family'] = json_decode($user_info['family']);
+                if(in_array('expand_special',$forms)){
+                    $user_info['special'] = [
+                        'point_apply'   =>  '0',
+                        'condition'     =>  '',
+                        'material'      =>  []
+                    ];
+                }
+                if(in_array('detail',$forms)){
+                    $user_info['detail'] = [
+                        'train'                     =>  '',
+                        'rewards_and_punishments'   =>  '',
+                        'introduce'                 =>  ''
+                    ];
+                }
+                if(in_array('identification',$forms)){
+                    $user_info['identification'] = [];
+                }
+                if(in_array('education_certification',$forms)){
+                    $user_info['education_certification'] = [];
+                }
+                if(in_array('other_certification',$forms)){
+                    $user_info['other_certification'] = [];
+                }
+                $user_info['recruit_id'] = $id;
+                $user_info['operation'] = 1;
             }
             }
-        }
 
 
-        $user_info['recruit_id'] = $id;
-        $user_info['operation'] = 1;
+        }
 
 
         //招考岗位
         //招考岗位
         $where_post[] = ['recruit_id', '=', $id];
         $where_post[] = ['recruit_id', '=', $id];
@@ -468,8 +577,8 @@ class IndexController extends WebBaseController
 
 
         $view_data['appoint_info'] = $user_info;
         $view_data['appoint_info'] = $user_info;
         $view_data['post'] = json_encode($post);
         $view_data['post'] = json_encode($post);
-        $view_data['post_number'] = $post_number;
-        $view_data['post_times'] = $recruit['post_times'];
+//        $view_data['post_number'] = $post_number;
+//        $view_data['post_times'] = $recruit['post_times'];
         $view_data['post_limit'] = json_encode($post_limit);
         $view_data['post_limit'] = json_encode($post_limit);
         $view_data['formDisable'] = $formDisabled;
         $view_data['formDisable'] = $formDisabled;
         $view_data['title'] = $recruit->company;
         $view_data['title'] = $recruit->company;
@@ -493,14 +602,14 @@ class IndexController extends WebBaseController
 
 
         $recruit_id = $request->input('recruit_id', 0);
         $recruit_id = $request->input('recruit_id', 0);
         if (!$recruit_id) {
         if (!$recruit_id) {
-            return response()->json(['status' => 0,'msg' => '请选择招考项目!']);
+            return response()->json(['status' => 0,'msg' => '请选择项目!']);
         }
         }
         $recruit = Recruit::find($recruit_id);
         $recruit = Recruit::find($recruit_id);
         if(!$recruit['status']){
         if(!$recruit['status']){
-            return response()->json(['status' => 0,'msg' => '抱歉,该招考状态不正确,请联系客服!']);
+            return response()->json(['status' => 0,'msg' => '抱歉,该项目状态不正确,请联系客服!']);
         }
         }
         if($recruit['current'] != 1){
         if($recruit['current'] != 1){
-            return response()->json(['status' => 0,'msg' => '抱歉,该招考报名通道已关闭,如有疑问,请联系客服!']);
+            return response()->json(['status' => 0,'msg' => '抱歉,该项目报名通道已关闭,如有疑问,请联系客服!']);
         }
         }
         $time = time();
         $time = time();
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$recruit_id)->first();
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$recruit_id)->first();
@@ -509,11 +618,11 @@ class IndexController extends WebBaseController
                 //如果有报名记录,先查询首次报名是什么时候
                 //如果有报名记录,先查询首次报名是什么时候
                 $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->orderBy('created_at','asc')->first();
                 $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->orderBy('created_at','asc')->first();
                 if(!$first_post){//没有记录代表只是暂存
                 if(!$first_post){//没有记录代表只是暂存
-                    return response()->json(['status' => 0,'msg' => '抱歉,该招考已过报名时间!']);
+                    return response()->json(['status' => 0,'msg' => '抱歉,该项目已过报名时间!']);
                 }
                 }
             }
             }
             if(!$appoint_info){
             if(!$appoint_info){
-                return response()->json(['status' => 0,'msg' => '抱歉,该招考已过报名时间!']);
+                return response()->json(['status' => 0,'msg' => '抱歉,该项目已过报名时间!']);
             }
             }
         }
         }
 
 
@@ -566,7 +675,7 @@ class IndexController extends WebBaseController
             $msg = $validator->errors()->all();
             $msg = $validator->errors()->all();
             return response()->json(['status' => 0,'msg' => $msg[0]]);
             return response()->json(['status' => 0,'msg' => $msg[0]]);
         }else{
         }else{
-            $data = $request->only('realname','sex','birthday','avatar','nation','native_place','political_affiliation','titles','join_time','work','house_register','education','school','degree','pro','address','card','mobile','email','concat_name','concat_mobile','resume','post_id');
+            $data = $request->only('realname','sex','birthday','avatar','nation','native_place','political_affiliation','titles','join_time','work','house_register','education','school','degree','pro','address','card','mobile','email','concat_name','concat_mobile','resume','post_id','adjust');
             //身份证判断出生日期和性别
             //身份证判断出生日期和性别
             $year = substr($data['card'],6,4);
             $year = substr($data['card'],6,4);
             $month = substr($data['card'],10,2);
             $month = substr($data['card'],10,2);
@@ -696,7 +805,7 @@ class IndexController extends WebBaseController
                         }
                         }
                     }
                     }
                     //如果有详情模块
                     //如果有详情模块
-                    if(in_array('detail',$forms)){
+                    if(in_array('detail',$forms) || in_array('internship',$forms)){
                         $detail = $request->input('detail');
                         $detail = $request->input('detail');
                         $hasRecord = RecruitAppointDetail::where('recruit_appoint_id',$appoint_info->id)->first();
                         $hasRecord = RecruitAppointDetail::where('recruit_appoint_id',$appoint_info->id)->first();
                         if($hasRecord){
                         if($hasRecord){
@@ -708,7 +817,7 @@ class IndexController extends WebBaseController
 
 
                     }
                     }
                     //如果有身份证明模块
                     //如果有身份证明模块
-                    if(in_array('identification',$forms)){
+                    if(in_array('identification',$forms) || in_array('internship',$forms)){
                         $identification = $request->input('identification');
                         $identification = $request->input('identification');
                         if(is_array($identification)){
                         if(is_array($identification)){
                             //删除掉没有成功返回路径的图片
                             //删除掉没有成功返回路径的图片
@@ -722,7 +831,7 @@ class IndexController extends WebBaseController
                         $appoint_info->save();
                         $appoint_info->save();
                     }
                     }
                     //如果有教育证明模块
                     //如果有教育证明模块
-                    if(in_array('education_certification',$forms)){
+                    if(in_array('education_certification',$forms) || in_array('internship',$forms)){
                         $education_certification = $request->input('education_certification');
                         $education_certification = $request->input('education_certification');
                         if(is_array($education_certification)){
                         if(is_array($education_certification)){
                             //删除掉没有成功返回路径的图片
                             //删除掉没有成功返回路径的图片
@@ -736,7 +845,7 @@ class IndexController extends WebBaseController
                         $appoint_info->save();
                         $appoint_info->save();
                     }
                     }
                     //如果有其他证明模块
                     //如果有其他证明模块
-                    if(in_array('other_certification',$forms)){
+                    if(in_array('other_certification',$forms) || in_array('internship',$forms)){
                         $other_certification = $request->input('other_certification');
                         $other_certification = $request->input('other_certification');
                         if(is_array($other_certification)){
                         if(is_array($other_certification)){
                             //删除掉没有成功返回路径的图片
                             //删除掉没有成功返回路径的图片
@@ -796,13 +905,13 @@ class IndexController extends WebBaseController
                         RecruitAppointExpandSpecial::create($special);
                         RecruitAppointExpandSpecial::create($special);
                     }
                     }
                     //如果有详情模块
                     //如果有详情模块
-                    if(in_array('detail',$forms)){
+                    if(in_array('detail',$forms)  || in_array('internship',$forms)){
                         $detail = $request->input('detail');
                         $detail = $request->input('detail');
                         $detail['recruit_appoint_id'] = $result->id;
                         $detail['recruit_appoint_id'] = $result->id;
                         RecruitAppointDetail::create($detail);
                         RecruitAppointDetail::create($detail);
                     }
                     }
                     //如果有身份证明模块
                     //如果有身份证明模块
-                    if(in_array('identification',$forms)){
+                    if(in_array('identification',$forms)  || in_array('internship',$forms)){
                         $identification = $request->input('identification');
                         $identification = $request->input('identification');
                         if(is_array($identification)){
                         if(is_array($identification)){
                             //删除掉没有成功返回路径的图片
                             //删除掉没有成功返回路径的图片
@@ -817,7 +926,7 @@ class IndexController extends WebBaseController
                         $result->save();
                         $result->save();
                     }
                     }
                     //如果有教育证明模块
                     //如果有教育证明模块
-                    if(in_array('education_certification',$forms)){
+                    if(in_array('education_certification',$forms)  || in_array('internship',$forms)){
                         $education_certification = $request->input('education_certification');
                         $education_certification = $request->input('education_certification');
                         if(is_array($education_certification)){
                         if(is_array($education_certification)){
                             //删除掉没有成功返回路径的图片
                             //删除掉没有成功返回路径的图片
@@ -832,7 +941,7 @@ class IndexController extends WebBaseController
                         $result->save();
                         $result->save();
                     }
                     }
                     //如果有其他证明模块
                     //如果有其他证明模块
-                    if(in_array('other_certification',$forms)){
+                    if(in_array('other_certification',$forms)  || in_array('internship',$forms)){
                         $other_certification = $request->input('other_certification');
                         $other_certification = $request->input('other_certification');
 
 
                         if($other_certification){
                         if($other_certification){

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 1102 - 177
public/themes/default/views/app/recruit/sign_up.blade.php


+ 422 - 82
resources/views/admin/recruit/manageajax_userinfo.blade.php

@@ -1,19 +1,355 @@
 <link rel="stylesheet" href="{{theme_asset('statistics/js/layer/skin/default/layer.css')}}?t=1">
 <link rel="stylesheet" href="{{theme_asset('statistics/js/layer/skin/default/layer.css')}}?t=1">
 <style>
 <style>
-    .table_form,.table_form tr th, .table_form tr td { border:1px solid #ccc; padding: 0 7px}
-    .table_form { width: 100%; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse; padding:2px; max-width: 1200px}
+    .table_form, .table_form tr th, .table_form tr td {
+        border: 1px solid #ccc;
+        padding: 0 7px
+    }
+
+    .table_form {
+        width: 100%;
+        min-height: 25px;
+        line-height: 25px;
+        text-align: center;
+        border-collapse: collapse;
+        padding: 2px;
+        max-width: 1200px
+    }
+
     .avatar {
     .avatar {
         width: 178px;
         width: 178px;
         height: 178px;
         height: 178px;
         display: block;
         display: block;
     }
     }
-    .attchment{
+
+    .attchment {
         width: 200px;
         width: 200px;
         height: 200px;
         height: 200px;
     }
     }
 </style>
 </style>
 <script src="{{ theme_asset('statistics/js/layer/layer.js') }}"></script>
 <script src="{{ theme_asset('statistics/js/layer/layer.js') }}"></script>
-<table cellspacing="0" width="100%" class="table_form">
+@if(in_array('internship',$recruit->forms))
+    <table cellspacing="0" width="100%" class="table_form">
+        <tbody>
+        <tr style="height:52px;page-break-inside:avoid" class="firstRow">
+            <td valign="center" width="100">
+                姓名
+            </td>
+            <td valign="center" colspan="4" width="200">
+                {{$appointinfo->realname}}
+            </td>
+            <td valign="center" width="80">
+                性别
+            </td>
+            <td valign="center" colspan="2">
+                @if($appointinfo->sex == '0')
+                    女
+                @else
+                    男
+                @endif
+            </td>
+            <td valign="center" width="100">
+                出生年月
+            </td>
+            <td valign="center" colspan="2" width="200">
+                {{$appointinfo->birthday}}
+            </td>
+            <td valign="center" rowspan="3" width="200">
+                <img src="{{$appointinfo->avatar}}" class="avatar">
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                身份证号码
+            </td>
+            <td valign="center" colspan="4">
+                {{$appointinfo->card}}
+            </td>
+            <td valign="center">
+                民族
+            </td>
+            <td valign="center" colspan="2">
+                {{$appointinfo->nation}}
+            </td>
+            <td valign="center">
+                籍贯
+            </td>
+            <td valign="center" colspan="2">
+                {{$appointinfo->native_place}}
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                政治面貌
+            </td>
+            <td valign="center" colspan="4">
+                @switch($appointinfo->political_affiliation)
+                    @case ('01')
+                    中共党员
+                    @break
+                    @case ('02')
+                    中共预备党员
+                    @break
+                    @case ('03')
+                    共青团员
+                    @break
+                    @case ('04')
+                    民革党员
+                    @break
+                    @case ('05')
+                    民盟盟员
+                    @break
+                    @case ('06')
+                    民建会员
+                    @break
+                    @case ('07')
+                    民进会员
+                    @break
+                    @case ('08')
+                    农工党党员
+                    @break
+                    @case ('09')
+                    致公党党员
+                    @break
+                    @case ('10')
+                    九三学社社员
+                    @break
+                    @case ('11')
+                    台盟盟员
+                    @break
+                    @case ('12')
+                    无党派人士
+                    @break
+                    @case ('13')
+                    群众
+                    @break
+                @endswitch
+            </td>
+            <td valign="center">
+                入党时间
+            </td>
+            <td valign="center" colspan="2">
+                {{ $appointinfo->join_time }}
+            </td>
+            <td valign="center">
+                户籍所在地
+            </td>
+            <td valign="center" colspan="2">
+                {{ $appointinfo->house_register }}
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                年级
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->education }}
+            </td>
+            <td valign="center">
+                就读院校
+            </td>
+            <td valign="center" colspan="4">
+                {{ $appointinfo->school }}
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                所学专业
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->pro }}
+            </td>
+            <td valign="center">
+                是否接受调剂
+            </td>
+            <td valign="center" colspan="4">
+                @if($appointinfo->adjust == '0')
+                    否
+                @else
+                    是
+                @endif
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                联系电话
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->mobile }}
+            </td>
+            <td valign="center" colspan="1">
+                电子邮箱
+            </td>
+            <td valign="center" colspan="3">
+                {{ $appointinfo->email }}
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                通信地址
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->address }}
+            </td>
+            <td valign="center">
+                报名岗位
+            </td>
+            <td valign="center" colspan="3">
+                {{ $appointinfo->code }} {{ $appointinfo->name }}
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                紧急联系人<br/>姓名
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->concat_name }}
+            </td>
+            <td valign="center">
+                联系电话
+            </td>
+            <td valign="center" colspan="7">
+                {{ $appointinfo->concat_mobile }}
+            </td>
+        </tr>
+        <tr style="height:275px;page-break-inside:avoid">
+            <td valign="center">
+                &nbsp;个<br/>
+                &nbsp;人<br/>
+                &nbsp;简<br/>
+                &nbsp;历
+            </td>
+            <td valign="center" colspan="11">
+                <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->resume }}</textarea>
+            </td>
+        </tr>
+        <tr style="height:94px;page-break-inside:avoid">
+            <td valign="center">
+                奖<br/>
+                惩<br/>
+                情<br/>
+                况
+            </td>
+            <td valign="center" colspan="11">
+            <textarea style="width: 100%;height: 250px"
+                      readonly>{{ $appointinfo->rewards_and_punishments }}</textarea>
+            </td>
+        </tr>
+        <tr style="height:159px;page-break-inside:avoid">
+            <td valign="center">
+                个<br/>
+                人<br/>
+                情<br/>
+                况<br/>
+                介<br/>
+                绍
+            </td>
+            <td valign="center" colspan="11">
+                <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->introduce }}</textarea>
+            </td>
+        </tr>
+        <tr style="height:47px;page-break-inside:avoid">
+            <td valign="center" rowspan="{{ count($appointinfo->family)+1 }}">
+                家庭成员及其主要社会关系
+            </td>
+            <td valign="center">
+                <p style=";text-align:center">
+                    <span style=";font-family:宋体;font-size:14px">称谓</span>
+                </p>
+            </td>
+            <td width="200" valign="center" colspan="4">
+                <p style=";text-align:center">
+                    <span style=";font-family:宋体;font-size:14px">姓名</span>
+                </p>
+            </td>
+            <td width="87" valign="center" colspan="2">
+                <p style=";text-align:center">
+                    <span style=";font-family:宋体;font-size:14px">出生年月</span>
+                </p>
+            </td>
+            <td width="98" valign="center" colspan="1">
+                <p style=";text-align:center">
+                    <span style=";font-family:宋体;font-size:14px">政治面貌</span>
+                </p>
+            </td>
+            <td width="241" valign="center" colspan="3">
+                <p style=";text-align:center">
+                    <span style=";font-family:宋体;font-size:14px">工作单位及职位</span>
+                </p>
+            </td>
+        </tr>
+        @foreach($appointinfo->family as $k => $v)
+            <tr style="height:52px;page-break-inside:avoid">
+                <td width="85" valign="center">
+                    {{ $v->relation }}
+                </td>
+                <td width="200" valign="center" colspan="4">
+                    {{ $v->realname }}
+                </td>
+                <td width="87" valign="center" colspan="2">
+                    {{ $v->birthday }}
+                </td>
+                <td width="98" valign="center" colspan="1">
+                    {{ $v->political_affiliation }}
+                </td>
+                <td width="241" valign="center" colspan="3">
+                    {{ $v->work }}
+                </td>
+            </tr>
+        @endforeach
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                身份证明<br/>
+                (身份证或其他身份证明证件)
+            </td>
+            <td valign="center" colspan="11">
+                <div style="padding: 10px 0">
+                    @foreach($appointinfo->identification as $k => $v)
+                        @if(!empty($v))
+                            <img class="attchment" data-key="{{$k}}" data-name="identification"
+                                 src="{{ $v->response->path }}"/>
+                        @endif
+                    @endforeach
+                </div>
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                学历证明<br/>
+                (学信网《教育部学籍在线验证报告》)
+            </td>
+            <td valign="center" colspan="11">
+                <div style="padding: 10px 0">
+                    @foreach($appointinfo->education_certification as $k => $v)
+                        @if(!empty($v))
+                            <img class="attchment" data-key="{{$k}}" data-name="education_certification"
+                                 src="{{ $v->response->path }}"/>
+                        @endif
+                    @endforeach
+                </div>
+            </td>
+        </tr>
+        <tr style="height:52px;page-break-inside:avoid">
+            <td valign="center">
+                其他证明<br/>
+                (党员、学生干部等证明)
+            </td>
+            <td valign="center" colspan="11">
+                <div style="padding: 10px 0">
+                    @foreach($appointinfo->other_certification as $k => $v)
+                        @if(!empty($v))
+                            <img class="attchment" data-key="{{$k}}" data-name="other_certification"
+                                 src="{{ $v->response->path }}"/>
+                        @endif
+                    @endforeach
+                </div>
+            </td>
+        </tr>
+
+        </tbody>
+    </table>
+
+@else
+    <table cellspacing="0" width="100%" class="table_form">
     <tbody>
     <tbody>
     <tr style="height:52px;page-break-inside:avoid" class="firstRow">
     <tr style="height:52px;page-break-inside:avoid" class="firstRow">
         <td valign="center" width="100">
         <td valign="center" width="100">
@@ -43,19 +379,19 @@
         </td>
         </td>
     </tr>
     </tr>
     <tr style="height:52px;page-break-inside:avoid">
     <tr style="height:52px;page-break-inside:avoid">
-        <td valign="center" >
+        <td valign="center">
             身份证号码
             身份证号码
         </td>
         </td>
-        <td valign="center" colspan="4" >
+        <td valign="center" colspan="4">
             {{$appointinfo->card}}
             {{$appointinfo->card}}
         </td>
         </td>
         <td valign="center">
         <td valign="center">
             民族
             民族
         </td>
         </td>
-        <td valign="center" colspan="2" >
+        <td valign="center" colspan="2">
             {{$appointinfo->nation}}
             {{$appointinfo->nation}}
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             籍贯
             籍贯
         </td>
         </td>
         <td valign="center" colspan="2">
         <td valign="center" colspan="2">
@@ -63,10 +399,10 @@
         </td>
         </td>
     </tr>
     </tr>
     <tr style="height:52px;page-break-inside:avoid">
     <tr style="height:52px;page-break-inside:avoid">
-        <td valign="center" >
+        <td valign="center">
             政治面貌
             政治面貌
         </td>
         </td>
-        <td valign="center" colspan="4" >
+        <td valign="center" colspan="4">
             @switch($appointinfo->political_affiliation)
             @switch($appointinfo->political_affiliation)
                 @case ('01')
                 @case ('01')
                 中共党员
                 中共党员
@@ -109,16 +445,16 @@
                 @break
                 @break
             @endswitch
             @endswitch
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             入党时间
             入党时间
         </td>
         </td>
         <td valign="center" colspan="2">
         <td valign="center" colspan="2">
             {{ $appointinfo->join_time }}
             {{ $appointinfo->join_time }}
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             户籍所在地
             户籍所在地
         </td>
         </td>
-        <td valign="center" colspan="2" >
+        <td valign="center" colspan="2">
             {{ $appointinfo->house_register }}
             {{ $appointinfo->house_register }}
         </td>
         </td>
     </tr>
     </tr>
@@ -126,7 +462,7 @@
         <td valign="center">
         <td valign="center">
             学历
             学历
         </td>
         </td>
-        <td valign="center" colspan="7" >
+        <td valign="center" colspan="7">
             @switch($appointinfo->education)
             @switch($appointinfo->education)
                 @case ('小学')
                 @case ('小学')
                 小学
                 小学
@@ -160,10 +496,10 @@
                 @break
                 @break
             @endswitch
             @endswitch
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             毕业院校
             毕业院校
         </td>
         </td>
-        <td valign="center" colspan="4" >
+        <td valign="center" colspan="4">
             {{ $appointinfo->school }}
             {{ $appointinfo->school }}
         </td>
         </td>
     </tr>
     </tr>
@@ -171,24 +507,24 @@
         <td valign="center">
         <td valign="center">
             学位
             学位
         </td>
         </td>
-        <td valign="center" colspan="7" >
+        <td valign="center" colspan="7">
             {{ $appointinfo->degree }}
             {{ $appointinfo->degree }}
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             所学专业
             所学专业
         </td>
         </td>
-        <td valign="center" colspan="4" >
+        <td valign="center" colspan="4">
             {{ $appointinfo->pro }}
             {{ $appointinfo->pro }}
         </td>
         </td>
     </tr>
     </tr>
     <tr style="height:52px;page-break-inside:avoid">
     <tr style="height:52px;page-break-inside:avoid">
-        <td valign="center" >
+        <td valign="center">
             联系电话
             联系电话
         </td>
         </td>
         <td valign="center" colspan="7">
         <td valign="center" colspan="7">
             {{ $appointinfo->mobile }}
             {{ $appointinfo->mobile }}
         </td>
         </td>
-        <td valign="center" colspan="1" >
+        <td valign="center" colspan="1">
             电子邮箱
             电子邮箱
         </td>
         </td>
         <td valign="center" colspan="3">
         <td valign="center" colspan="3">
@@ -199,13 +535,13 @@
         <td valign="center">
         <td valign="center">
             通信地址
             通信地址
         </td>
         </td>
-        <td valign="center" colspan="7" >
+        <td valign="center" colspan="7">
             {{ $appointinfo->address }}
             {{ $appointinfo->address }}
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             报名岗位
             报名岗位
         </td>
         </td>
-        <td valign="center" colspan="3" >
+        <td valign="center" colspan="3">
             {{ $appointinfo->code }} {{ $appointinfo->name }}
             {{ $appointinfo->code }} {{ $appointinfo->name }}
         </td>
         </td>
     </tr>
     </tr>
@@ -216,7 +552,7 @@
         <td valign="center" colspan="7">
         <td valign="center" colspan="7">
             {{ $appointinfo->work }}
             {{ $appointinfo->work }}
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             职称或职业资格
             职称或职业资格
         </td>
         </td>
         <td valign="center" colspan="3">
         <td valign="center" colspan="3">
@@ -224,8 +560,8 @@
         </td>
         </td>
     </tr>
     </tr>
     <tr style="height:52px;page-break-inside:avoid">
     <tr style="height:52px;page-break-inside:avoid">
-        <td valign="center" >
-            紧急联系人<br />姓名
+        <td valign="center">
+            紧急联系人<br/>姓名
         </td>
         </td>
         <td valign="center" colspan="7">
         <td valign="center" colspan="7">
             {{ $appointinfo->concat_name }}
             {{ $appointinfo->concat_name }}
@@ -239,7 +575,7 @@
     </tr>
     </tr>
     @if(in_array('expand_special',$recruit->forms))
     @if(in_array('expand_special',$recruit->forms))
         <tr style="height:52px;page-break-inside:avoid">
         <tr style="height:52px;page-break-inside:avoid">
-            <td valign="center" >
+            <td valign="center">
                 是否申请加分
                 是否申请加分
             </td>
             </td>
             <td valign="center" colspan="4">
             <td valign="center" colspan="4">
@@ -252,69 +588,70 @@
             <td valign="center" colspan="3">
             <td valign="center" colspan="3">
                 符合哪一项加分条件
                 符合哪一项加分条件
             </td>
             </td>
-            <td valign="center" colspan="4" >
+            <td valign="center" colspan="4">
                 {{ $appointinfo->condition }}
                 {{ $appointinfo->condition }}
             </td>
             </td>
         </tr>
         </tr>
         <tr style="height:52px;page-break-inside:avoid">
         <tr style="height:52px;page-break-inside:avoid">
-            <td valign="center" >
+            <td valign="center">
                 申请加分佐证材料
                 申请加分佐证材料
             </td>
             </td>
             <td valign="center" colspan="11">
             <td valign="center" colspan="11">
                 <div style="padding: 10px 0">
                 <div style="padding: 10px 0">
                     @foreach($appointinfo->material as $k => $v)
                     @foreach($appointinfo->material as $k => $v)
-                        <img class="attchment" data-key="{{$k}}" data-name="material" src="{{ $v->response->path }}" />
+                        <img class="attchment" data-key="{{$k}}" data-name="material" src="{{ $v->response->path }}"/>
                     @endforeach
                     @endforeach
                 </div>
                 </div>
             </td>
             </td>
         </tr>
         </tr>
     @endif
     @endif
     <tr style="height:275px;page-break-inside:avoid">
     <tr style="height:275px;page-break-inside:avoid">
-        <td valign="center" >
-            &nbsp;个<br />
-            &nbsp;人<br />
-            &nbsp;简<br />
+        <td valign="center">
+            &nbsp;个<br/>
+            &nbsp;人<br/>
+            &nbsp;简<br/>
             &nbsp;历
             &nbsp;历
         </td>
         </td>
-        <td valign="center" colspan="11" >
+        <td valign="center" colspan="11">
             <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->resume }}</textarea>
             <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->resume }}</textarea>
         </td>
         </td>
     </tr>
     </tr>
     @if(in_array('detail',$recruit->forms))
     @if(in_array('detail',$recruit->forms))
         <tr style="height:132px;page-break-inside:avoid">
         <tr style="height:132px;page-break-inside:avoid">
-            <td valign="center" >
-                培<br />
-                训<br />
-                学<br />
-                习<br />
-                经<br />
+            <td valign="center">
+                培<br/>
+                训<br/>
+                学<br/>
+                习<br/>
+                经<br/>
             </td>
             </td>
-            <td valign="center" colspan="11" >
+            <td valign="center" colspan="11">
                 <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->train }}</textarea>
                 <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->train }}</textarea>
             </td>
             </td>
         </tr>
         </tr>
         <tr style="height:94px;page-break-inside:avoid">
         <tr style="height:94px;page-break-inside:avoid">
-            <td valign="center" >
-                奖<br />
-                惩<br />
-                情<br />
+            <td valign="center">
+                奖<br/>
+                惩<br/>
+                情<br/>
             </td>
             </td>
-            <td valign="center" colspan="11" >
-                <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->rewards_and_punishments }}</textarea>
+            <td valign="center" colspan="11">
+                <textarea style="width: 100%;height: 250px"
+                          readonly>{{ $appointinfo->rewards_and_punishments }}</textarea>
             </td>
             </td>
         </tr>
         </tr>
         <tr style="height:159px;page-break-inside:avoid">
         <tr style="height:159px;page-break-inside:avoid">
-            <td valign="center" >
-                个<br />
-                人<br />
-                情<br />
-                况<br />
-                介<br />
+            <td valign="center">
+                个<br/>
+                人<br/>
+                情<br/>
+                况<br/>
+                介<br/>
             </td>
             </td>
-            <td valign="center" colspan="11" >
+            <td valign="center" colspan="11">
                 <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->introduce }}</textarea>
                 <textarea style="width: 100%;height: 250px" readonly>{{ $appointinfo->introduce }}</textarea>
             </td>
             </td>
         </tr>
         </tr>
@@ -323,62 +660,63 @@
         <td valign="center" rowspan="{{ count($appointinfo->family)+1 }}">
         <td valign="center" rowspan="{{ count($appointinfo->family)+1 }}">
             家庭成员及其主要社会关系
             家庭成员及其主要社会关系
         </td>
         </td>
-        <td valign="center" >
+        <td valign="center">
             <p style=";text-align:center">
             <p style=";text-align:center">
                 <span style=";font-family:宋体;font-size:14px">称谓</span>
                 <span style=";font-family:宋体;font-size:14px">称谓</span>
             </p>
             </p>
         </td>
         </td>
-        <td width="200" valign="center" colspan="4" >
+        <td width="200" valign="center" colspan="4">
             <p style=";text-align:center">
             <p style=";text-align:center">
                 <span style=";font-family:宋体;font-size:14px">姓名</span>
                 <span style=";font-family:宋体;font-size:14px">姓名</span>
             </p>
             </p>
         </td>
         </td>
-        <td width="87" valign="center" colspan="2" >
+        <td width="87" valign="center" colspan="2">
             <p style=";text-align:center">
             <p style=";text-align:center">
                 <span style=";font-family:宋体;font-size:14px">出生年月</span>
                 <span style=";font-family:宋体;font-size:14px">出生年月</span>
             </p>
             </p>
         </td>
         </td>
-        <td width="98" valign="center" colspan="1" >
+        <td width="98" valign="center" colspan="1">
             <p style=";text-align:center">
             <p style=";text-align:center">
                 <span style=";font-family:宋体;font-size:14px">政治面貌</span>
                 <span style=";font-family:宋体;font-size:14px">政治面貌</span>
             </p>
             </p>
         </td>
         </td>
-        <td width="241" valign="center" colspan="3" >
+        <td width="241" valign="center" colspan="3">
             <p style=";text-align:center">
             <p style=";text-align:center">
                 <span style=";font-family:宋体;font-size:14px">工作单位及职位</span>
                 <span style=";font-family:宋体;font-size:14px">工作单位及职位</span>
             </p>
             </p>
         </td>
         </td>
     </tr>
     </tr>
     @foreach($appointinfo->family as $k => $v)
     @foreach($appointinfo->family as $k => $v)
-        <tr style="height:52px;page-break-inside:avoid" >
+        <tr style="height:52px;page-break-inside:avoid">
             <td width="85" valign="center">
             <td width="85" valign="center">
                 {{ $v->relation }}
                 {{ $v->relation }}
             </td>
             </td>
-            <td width="200" valign="center" colspan="4" >
+            <td width="200" valign="center" colspan="4">
                 {{ $v->realname }}
                 {{ $v->realname }}
             </td>
             </td>
-            <td width="87" valign="center" colspan="2" >
+            <td width="87" valign="center" colspan="2">
                 {{ $v->birthday }}
                 {{ $v->birthday }}
             </td>
             </td>
-            <td width="98" valign="center" colspan="1" >
+            <td width="98" valign="center" colspan="1">
                 {{ $v->political_affiliation }}
                 {{ $v->political_affiliation }}
             </td>
             </td>
-            <td width="241" valign="center" colspan="3" >
+            <td width="241" valign="center" colspan="3">
                 {{ $v->work }}
                 {{ $v->work }}
             </td>
             </td>
         </tr>
         </tr>
     @endforeach
     @endforeach
     @if(in_array('identification',$recruit->forms))
     @if(in_array('identification',$recruit->forms))
         <tr style="height:52px;page-break-inside:avoid">
         <tr style="height:52px;page-break-inside:avoid">
-            <td valign="center" >
-                身份证明<br />
+            <td valign="center">
+                身份证明<br/>
                 (身份证或其他身份证明证件)
                 (身份证或其他身份证明证件)
             </td>
             </td>
             <td valign="center" colspan="11">
             <td valign="center" colspan="11">
                 <div style="padding: 10px 0">
                 <div style="padding: 10px 0">
                     @foreach($appointinfo->identification as $k => $v)
                     @foreach($appointinfo->identification as $k => $v)
                         @if(!empty($v))
                         @if(!empty($v))
-                            <img class="attchment" data-key="{{$k}}" data-name="identification" src="{{ $v->response->path }}" />
+                            <img class="attchment" data-key="{{$k}}" data-name="identification"
+                                 src="{{ $v->response->path }}"/>
                         @endif
                         @endif
                     @endforeach
                     @endforeach
                 </div>
                 </div>
@@ -387,15 +725,16 @@
     @endif
     @endif
     @if(in_array('education_certification',$recruit->forms))
     @if(in_array('education_certification',$recruit->forms))
         <tr style="height:52px;page-break-inside:avoid">
         <tr style="height:52px;page-break-inside:avoid">
-            <td valign="center" >
-                学历证明<br />
+            <td valign="center">
+                学历证明<br/>
                 (学历、学位、学信网及考试要求的证明文件)
                 (学历、学位、学信网及考试要求的证明文件)
             </td>
             </td>
             <td valign="center" colspan="11">
             <td valign="center" colspan="11">
                 <div style="padding: 10px 0">
                 <div style="padding: 10px 0">
                     @foreach($appointinfo->education_certification as $k => $v)
                     @foreach($appointinfo->education_certification as $k => $v)
                         @if(!empty($v))
                         @if(!empty($v))
-                            <img class="attchment" data-key="{{$k}}" data-name="education_certification" src="{{ $v->response->path }}" />
+                            <img class="attchment" data-key="{{$k}}" data-name="education_certification"
+                                 src="{{ $v->response->path }}"/>
                         @endif
                         @endif
                     @endforeach
                     @endforeach
                 </div>
                 </div>
@@ -404,15 +743,16 @@
     @endif
     @endif
     @if(in_array('other_certification',$recruit->forms))
     @if(in_array('other_certification',$recruit->forms))
         <tr style="height:52px;page-break-inside:avoid">
         <tr style="height:52px;page-break-inside:avoid">
-            <td valign="center" >
-                其他证明<br />
+            <td valign="center">
+                其他证明<br/>
                 (职业资格、职称、工作、党员、英语水平等证明)
                 (职业资格、职称、工作、党员、英语水平等证明)
             </td>
             </td>
             <td valign="center" colspan="11">
             <td valign="center" colspan="11">
                 <div style="padding: 10px 0">
                 <div style="padding: 10px 0">
                     @foreach($appointinfo->other_certification as $k => $v)
                     @foreach($appointinfo->other_certification as $k => $v)
                         @if(!empty($v))
                         @if(!empty($v))
-                            <img class="attchment" data-key="{{$k}}" data-name="other_certification" src="{{ $v->response->path }}" />
+                            <img class="attchment" data-key="{{$k}}" data-name="other_certification"
+                                 src="{{ $v->response->path }}"/>
                         @endif
                         @endif
                     @endforeach
                     @endforeach
                 </div>
                 </div>
@@ -421,10 +761,10 @@
     @endif
     @endif
     </tbody>
     </tbody>
 </table>
 </table>
-
+@endif
 <script>
 <script>
     let photos = {!!json_encode($photos)!!};
     let photos = {!!json_encode($photos)!!};
-    $('.attchment').click(function(){
+    $('.attchment').click(function () {
         let key = $(this).data('key');
         let key = $(this).data('key');
         let name = $(this).data('name');
         let name = $(this).data('name');
         let photo = photos[name];
         let photo = photos[name];
@@ -441,7 +781,7 @@
         });
         });
     });
     });
 
 
-    $(document).on("click", ".icon img", function(e) {
+    $(document).on("click", ".icon img", function (e) {
         num = (num + 90) % 360;
         num = (num + 90) % 360;
         $("#layui-layer-photos").css('transform', 'rotate(' + num + 'deg)');
         $("#layui-layer-photos").css('transform', 'rotate(' + num + 'deg)');
 
 
@@ -449,20 +789,20 @@
     });
     });
 
 
 
 
-    $(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg img", function(e) {
+    $(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg img", function (e) {
         var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
         var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
             (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox
             (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox
         var imagep = $(".layui-layer-phimg").parent().parent();
         var imagep = $(".layui-layer-phimg").parent().parent();
         var image = $(".layui-layer-phimg").parent();
         var image = $(".layui-layer-phimg").parent();
         var h = image.height();
         var h = image.height();
         var w = image.width();
         var w = image.width();
-        if(delta > 0) {
+        if (delta > 0) {
 
 
             h = h * 1.05;
             h = h * 1.05;
             w = w * 1.05;
             w = w * 1.05;
 
 
-        } else if(delta < 0) {
-            if(h > 100) {
+        } else if (delta < 0) {
+            if (h > 100) {
                 h = h * 0.95;
                 h = h * 0.95;
                 w = w * 0.95;
                 w = w * 0.95;
             }
             }

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно