} } elseif ($act == 'edit_templates') { $id = intval($_GET['id']); if ($id < 1) { showmsg("请选择职位模板!", 1); } $templates = get_jobs_templates_one($id); $_SESSION['addrand'] = rand(1000, 5000); $smarty->assign('addrand', $_SESSION['addrand']); $smarty->assign('templates', $templates); $smarty->assign('subsite', get_all_subsite()); $subsite_cn = explode('/', $templates['district_cn']); $smarty->assign('subsite_cn', $subsite_cn[0]); $smarty->assign('district_cn', $subsite_cn[1]); //地区二级 $smarty->assign('district', get_subsite_district($templates['district'])); $smarty->assign('title', '修改职位模板 - 企业会员中心 - ' . $_CFG['site_name']); $smarty->display('member_company/company_edit_templates.htm'); } elseif ($act == "edit_templates_save") { $id = intval($_POST['id']); if ($id < 1) { showmsg("请选择职位模板!", 1); } $addrand = intval($_POST['addrand']); if ($_SESSION['addrand'] == $addrand) { unset($_SESSION['addrand']); $setsqlarr['title'] = !empty($_POST['title']) ? trim($_POST['title']) : showmsg('请填写模板名称!', 1); $setsqlarr['uid'] = intval($_SESSION['uid']); $setsqlarr['contents'] = !empty($_POST['contents']) ? trim($_POST['contents']) : showmsg('请填写职位描述!', 1); $setsqlarr['nature'] = intval($_POST['nature']); $setsqlarr['nature_cn'] = trim($_POST['nature_cn']);
$_SESSION['send_mobile_key'] = mt_rand(100000, 999999); $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']);
if (empty($course)) { showmsg("参数错误!", 1); } $teachers = get_audit_teachers($_SESSION['uid'], $train_profile['id']); $smarty->assign('user', $user); $smarty->assign('title', '修改课程 - 培训会员中心 - ' . $_CFG['site_name']); $smarty->assign('points_total', get_user_points($_SESSION['uid'])); $smarty->assign('points', get_cache('points_rule')); $smarty->assign('course', $course); $smarty->assign('teachers', $teachers); $smarty->assign('subsite', get_all_subsite()); $subsite_cn = explode('/', $course['district_cn']); $smarty->assign('subsite_cn', $subsite_cn[0]); $smarty->assign('district_cn', $subsite_cn[1]); //地区二级 $smarty->assign('district', get_subsite_district($course['district'])); $smarty->display('member_train/train_editcourse.htm'); } elseif ($act == 'editcourse_save') { $id = intval($_POST['id']); $days = intval($_POST['days']); if ($_CFG['operation_train_mode'] == '1') { $add_mode = 1; $points_rule = get_cache('points_rule'); $user_points = get_user_points($_SESSION['uid']); $total = 0; if ($points_rule['course_edit']['type'] == "2" && $points_rule['course_edit']['value'] > 0) { $total = $points_rule['course_edit']['value']; } if ($points_rule['course_daily']['type'] == "2" && $points_rule['course_daily']['value'] > 0) { $total = $total + $days * $points_rule['course_daily']['value']; }
} elseif ($act == 'edit_jobs') { $jobs = get_jobs_one(intval($_GET['id']), $_SESSION['uid']); if (empty($jobs)) { showmsg("参数错误!", 1); } $smarty->assign('user', $user); $smarty->assign('title', '修改职位 - 猎头会员中心 - ' . $_CFG['site_name']); $smarty->assign('points_total', get_user_points($_SESSION['uid'])); $smarty->assign('points', get_cache('points_rule')); $smarty->assign('jobs', $jobs); $smarty->assign('subsite', get_all_subsite()); $subsite_cn = explode('/', $jobs['district_cn']); $smarty->assign('subsite_cn', $subsite_cn[0]); $smarty->assign('district_cn', $subsite_cn[1]); //地区二级 $smarty->assign('district', get_subsite_district($jobs['district'])); $smarty->display('member_hunter/hunter_editjobs.htm'); } elseif ($act == 'editjobs_save') { $id = intval($_POST['id']); $add_mode = trim($_POST['add_mode']); $days = intval($_POST['days']); if ($_CFG['operation_hunter_mode'] == '1') { $points_rule = get_cache('points_rule'); $user_points = get_user_points($_SESSION['uid']); $total = 0; if ($points_rule['hunter_hunterjobs_edit']['type'] == "2" && $points_rule['hunter_hunterjobs_edit']['value'] > 0) { $total = $points_rule['hunter_hunterjobs_edit']['value']; } if ($points_rule['hunter_hunterjobs_daily']['type'] == "2" && $points_rule['hunter_hunterjobs_daily']['value'] > 0) { $total = $total + $days * $points_rule['hunter_hunterjobs_daily']['value']; }