check_token(); $id = !empty($_REQUEST['id']) ? $_REQUEST['id'] : adminmsg("你没有选择简历!", 1); if (!empty($_REQUEST['delete'])) { check_permissions($_SESSION['admin_purview'], "resume_del"); if ($n = del_resume_temp($id)) { adminmsg("删除成功!该删除 {$n} 行", 2); } else { adminmsg("删除失败!", 0); } } if (!empty($_POST['set_audit'])) { if (!is_array($id)) { $id = array($id); } foreach ($id as $item) { import_resume_temp($item); } $link[0]['text'] = "返回简历列表"; $link[0]['href'] = '?act=list_temp'; adminmsg('简历审核成功!', 1, $link); } } elseif ($act == 'resume_temp_show') { require_once QISHI_ROOT_PATH . '/genv/func_resume_upload.php'; check_permissions($_SESSION['admin_purview'], "resume_show"); $id = !empty($_REQUEST['id']) ? intval($_REQUEST['id']) : adminmsg("你没有选择简历!", 1); //$uid =intval($_REQUEST['uid']); $smarty->assign('pageheader', "查看简历"); $resume = get_resume_temp_basic($id); if (empty($resume)) { $link[0]['text'] = "返回简历列表"; $link[0]['href'] = '?act=list_temp';
function update_resume_num($id) { $count = resume_log_num($id); \ORM::raw_execute(vsprintf("update %s set num=%d where id=%d", array(table("resume_temp"), $count, $id))); if ($count >= 3) { update_resume_status($id); //如果有三条都通过的记录,直接导入简历; $rs = \ORM::for_table(table("resume_check_log"))->where("rid", $id)->where("pass", 1)->find_array(); if ($rs && count($rs) >= 3) { import_resume_temp($id); } } }
check_token(); $id = !empty($_REQUEST['id']) ? $_REQUEST['id'] : adminmsg("你没有选择简历!", 1); if (!empty($_REQUEST['delete'])) { check_permissions($_SESSION['admin_purview'], "resume_del"); if ($n = del_resume_temp($id)) { adminmsg("删除成功!该删除 {$n} 行", 2); } else { adminmsg("删除失败!", 0); } } if (!empty($_POST['set_audit'])) { if (!is_array($id)) { $id = array($id); } foreach ($id as $item) { $result = import_resume_temp($item); } $link[0]['text'] = "返回简历列表"; $link[0]['href'] = '?act=list_temp'; adminmsg('简历审核成功!', 1, $link); } } elseif ($act == 'resume_temp_show') { require_once QISHI_ROOT_PATH . '/genv/func_resume_upload.php'; check_permissions($_SESSION['admin_purview'], "resume_show"); $id = !empty($_REQUEST['id']) ? intval($_REQUEST['id']) : adminmsg("你没有选择简历!", 1); //$uid =intval($_REQUEST['uid']); $smarty->assign('pageheader', "查看简历"); $resume = get_resume_temp_basic($id); if (empty($resume)) { $link[0]['text'] = "返回简历列表"; $link[0]['href'] = '?act=list_temp';