public function get_recommeded_list()
 {
     $page = $_POST['page'];
     $size = $_POST['number'];
     $start = ($page - 1) * $size;
     $userinfo = $_SESSION['userinfo'];
     $uid = $userinfo['userid'];
     $username = $userinfo['username'];
     $resumeOb = new ResumeModel();
     $num = $resumeOb->resume_count($uid);
     //得到列表总条数
     $limit = "{$start},{$size}";
     $result = $resumeOb->recommend_list($uid, $limit);
     //var_dump($result);
     if (empty($result)) {
         $result = array();
     }
     $data = array('count' => $num, 'result' => $result);
     echo json_encode($data);
 }
 public function get_resume_list()
 {
     //得到职位信息id
     $jobid = $_POST['jobid'];
     $page = $_POST['page'];
     $size = $_POST['number'];
     $start = ($page - 1) * $size;
     $userinfo = $_SESSION['userinfo'];
     $uid = $userinfo['userid'];
     $username = $userinfo['username'];
     $resumeOb = new ResumeModel();
     $num = $resumeOb->resume_count($uid);
     //得到列表总条数
     $limit = "{$start},{$size}";
     $result = $resumeOb->resume_list($uid, $limit, $jobid);
     //var_dump($result);
     if (empty($result)) {
         $result = array();
     }
     foreach ($result as &$v) {
         $v['isRecord'] = $this->resume_status($v['id'], $jobid);
     }
     $data = array('count' => $num, 'result' => $result);
     echo json_encode($data);
 }