function get_interest_jobs_id($uid)
{
    global $db;
    $uid = intval($uid);
    $sql = "select id from " . table('resume') . " where   uid='{$uid}' LIMIT 3 ";
    $info = $db->getall($sql);
    if (is_array($info)) {
        foreach ($info as $s) {
            $jobsid = get_resume_jobs($s['id']);
            if (is_array($jobsid)) {
                foreach ($jobsid as $cid) {
                    $interest_id[] = $cid['category'];
                }
            }
        }
        if (is_array($interest_id)) {
            return implode("-", array_unique($interest_id));
        }
    }
    return "";
}
예제 #2
0
 $smarty->assign('send_key', $_SESSION['send_mobile_key']);
 $resume_basic = get_resume_basic($uid, $pid);
 $smarty->assign('resume_basic', $resume_basic);
 $smarty->assign('resume_education', get_resume_education($uid, $pid));
 $smarty->assign('resume_work', get_resume_work($uid, $pid));
 $smarty->assign('resume_training', get_resume_training($uid, $pid));
 $smarty->assign('resume_language', get_resume_language($uid, $pid));
 $smarty->assign('resume_credent', get_resume_credent($uid, $pid));
 $smarty->assign('resume_img', get_resume_img($uid, $pid));
 $smarty->assign('subsite', get_all_subsite());
 $subsite_cn = explode('/', $resume_basic['district_cn']);
 $smarty->assign('subsite_cn', $subsite_cn[0]);
 $smarty->assign('district_cn', $subsite_cn[1]);
 //地区二级
 $smarty->assign('district', get_subsite_district($resume_basic['district']));
 $resume_jobs = get_resume_jobs($pid);
 if ($resume_jobs) {
     foreach ($resume_jobs as $rjob) {
         $jobsid[] = $rjob['topclass'] . "." . $rjob['category'] . "." . $rjob['subclass'];
     }
     $resume_jobs_id = implode(",", $jobsid);
 }
 $smarty->assign('resume_jobs_id', $resume_jobs_id);
 $smarty->assign('act', $act);
 $smarty->assign('pid', $pid);
 $smarty->assign('user', $user);
 $smarty->assign('title', '我的简历 - 个人会员中心 - ' . $_CFG['site_name']);
 $captcha = get_cache('captcha');
 $smarty->assign('verify_resume', $captcha['verify_resume']);
 $smarty->assign('go_resume_show', $_GET['go_resume_show']);
 $smarty->display('member_personal/personal_resume_edit.htm');