uid; $urlarr['c'] = $_GET['c']; $urlarr['page'] = '{{page}}'; $pageurl = Url('member',$urlarr); $pageM = $this -> MODEL('page'); $pages = $pageM -> pageList('finder',$where,$pageurl,$_GET['page']); if($pages['total'] > 0){ $where['orderby'] = 'id'; $where['limit'] = $pages['limit']; $finderM = $this -> MODEL('finder'); $List = $finderM -> getList($where); } if($this->config['com_finder'] && $this->config['com_finder']>count($List)){ $this->yunset("addnew",'1'); } $this->yunset('config_com_finder_num',$this->config['com_finder']); $this->public_action(); $this->company_satic(); $this->yunset("finder",$List); $this->com_tpl('finder'); } //添加修改简历搜索器页面 function edit_action(){ $id = intval($_GET['id']); $finderM = $this -> MODEL('finder'); $list = $finderM -> getInfo(array('id'=>$id,'uid'=>$this->uid)); if($list['info']['para']){ $this->yunset("parav",$list['parav']); } $this->yunset("info",$list['info']); $this->yunset($list['cache']); $this->public_action(); $this->com_tpl('finderinfo'); } //保存简历搜索器 function save_action(){ if($_POST['submitBtn']){ $finderM = $this -> MODEL('finder'); $_POST = $this->post_trim($_POST); $data = array( 'uid' => $this->uid, 'usertype' => $this->usertype, 'id' => intval($_POST['id']), 'name' => $_POST['name'], 'keyword' => $_POST['keyword'], 'hy' => intval($_POST['hy']), 'job1' => intval($_POST['job1']), 'job1_son' => intval($_POST['job1_son']), 'job_post' => intval($_POST['job_post']), 'provinceid' => intval($_POST['provinceid']), 'cityid' => intval($_POST['cityid']), 'three_cityid' => intval($_POST['three_cityid']), 'minsalary' => $_POST['minsalary'], 'maxsalary' => $_POST['maxsalary'], 'edu' => intval($_POST['edu']), 'exp' => intval($_POST['exp']), 'sex' => intval($_POST['sex']), 'report' => intval($_POST['report']), 'uptime' => $_POST['uptime'] ); $return = $finderM -> addInfo($data); $this->ACT_layer_msg($return['msg'],$return['errcode'],$return['url']); } } //删除简历搜索器 function del_action(){ if($_GET['id']){ $id = intval($_GET['id']); $finderM = $this->MODEL('finder'); $return = $finderM -> delInfo($id,array('uid'=>$this->uid,'usertype'=>$this->usertype)); $this -> layer_msg($return['msg'],$return['errcode'],$return['layertype'],$_SERVER['HTTP_REFERER']); } } } ?>