コード例 #1
0
            $points = $resume['talent_'] == '2' ? $points_rule['resume_download_advanced']['value'] : $points_rule['resume_download']['value'];
            $mypoints = get_user_points($_SESSION['uid']);
            if ($mypoints < $points) {
                if (!empty($setmeal) && $_CFG['setmeal_to_points'] == "1") {
                    exit('你的服务已到期或超出服务条数。您可以登录网页版申请服务');
                } else {
                    exit('你的' . $_CFG['points_byname'] . ' 不足,请充值后下载');
                }
            } else {
                exit("ok");
            }
        }
    }
} elseif ($act == "ajax_download_resume_add_save") {
    $resume_id = intval($_POST["resume_id"]);
    $resume = resume_one($resume_id);
    $resume = array_map("addslashes", $resume);
    $setmeal = get_user_setmeal($_SESSION['uid']);
    if ($_CFG['operation_mode'] == "3") {
        if ($_CFG['setmeal_to_points'] == "1") {
            if (empty($setmeal) || $setmeal['endtime'] < time() && $setmeal['endtime'] != "0") {
                $_CFG['operation_mode'] = "1";
            } elseif ($resume['talent'] == '2' && $setmeal['download_resume_senior'] <= 0) {
                $_CFG['operation_mode'] = "1";
            } elseif ($resume['talent'] == '1' && $setmeal['download_resume_ordinary'] <= 0) {
                $_CFG['operation_mode'] = "1";
            } else {
                $_CFG['operation_mode'] = "2";
            }
        } else {
            $_CFG['operation_mode'] = "2";
コード例 #2
0
ファイル: resume-show.php プロジェクト: winiceo/job
 * 74cms WAP
 * ============================================================================
 * 版权所有: 骑士网络,并保留所有权利。
 * 网站地址: http://www.74cms.com;
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
define('IN_QISHI', true);
require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once QISHI_ROOT_PATH . 'include/fun_wap.php';
require_once QISHI_ROOT_PATH . 'include/mysql.class.php';
$smarty->cache = false;
$db = new mysql($dbhost, $dbuser, $dbpass, $dbname);
require_once dirname(__FILE__) . '/weixin_share.php';
$id = intval($_GET['id']);
$row = resume_one($id);
wap_weixin_logon($_GET['from']);
if (intval($_SESSION["uid"]) > 0) {
    $sql = "select * from " . table("company_down_resume") . " where company_uid={$_SESSION['uid']} and resume_id=" . $id;
    $down_resume = $db->getone($sql);
    $smarty->assign('down_resume', $down_resume);
    $time = time();
    $jobs_sql = "select * from " . table("jobs") . " where uid={$_SESSION['uid']} and display=1 and deadline>{$time} ";
    $jobs_row = $db->getall($jobs_sql);
    $smarty->assign('jobs_row', $jobs_row);
}
$smarty->assign('show', $row);
$smarty->assign('goback', $_SERVER["HTTP_REFERER"]);
$smarty->display("m/m-resume-show.html");
コード例 #3
0
ファイル: ajax.php プロジェクト: winiceo/job
                    $list['reply_status'] = "不合格";
                } elseif ($list['is_reply'] == '3') {
                    $list['reply_status'] = "待定";
                } elseif ($list['is_reply'] == '4') {
                    $list['reply_status'] = "未接通";
                }
            }
            $favoriteshtml .= '<article class="classifylist box"><section class="title flex-box"><div class="chk chkabaout"><input type="checkbox" id[]="' . $list['jobs_id'] . '" /><label for="" class="check-box"></label></div><div class="name">' . $list['jobs_name'] . '</div><div class="status flex2"><span>' . $list['reply_status'] . '</span></div></section><section class="txt flex-box"><div class="chk chkabaout"></div><div class="left">' . $list['company_name'] . '</div><div class="right flex2">' . date('Y-m-d', $list['apply_addtime']) . '</div></section></article>';
        }
        exit($favoriteshtml);
    } else {
        exit('-1');
    }
} elseif ($act == 'invited_add') {
    $smarty->cache = false;
    $resume = resume_one($_POST["resume_id"]);
    $jobs = jobs_one($_POST["jobs_id"]);
    if ($_SESSION['utype'] != 1) {
        exit("企业会员请登录后邀请面试");
    }
    if (check_interview($_POST["resume_id"], $_POST["jobs_id"], $_SESSION['uid'])) {
        exit("repeat");
    }
    $addarr['resume_id'] = $resume['id'];
    $addarr['resume_addtime'] = $resume['addtime'];
    if ($resume['display_name'] == "2") {
        $addarr['resume_name'] = "N" . str_pad($resume['id'], 7, "0", STR_PAD_LEFT);
    } elseif ($resume['display_name'] == "3") {
        if ($resume['sex'] == 1) {
            $addarr['resume_name'] = cut_str($resume['fullname'], 1, 0, "先生");
        } elseif ($resume['sex'] == 2) {
コード例 #4
0
ファイル: wap_user.php プロジェクト: source-hunter/74cms
    $refresh_time = get_today_refresh_times($_SESSION['uid'], "2001");
    if ($_CFG['per_refresh_resume_time'] != 0 && $refresh_time['count(*)'] >= $_CFG['per_refresh_resume_time']) {
        exit("每天最多只能刷新" . $_CFG['per_refresh_resume_time'] . "次,您今天已超过最大刷新次数限制!");
    } elseif ($duringtime <= $space) {
        exit($_CFG['per_refresh_resume_space'] . "分钟内不能重复刷新简历!");
    } else {
        refresh_resume($resumeid, intval($_SESSION['uid'])) ? exit('ok') : exit("err");
    }
} elseif ($act == "resume_privacy") {
    $smarty->cache = false;
    $pid = intval($_GET['pid']);
    //屏蔽的企业
    $uid = intval($_SESSION["uid"]);
    $shield_company = $db->getall("select * from " . table("personal_shield_company") . " where uid={$uid} and pid={$pid}");
    $smarty->assign('shield_company', $shield_company);
    $smarty->assign('resume_one', resume_one($pid));
    $smarty->display('wap/personal/wap-privacy-settings.html');
} elseif ($act == "resume_privacy_save") {
    $smarty->cache = false;
    $uid = intval($_SESSION['uid']);
    $pid = intval($_POST['pid']);
    $setsqlarr['display'] = intval($_POST['display']);
    $setsqlarr['display_name'] = intval($_POST['display_name']);
    // $setsqlarr['photo_display']=intval($_POST['photo_display']);
    !$db->updatetable(table('resume'), $setsqlarr, " uid='{$uid}' AND  id='{$pid}'");
    $setsqlarrdisplay['display'] = intval($_POST['display']);
    !$db->updatetable(table('resume_search_key'), $setsqlarrdisplay, " uid='{$uid}' AND  id='{$pid}'");
    !$db->updatetable(table('resume_search_rtime'), $setsqlarrdisplay, " uid='{$uid}' AND  id='{$pid}'");
    $rst = write_memberslog($uid, 2, 1104, $_SESSION['username'], "设置简历隐私({$pid})");
    if ($rst) {
        exit("ok");