} } $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;
* 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); define('REQUEST_MOBILE', true); require_once dirname(__FILE__) . '/../../include/common.inc.php'; require_once QISHI_ROOT_PATH . 'include/fun_wap.php'; require_once QISHI_ROOT_PATH . 'include/fun_company.php'; require_once QISHI_ROOT_PATH . 'include/mysql.class.php'; $smarty->cache = false; $db = new mysql($dbhost, $dbuser, $dbpass, $dbname); $act = !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'resume_manager'; if ($_SESSION['uid'] == '' || $_SESSION['username'] == '' || intval($_SESSION['utype']) == 2) { header("Location: ../login.php"); } $user = get_user_info($_SESSION['uid']); if ($_CFG['login_com_audit_mobile'] && $user['mobile_audit'] == "0") { $str = "<script>"; $str .= "alert('请先验证手机!');"; $str .= "window.location.href='account_security.php';"; $str .= "</script>"; echo $str; } elseif ($act == 'resume_manager') { $smarty->cache = false; //统计收到的简历数 $smarty->assign('count', count_jobs_apply($_SESSION['uid'], 1, 0)); $smarty->display("m/company/m-resume-manager.html"); }