<td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Work Eligibility</td>
                <td><?php 
echo $row["applicantukworkeligibility"];
?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Applied For</td>
                <td><?php 
echo togetjobname($row["jobid"]);
$regid = base64_encode('EJOB-Network-' . $id);
?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
               <tr>
                <td>View Resume</td>
                <td><a href="<?php 
echo 'downloadcv.php?file=' . stripslashes($regid);
?>
" target="_blank">Click Here to View</a></td>
              </tr>
              <tr>
		<tr>
        <td height="30" align="left" valign="middle"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#333333;">Additional Info:</font></td>
        <td height="30" align="left" valign="middle"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000; ">' . stripslashes($applicantadditionalinformation) . '</font></td>
      </tr>
	   <tr>
        <td height="1" colspan="2" align="left" valign="middle" bgcolor="#e5e5e5"></td>
        </tr> 
		 
  <tr>
        <td height="40" colspan="2" align="left" valign="bottom"><font style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#000000;">&copy; <a href="http://www.ejobs-network.com" title="ejobs-network.com" style="color:#e64135;">ejobs-network.com</a></font></td>
      </tr>
    </table></td>
  </tr>
</table>';
                sendmail('*****@*****.**', $subject, $applicantemail, $applicantfirstname, $body, $path, $resumefilename);
                sendmail($applicantemail, 'EJOB Network - Applied for job' . togetjobname($_GET["jobid"]), '*****@*****.**', 'Ejobs Network', $body, $path, $resumefilename);
                $recruiteremail = togetrecruiteremail($_GET["jobid"]);
                sendmail($recruiteremail, $subject, $applicantemail, $applicantfirstname, $body, $path, $resumefilename);
                //sendmail('*****@*****.**',$subject,$applicantemail,$applicantfirstname,$body,$path,$resumefilename);
                sendmail('*****@*****.**', $subject, $applicantemail, $applicantfirstname, $body, $path, $resumefilename);
                unset($_SESSION['myForm']);
                $redirect = $_SESSION["RWSreturnURL"] . '&apid=' . $apid;
                echo "<script>document.location.href='{$redirect}';</script>";
            }
        } else {
            //report the errors
            echo '<div id="formfeedback"><b><font size="4">WHOOPS! PLEASE REVIEW THE FOLLOWING ISSUES:</font></b>';
            foreach ($errors as $msg) {
                //prints each error
                echo "<ul><li>{$msg}</li></ul>\n";
            }
    echo $row['applicantfirstname'];
    ?>
 <?php 
    echo $row['applicantlastname'];
    ?>
</td>
          <td  height="30"><?php 
    echo $row['applicantemail'];
    ?>
</td>
          <td><a href="../useruploads/<?php 
    echo togetpath($row["add_date"]) . $row['applicantcvattachment'];
    ?>
" target="_blank">Click Here to View</a></td>
          <td  height="30"><?php 
    echo togetjobname($row['jobid']);
    ?>
</td>
          <td><?php 
    if ($row['status'] == "1") {
        echo "Active";
    } else {
        echo "In-Active";
    }
    ?>
</td>
          <td  height="30"><?php 
    echo togetrecruiterjobname($row['jobid']);
    ?>
</td>
          <td  height="30"><?php 
<?php

checklogin();
tocheckvaliddetails('JobID', 'uk_master_live_job_search', 'jobpostrecruiteremployer = "' . $_SESSION['GTUserID'] . '" AND JobID= "' . $_GET['jobid'] . '" ', 'index.php');
?>
<h1 class="gt-heading">View Applicants for "<?php 
echo togetjobname($_GET["jobid"]);
?>
"</h1>
<?php 
include 'secondarylink.php';
if (isset($_GET['Action'])) {
    $action = $_GET['Action'];
    $chkjobid = $_POST['chkjobid'];
    $temp = "";
    if (is_array($chkjobid)) {
        foreach ($chkjobid as $val) {
            $temp .= "'" . $val . "',";
        }
        $temp = substr($temp, 0, strlen($temp) - 1);
    }
    switch ($action) {
        case 'Delete':
            $sql = "delete from uk_job_applicants  where ApplicantID in ({$temp}) AND `jobpostrecruiteremployer` = " . $_SESSION['GTUserID'];
            break;
        case 'enable_action':
            $sql = "update uk_job_applicants set jobstatus=1 where ApplicantID in ({$temp})  AND `jobpostrecruiteremployer` = " . $_SESSION['GTUserID'];
            break;
        case 'disable_action':
            $sql = "update uk_job_applicants set jobstatus=0 where ApplicantID in ({$temp}) AND `jobpostrecruiteremployer` = " . $_SESSION['GTUserID'];
            break;