adminmsg("刷新成功!响应行数 {$n} 行", 2); } else { adminmsg("刷新失败!", 0); } } elseif (!empty($_REQUEST['export'])) { check_permissions($_SESSION['admin_purview'], "company_export"); if (!export_company($u_id)) { adminmsg("导出失败!", 0); } } } elseif ($act == 'edit_company_profile') { get_token(); check_permissions($_SESSION['admin_purview'], "com_edit"); $yid = !empty($_REQUEST['id']) ? intval($_REQUEST['id']) : adminmsg("你没有选择企业!", 1); $smarty->assign('pageheader', "企业管理"); $company_profile = get_company_one_id($yid); $smarty->assign('url', $_SERVER["HTTP_REFERER"]); $smarty->assign('comaudit', get_comaudit_one($yid)); $smarty->assign('company_profile', $company_profile); $smarty->assign('certificate_dir', $certificate_dir); //营业执照路径 $smarty->display('company/admin_company_profile_edit.htm'); } elseif ($act == 'company_profile_save') { check_token(); check_permissions($_SESSION['admin_purview'], "com_edit"); $setsqlarr = array(); $contents = array(); $id = intval($_POST['id']); $setsqlarr['audit'] = intval($_POST['audit']); $setsqlarr['companyname'] = trim($_POST['companyname']) ? trim($_POST['companyname']) : adminmsg('您没有输入企业名称!', 1); $setsqlarr['nature'] = trim($_POST['nature']) ? trim($_POST['nature']) : adminmsg('您选择企业性质!', 1);
$currenpage = $page->nowindex; $offset = ($currenpage - 1) * $perpage; $member = get_clue_check_list($offset, $perpage, $wheresql . $oederbysql); $admin = $db->getall("select * from " . table("admin") . " where admin_id!=1 order by admin_id"); $smarty->assign('admin', $admin); $smarty->assign('pageheader', "人才线索"); $smarty->assign('member', $member); $smarty->assign('page', $page->show(3)); $smarty->assign("assign", $assign); $smarty->display('company/admin_company_user_clue_list.htm'); } elseif ($act == 'clue_detail') { 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);