<?php
error_reporting(0);
define('INCLUDE_CHECK',true);
session_start();
require ('classes/config.php');
require_once('classes/session.php');

	 $sql = mysql_query("SELECT admission_cbt_slip.formno,admission_cbt_slip.exam_date,admission_cbt_slip.exam_time,admission_students_details.courses,admission_students_details.surname,admission_students_details.othernames,admission_students_details.sex,admission_students_details.pix FROM admission_cbt_slip, admission_students_details WHERE admission_cbt_slip.formno = '$_POST[fno]' AND admission_students_details.formno = '$_POST[fno]'");
			while($srows = mysql_fetch_array($sql)){
							
				$fno = $srows['formno'];
				$examdate = $srows['exam_date'];
				$examtime = $srows['exam_time'];
				$surname = $srows['surname'];
				$othernames = $srows['othernames'];
				$sex = $srows['sex']; 
				$courses = $srows['courses'];
				$pix = $srows['pix'];
			}
			 if (substr($fno,0,2)=='PU'){ $formtype ="ND Full Time (Jambite)"; }
			 if (substr($fno,0,2)=='DP'){ $formtype ="Daily-Part-Time";}
			 if (substr($fno,0,2)=='FT'){$formtype ="HND Full-Time";}
			 
	$sqlupdate=mysql_query("UPDATE admission_cbt_slip SET date_accessed=NOW() WHERE formno='$_POST[fno]'")or die ('An error occured ' . mysql_error());

			 		   
?>



<!DOCTYPE html>
<html>
<head>
<title>OSCOTECH | CBT sccreening Examination Result</title>
<link href="http://oscotechesaoke.edu.ng/admission_portal/layout/css/bootstrap.login.css" rel="stylesheet" type="text/css" media="all" />
<link href="http://oscotechesaoke.edu.ng/admission_portal/layout/css/login.css" rel="stylesheet" type="text/css" media="all" />		
<link rel="shortcut icon" href="images/favicon.ico">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
</head>
<body>
	<div class="cbtborder">
    	<div class="headert">
    		<img src="images/barnner2_bg.jpg" width="750px">
        </div>
    	<h2>2015 SCREENING EXAMINATION SCHEDULE SLIP</h2>
        <center>
        <table class="table  table-condensed table-responsive" style="width:650px; font-size:14px">
        	<tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td rowspan="5"><div class="DIVimages"><img  src="http://oscotechesaoke.edu.ng/admission_portal<?php echo substr($pix,1,23);  ?>" width="160" height="160"></div></td>
            </tr>
            <tr>
                <td><strong>NAME:</strong> <?php echo $surname.", ". $othernames; ?></td>
                <td><strong>FORMNO:</strong> <?php echo $fno;?></td>
            </tr>
            <tr>
                <td><strong>MODE OF ADMISSION:</strong> <?php echo $formtype; ?></td>
                <td><strong>SEX:</strong> <?php echo $sex; ?></td>
            </tr>
            <tr>
            	<td colspan="2"><strong>DEPARTMENT APPLIED FOR:</strong> <?php echo $courses; ?></td>
            </tr>
            <tr>
                <td><strong>EXAM DATE:</strong> <?php echo $examdate; ?></td>
                <td><strong>EXAM TIME:</strong> <?php echo $examtime; ?></td>
            </tr>
            <tr>
                <td><strong>EXAM VENUE:</strong> ICT Resource Center I</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
        	<p><strong style="color:#093; font-size:14px">Please come along with original and photocopy of all your credentials, <br>Receipts and #3,000.00 for CBT Screening Receipt</strong></p>
            <p><strong style="font-size:20px"><?php echo $grade; ?></strong></p>
        	<hr style="border: dashed 1px #ccc; width:70%">
         <p style="font-size:14px; width:500px; padding-bottom:10px;"><i>Bring this slip along with you to the Exam Venue:</i></p>   
         <p style="font-size:10px; width:500px; padding-bottom:10px;"><i><strong>NOTE:</strong> Admission is not for SALE in the Osun State College of Technology, Esa-Oke. Give nothing in CASH or KIND to anyone for admission.</i></p>
         <p style="color:#F00">Printed: <?php echo date("d/m/Y"); ?></p><br>
        </center>
    </div>
    	<br>
    <center>
   		<INPUT TYPE="button" class="btn btn-success " VALUE="PRINT" ONCLICK="self.print();">
    </center>
    <br>
</body>
</html>

<?php mysql_close();  ?>