</td>
            <td data-title="Jobcode"><?php 
    echo getJobDetails($conn, $row['job_id'], 'job_code');
    ?>
</td>
            <td data-title="Candidate Name">
            	<a href="candidate_trainer_profile.php?registration_id=<?php 
    echo $row['registration_id'];
    ?>
"><?php 
    echo getUserName($conn, $row['registration_id']);
    ?>
</a>
            </td>
            <td data-title="Contact"><?php 
    echo getUserMobile($conn, $row['registration_id']);
    ?>
</td>
            <td data-title="">
            <table border="0" class="innertable" width="100%;">
            <tr>
            <td><a href="#" class="contact acceptjobinterest <?php 
    echo $row['id'];
    ?>
">Contact</a></td>
            <td>
            <a class="contact fancybox fancybox.ajax fade feedback_icon" href="view_feedback.php?employer_registraion_id=<?php 
    echo $row['employer_registraion_id'];
    ?>
&candidate_id=<?php 
    echo $row['registration_id'];
  <div class="dashboard_right fade_anim">
    <div class="dashbox_wrap">
      <div class="dashbox blue_bg">
        <div class="title"><img src="images/icon_profile_big.png" />profile
          <div class="clear"></div>
        </div>
        <p><strong>Name :</strong> <?php 
echo getUserName($conn, $registration_id);
?>
</p>
        <p><strong>Email :</strong> <?php 
echo getUserEmail($conn, $registration_id);
?>
</p>
        <p><strong>Mobile :</strong> <?php 
echo getUserMobile($conn, $registration_id);
?>
</p>
        <a class="more" href="trainer_profile.php"></a> </div>
      <div class="dashbox green_bg">
        <div class="title"><img src="images/icon_tranings_big.png" />Trainings Courses
          <div class="clear"></div>
        </div>
        <div class="posted_job">
          <?php 
while ($row = $result->fetch_assoc()) {
    ?>
          <p><?php 
    echo $row['title'];
    ?>
</p>
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
        $headers .= 'From:JobbReady <*****@*****.**>' . "\n";
        mail($to, $subject, $body, $headers);
    }
    echo json_encode(array('url' => $url, 'error_msg' => $error_msg));
}
if ($action == "showcandidateinterest") {
    $url = "employer_candidates_contacted.php";
    $error_msg = "";
    $employer_registraion_id = $_POST['employer_registraion_id'];
    $registration_id = $_POST['registration_id'];
    $candidatEmail = getUserEmail($conn, $registration_id);
    $candidatName = getUserName($conn, $registration_id);
    $companyEmail = getUserEmail($conn, $employer_registraion_id);
    $comanyName = getCompanyName($conn, $employer_registraion_id);
    $comanyMobile = getUserMobile($conn, $employer_registraion_id);
    $subject = $comanyName . " showing interest in your profile";
    $body = '<table width="100%" height="auto" cellspacing="0" cepadding="0" border="0" align="center" style=" font-family:Arial, Helvetica, sans-serif; font-size:14px; ">    
    <tr>
    <td width="19" ></td>
    <td colspan="2" style="padding:10px; color:#FFFFFF; font-weight:bold;"><img src="http://digitalagencymumbai.com/jobready/images/logo.png" style="width:125px;"/> </td>
    <td width="19" >&nbsp;</td>
    </tr>
    <tr>
    <td bgcolor="#ED1A21" style="padding:10px;">&nbsp;</td>
    <td colspan="2" bgcolor="#ED1A21" style="padding:10px; font-size:30px; text-align:center; color:#fff;">' . $comanyName . ' showing interest in your profile</td>
   <td bgcolor="#ED1A21" style="padding:10px;">&nbsp;</td>
    </tr>   

    <tr>
    <td >&nbsp;</td>