Пример #1
0
    exit;
}
if ($_CFG['login_hunter_audit_email'] && $user['email_audit'] == "0" && $act != 'authenticate' && $act != 'user_email' && $act != 'user_mobile') {
    $link[0]['text'] = "认证邮箱";
    $link[0]['href'] = 'hunter_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['site_dir'];
    showmsg('您的邮箱未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$sms = get_cache('sms_config');
if ($_CFG['login_hunter_audit_mobile'] && $user['mobile_audit'] == "0" && $act != 'authenticate' && $act != 'user_mobile' && $act != 'user_email' && $sms['open'] == "1") {
    $link[0]['text'] = "认证手机";
    $link[0]['href'] = 'hunter_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['site_dir'];
    showmsg('您的手机未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$smarty->assign('sms', $sms);
$hunter_profile = get_hunter($_SESSION['uid']);
if (!empty($hunter_profile)) {
    $hunter_profile = array_map("addslashes", $hunter_profile);
    $smarty->assign('hunter_url', url_rewrite('QS_huntershow', array('id' => $hunter_profile['id'])));
}
$smarty->assign('userindexurl', 'hunter_index.php');
if ($_SESSION['handsel_userlogin']) {
    //第一次登录提示
    $smarty->assign('handsel_userlogin', $_SESSION['handsel_userlogin']);
    unset($_SESSION['handsel_userlogin']);
}
Пример #2
0
	var title = $(this).attr("title");
	$("#jobsid").val(id);
	$(".jobtit").html(title);
	$('.dropdown-list').slideUp('fast');
});
</script>
<?php 
} elseif ($act == "invited_save") {
    $jobs_id = isset($_GET['jobs_id']) ? intval($_GET['jobs_id']) : exit("err");
    $notes = isset($_GET['notes']) ? trim($_GET['notes']) : "";
    $pms_notice = intval($_GET['pms_notice']);
    $interview_time = trim($_GET['interview_time']);
    if (check_interview($id, $jobs_id, $_SESSION['uid'])) {
        exit("您已对该简历经行过面试邀请,不能重复邀请!");
    }
    $hunter_profile = get_hunter(intval($_SESSION['uid']));
    $jobs = get_jobs_one($jobs_id);
    $jobs = array_map("addslashes", $jobs);
    $addarr['resume_id'] = $resume['id'];
    $addarr['resume_addtime'] = $resume['addtime'];
    if ($resume['display_name'] == "2") {
        $addarr['resume_name'] = "N" . str_pad($resume['id'], 7, "0", STR_PAD_LEFT);
    } elseif ($resume['display_name'] == "3") {
        if ($resume['sex'] == 1) {
            $addarr['resume_name'] = cut_str($resume['fullname'], 1, 0, "先生");
        } elseif ($resume['sex'] == 2) {
            $addarr['resume_name'] = cut_str($resume['fullname'], 1, 0, "女士");
        }
    } else {
        $addarr['resume_name'] = $resume['fullname'];
    }
Пример #3
0
    if (!empty($_GET['settr'])) {
        $settr = strtotime("-" . intval($_GET['settr']) . " day");
        $wheresql = empty($wheresql) ? " WHERE addtime> " . $settr : $wheresql . " AND addtime> " . $settr;
    }
    $operation_hunter_mode = $_CFG['operation_hunter_mode'];
    if ($operation_hunter_mode == '1') {
        $joinsql = " LEFT JOIN " . table('members') . " AS m ON c.uid=m.uid  LEFT JOIN " . table('members_points') . " AS p ON c.uid=p.uid";
    } else {
        $joinsql = " LEFT JOIN " . table('members') . " AS m ON c.uid=m.uid  LEFT JOIN " . table('members_hunter_setmeal') . " AS p ON c.uid=p.uid";
    }
    $total_sql = "SELECT COUNT(*) AS num FROM " . table('hunter_profile') . " AS c" . $joinsql . $wheresql;
    $total_val = $db->get_total($total_sql);
    $page = new page(array('total' => $total_val, 'perpage' => $perpage, 'getarray' => $_GET));
    $currenpage = $page->nowindex;
    $offset = ($currenpage - 1) * $perpage;
    $clist = get_hunter($offset, $perpage, $joinsql . $wheresql . $oederbysql, $operation_hunter_mode);
    $smarty->assign('pageheader', "猎头顾问管理");
    $smarty->assign('clist', $clist);
    $smarty->assign('page', $page->show(3));
    $smarty->display('hunter/admin_hunter_list.htm');
} elseif ($act == 'hunter_perform') {
    check_token();
    $u_id = !empty($_POST['y_id']) ? $_POST['y_id'] : adminmsg("你没有选择猎头!", 1);
    if ($_POST['delete']) {
        check_permissions($_SESSION['admin_purview'], "hun_del");
        if ($_POST['delete_hunter'] == 'yes') {
            !del_hunter($u_id) ? adminmsg("删除猎头资料失败!", 0) : "";
        }
        if ($_POST['delete_jobs'] == 'yes') {
            !del_hunter_alljobs($u_id) ? adminmsg("删除职位失败!", 0) : "";
        }
Пример #4
0
function add_hunter_down_resume($resume_id, $hunter_uid, $resume_uid, $resume_name)
{
    global $db, $timestamp;
    $setarr["resume_id"] = intval($resume_id);
    $setarr["hunter_uid"] = intval($hunter_uid);
    $setarr["resume_uid"] = intval($resume_uid);
    $setarr["resume_name"] = trim($resume_name);
    $hunter = get_hunter($hunter_uid);
    $setarr["hunter_name"] = $hunter['huntername'];
    $setarr["company_name"] = $hunter['companyname'];
    $setarr["down_addtime"] = $timestamp;
    return $db->inserttable(table("hunter_down_resume"), $setarr);
}