'status','name'=>'审核状态', 'value' => array('0'=>'未审核','1'=>'已审核','2'=>'未通过')); $search[] = array('param'=>'job','name'=>'职位类型','value'=>array('1'=>'普通','2'=>'高级','3'=>'猎头')); $lo_time = array('1'=>'今天','3'=>'最近三天','7'=>'最近七天','15'=>'最近半月','30'=>'最近一个月'); $search[] = array('param'=>'zx','name'=>'咨询时间','value'=>$lo_time); $f_time = array('1'=>'今天','3'=>'最近三天','7'=>'最近七天','15'=>'最近半月','30'=>'最近一个月'); $search[] = array('param'=>'hf','name'=>'回复时间','value'=>$f_time); $this -> yunset('search_list',$search); } /** * 会员-个人-求职咨询: 列表 */ function index_action() { $this -> set_search(); if($_GET['keyword']){ $keytype = intval($_GET['type']); $keyword = trim($_GET['keyword']); if ($keytype == 1){ $where['username'] = array('like',$keyword); }elseif ($keytype == 2){ $where['job_name'] = array('like',$keyword); }elseif ($keytype == 3){ $where['com_name'] = array('like',$keyword); }elseif ($keytype == 4){ $where['content'] = array('like',$keyword); }elseif ($keytype == 5){ $where['reply'] = array('like',$keyword); } $urlarr['keytype'] = $keytype; $urlarr['keyword'] = $keyword; } if($_GET['zx']){ $zx = intval($_GET['zx']); if($zx == 1){ $where['datetime'] = array('>=',strtotime('today')); }else{ $where['datetime'] = array('>=',strtotime('-'.$zx.' day')); } $urlarr['zx'] = $zx; } if($_GET['hf']){ $hf = intval($_GET['hf']); if($hf == 1){ $where['reply_time'] = array('>=',strtotime('today')); }else{ $where['reply_time'] = array('>=',strtotime('-'.$hf.' day')); } $urlarr['hf'] = $hf; } if($_GET['job']){ $where['type'] = intval($_GET['job']); $urlarr['job'] = $_GET['job']; } if(isset($_GET['status'])){ $where['status'] = intval($_GET['status']); $urlarr['status'] = $_GET['status']; } $urlarr = $_GET; $urlarr['page'] = '{{page}}'; $pageurl = Url($_GET['m'],$urlarr,'admin'); //提取分页 $pageM = $this -> MODEL('page'); $pages = $pageM -> pageList('msg',$where,$pageurl,$_GET['page']); if($pages['total'] > 0){ if($_GET['order']){ $where['orderby'] = 'id,'.$_GET['order']; $urlarr['order'] = $_GET['order']; }else{ $where['orderby'] = 'id,desc'; } $where['limit'] = $pages['limit']; $msgM = $this->MODEL('msg'); $List = $msgM -> getList($where); $this -> yunset('mes_list',$List['list']); } $this->yuntpl(array('admin/admin_msg')); } /** * 会员-个人-求职咨询: 删除求职咨询 */ function del_action() { if ($_GET['id']){ $this -> check_token(); $id = intval($_GET['id']); }elseif ($_POST['del']){ $id = $_POST['del']; } $msgM = $this->MODEL('msg'); $return = $msgM -> delInfo($id); $this -> layer_msg($return['msg'],$return['errcode'],$return['layertype'],$_SERVER['HTTP_REFERER']); } /** * 会员-个人-求职咨询: 求职咨询预览 */ function msgshow_action() { if($_POST['id']){ $id = intval($_POST['id']); $msgM = $this->MODEL('msg'); $return = $msgM -> getInfo(array('id'=>$id)); echo json_encode($return);die; } } /** * 返回审核原因 */ function lockinfo_action(){ $msgM = $this -> MODEL('msg'); $info = $msgM -> getInfo(array('id' => intval($_POST['id'])), array('field'=>'`statusbody`')); echo $info['statusbody'];die; } /** * 修改 */ function msgedit_action(){ $msgM = $this -> MODEL('msg'); $data = array( 'content' => trim($_POST['beizhu']), 'reply' => trim($_POST['reply']), 'reply_time' => time() ); $return = $msgM -> eidtMsg($_POST['id'], $data); $this->ACT_layer_msg($return['msg'], $return['errcode'],$_SERVER['HTTP_REFERER'], 2, 1); } /** * 审核操作 */ function status_action() { $msgM = $this->MODEL('msg'); $statusData = array( 'status' => intval($_POST['status']), 'statusbody' => trim($_POST['statusbody']) ); $return = $msgM -> statusMsg($_POST['pid'], $statusData); $this->ACT_layer_msg($return['msg'], $return['errcode'],$_SERVER['HTTP_REFERER'], 2, 1); } } ?>