コード例 #1
0
ファイル: search.php プロジェクト: vinothtimes/dchqtest
Now, JB_FIELD_BLOCK_SWITCH from config.php means: If YES, then some fields are 
blocked. They are blocked unless the employer has an active subscription which
then they are un-blocked.

When JB_FIELD_BLOCK_SWITCH is set to YES then we can show the resume page. This 
is because the fields are blocked, so it is safe to show the resume without 
revealing the blocked fields.
*/
$CAN_VIEW_RESUMES = false;
list($CAN_VIEW_RESUMES, $OVER_QUOTA, $FIRST_POST, $NOT_VALIDATED) = JBEmployer::get_resume_view_flags($_SESSION['JB_ID'], $_REQUEST['resume_id']);
if ($key_test_passed) {
    $CAN_VIEW_RESUMES = true;
}
if ($CAN_VIEW_RESUMES && isset($_REQUEST['resume_id'])) {
    $JBPage = new JBResumePage($_REQUEST['resume_id']);
}
##############################################################
# End of initialization
##############################################################
JB_template_employers_header();
?>

<script language="JavaScript" type="text/javascript">
function showDIV(obj, bool) {
	obj.setAttribute("style", "display: none", 0);
	if (bool == false) {
		//obj.style.visibility = "hidden";
		document.getElementById ('app_form_tmp').innerHTML=document.getElementById('app_form').innerHTML;
		document.getElementById ('app_form').innerHTML=document.getElementById('app_form_blank').innerHTML;
	}
コード例 #2
0
ファイル: resume.php プロジェクト: vinothtimes/dchqtest
<?php

###########################################################################
# Copyright Jamit Software 2012, http://www.jamit.com
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
###########################################################################
require "../config.php";
include 'login_functions.php';
require_once "../include/resumes.inc.php";
require_once "../include/profiles.inc.php";
JB_process_login();
$resume_id = JB_get_resume_id($_SESSION['JB_ID']);
$JBPage = new JBResumePage($resume_id);
// this loads and sets the dynamic forms, data, etc
$resume_data =& $JBPage->vars['DynamicForm']->get_values();
JB_template_candidates_header();
JB_display_info_box($label["c_resume_header"], $label["c_resume_intro"], 80);
$employer_id = (int) $_REQUEST['employer_id'];
if ($_REQUEST['action'] == 'grant') {
    $sql = "UPDATE `requests` SET `request_status`='GRANTED' WHERE `employer_id`='" . jb_escape_sql($employer_id) . "' AND candidate_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' ";
    JB_mysql_query($sql) or die(mysql_error());
    JB_send_request_granted_email($_SESSION['JB_ID'], $employer_id);
}
if ($_REQUEST['action'] == 'refuse') {
    $sql = "UPDATE `requests` SET `request_status`='REFUSED' WHERE `employer_id`='" . jb_escape_sql($employer_id) . "' AND candidate_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' ";
    JB_mysql_query($sql) or die(mysql_error());
}
if (isset($_REQUEST['delete']) && $_REQUEST['delete']) {
    $sql = "UPDATE `requests` SET `request_status`='REFUSED' WHERE `employer_id`='" . jb_escape_sql($employer_id) . "' AND candidate_id='" . jb_escape_sql($_SESSION['JB_ID']) . "' ";