<?php

include "../includes/config.php";
if ($_SESSION['aid'] == '') {
    header("location:index.php");
}
tocheckvaliddetails('JobID', 'uk_master_live_job_search', ' jobpostrecruiteremployer= "' . $_GET['rid'] . '" ', 'view_recruiter.php?page=viewrct');
if (isset($_REQUEST["action"])) {
    $action = $_REQUEST["action"];
    $chkid = "'" . implode("','", $_POST["chkid"]) . "'";
    switch ($action) {
        case "Inactive":
            $sql = "UPDATE `uk_master_live_job_search` SET `jobstatus`='0' WHERE `JobID` in ({$chkid})";
            mysql_query_with_throw($sql);
            $msg = 'Status has been updated successfully to INACTIVE!';
            $class = 'successmsg';
            break;
        case "Active":
            $sql = "UPDATE `uk_master_live_job_search` SET `jobstatus`='1'  WHERE `JobID` in ({$chkid})";
            mysql_query_with_throw($sql);
            $msg = 'Status has been updated successfully to ACTIVE!';
            $class = 'successmsg';
            break;
        case "Inactiveall":
            $sql = "UPDATE `uk_master_live_job_search` SET `jobstatus`='0' WHERE `jobpostrecruiteremployer` = " . $_GET["rid"];
            mysql_query_with_throw($sql);
            $msg = 'Status has been updated successfully to INACTIVE!';
            $class = 'successmsg';
            break;
        case "Activeall":
            $sql = "UPDATE `uk_master_live_job_search` SET `jobstatus`='1'  WHERE `jobpostrecruiteremployer` = " . $_GET["rid"];
<?php

include "../includes/config.php";
tocheckvaliddetails('JobID', 'uk_master_live_job_search', ' JobID= "' . $_GET['id'] . '" ', 'view_jobs.php?page=jobs');
$id = $_GET['id'];
$row = mysql_fetch_assoc(mysql_query_with_throw("SELECT * FROM `uk_master_live_job_search` WHERE `JobID`='{$id}'"));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ADMIN CONSOLE // Jobs Site</title>
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<!-- Internet Explorer Fixes Stylesheet -->
<!--[if lte IE 7]>
<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
<![endif]-->
<script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
<!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]-->
<!-- Internet Explorer .png-fix -->
<!--[if IE 6]>
<script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png_bg, img, li');
</script>
<![endif]-->
<style type="text/css">
table tr td{text-transform:capitalize;}
<?php

checklogin();
tocheckvaliddetails('ApplicantID', 'uk_job_applicants', 'ApplicantID = "' . $_GET['aptid'] . '" AND jobid= "' . $_GET['jobid'] . '" ', 'index.php');
$id = $_GET['aptid'];
$row = mysql_fetch_assoc(mysql_query_with_throw("SELECT * FROM `uk_job_applicants` WHERE `ApplicantID`='{$id}'"));
?>
<h1 class="gt-heading">Applicants Details</h1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td width="28%;">Applicant Title</td>
                <td><?php 
echo $row["applicanttitle"];
?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Name</td>
                <td><?php 
echo $row["applicantfirstname"] . ' ' . $row["applicantlastname"];
?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Mobile</td>
<?php

checklogin();
tocheckvaliddetails('JobID', 'uk_master_live_job_search', 'jobpostrecruiteremployer = "' . $_SESSION['GTUserID'] . '" AND JobID= "' . $_GET['jobid'] . '" ', 'index.php');
include 'secondarylink.php';
$sql = 'SELECT * FROM `uk_master_live_job_search` WHERE jobpostrecruiteremployer = "' . $_SESSION['GTUserID'] . '" AND JobID= "' . $_GET['jobid'] . '" ';
$rs = mysql_query_with_throw($sql);
$row = mysql_fetch_assoc($rs);
$_SESSION['myForm'] = $row;
?>
 
<h1 class="gt-heading">Edit Jobs</h1>
<?php 
//print_r($_SESSION['myForm']);
// contact form
if (isset($_POST['submitted']) && 'true' == $_POST['submitted']) {
    // checks if the form is submitted and then processes it
    include 'process_post_jobs_form_edit.php';
    process_form();
} else {
    // else prints the form
    print_form();
}
function print_form()
{
    global $array_hearaboutus, $array_industry, $array_jobtype;
    ?>
<form method="post" action="" name="form1" enctype="multipart/form-data">
<input name="postid" type="hidden" value="<?php 
    echo $_GET["jobid"];
    ?>
<?php

if (trim($_GET["jobid"]) != "") {
    tocheckvaliddetails('JobID', 'uk_master_live_job_search', " JobID =" . $_GET["jobid"], 'index.php');
    $jobid = $_GET["jobid"];
    $_SESSION["GTjobISD"] = $jobid;
    $sql = "SELECT `hits` FROM `uk_master_live_job_search` WHERE `JobID` = '{$jobid}'";
    $rs = mysql_query_with_throw($sql) or die(mysql_error());
    $row = mysql_fetch_assoc($rs);
    if (mysql_num_rows($rs) > 0) {
        $update = $row["hits"] + 1;
        $sql2 = "UPDATE `uk_master_live_job_search` SET `hits` = '{$update}' WHERE `JobID` = '{$jobid}'";
        $rs2 = mysql_query_with_throw($sql2) or die(mysql_error());
    }
    if ($_SERVER['HTTP_HOST'] != "localhost") {
        $_SESSION["RWSreturnURL"] = 'http://clientsdisplay.com' . $_SERVER['REQUEST_URI'];
    } else {
        $_SESSION["RWSreturnURL"] = 'http://localhost' . $_SERVER['REQUEST_URI'];
    }
    $jobid = $_GET['jobid'];
    $sql = 'SELECT * FROM `uk_master_live_job_search` WHERE jobid = "' . $jobid . '" ';
    $rs = mysql_query_with_throw($sql);
    $row = mysql_fetch_assoc($rs);
    $_SESSION['myForm'] = $_POST;
    ?>
<h1 class="gt-heading">apply for <?php 
    echo $row['jobpostsubject'];
    ?>
</h1>
<?php 
    if ($_GET["apid"] != "") {
<?php

include "../includes/config.php";
tocheckvaliddetails('RecruiterID', 'uk_full_access_account_members', ' RecruiterID= "' . $_GET['id'] . '" ', 'view_recruiter.php?page=viewrct');
$id = $_GET['id'];
if (isset($_POST['rwssubmit'])) {
    $errors = array();
    //Initialize error array
    if (empty($_POST["rwsuemailiduser"])) {
        $errors[] = 'emailid';
    } else {
        if (!eregi('^[[:alnum:]][a-z0-9_\\.\\-]*@[a-z0-9\\.\\-]+\\.[a-z]{2,4}$', stripslashes(trim($_POST['rwsuemailiduser'])))) {
            $errors[] = 'Please provide a valid email address!';
        }
        // if eregi
        // if empty email
    }
    //registerpassword
    if (empty($_POST['rwsupass'])) {
        $errors[] = 'registerpassword';
    } else {
        if (strlen($_POST['rwsupass']) < 6) {
            $errors[] = 'The minimum characters for passwords to be set at 6!';
        }
    }
    if (empty($errors)) {
        if ($_POST["rwsplan"] != "") {
            if (isUniqueadmin("registeremail", $_POST['rwsuemailiduser'], "uk_full_access_account_members", $id)) {
                $rwsplan = $_POST["rwsplan"];
                $rwsnote = $_POST["rwsnote"];
                $paystatus = $_POST["paystatus"];
<?php

include "../includes/config.php";
if ($_SESSION['aid'] == '') {
    header("location:index.php");
}
tocheckvaliddetails('ApplicantID', 'uk_job_applicants', ' jobid = "' . $_GET['jobid'] . '" ', 'view_recruiter.php?page=viewrct');
if (isset($_REQUEST["action"])) {
    $action = $_REQUEST["action"];
    $chkid = "'" . implode("','", $_POST["chkid"]) . "'";
    switch ($action) {
        case "Inactive":
            $sql = "UPDATE `uk_job_applicants` SET `jobstatus`='0' WHERE `ApplicantID` in ({$chkid})";
            mysql_query_with_throw($sql);
            $msg = 'Status has been updated successfully to INACTIVE!';
            $class = 'successmsg';
            break;
        case "Active":
            $sql = "UPDATE `uk_job_applicants` SET `jobstatus`='1'  WHERE `ApplicantID` in ({$chkid})";
            mysql_query_with_throw($sql);
            $msg = 'Status has been updated successfully to ACTIVE!';
            $class = 'successmsg';
            break;
        case "Delete":
            $sql = "delete from `uk_job_applicants` where `ApplicantID` in ({$chkid})";
            mysql_query_with_throw($sql);
            $msg = 'Records has been deleted successfully!';
            $class = 'successmsg';
            break;
    }
}
<?php

include "../includes/config.php";
tocheckvaliddetails('ApplicantID', 'uk_job_applicants', ' ApplicantID= "' . $_GET['id'] . '" ', 'view_jobseekers.php?page=jobskr');
$id = $_GET['id'];
$row = mysql_fetch_assoc(mysql_query_with_throw("SELECT * FROM `uk_job_applicants` WHERE `ApplicantID`='{$id}'"));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ADMIN CONSOLE // Jobs Site</title>
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<!-- Internet Explorer Fixes Stylesheet -->
<!--[if lte IE 7]>
<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
<![endif]-->
<script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
<!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]-->
<!-- Internet Explorer .png-fix -->
<!--[if IE 6]>
<script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png_bg, img, li');
</script>
<![endif]-->
<style type="text/css">
table tr td{text-transform:capitalize;}