예제 #1
0
 * ============================================================================
*/
define('IN_QISHI', true);
require_once dirname(__FILE__) . '/personal_common.php';
$smarty->assign('leftmenu', "index");
if ($act == 'index') {
    $uid = intval($_SESSION['uid']);
    $smarty->assign('title', '个人会员中心 - ' . $_CFG['site_name']);
    $smarty->assign('user', $user);
    require_once QISHI_ROOT_PATH . 'include/fun_user.php';
    $smarty->assign('loginlog', get_loginlog_one($uid, '1001'));
    $wheresql = " WHERE uid='" . $_SESSION['uid'] . "' ";
    $sql = "SELECT * FROM " . table('resume') . $wheresql;
    $smarty->assign('rand', rand(1, 100));
    $smarty->assign('points', get_user_points($uid));
    $smarty->assign('my_resume', get_resume_list($sql));
    $smarty->assign('count_resume', count_resume($uid));
    $smarty->assign('count_interview', count_interview($uid));
    $smarty->assign('count_apply', count_personal_jobs_apply($uid));
    $smarty->assign('count_attention_me', count_personal_attention_me($uid));
    $smarty->assign('msg_total1', $db->get_total("SELECT COUNT(*) AS num FROM " . table('pms') . " WHERE (msgfromuid='{$uid}' OR msgtouid='{$uid}') AND `new`='1' AND `replyuid`<>'{$uid}' AND msgtype=1"));
    $smarty->assign('msg_total2', $db->get_total("SELECT COUNT(*) AS num FROM " . table('pms') . " WHERE (msgfromuid='{$uid}' OR msgtouid='{$uid}') AND `new`='2' AND `replyuid`<>'{$uid}' AND msgtype=1"));
    //首页提示消息(最近两周 下载 和 面试邀请的信息)
    $message = array();
    $time = strtotime("- 14 day");
    $down_resume = $db->getall("SELECT distinct company_uid , company_name FROM " . table('company_down_resume') . " WHERE resume_uid='" . $_SESSION['uid'] . "' AND down_addtime > " . $time);
    foreach ($down_resume as $key => $value) {
        $company_id = $db->getone("SELECT id FROM " . table('company_profile') . " WHERE uid=" . $value['company_uid'] . " LIMIT 1");
        $company_url = url_rewrite('QS_companyshow', array('id' => $company_id['id']));
        $message[] = "您的简历被<a href=\"" . $company_url . "\" target=\"_black\" class=\"underline\">【" . $value['company_name'] . "】</a>下载!主动联系招聘单位更容易获得工作机会!";
    }
예제 #2
0
 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
define('IN_QISHI', true);
require_once dirname(__FILE__) . '/personal_common.php';
$smarty->assign('leftmenu', "resume");
$smarty->assign('act', $act);
//简历列表
if ($act == 'resume_list') {
    $wheresql = " WHERE uid='" . $_SESSION['uid'] . "' ";
    $sql = "SELECT * FROM " . table('resume') . $wheresql;
    $smarty->assign('title', '我的简历 - 个人会员中心 - ' . $_CFG['site_name']);
    $smarty->assign('act', $act);
    $total = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume') . " WHERE uid='{$_SESSION['uid']}'");
    $smarty->assign('total', $total);
    $smarty->assign('resume_list', get_resume_list($sql, 12, true, true, true));
    $smarty->display('member_personal/personal_resume_list.htm');
} elseif ($act == 'refresh') {
    $resumeid = intval($_GET['id']) ? intval($_GET['id']) : showmsg("您没有选择简历!");
    $refrestime = get_last_refresh_date($_SESSION['uid'], "2001");
    $duringtime = time() - $refrestime['max(addtime)'];
    $space = $_CFG['per_refresh_resume_space'] * 60;
    $refresh_time = get_today_refresh_times($_SESSION['uid'], "2001");
    if ($_CFG['per_refresh_resume_time'] != 0 && $refresh_time['count(*)'] >= $_CFG['per_refresh_resume_time']) {
        showmsg("每天最多只能刷新" . $_CFG['per_refresh_resume_time'] . "次,您今天已超过最大刷新次数限制!", 2);
    } elseif ($duringtime <= $space) {
        showmsg($_CFG['per_refresh_resume_space'] . "分钟内不能重复刷新简历!", 2);
    } else {
        refresh_resume($resumeid, $_SESSION['uid']) ? showmsg('操作成功!', 2) : showmsg('操作失败!', 0);
    }
} elseif ($act == 'del_resume') {
예제 #3
0
        $getsql = "SELECT * FROM " . table('resume') . $wheresql;
    } else {
        if ($tabletype == 1) {
            $wheresql = empty($wheresql) ? " WHERE display=1 AND audit=1" : $wheresql . " AND display=1 AND audit=1";
        } elseif ($tabletype == 2) {
            if (!empty($audit)) {
                if ($audit == 1) {
                    $wheresql = $wheresql . " AND display=2 ";
                }
            } else {
                $wheresql = empty($wheresql) ? " WHERE display=2 OR (display=1 AND audit<>1) " : $wheresql . " AND display=2 OR (display=1 AND audit<>1) ";
            }
        }
        $getsql = "SELECT * FROM " . table('resume') . " " . $wheresql . $oederbysql;
    }
    $resumelist = get_resume_list($offset, $perpage, $getsql);
    $total_all_resume = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume'));
    $total[0] = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume') . " where display=1 and audit=1");
    $total[1] = $total_all_resume - $total[0];
    if ($tabletype === 2) {
        $total[2] = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume') . " WHERE audit=1 AND display=2");
        $total[3] = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume') . " WHERE audit=2 ");
        $total[4] = $db->get_total("SELECT COUNT(*) AS num FROM " . table('resume') . " WHERE audit=3 ");
    }
    $smarty->assign('total', $total);
    $smarty->assign('pageheader', "简历列表");
    $smarty->assign('resumelist', $resumelist);
    $smarty->assign('page', $page->show(3));
    $smarty->assign('total_val', $total_val);
    $smarty->display('personal/admin_personal_resume.htm');
} elseif ($act == 'perform') {
예제 #4
0
        baidu_submiturl(url_rewrite('QS_resumeshow', array('id' => $pid)), 'addresume');
        echo $pid;
        // header("Location: ?act=resume_success&pid=".$pid);
    }
} elseif ($act == "resume_success") {
    $smarty->cache = false;
    $id = intval($_GET['pid']);
    $sql = "select j.* from " . table("jobs") . " as j left join " . table("resume_jobs") . " as r on r.category=j.category where r.pid={$id} limit 5";
    $resume_jobs = $db->getall($sql);
    $smarty->assign('resume_jobs', $resume_jobs);
    $smarty->display('wap/personal/wap-create-resume-success.html');
} elseif ($act == "resume_list") {
    $smarty->cache = false;
    $wheresql = " WHERE uid='" . intval($_SESSION['uid']) . "' ";
    $sql = "SELECT * FROM " . table('resume') . $wheresql;
    $resume_list = get_resume_list($sql, 12, true, true, true);
    $smarty->assign('resume_list', $resume_list);
    $smarty->display('wap/personal/wap-resume-index.html');
} elseif ($act == "resume_one") {
    $smarty->cache = false;
    $id = intval($_GET['pid']);
    $resume_one = resume_one($id);
    $smarty->assign('resume_one', $resume_one);
    $smarty->assign('resume_basic', get_resume_basic(intval($_SESSION['uid']), $id));
    $smarty->assign('resume_jobs', get_resume_jobs($id));
    $smarty->assign('resume_education', get_resume_education(intval($_SESSION['uid']), $id));
    $smarty->assign('resume_work', get_resume_work(intval($_SESSION['uid']), $id));
    $smarty->assign('resume_training', get_resume_training(intval($_SESSION['uid']), $id));
    $smarty->display('wap/personal/wap-comlpete-resume.html');
} elseif ($act == "resume_basic") {
    $smarty->cache = false;