function accreditationSendEmail($id, $newStatus)
{
    $subj = "Media Accreditation Application";
    $headers = "From: Pili-Pinas2016 <*****@*****.**>\r\n";
    $body = "";
    if ($newStatus == 1) {
        $body = "Congratulations! Your media accreditation application has been approved!";
    } else {
        $body = "We are sorry to inform you that your media accreditation application has been denied.";
    }
    $application = getAccreditationApplications($id);
    $email = $application->workEmail;
    wp_mail($email, $subj, $body, $headers);
}
">View</a></td>
				</tr>
				<?php 
    }
    ?>
			</tbody>
			<tfoot></tfoot>
		</table>
		<?php 
    echo do_shortcode('[wp_jdt id="accreditationTable"]');
    ?>
		<br/>
	</div>
<?php 
} else {
    $item = getAccreditationApplications($_REQUEST['id']);
    $uploadDir = wp_upload_dir();
    ?>
<div class="w-container">
	<br/>
	<p><a href="<?php 
    echo get_site_url();
    ?>
/accreditation/admin/"> < View all</a></p>
	<br/>
	<div class="w-row">
		<div class="w-col w-col-8">
			<div class="w-row">
				<h5>Name</h5>
				<p><?php 
    echo $item->lastName . ", " . $item->firstName . " " . $item->middleName;