コード例 #1
0
ファイル: admin_simple.php プロジェクト: dalinhuang/yy
    }
    $setsqlarr['jobname'] = trim($_POST['jobname']) ? trim($_POST['jobname']) : adminmsg('您没有填写职位名称!', 1);
    $setsqlarr['amount'] = intval($_POST['amount']);
    $setsqlarr['comname'] = trim($_POST['comname']) ? trim($_POST['comname']) : adminmsg('您没有填写单位名称!', 1);
    $setsqlarr['contact'] = trim($_POST['contact']) ? trim($_POST['contact']) : adminmsg('您没有填写联系人!', 1);
    $setsqlarr['tel'] = trim($_POST['tel']) ? trim($_POST['tel']) : adminmsg('您没有填写联系电话!', 1);
    $setsqlarr['district'] = intval($_POST['district']) ? intval($_POST['district']) : adminmsg("您没有选择地区");
    $setsqlarr['sdistrict'] = intval($_POST['sdistrict']) ? intval($_POST['sdistrict']) : adminmsg("您没有选择地区");
    $district_cn = explode("/", trim($_POST['district_cn']));
    $setsqlarr['district_cn'] = $district_cn[0];
    $setsqlarr['sdistrict_cn'] = $district_cn[1];
    $setsqlarr['detailed'] = trim($_POST['detailed']);
    $setsqlarr['refreshtime'] = time();
    $days = intval($_POST['days']);
    if ($days > 0) {
        $time = $_POST['olddeadline'] > time() ? $_POST['olddeadline'] : time();
        $setsqlarr['deadline'] = strtotime("{$days} day", $time);
    }
    require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
    $sp = new SPWord();
    $setsqlarr['key'] = $setsqlarr['jobname'] . $setsqlarr['comname'] . $setsqlarr['address'] . $setsqlarr['detailed'];
    $setsqlarr['key'] = "{$setsqlarr['jobname']} {$setsqlarr['comname']} " . $sp->extracttag($setsqlarr['key']);
    $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
    if (updatetable(table('simple'), $setsqlarr, " id='{$id}' ")) {
        $link[0]['text'] = "返回列表";
        $link[0]['href'] = '?act=list';
        adminmsg("修改成功!", 2, $link);
    } else {
        adminmsg("修改失败!", 0);
    }
}
コード例 #2
0
ファイル: ajax_simple_resume.php プロジェクト: winiceo/job
        }
    }
    $setsqlarr['district'] = intval($_POST['district']);
    $setsqlarr['sdistrict'] = intval($_POST['sdistrict']);
    $setsqlarr['district_cn'] = trim($_POST['district_cn']);
    $setsqlarr['sdistrict_cn'] = trim($_POST['sdistrict_cn']);
    $setsqlarr['detailed'] = trim($_POST['detailed']) != "" ? trim($_POST['detailed']) : showmsg("您没有填写个人简介!", 1);
    $setsqlarr['refreshtime'] = time();
    $days = intval($_POST['days']);
    if ($days > 0) {
        $time = $info['deadline'] > time() ? $info['deadline'] : time();
        $setsqlarr['deadline'] = strtotime("{$days} day", $time);
    }
    $setsqlarr['likekey'] = $setsqlarr['uname'] . "," . $setsqlarr['category'] . "," . $setsqlarr['address'] . "," . $setsqlarr['detailed'];
    require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
    $sp = new SPWord();
    $setsqlarr['key'] = $setsqlarr['uname'] . $setsqlarr['address'] . $setsqlarr['detailed'];
    $setsqlarr['key'] = "{$setsqlarr['uname']} " . $sp->extracttag($setsqlarr['key']);
    $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
    $link[0]['text'] = "返回微简历列表";
    $link[0]['href'] = url_rewrite('QS_simpleresumelist');
    if ($db->updatetable(table('simple_resume'), $setsqlarr, " id='{$id}' ")) {
        if ($_CFG['simple_edit_audit'] > 1) {
            $str = ",请等待管理员审核";
        }
        showmsg("修改成功{$str}!", 2);
    } else {
        showmsg("修改失败!{$str}!", 1);
    }
} elseif ($act == 'check_tel') {
    $tel = $_GET['tel'];
コード例 #3
0
ファイル: admin_company.php プロジェクト: dalinhuang/yy
 $setsqlarr['district_cn'] = trim($_POST['district_cn']);
 $setsqlarr['wage'] = intval($_POST['wage']);
 $setsqlarr['wage_cn'] = trim($_POST['wage_cn']);
 $setsqlarr['display'] = intval($_POST['display']);
 $setsqlarr['audit'] = intval($_POST['audit']);
 $setsqlarr['sex'] = intval($_POST['sex']);
 $setsqlarr['sex_cn'] = trim($_POST['sex_cn']);
 $setsqlarr['education'] = intval($_POST['education']);
 $setsqlarr['education_cn'] = trim($_POST['education_cn']);
 $setsqlarr['experience'] = intval($_POST['experience']);
 $setsqlarr['experience_cn'] = trim($_POST['experience_cn']);
 $setsqlarr['graduate'] = intval($_POST['graduate']);
 $setsqlarr['contents'] = trim($_POST['contents']) ? trim($_POST['contents']) : adminmsg('您没有填写职位描述!', 1);
 $setsqlarr['key'] = $setsqlarr['jobs_name'] . $company_profile['companyname'] . $setsqlarr['category_cn'] . $setsqlarr['district_cn'] . $setsqlarr['contents'];
 require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
 $sp = new SPWord();
 $setsqlarr['key'] = "{$setsqlarr['jobs_name']} {$company_profile['companyname']} " . $sp->extracttag($setsqlarr['key']);
 $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
 $days = intval($_POST['days']);
 if ($days > 0 && intval($_POST['olddeadline']) - time() > 0) {
     $setsqlarr['deadline'] = intval($_POST['olddeadline']) + $days * (60 * 60 * 24);
 }
 if ($days > 0 && intval($_POST['olddeadline']) - time() < 0) {
     $setsqlarr['deadline'] = strtotime("" . $days . " day");
 }
 $setsqlarr_contact['contact'] = trim($_POST['contact']);
 $setsqlarr_contact['qq'] = trim($_POST['qq']);
 $setsqlarr_contact['telephone'] = trim($_POST['telephone']);
 $setsqlarr_contact['address'] = trim($_POST['address']);
 $setsqlarr_contact['email'] = trim($_POST['email']);
 $setsqlarr_contact['notify'] = trim($_POST['notify']);
コード例 #4
0
ファイル: train_course.php プロジェクト: winiceo/fenzhan
 $setsqlarr['classhour'] = !empty($_POST['classhour']) ? intval($_POST['classhour']) : showmsg('您没有填写授课学时!', 1);
 $setsqlarr['train_expenses'] = !empty($_POST['train_expenses']) ? intval($_POST['train_expenses']) : showmsg('您没有填写培训费用!', 1);
 $setsqlarr['favour_expenses'] = !empty($_POST['favour_expenses']) ? intval($_POST['favour_expenses']) : showmsg('您没有填写优惠价格!', 1);
 $setsqlarr['contents'] = !empty($_POST['contents']) ? trim($_POST['contents']) : showmsg('您没有填写课程描述!', 1);
 check_word($_CFG['filter'], $_POST['contents']) ? showmsg($_CFG['filter_tips'], 0) : '';
 if ($days > 0) {
     if (intval($_POST['olddeadline']) >= time()) {
         $setsqlarr['deadline'] = intval($_POST['olddeadline']) + $days * (60 * 60 * 24);
     } else {
         $setsqlarr['deadline'] = strtotime("{$days} day");
     }
 }
 $setsqlarr['refreshtime'] = $timestamp;
 $setsqlarr['key'] = $setsqlarr['course_name'] . $train_profile['trainname'] . $setsqlarr['teacher_cn'] . $setsqlarr['train_certificate'] . $setsqlarr['category_cn'] . $setsqlarr['district_cn'] . $setsqlarr['contents'];
 require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
 $sp = new SPWord();
 $setsqlarr['key'] = "{$setsqlarr['course_name']} {$train_profile['trainname']} {$setsqlarr['teacher_cn']} {$setsqlarr['train_certificate']} " . $sp->extracttag($setsqlarr['key']);
 $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
 $setsqlarr['likekey'] = "{$setsqlarr['course_name']},{$train_profile['trainname']},{$setsqlarr['teacher_cn']},{$setsqlarr['train_certificate']}";
 $setsqlarr['tpl'] = $train_profile['tpl'];
 $setsqlarr['map_x'] = $train_profile['map_x'];
 $setsqlarr['map_y'] = $train_profile['map_y'];
 if ($train_profile['audit'] == "1") {
     $setsqlarr['audit'] = intval($_CFG['audit_verifytrain_editcourse']);
 } else {
     $setsqlarr['audit'] = intval($_CFG['audit_unexaminedtrain_editcourse']);
 }
 $setsqlarr_contact['contact'] = !empty($_POST['contact']) ? trim($_POST['contact']) : showmsg('您没有填写联系人!', 1);
 check_word($_CFG['filter'], $_POST['contact']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr_contact['qq'] = trim($_POST['qq']);
 check_word($_CFG['filter'], $_POST['qq']) ? showmsg($_CFG['filter_tips'], 0) : '';
コード例 #5
0
ファイル: hunter_info.php プロジェクト: winiceo/job
 check_word($_CFG['filter'], $_POST['contents']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr['cooperate_company'] = trim($_POST['cooperate_company']);
 check_word($_CFG['filter'], $_POST['cooperate_company']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr['address'] = trim($_POST['address']) ? trim($_POST['address']) : showmsg('请填写通讯地址!', 1);
 check_word($_CFG['filter'], $_POST['address']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr['telephone'] = trim($_POST['telephone']) ? trim($_POST['telephone']) : showmsg('请填写联系电话!', 1);
 check_word($_CFG['filter'], $_POST['telephone']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr['email'] = trim($_POST['email']) ? trim($_POST['email']) : showmsg('请填写联系邮箱!', 1);
 check_word($_CFG['filter'], $_POST['email']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr['yellowpages'] = intval($_POST['yellowpages']);
 $setsqlarr['email_show'] = intval($_POST['email_show']);
 $setsqlarr['telephone_show'] = intval($_POST['telephone_show']);
 $setsqlarr['address_show'] = intval($_POST['address_show']);
 $setsqlarr['key'] = $setsqlarr['huntername'] . $setsqlarr['companyname'] . $setsqlarr['goodtrade_cn'] . $setsqlarr['goodcategory_cn'] . $setsqlarr['contents'];
 require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
 $sp = new SPWord();
 $setsqlarr['key'] = "{$setsqlarr['huntername']} {$setsqlarr['companyname']} " . $sp->extracttag($setsqlarr['key']);
 $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
 $link[0]['text'] = "查看修改结果";
 $link[0]['href'] = '?act=hunter_profile';
 $link[1]['text'] = "发布招聘信息";
 $link[1]['href'] = "hunter_jobs.php?act=addjobs";
 $link[2]['text'] = "会员中心首页";
 $link[2]['href'] = "hunter_index.php?";
 if ($_CFG['hunter_repeat'] == "0") {
     $info = $db->getone("SELECT uid FROM " . table('hunter_profile') . " WHERE huntername ='{$setsqlarr['huntername']}' AND companyname ='{$setsqlarr['companyname']}' AND uid<>'{$_SESSION['uid']}' LIMIT 1");
     if (!empty($info)) {
         showmsg("{$setsqlarr['huntername']}已经存在,同猎头信息不能重复注册", 1);
     }
 }
 if ($hunter_profile) {
コード例 #6
0
function locoyspider_addjobs($companyinfo)
{
    global $locoyspider, $db;
    $jobssetsqlarr['uid'] = $companyinfo['uid'];
    $jobssetsqlarr['companyname'] = $companyinfo['companyname'];
    $jobssetsqlarr['company_id'] = $companyinfo['id'];
    $jobssetsqlarr['company_addtime'] = $companyinfo['addtime'];
    $jobssetsqlarr['jobs_name'] = trim($_POST['jobs_name']);
    if (empty($jobssetsqlarr['jobs_name'])) {
        exit("职位名称丢失");
    }
    if (ck_jobs_name($jobssetsqlarr['jobs_name'], $jobssetsqlarr['uid'])) {
        exit("职位名称有重复");
    }
    $jobssetsqlarr['contents'] = html2text($_POST['jobs_contents']);
    $nature = locoyspider_jobs_nature(trim($_POST['jobs_nature']));
    $jobssetsqlarr['nature'] = $nature['id'];
    $jobssetsqlarr['nature_cn'] = $nature['cn'];
    $sex = locoyspider_jobs_sex(trim($_POST['jobs_sex']));
    $jobssetsqlarr['sex'] = $sex['id'];
    $jobssetsqlarr['sex_cn'] = $sex['cn'];
    //年龄要求
    $jobssetsqlarr['age'] = trim($_POST['jobs_age']);
    $jobssetsqlarr['amount'] = locoyspider_jobs_amount(trim($_POST['jobs_amount']));
    $jobs_category = trim($_POST['jobs_category']) ? trim($_POST['jobs_category']) : $jobssetsqlarr['jobs_name'];
    $category = locoyspider_jobs_category($jobs_category);
    //$_POST['jobs_category']
    //一级
    $jobssetsqlarr['topclass'] = $category['topclass'];
    $jobssetsqlarr['category'] = $category['category'];
    $jobssetsqlarr['subclass'] = $category['subclass'];
    $jobssetsqlarr['category_cn'] = $category['category_cn'];
    $jobssetsqlarr['trade'] = $companyinfo['trade'];
    $jobssetsqlarr['trade_cn'] = $companyinfo['trade_cn'];
    $district = locoyspider_jobs_district(trim($_POST['jobs_district']));
    $jobssetsqlarr['scale'] = $companyinfo['scale'];
    $jobssetsqlarr['scale_cn'] = $companyinfo['scale_cn'];
    $jobssetsqlarr['district'] = $district['district'];
    $jobssetsqlarr['sdistrict'] = $district['sdistrict'];
    $jobssetsqlarr['district_cn'] = $district['district_cn'];
    //街道id 和 街道
    $jobssetsqlarr['street'] = $companyinfo['street'];
    $jobssetsqlarr['street_cn'] = $companyinfo['street_cn'];
    $education = locoyspider_jobs_education(trim($_POST['jobs_education']));
    $jobssetsqlarr['education'] = $education['id'];
    $jobssetsqlarr['education_cn'] = $education['cn'];
    $experience = get_experience(trim($_POST['jobs_experience']));
    $jobssetsqlarr['experience'] = $experience['id'];
    $jobssetsqlarr['experience_cn'] = $experience['cn'];
    $wage = locoyspider_jobs_wage(trim($_POST['jobs_wage']));
    $jobssetsqlarr['wage'] = $wage['id'];
    $jobssetsqlarr['wage_cn'] = $wage['cn'];
    $jobssetsqlarr['addtime'] = time();
    $jobssetsqlarr['deadline'] = locoyspider_jobs_deadline();
    $jobssetsqlarr['refreshtime'] = time();
    $jobssetsqlarr['key'] = $jobssetsqlarr['jobs_name'] . $companyinfo['companyname'] . $jobssetsqlarr['category_cn'] . $jobssetsqlarr['district_cn'] . $jobssetsqlarr['contents'];
    require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
    $sp = new SPWord();
    $jobssetsqlarr['key'] = "{$jobssetsqlarr['jobs_name']} {$companyinfo['companyname']} " . $sp->extracttag($jobssetsqlarr['key']);
    $jobssetsqlarr['key'] = $sp->pad($jobssetsqlarr['key']);
    $jobssetsqlarr['audit'] = $locoyspider['jobs_audit'];
    $jobssetsqlarr['display'] = $locoyspider['jobs_display'];
    $jobssetsqlarr['robot'] = 1;
    $pid = $db->inserttable(table('jobs'), $jobssetsqlarr, true);
    if (!$pid) {
        exit("添加招聘信息失败");
    }
    //职位联系方式
    $setsqlarr_contact['contact'] = trim($_POST['contact']);
    //QQ
    $setsqlarr_contact['qq'] = trim($_POST['qq']);
    $setsqlarr_contact['telephone'] = trim($_POST['telephone']);
    $setsqlarr_contact['address'] = trim($_POST['address']);
    $setsqlarr_contact['email'] = check_email(trim($_POST['email']));
    //3.4新增字段,3.5也有
    $setsqlarr_contact['contact_show'] = 1;
    $setsqlarr_contact['telephone_show'] = 1;
    $setsqlarr_contact['email_show'] = 1;
    $setsqlarr_contact['address_show'] = 1;
    $setsqlarr_contact['qq_show'] = 1;
    $setsqlarr_contact['notify'] = $locoyspider['jobs_notify'];
    $setsqlarr_contact['pid'] = $pid;
    if (!$db->inserttable(table('jobs_contact'), $setsqlarr_contact)) {
        exit("添加招聘联系方式失败");
    }
    //------
    $searchtab['id'] = $pid;
    $searchtab['uid'] = $jobssetsqlarr['uid'];
    $searchtab['recommend'] = $jobssetsqlarr['recommend'];
    $searchtab['emergency'] = $jobssetsqlarr['emergency'];
    $searchtab['nature'] = $jobssetsqlarr['nature'];
    $searchtab['sex'] = $jobssetsqlarr['sex'];
    $searchtab['topclass'] = $jobssetsqlarr['topclass'];
    $searchtab['category'] = $jobssetsqlarr['category'];
    $searchtab['subclass'] = $jobssetsqlarr['subclass'];
    $searchtab['trade'] = $jobssetsqlarr['trade'];
    $searchtab['district'] = $jobssetsqlarr['district'];
    $searchtab['sdistrict'] = $jobssetsqlarr['sdistrict'];
    $searchtab['street'] = $companyinfo['street'];
    $searchtab['education'] = $jobssetsqlarr['education'];
    $searchtab['experience'] = $jobssetsqlarr['experience'];
    $searchtab['wage'] = $jobssetsqlarr['wage'];
    $searchtab['refreshtime'] = $jobssetsqlarr['refreshtime'];
    $searchtab['scale'] = $jobssetsqlarr['scale'];
    //
    $db->inserttable(table('jobs_search_wage'), $searchtab);
    $db->inserttable(table('jobs_search_scale'), $searchtab);
    $db->inserttable(table('jobs_search_rtime'), $searchtab);
    //
    $searchtab['stick'] = $jobssetsqlarr['stick'];
    $db->inserttable(table('jobs_search_stickrtime'), $searchtab);
    unset($searchtab['stick']);
    //
    $searchtab['click'] = $jobssetsqlarr['click'];
    $db->inserttable(table('jobs_search_hot'), $searchtab);
    unset($searchtab['click']);
    //
    $searchtab['likekey'] = $jobssetsqlarr['jobs_name'] . ',' . $jobssetsqlarr['companyname'];
    $searchtab['key'] = $jobssetsqlarr['key'];
    $db->inserttable(table('jobs_search_key'), $searchtab);
    require_once ADMIN_ROOT_PATH . 'include/admin_company_fun.php';
    distribution_jobs($pid);
    exit("添加成功");
}
コード例 #7
0
function change_level($uid, $pid)
{
    global $db;
    $setsqlarr = array();
    $percent = 0;
    $resume_basic = get_resume_basic1($uid, $pid);
    $resume_education = get_resume_education1($uid, $pid);
    $resume_work = get_resume_work1($uid, $pid);
    $resume_training = get_resume_training1($uid, $pid);
    $resume_tag = $resume_basic['tag'];
    $resume_specialty = $resume_basic['specialty'];
    $resume_photo = $resume_basic['photo_img'];
    $resume_language = get_resume_language1($uid, $pid);
    $resume_credent = get_resume_credent1($uid, $pid);
    $resume_img = get_resume_img1($uid, $pid);
    if (!empty($resume_basic)) {
        $percent = $percent + 35;
    }
    if (!empty($resume_education)) {
        $percent = $percent + 15;
    }
    if (!empty($resume_work)) {
        $percent = $percent + 15;
    }
    if (!empty($resume_training)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_tag)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_specialty)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_photo)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_language)) {
        $percent = $percent + 5;
    }
    //语言
    if (!empty($resume_credent)) {
        $percent = $percent + 5;
    }
    //证书
    if (!empty($resume_img)) {
        $percent = $percent + 5;
    }
    //附件
    $setsqlarr['complete_percent'] = $percent;
    if ($setsqlarr['complete_percent'] < 60) {
        $setsqlarr['level'] = 1;
    } elseif ($setsqlarr['complete_percent'] >= 60 && $setsqlarr['complete_percent'] < 80) {
        $setsqlarr['level'] = 2;
    } elseif ($setsqlarr['complete_percent'] >= 80) {
        $setsqlarr['level'] = 3;
    }
    require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
    $sp = new SPWord();
    $setsqlarr['key'] = addslashes($resume_basic['intention_jobs']) . addslashes($resume_basic['recentjobs']) . addslashes($resume_basic['specialty']);
    $setsqlarr['key'] = addslashes($resume_basic['fullname']) . $sp->extracttag($setsqlarr['key']);
    $setsqlarr['key'] = str_replace(",", " ", addslashes($resume_basic['intention_jobs'])) . " {$setsqlarr['key']} " . addslashes($resume_basic['education_cn']);
    $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
    if (!empty($resume_education)) {
        foreach ($resume_education as $li) {
            $setsqlarr['key'] = addslashes($li['school']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    if (!empty($resume_work)) {
        foreach ($resume_work as $li) {
            $setsqlarr['key'] = addslashes($li['companyname']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    if (!empty($resume_training)) {
        foreach ($resume_training as $li) {
            $setsqlarr['key'] = addslashes($li['agency']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    $db->updatetable(table("resume"), $setsqlarr, " id =" . $pid);
}
コード例 #8
0
ファイル: fun_personal.php プロジェクト: winiceo/job
function check_resume($uid, $pid)
{
    global $db, $timestamp, $_CFG;
    $uid = intval($uid);
    $pid = intval($pid);
    $percent = 0;
    $resume_basic = get_resume_basic($uid, $pid);
    $resume_education = get_resume_education($uid, $pid);
    $resume_work = get_resume_work($uid, $pid);
    $resume_training = get_resume_training($uid, $pid);
    $resume_tag = $resume_basic['tag'];
    $resume_specialty = $resume_basic['specialty'];
    $resume_photo = $resume_basic['photo_img'];
    $resume_language = get_resume_language($uid, $pid);
    $resume_credent = get_resume_credent($uid, $pid);
    $resume_img = get_resume_img($uid, $pid);
    if (!empty($resume_basic)) {
        $percent = $percent + 35;
    }
    if (!empty($resume_education)) {
        $percent = $percent + 15;
    }
    if (!empty($resume_work)) {
        $percent = $percent + 15;
    }
    if (!empty($resume_training)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_tag)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_specialty)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_photo)) {
        $percent = $percent + 5;
    }
    if (!empty($resume_language)) {
        $percent = $percent + 5;
    }
    //语言
    if (!empty($resume_credent)) {
        $percent = $percent + 5;
    }
    //证书
    if (!empty($resume_img)) {
        $percent = $percent + 5;
    }
    //附件
    if ($resume_basic['photo_img'] && $resume_basic['photo_audit'] == "1" && $resume_basic['photo_display'] == "1") {
        $setsqlarr['photo'] = 1;
    } else {
        $setsqlarr['photo'] = 0;
    }
    $setsqlarr['complete_percent'] = $percent;
    require_once QISHI_ROOT_PATH . 'include/splitword.class.php';
    $sp = new SPWord();
    $setsqlarr['key'] = addslashes($resume_basic['intention_jobs']) . addslashes($resume_basic['recentjobs']) . addslashes($resume_basic['specialty']);
    $setsqlarr['key'] = addslashes($resume_basic['fullname']) . $sp->extracttag($setsqlarr['key']);
    $setsqlarr['key'] = str_replace(",", " ", addslashes($resume_basic['intention_jobs'])) . " {$setsqlarr['key']} " . addslashes($resume_basic['education_cn']);
    $setsqlarr['key'] = $sp->pad($setsqlarr['key']);
    if (!empty($resume_education)) {
        foreach ($resume_education as $li) {
            $setsqlarr['key'] = addslashes($li['school']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    if (!empty($resume_work)) {
        foreach ($resume_work as $li) {
            $setsqlarr['key'] = addslashes($li['companyname']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    if (!empty($resume_training)) {
        foreach ($resume_training as $li) {
            $setsqlarr['key'] = addslashes($li['agency']) . " {$setsqlarr['key']} " . addslashes($li['speciality']);
        }
    }
    $setsqlarr['refreshtime'] = $timestamp;
    if ($setsqlarr['complete_percent'] < 60) {
        $setsqlarr['level'] = 1;
    } elseif ($setsqlarr['complete_percent'] >= 60 && $setsqlarr['complete_percent'] < 80) {
        $setsqlarr['level'] = 2;
    } elseif ($setsqlarr['complete_percent'] >= 80) {
        $setsqlarr['level'] = 3;
    }
    $db->updatetable(table('resume'), $setsqlarr, "uid='{$uid}' AND id='{$pid}'");
    // distribution_resume($pid,$uid);
    $j = get_resume_basic($uid, $pid);
    $j = array_map("addslashes", $j);
    $searchtab['sex'] = $j['sex'];
    $searchtab['nature'] = $j['nature'];
    $searchtab['marriage'] = $j['marriage'];
    $searchtab['experience'] = $j['experience'];
    $searchtab['district'] = $j['district'];
    $searchtab['sdistrict'] = $j['sdistrict'];
    $searchtab['wage'] = $j['wage'];
    $searchtab['education'] = $j['education'];
    $searchtab['current'] = $j['current'];
    $searchtab['major'] = $j['major'];
    $searchtab['photo'] = $j['photo'];
    $searchtab['refreshtime'] = $j['refreshtime'];
    $searchtab['talent'] = $j['talent'];
    $searchtab['audit'] = $j['audit'];
    $db->updatetable(table('resume_search_rtime'), $searchtab, "uid='{$uid}' AND id='{$pid}'");
    $searchtab['key'] = $j['key'];
    $searchtab['likekey'] = $j['intention_jobs'] . ',' . $j['trade_cn'] . ',' . $j['specialty'] . ',' . $j['fullname'];
    $db->updatetable(table('resume_search_key'), $searchtab, "uid='{$uid}' AND id='{$pid}'");
    unset($searchtab);
}