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


PHP AdminController::getGraduateArr方法代码示例

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


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

示例1: _initialize

 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();
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:12,代码来源:PostController.class.php

示例2: index

 /**
  * 简历列简历搜索
  * @author Martin.Cheng <martin.cheng@gaodun.cn>
  */
 public function index()
 {
     $where = array();
     //生成搜索数组条件
     $search_name = I('post.n') ? I('post.n') : I('get.n');
     $search_school = I('post.s') ? I('post.s') : I('get.s');
     $search_major = I('post.m') ? I('post.m') : I('get.m');
     $search_education = I('post.e') ? I('post.e') : I('get.e');
     if (!empty($search_name)) {
         $where['student.name'] = array('like', "%" . $search_name . "%");
         $map['n'] = $search_name;
         $this->assign('search_n', $search_name);
     }
     if (!empty($search_school)) {
         $where['student.graduate_school'] = array('like', "%" . $search_school . "%");
         $map['s'] = $search_school;
         $this->assign('search_s', $search_school);
     }
     if (!empty($search_major)) {
         $where['student.detail_major'] = array('like', "%" . $search_major . "%");
         $map['m'] = $search_major;
         $this->assign('search_m', $search_major);
     }
     if (!empty($search_education)) {
         $where['graduate_year'] = $search_education;
         $map['e'] = $search_education;
         $this->assign('search_e', $search_education);
     }
     $where = !empty($where) ? $where : array();
     //$where['resume.valid_status'] = 1; //证书状态为1
     $Resume_total = $this->ResumeModel->getResumeTotal($where);
     //列表总数量
     $page = isset($_GET['p']) ? intval(htmlspecialchars(strip_tags($_GET['p']))) : '';
     //获取url的分页参数
     $page = max(1, $page);
     $page = min($page, ceil($Resume_total / $this->page_number));
     // 获取合法的分页数
     $Resume_data = $this->ResumeModel->getResumeList($where, $page, $this->page_number);
     // 分页数据
     $map = !empty($map) ? $map : array();
     //生成分页连接参数
     $Page = new PageAdmin($Resume_total, $this->page_number, $map);
     //分页类实例化
     $this->assign('page', $Page->show());
     // 分页显示输出
     $Resume_data = self::eachdata($Resume_data);
     $this->assign('major', AdminController::getGraduateArr());
     $this->assign('resume', $Resume_data);
     $this->display();
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:54,代码来源:ResumeController.class.php

示例3: 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


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