Ejemplo n.º 1
0
        $resume_row = mysql_fetch_array($resume_result, MYSQL_ASSOC);
        if ($resume_row['resume_id'] != '') {
            require_once dirname(__FILE__) . "/include/resumes.inc.php";
            $resume_data = JB_load_resume_data($resume_row['resume_id']);
        }
        if ($data['post_mode'] != 'premium') {
            // standard post?
            if (JB_ONLINE_APP_REVEAL_STD == 'YES' && $resume_data['anon'] == 'Y') {
                // reveal candidate's resume, even if hidden?
                JB_grant_request($resume_data['user_id'], $data['user_id']);
            }
        } elseif ($data['post_mode'] == 'premium') {
            // premium posts?
            if (JB_ONLINE_APP_REVEAL_PREMIUM == 'YES' && $resume_data['anon'] == 'Y') {
                // reveal candidate's resume, even if hidden?
                JB_grant_request($resume_data['user_id'], $data['user_id']);
            }
        }
        // redirect the user to a custom URL
        jb_app_redirect_script($data);
    } elseif (JB_ONLINE_APP_SIGN_IN != 'YES') {
        // users can apply without logging in
        jb_app_redirect_script($data);
    }
}
function jb_app_redirect_script(&$data)
{
    ?>

		<script type="text/javascript">
			function js_redirect() {
Ejemplo n.º 2
0
    </table>

           </center>
         

</form>
<hr>
<h3>
Step 2 - Select Employer and grant access
</h3>

<?php 
if ($_REQUEST['grant'] != '') {
    $users = $_REQUEST['users'];
    foreach ($users as $user) {
        JB_grant_request($_REQUEST['candidate_id'], $user);
        echo "<font color='#339900'><b>Granted access for Employer #{$user}</b></font>";
    }
}
$resume_id = $_REQUEST['resume_id'];
$q_aday = $_REQUEST['q_aday'];
$q_amon = $_REQUEST['q_amon'];
$q_ayear = $_REQUEST['q_ayear'];
$q_name = $_REQUEST['q_name'];
$q_username = $_REQUEST['q_username'];
$q_resumes = $_REQUEST['q_resumes'];
$q_news = $_REQUEST['q_news'];
$q_email = $_REQUEST['q_email'];
$q_company = $_REQUEST['q_company'];
if ($show == "NA") {
    echo "<h3>Listing Non-Valid Employer Accounts</h3>";
Ejemplo n.º 3
0
     }
     // The user is logged in
     // save application..
     $now = gmdate("Y-m-d H:i:s");
     $sql = "INSERT INTO `applications` (`user_id`, `post_id`, `app_date`, `cover_letter`, `employer_id`, `employer_name`, `data1`, `data2`, `data3`) VALUES ( '" . jb_escape_sql($user_id) . "', '" . jb_escape_sql($post_id) . "', '" . jb_escape_sql($now) . "', '" . jb_escape_sql($app_letter) . "', '" . jb_escape_sql($POSTED_BY_ID) . "', '" . jb_escape_sql(addslashes($POSTED_BY)) . "', '" . jb_escape_sql(addslashes($TITLE)) . "', '" . jb_escape_sql(addslashes($LOCATION)) . "', '" . jb_escape_sql(addslashes($EMAIL)) . "') ";
     JB_mysql_query($sql);
     ##############
     # Automatically grant permission for employer to view
     // If anonymous fields are enabled
     if (JB_RESUME_REQUEST_SWITCH == 'YES') {
         if (Jb_is_request_granted($user_id, $PForm->get_value('user_id')) === 0) {
             // no request was sent / granted
             if (JB_ONLINE_APP_REVEAL_PREMIUM == 'YES' && $PForm->get_value('post_mode') == 'premium' || JB_ONLINE_APP_REVEAL_STD == 'YES' && $PForm->get_value('post_mode') != 'premium' || JB_ONLINE_APP_REVEAL_RESUME == 'YES') {
                 // Grant the request automatically - this will unblock candidate's resume details
                 // for the user_id of the poster
                 if (JB_grant_request($user_id, $PForm->get_value('user_id'))) {
                     // send an email to employer to notify them that a request has been granted
                     $is_anon = 'N';
                     // not anonymous
                     JB_send_request_granted_email($user_id, $PForm->get_value('user_id'));
                 }
             }
         }
     } else {
         $is_anon = 'N';
     }
 }
 // strip slashes from data before sending it by email
 // (Jamit job board adds slashes regardless of PHP config)
 $app_letter = stripslashes(JB_clean_str($_REQUEST['app_letter']));
 $app_subject = stripslashes(JB_clean_str($_REQUEST['app_subject']));