$tuid = !empty($_POST['tuid']) ? $_POST['tuid'] : adminmsg("你没有选择会员!", 1); if ($_POST['delete']) { if ($_POST['delete_user'] == 'yes' && !delete_member($tuid)) { adminmsg("删除会员失败!", 0); } if ($_POST['delete_resume'] == 'yes' && !del_resume_for_uid($tuid)) { adminmsg("删除简历失败!", 0); } adminmsg("删除成功!", 2); } } elseif ($act == 'user_edit') { get_token(); check_permissions($_SESSION['admin_purview'], "per_user_edit"); $smarty->assign('pageheader', "个人会员"); $smarty->assign('user', get_member_one($_GET['tuid'])); $smarty->assign('resume', get_resume_uid($_GET['tuid'])); $smarty->assign('url', $_SERVER["HTTP_REFERER"]); $smarty->display('personal/admin_personal_user_edit.htm'); } elseif ($act == 'set_account_save') { check_token(); check_permissions($_SESSION['admin_purview'], "per_user_edit"); require_once ADMIN_ROOT_PATH . 'include/admin_user_fun.php'; $setsqlarr['username'] = trim($_POST['username']); $setsqlarr['email'] = trim($_POST['email']); $setsqlarr['email_audit'] = intval($_POST['email_audit']); $setsqlarr['mobile'] = trim($_POST['mobile']); $setsqlarr['mobile_audit'] = intval($_POST['mobile_audit']); if ($_POST['qq_openid'] == "1") { $setsqlarr['qq_openid'] = ''; } $thisuid = intval($_POST['thisuid']);
get_token(); require_once ADMIN_ROOT_PATH . 'include/admin_user_fun.php'; $id = !empty($_REQUEST['cid']) ? $_REQUEST['cid'] : adminmsg("参数有误!", 1); $clue = get_clue_one($id); $company_profile = get_company_one_id($clue["company_id"]); $clue_log = get_clue_log_list($id); $promotion = get_promotion_info($clue["job_id"], 5); if ($promotion) { $json = str_replace('"', '"', trim($promotion["cp_json"])); $json = json_decode($json); $promotion = array_merge($promotion, (array) $json); } $member = get_member_info($clue["uid"]); if ($clue["member_id"]) { $resume["uid"] = $clue["member_id"]; $resume["list"] = get_resume_uid($clue["member_id"]); $smarty->assign('resume', $resume); //dump($resume); } $smarty->assign('clue', $clue); $smarty->assign('company_profile', $company_profile); $smarty->assign('promotion', $promotion); $smarty->assign('member', $member); $smarty->assign('clue_log', $clue_log); $smarty->assign('url', $_SERVER["HTTP_REFERER"]); $smarty->assign('pageheader', "人才访问记录"); $smarty->display('company/admin_company_clue_detail.htm'); } elseif ($act == 'clue_log_save') { check_token(); $id = intval($_POST['id']); if (!$id) {