| | |
| | | |
| | | $id = $data['id']; |
| | | $uid = intval($data['uid']); |
| | | |
| | | unset($post['com_id']); |
| | | $spid = !empty($data['spid']) ? intval($data['spid']) : ''; |
| | | |
| | |
| | | |
| | | $com = $this->select_once('company', array('uid' => $uid), '`uid`,`name`, `r_status`,`logo`,`provinceid`,`pr`,`mun`,`x`,`y`,`did`'); |
| | | |
| | | |
| | | if ($data['utype'] == 'admin') { //后台修改添加不需要审核 |
| | | if ($post['r_status'] == 1) { |
| | | |
| | |
| | | |
| | | // 查询企业认证是否认证成功 |
| | | $companycert = $this->select_once('company_cert', array('uid' => $uid, 'type' => 3), '`uid`,`type`,`status`'); |
| | | |
| | | // 在企业用户设置里企业发布职位审核未开启的情况下,未审核和未通过的企业,发布职位默认是未审核的。 |
| | | if ($com['r_status'] != 1) { |
| | | |
| | |
| | | $this -> update_once('wxpub_twtask',array('jobname'=>$job_data['name'],'comname'=>$job_data['com_name']),array('jobid'=>$id)); |
| | | $this -> update_once('fav_job',array('job_name'=>$job_data['name']),array('job_id'=>$id)); |
| | | // 修改名企更新时间 |
| | | $this -> update_once('hot_job',array('lastupdate'=>time()),array('uid'=>$uid)); |
| | | $this -> update_once('hotjob',array('lastupdate'=>time()),array('uid'=>$uid)); |
| | | } |
| | | |
| | | if ($data['utype'] != 'admin') { |
| | |
| | | <?php |
| | | |
| | | |
| | | class jobadd_controller extends company |
| | | { |
| | | class jobadd_controller extends company { |
| | | |
| | | function index_action() |
| | | { |
| | | function index_action() { |
| | | |
| | | $company = $this -> comInfo['info']; |
| | | if(!$company['name'] || ! $company['provinceid'] || (!$company['linktel'] && ! $company['linkphone'])){ |
| | |
| | | $this->com_tpl('jobadd'); |
| | | } |
| | | |
| | | function edit_action() |
| | | { |
| | | function edit_action() { |
| | | |
| | | $jobM = $this->MODEL('job'); |
| | | $statis = $this->company_satic(); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | $company = $this -> comInfo['info']; |
| | | if ($company['linktel'] == '' && $company['linkphone']) { |
| | | $company['linktel'] = $company['linkphone']; |
| | |
| | | } |
| | | |
| | | function save_action(){ |
| | | |
| | | if ($_POST) { |
| | | |
| | | $company = $this -> comInfo['info']; |
| | |
| | | 'zp_maxage' => intval($_POST['zp_maxage']) |
| | | |
| | | |
| | | |
| | | ); |
| | | if($this->config['joblock']!=1 || empty($_POST['id'])){ |
| | | $post['name'] = $_POST['name']; |
| | |
| | | } |
| | | } |
| | | |
| | | function getJobNum_action() |
| | | { |
| | | function getJobNum_action() { |
| | | if ($_POST['uid']) { |
| | | |
| | | $statis = $this->company_satic(); |
| | |
| | | /** |
| | | * @desc 发布职位条件查询 |
| | | */ |
| | | function jobCheck_action() |
| | | { |
| | | function jobCheck_action() { |
| | | |
| | | $jobM = $this->MODEL('job'); |
| | | $statisM= $this->MODEL('statis'); |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | ?> |