public function deleteNotice() { $rows = $_POST['rows']; foreach ($rows as $row) { $id = $row['id']; $res = M('notice')->delete($id); if (!$res) { $this->ajaxReturn('', $row['ritle'] . '删除失败', 0); } resumeLog($id, 'NOTICE_DELETE', $row['title']); } }
public function getCurAdmission() { $userId = $_SESSION['user']['id']; $where['user_id'] = $userId; $status = M('personal_information')->where($where)->getField('status'); $remark = M('personal_information')->where($where)->getField('remark'); $seat = M('admission')->where($where)->getField('seat'); if (!empty($seat) && $status == 4) { resumeLog($userId, 'MAKE_ADMISSION'); exit('1'); } else { if ($status == 2) { $status = statusToString($status, $remark); exit($status); } else { if ($status == 1) { exit('简历还未审核'); } else { if ($status == 3) { exit('还未分配考场'); } else { if ($status == 0) { exit('简历还未提交'); } else { if ($status == 5) { $status = statusToString($status, $remark); exit($status); } else { if (empty($seat) && $status == 4) { exit('考场已分配,座位号还未分配'); } } } } } } } /* if($status==0){ exit('nosubmit'); }else if(is_null($admission)){ exit('notest'); }elseif (empty($admission['seat'])){ exit('noseat'); }else{ } */ }
public function deleteResume() { $rows = $_POST['rows']; foreach ($rows as $row) { $userId = intval($row['user_id']); $name = addslashes($row['name']); $res = M('personal_information')->where("user_id={$userId}")->setField('status', -1); if (!$res) { $this->ajaxReturn('', "{$name}删除失败", 0); } resumeLog($userId, 'DELETE_RESUME'); } }
public function checkNoPass() { $userId = isset($_POST['userId']) ? $_POST['userId'] : ''; $remark = isset($_POST['remark']) ? $_POST['remark'] : ''; $rewrite = isset($_POST['rewrite']) ? $_POST['rewrite'] : ''; $where['user_id'] = $userId; if ($rewrite == 1) { M('personal_information')->where($where)->setField(array('status' => 5, 'remark' => $remark)); } else { M('personal_information')->where($where)->setField(array('status' => 2, 'remark' => $remark)); } resumeLog($userId, 'RESUME_CHECKNOPASS', $remark); }