} $perpage = 10; $total_sql = "SELECT COUNT(*) AS num FROM " . table('personal_jobs_apply') . " AS a " . $joinsql . " {$wheresql} "; $total = $db->get_total($total_sql); $page = new page(array('total' => $total, 'perpage' => $perpage)); $offset = ($page->nowindex - 1) * $perpage; $smarty->assign('act', $act); $smarty->assign('title', '收到的职位申请 - 企业会员中心 - ' . $_CFG['site_name']); $smarty->assign('jobs_apply', get_apply_jobs($offset, $perpage, $joinsql . $wheresql)); if ($total > $perpage) { $smarty->assign('page', $page->show(3)); } $smarty->assign('count', count_jobs_apply($_SESSION['uid'], 0, $jobsid)); $smarty->assign('count1', count_jobs_apply($_SESSION['uid'], 1, $jobsid)); $smarty->assign('count2', count_jobs_apply($_SESSION['uid'], 2, $jobsid)); $smarty->assign('jobs', get_auditjobs($_SESSION['uid'])); $smarty->display('member_company/company_apply_jobs.htm'); } elseif ($act == 'set_apply_jobs') { $yid = !empty($_REQUEST['y_id']) ? $_REQUEST['y_id'] : showmsg("你没有选择任何项目!", 1); set_apply($yid, $_SESSION['uid'], 2) ? showmsg("设置成功!", 2) : showmsg("设置失败!", 0); } elseif ($act == 'apply_jobs_del') { $yid = !empty($_REQUEST['y_id']) ? $_REQUEST['y_id'] : showmsg("你没有选择项目!", 1); if ($n = del_apply_jobs($yid, $_SESSION['uid'])) { showmsg("删除成功!共删除 {$n} 行", 2); } else { showmsg("失败!", 0); } } elseif ($act == 'down_resume_list') { require_once QISHI_ROOT_PATH . 'include/page.class.php'; $perpage = 10; $joinsql = " LEFT JOIN " . table('resume') . " as r ON d.resume_id=r.id ";
</table>'); } } if (check_down_resumeid($id, $_SESSION['uid'])) { $str = "<a href=\"" . get_member_url(1, true) . "company_recruitment.php?act=down_resume_list\">查看[已下载的简历]</a>"; exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall"> <tr> <td width="20" align="right"></td> <td class="ajax_app"> 您已经下载过此简历了!' . $str . ' </td> </tr> </table>'); } if ($_CFG['down_resume_limit'] == "1") { $user_jobs = get_auditjobs($_SESSION['uid']); //审核通过的职位 $strurl = "你没有发布职位或审核未通过导致无法下载简历。<a href=\"" . get_member_url(1, true) . "company_jobs.php?act=jobs\">[职位管理]</a>"; if (empty($user_jobs)) { exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall"> <tr> <td width="20" align="right"></td> <td class="ajax_app"> ' . $strurl . ' </td> </tr> </table>'); } } if ($resumeshow['display_name'] == "2") { $resumeshow['resume_name'] = "N" . str_pad($resumeshow['id'], 7, "0", STR_PAD_LEFT);
if ($act == 'company_profile') { $company_profile['contents'] = htmlspecialchars_decode($company_profile['contents'], ENT_QUOTES); //对座机进行分隔 $telarray = explode('-', $company_profile['landline_tel']); if (intval($telarray[0]) > 0) { $company_profile['landline_tel_first'] = $telarray[0]; } if (intval($telarray[1]) > 0) { $company_profile['landline_tel_next'] = $telarray[1]; } if (intval($telarray[2]) > 0) { $company_profile['landline_tel_last'] = $telarray[2]; } $smarty->assign('title', '企业资料管理 - 企业会员中心 - ' . $_CFG['site_name']); $smarty->assign('company_profile', $company_profile); $jobs = get_auditjobs(intval($_SESSION['uid'])); if (!empty($jobs)) { $smarty->assign('company_jobs', $jobs); } // 新注册会员 邮箱调取注册邮箱 $smarty->assign('user', $user); $smarty->display('member_company/company_profile.htm'); } elseif ($act == 'company_profile_save') { $uid = intval($_SESSION['uid']); $setsqlarr['uid'] = intval($_SESSION['uid']); if ($company_profile['audit'] != "1") { $setsqlarr['companyname'] = trim($_POST['companyname']) ? trim($_POST['companyname']) : showmsg('您没有输入企业名称!', 1); } else { $setsqlarr['companyname'] = $company_profile['companyname']; } check_word($_CFG['filter'], $setsqlarr['companyname']) ? showmsg($_CFG['filter_tips'], 1) : '';