# 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"; require_once '../include/posts.inc.php'; require_once "../include/category.inc.php"; include 'login_functions.php'; JB_process_login(); // make sure that the candidate is logged in $offset = (int) $_REQUEST['offset']; // if the applications span more than one page $post_id = (int) $_REQUEST['post_id']; // if listing application by job posting $apps = jb_int_array($_REQUEST['apps']); // array of application ids selected if ($post_id > 0) { // Load the data for displaying a job post $JBPage = new JBJobPage($post_id); } JB_template_candidates_header(); $ALM =& JB_get_ListMarkupObject('JBAppListMarkup'); $ALM->set_list_mode('CANDIDATE'); // print the Javascript code for confirming button press & selecting checkboxes if ($_REQUEST['delete'] != '') { $user_id = (int) $_SESSION['JB_ID']; for ($i = 0; $i < sizeof($apps); $i++) { $sql = "DELETE FROM `applications` WHERE `app_id`='" . jb_escape_sql($apps[$i]) . "' AND `user_id`='" . jb_escape_sql($user_id) . "'"; $result = JB_mysql_query($sql) or die(mysql_error()); }
########################################################################### require "../config.php"; require_once '../include/posts.inc.php'; require_once "../include/category.inc.php"; include 'login_functions.php'; JB_process_login(); $post_id = (int) $_REQUEST['post_id']; $employer_id = (int) $_REQUEST['show_emp']; if ($post_id > 0) { // Load the data for displaying a job post $JBPage = new JBJobPage($post_id); } JB_template_candidates_header(); $post_id = (int) $_REQUEST['post_id']; $action = jb_alpha($_REQUEST['action']); $posts = jb_int_array($_REQUEST['posts']); if ($_REQUEST['delete'] != "") { $user_id = $_SESSION['JB_ID']; for ($i = 0; $i < sizeof($posts); $i++) { $sql = "DELETE FROM `saved_jobs` WHERE `post_id`='" . jb_escape_sql($posts[$i]) . "' AND `user_id`='" . jb_escape_sql($user_id) . "'"; $result = JB_mysql_query($sql) or die(mysql_error()); } $label['save_job_deleted'] = str_replace('%COUNT%', jb_mysql_affected_rows(), $label['save_job_deleted']); $JBMarkup->ok_msg($label['save_job_deleted']); } JB_render_box_top(99, $label['c_save_my_jobs']); if ($_SESSION['SAVE'] != '' || $action == 'save') { if ($_SESSION['SAVE'] != '') { $post_id = $_SESSION['SAVE']; } $now = gmdate("Y-m-d H:i:s");