/** * 加载简历页面 * @author 致远<*****@*****.**> */ public function info() { $where['resume.pkid'] = I('get.id'); $info = $this->ResumeModel->getResumeInfo($where); $data = self::eachdata($info); $education = D('Education')->getStuEdu($info[0]['student_id']); //教育背景 foreach ($education as $k => $v) { $education[$k]['degree'] = $v['degree'] ? AdminController::getMajorArr($v['degree']) : ''; } $practice = D('Practice')->getStuPractice($info[0]['student_id']); $prize = D('PrizeExperience')->stuPrize($info[0]['student_id']); $activity = D('ActivityExperience')->getStuActivity($info[0]['student_id']); $card = D('StudentCertificate')->stuCertificate($info[0]['student_id']); $cardModel = D('Certificate'); foreach ($card as $k => $v) { $card_title = $cardModel->getCertificateinfo($v['certificate_id'], array('full_name')); $card[$k]['title'] = $card_title['full_name']; if ($v['status'] == 1) { $card[$k]['status'] = '在读'; } else { $card[$k]['status'] = '通过'; } } $schoolModel = D("SchoolJob"); $school = D("JobExperience")->stuJobExperience($info[0]['student_id']); foreach ($school as $k => $v) { $job = $schoolModel->getSchoolJobinfo($v['job_id']); $school[$k]['job'] = $job['title']; } $subscribe = D('PostSubscribe')->getScribeInfo(array('student_id' => $info[0]['student_id'], 'info_type' => 1)); if ($subscribe) { $city['parent'] = D('Regions')->getParentRegion($subscribe['expect_city']); $city['child'] = D('Regions')->getParentRegion($city['parent']['parent_id']); $subscribe['address'] = $subscribe['expect_city'] ? AdminController::expectCityMatch($subscribe['expect_city']) : ''; // $v['expect_city']?AdminController::expectCityMatch($v['expect_city']):''; $subscribe['salary_number'] = AdminController::getSalaryArr($subscribe['salary_range']); $subscribe['week_number'] = AdminController::getWorkDayArr($subscribe['week_available']); $subscribe['category'] = D('PostCategory')->getCategoryText($subscribe['expect_category']); } $this->assign('education', $education); $this->assign('practice', $practice); $this->assign('prize', $prize); $this->assign('activity', $activity); $this->assign('card', $card); $this->assign('school', $school); $this->assign('subscribe', $subscribe); $this->assign('resume', $data[0]); $this->display(); }