public function _initialize()
 {
     parent::_initialize();
     $this->PostModel = D('Post');
     $this->RegionsModel = D('Regions');
     $this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
     $this->salary_range = parent::getSalaryArr();
     $this->current_grade = parent::getGradeArr();
     $this->graduate_year = parent::getGraduateArr();
     $this->week_available = parent::getWorkDayArr();
     $this->enterprise_list = parent::getEnterpriseList();
 }
 /**
  * 加载学员信息编辑页面
  * @author Martin.Cheng <*****@*****.**>
  */
 public function edit()
 {
     $field = array();
     $degree = AdminController::getDegreeArr2();
     $major_type = D('MajorType')->getMajorTypeSelect();
     $grade_data = AdminController::getGradeArr();
     $workday_data = AdminController::getWorkDayArr();
     $salary_data = AdminController::getSalaryArr();
     $schooljob = D('SchoolJob')->getSchoolJobAll();
     $graduate_data = AdminController::getGraduateArr();
     $postcategory = D('PostCategory')->getPostTypeAll();
     $parentcity = D('Regions')->parentCity();
     $scale = D("Scale")->getScale();
     $industry = D("Industry")->getIndustrySelect();
     $postcate = D("PostCategory")->getParentCate();
     $schooljob = D("SchoolJob")->schoolJobOpt();
     $subscribe = D('PostSubscribe')->getScribeInfo(array('student_id' => I('get.id'), 'info_type' => 1));
     if ($subscribe) {
         $cur_city = D('Regions')->getParentRegion($subscribe['expect_city']);
         $child_city = D('Regions')->childCity($cur_city['parent_id']);
         $adddress = $subscribe['expect_city'] ? AdminController::expectCityMatch($subscribe['expect_city']) : '';
         $this->assign('curcity', $child_city);
         $this->assign('parentcity', $cur_city['parent_id']);
         $this->assign('address', $adddress);
     }
     $info = $this->StudentModel->getStudentinfo(I('get.id'), $field);
     $this->assign('degree', $degree);
     $this->assign('majortype', $major_type);
     $this->assign('schooljob', $schooljob);
     $this->assign('grade', $grade_data);
     $this->assign('graduate', $graduate_data);
     $this->assign('city', $parentcity);
     $this->assign('workday', $workday_data);
     $this->assign('postcategory', $postcategory);
     $this->assign('salary', $salary_data);
     $this->assign('scale', $scale);
     $this->assign('industry', $industry);
     $this->assign('postcate', $postcate);
     $this->assign('schooljob', $schooljob);
     $this->assign('user', $info);
     $this->assign('scribe', $subscribe);
     $this->assign('eduhtml', $this->stuEduList(I('get.id')));
     $this->assign('prihtml', $this->stuPriList(I('get.id')));
     $this->assign('ticehtml', $this->stuTiceList(I('get.id')));
     //$this->assign('acthtml',$this->stuActList(I('get.id')));
     $this->assign('jobhtml', $this->stuJobList(I('get.id')));
     $this->assign('cardhtml', $this->stuCardList(I('get.id')));
     $this->display();
 }
 protected function eachdata($Resume_data)
 {
     foreach ($Resume_data as $k => $v) {
         $Resume_data[$k]['education'] = AdminController::getDegreeArr2($Resume_data[$k]['education']);
         $Resume_data[$k]['graduate_year'] = $Resume_data[$k]['graduate_year'] ? AdminController::getGradeArr($Resume_data[$k]['graduate_year']) : '';
         $Resume_data[$k]['major_text'] = AdminController::getCardType($Resume_data[$k]['major_type']);
         $Resume_data[$k]['view_uri'] = C('FRONT_URL') . '/Student/resume/role/2/id/' . (int) $v['pkid'];
         if ($Resume_data[$k]['politics_status'] == 1) {
             $Resume_data[$k]['politics_status'] = '党员';
         } else {
             $Resume_data[$k]['politics_status'] = '其他';
         }
         if ($Resume_data[$k]['gender'] == 1) {
             $Resume_data[$k]['gender'] = '男';
         } else {
             $Resume_data[$k]['gender'] = '女';
         }
     }
     return $Resume_data;
 }