当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::expectCityMatch方法代码示例

本文整理汇总了PHP中Admin\Controller\AdminController::expectCityMatch方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::expectCityMatch方法的具体用法?PHP AdminController::expectCityMatch怎么用?PHP AdminController::expectCityMatch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Admin\Controller\AdminController的用法示例。


在下文中一共展示了AdminController::expectCityMatch方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: edit

 /**
  * 加载学员信息编辑页面
  * @author Martin.Cheng <martin.cheng@gaodun.cn>
  */
 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();
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:53,代码来源:StudentController.class.php

示例2: info

 /**
  * 加载简历页面
  * @author 致远<george.zou@gaodun.cn>
  */
 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();
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:54,代码来源:ResumeController.class.php


注:本文中的Admin\Controller\AdminController::expectCityMatch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。