Exemplo n.º 1
0
 protected function getBaseInfo($account_id = '')
 {
     $base_info = $this->StudentModel->getBaseInfo($account_id);
     //简历基本信息
     if ($base_info) {
         $base_info['gender_text'] = getGerderText($base_info['gender']);
         $base_info['current_grade_text'] = getGradeText($base_info['graduate_year'] ? $base_info['graduate_year'] : '');
         $base_info['education_text'] = getDegreeTextSTU($base_info['education']);
         $base_info['politics_status_text'] = getPoliticsText($base_info['politics_status']);
         $nothing = '';
         $base_info['major_type_text'] = getMajorTypeText($base_info['major_type'], $nothing);
         $base_info['detail_major'] = trim($base_info['detail_major']);
         $base_info['living_city'] = regionIdToname($base_info['living_city']);
         $base_info['gender'] = empty($base_info['gender']) ? 1 : $base_info['gender'];
         $this->assign('baseInfo', $base_info);
         $this->assign('headpic', $this->StudentModel->studentAvatar());
     }
 }
Exemplo n.º 2
0
function graduateYearPost($data)
{
    $string = '';
    if (!$data) {
        return $string;
    }
    foreach ($data as $k => $v) {
        $string .= getGradeText($v) . '毕业、';
    }
    return rtrim($string, '、');
}
 public function forwardResume()
 {
     $id = I('post.id');
     if (!is_numeric($id)) {
         $id = enInt($id);
     }
     $email = I('post.email');
     $verify_code = rand(100000, 999999);
     $data = array('resume_post_id' => $id, 'forward_email' => $email, 'verify_code' => $verify_code, 'create_time' => dateTime(), 'forward_type' => 1);
     $result = $this->ResumePostModel->resumeForwardInfo($id);
     $forward_id = $this->ResumeForwardModel->add($data);
     $result['verify_code'] = $data['verify_code'];
     $result['forward_id'] = $forward_id;
     $result['education_text'] = getDegreeTextSTU($result['education']);
     $result['graduate_text'] = getGradeText($result['graduate_year']);
     $result['url'] = '/ResumeForward/index/id/' . enInt($forward_id);
     $result['contact_mobile'] = !empty($result['contact_mobile']) ? $result['contact_mobile'] : $result['mobile'];
     $this->EnterpriseTraceController->resumeForward($result, $email);
 }
Exemplo n.º 4
0
 public function getBaseInfo($account_id = '')
 {
     $base_info = $this->StudentModel->getBaseInfo($account_id);
     //简历基本信息
     if ($base_info) {
         $base_info['gender_text'] = getGerderText($base_info['gender']);
         $base_info['current_grade_text'] = getGradeText($base_info['graduate_year'] ? $base_info['graduate_year'] : '');
         $base_info['education_text'] = getDegreeTextSTU($base_info['education']);
         $base_info['politics_status_text'] = getPoliticsText($base_info['politics_status']);
         $nothing = '';
         $base_info['major_type_text'] = getMajorTypeText($base_info['major_type'], $nothing);
         $base_info['detail_major'] = trim($base_info['detail_major']);
         return $base_info;
     }
 }