Esempio n. 1
0
/*

The $CAN_VIEW_RESUMES (boolean) means: If true then they can view the resume 
page. If false, then they can't view it and a 'please subscribe' message is 
shown. So 'false' will mean that they cannot view this page at all.

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);