コード例 #1
0
ファイル: personal_apply.php プロジェクト: winiceo/job
        $n = set_hunter_invitation($yid, $_SESSION['uid'], 2);
    } else {
        $n = set_invitation($yid, $_SESSION['uid'], 2);
    }
    if ($n) {
        showmsg("设置成功!", 2);
    } else {
        showmsg("设置失败!", 0);
    }
} elseif ($act == 'interview_del') {
    $yid = !empty($_REQUEST['y_id']) ? $_REQUEST['y_id'] : showmsg("你没有选择项目!", 1);
    $jobs_type = intval($_GET['jobs_type']);
    if ($jobs_type == 1) {
        $n = del_hunter_interview($yid, $_SESSION['uid']);
    } else {
        $n = del_interview($yid, $_SESSION['uid']);
    }
    if (intval($n) > 0) {
        showmsg("删除成功!共删除 {$n} 行", 2);
    } else {
        showmsg("失败!", 0);
    }
} elseif ($act == 'favorites') {
    require_once QISHI_ROOT_PATH . 'include/page.class.php';
    $wheresql = " WHERE f.personal_uid='{$_SESSION['uid']}' ";
    $settr = intval($_GET['settr']);
    if ($settr > 0) {
        $settr_val = strtotime("-" . $settr . " day");
        $wheresql .= " AND f.addtime>" . $settr_val;
    }
    $perpage = 10;
コード例 #2
0
ファイル: company_recruitment.php プロジェクト: winiceo/job
    $count1 = count_interview($_SESSION['uid'], 1, $jobsid);
    //未查看
    $count2 = count_interview($_SESSION['uid'], 2, $jobsid);
    //已查看
    $count = $count1 + $count2;
    $smarty->assign('count', $count);
    $smarty->assign('count1', $count1);
    $smarty->assign('count2', $count2);
    $smarty->assign('filter_jobs', get_interview_jobs($_SESSION['uid']));
    if ($total_val > $perpage) {
        $smarty->assign('page', $page->show(3));
    }
    $smarty->display('member_company/company_interview.htm');
} elseif ($act == 'interview_del') {
    $yid = !empty($_REQUEST['y_id']) ? $_REQUEST['y_id'] : showmsg("你没有选择简历!", 1);
    if (del_interview($yid, $_SESSION['uid'])) {
        showmsg("删除成功!", 2);
    } else {
        showmsg("删除失败!", 0);
    }
} elseif ($act == 'my_attention') {
    require_once QISHI_ROOT_PATH . 'include/page.class.php';
    $joinsql = " LEFT JOIN  " . table('resume') . " AS r  ON  a.resumeid=r.id ";
    $wheresql = " WHERE a.uid='{$_SESSION['uid']}' ";
    //查看时间筛选
    $settr = intval($_GET['settr']);
    if ($settr > 0) {
        $settr_val = strtotime("-" . $settr . " day");
        $wheresql .= " AND a.addtime>" . $settr_val;
    }
    $perpage = 10;
コード例 #3
0
ファイル: company_recruitment.php プロジェクト: dalinhuang/yy
        $smarty->assign('jobs_name', $row["jobs_name"]);
    }
    $look = intval($_GET['look']);
    if ($look > 0) {
        $wheresql .= " AND  i.personal_look='{$look}' ";
    }
    $total_sql = "SELECT COUNT(*) AS num FROM " . table('company_interview') . " as i " . $wheresql;
    $total_val = $db->get_total($total_sql);
    $page = new page(array('total' => $total_val, 'perpage' => $perpage));
    $currenpage = $page->nowindex;
    $offset = ($currenpage - 1) * $perpage;
    $smarty->assign('act', $act);
    $smarty->assign('title', '我发起的面试邀请 - 企业会员中心 - ' . $_CFG['site_name']);
    $smarty->assign('resume', get_interview($offset, $perpage, $joinsql . $wheresql));
    $count1 = count_interview($_SESSION['uid'], 1, $jobsid);
    //未查看
    $count2 = count_interview($_SESSION['uid'], 2, $jobsid);
    //以查看
    $count = $count1 + $count2;
    $smarty->assign('count', $count);
    $smarty->assign('count1', $count1);
    $smarty->assign('count2', $count2);
    $smarty->assign('jobs', get_auditjobs($_SESSION['uid']));
    $smarty->assign('page', $page->show(3));
    $smarty->display('member_company/company_interview.htm');
} elseif ($act == 'interview_del') {
    $yid = !empty($_REQUEST['y_id']) ? $_REQUEST['y_id'] : showmsg("你没有选择项目!", 1);
    $delete = $_REQUEST['delete'];
    $delete ? !del_interview($yid, $_SESSION['uid']) ? showmsg("删除失败!", 0) : showmsg("删除成功!", 2) : '';
}
unset($smarty);