<?php                                                                              
error_reporting(0);
require_once("includes/initialize.php");
$formno = $_SESSION['formno'];
$edit_by_formno = EDITING::search($formno);
							

			
    			$pix = $edit_by_formno->pix;
				// $formno = $edit_by_formno->formno;
        $surname = $edit_by_formno->surname;
        $othernames = $edit_by_formno->othernames;
        $dob = $edit_by_formno->dob;
        $nationality = $edit_by_formno->nationality;
        $state = $edit_by_formno->state;
        $lga = $edit_by_formno->lga;
        $hometown = $edit_by_formno->hometown;
        $sex = $edit_by_formno->sex;
        $maritalStatus = $edit_by_formno->maritalStatus;
        $religion = $edit_by_formno->religion;
        $phone = $edit_by_formno->phone;
        $email = $edit_by_formno->email;
        $department = $edit_by_formno->department;
        $level = $edit_by_formno->level;
        $status = $edit_by_formno->status;
        $session = $edit_by_formno->session;
        $reg_date = $edit_by_formno->reg_date;


        $sb1 = $edit_by_formno->sb1;
        $grd1 = $edit_by_formno->grd1;
        $sb2 = $edit_by_formno->sb2;
        $grd2 = $edit_by_formno->grd2;
        $sb3 = $edit_by_formno->sb3;
        $grd3 = $edit_by_formno->grd3;
        $sb4 = $edit_by_formno->sb4;
        $grd4 = $edit_by_formno->grd4;
        $sb5 = $edit_by_formno->sb5;
        $grd5 = $edit_by_formno->grd5;
        $sb6 = $edit_by_formno->sb6;
        $grd6 = $edit_by_formno->grd6;
        $sb7 = $edit_by_formno->sb7;
        $grd7 = $edit_by_formno->grd7;
        $sb8 = $edit_by_formno->sb8;
        $grd8 = $edit_by_formno->grd8;
        $sb9 = $edit_by_formno->sb9;
        $grd9 = $edit_by_formno->grd9;
        $examno1 = $edit_by_formno->examno1;
        $exam_type1 = $edit_by_formno->exam_type1;
        $exam_year1 = $edit_by_formno->exam_year1;
        $examno2 = $edit_by_formno->examno2;
        $exam_type2 = $edit_by_formno->exam_type2;
        $exam_year2 = $edit_by_formno->exam_year2;

        $j_reg_no = $edit_by_formno->j_reg_no;
        $j_eng = $edit_by_formno->j_eng;
        $jgrd1 = $edit_by_formno->jgrd1;
        $jsb2 = $edit_by_formno->jsb2;
        $jgrd2 = $edit_by_formno->jgrd2;
        $jsb3 = $edit_by_formno->jsb3;
        $jgrd3 = $edit_by_formno->jgrd3;
        $jsb4 = $edit_by_formno->jsb4;
        $jgrd4 = $edit_by_formno->jgrd4;
        $j_total = $edit_by_formno->j_total;
        $ol_total_score = $edit_by_formno->ol_total_score;
        $higher1 = $edit_by_formno->higher1;
        $qual1 = $edit_by_formno->qual1;
        $grade1 = $edit_by_formno->grade1;
        $yr1 = $edit_by_formno->yr1;
        $higher2 = $edit_by_formno->higher2;
        $qual2 = $edit_by_formno->qual2;
        $grade2 = $edit_by_formno->grade2;
        $yr2 = $edit_by_formno->yr2;

        $poly_of_choice = $edit_by_formno->poly_of_choice;
        $company = $edit_by_formno->company;
        $purpose = $edit_by_formno->purpose;
        $from_year = $edit_by_formno->from_year;
        $to_year = $edit_by_formno->to_year;
        $type = $edit_by_formno->type;
        

if (substr($formno,0,2)=="DP"){ $type =  "2019/2020 Daily Part-Time Application Form";}
if (substr($formno,0,2)=="PU"){ $type = "2019/2020 Post UTME Application Form";}
if (substr($formno,0,2)=="FT"){ $type = "2019/2020 HND Full-Time Application Form";}
if (substr($formno,0,2)=="CA"){ $type = "2019/2020 Weekend Part-Time Application Form";}

?>
<!DOCTYPE HTML>
<html>
<head>
    <title>OSCOTECH, ESA-OKE | Printout Admission Form </title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- <link href="css/magnific-popup.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="css/font-awesome.css" rel="stylesheet">
    <link href='//fonts.googleapis.com/css?family=Carrois+Gothic' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Work+Sans:400,500,600' rel='stylesheet' type='text/css'> -->
<style type="text/css">
body{
}
p{
	font-size:12px;	
}
span{
	color:#C00;
	text-transform:uppercase;
	font-weight:bold;
	}
.alert{
	background:#5cb85c !important;
	color:#fff;
}
.btn, btn-success {
    color: #fff;
    background-color: #337ab7;
	border-color: #2e6da4;
}
.maintitle{
	font-size:20px;
	padding:0;
} 
</style>
</head>
<body>
<div class="container" align="center" style="width: 100%">
    <div class="col-md-12 ">
        <img src="images/barnner_bg.jpg">
        <h4><u><?php echo $type; ?></u></h4>
    </div>
    <div class="col-md-4">
    	<img src="<?php echo $pix; ?>" alt="Pix" width="142px" class="hoo">
    </div>
<!-- <div class="clearfix"> </div> -->
<div class="col-md-12">
	<h1 class="maintitle">Bio-Data Information</h1>
    <table class="table table-striped table-responsive table-hover table-bordered">
        <tr>
            <td height="22" colspan="2"  align="center"><strong>Full Name: <?php echo strtoupper($surname)."</strong>". ", ".strtoupper($othernames); ?></td>
            <td height="22" width="250" align="left"><B>Form No:</i></B> <?php echo $formno; ?></td>
        </tr>
        <tr>
            <td align="left"><B>Sex:</i></B> <?php echo $sex; ?></td>
            <td width="250" height="22" align="left"><B>Date of Birth:</B> <?php echo $dob; ?></td>
            <td height="19" align="left"><B>Marital Status: </i></B><?php echo $maritalStatus; ?></td>
        </tr>  
        <tr>
            <td align="left"><B>Religion: </i></B><?php echo $religion; ?></td>
            <td height="19" align="left"><B>Phone Number: </i></B><?php echo $phone; ?></td>
            <td height="19" align="left"><B>Home Town: </i></B><?php echo $hometown; ?></td>
        </tr>
      <tr>
            <td align="left"><B>Local Govt: </i></B><?php echo $lga; ?></td>
            <td height="19" align="left"><B>State of Origin: </i></B><?php echo $state; ?></td>
            <td height="19" align="left"><B>Nationality: </i></B><?php echo $nationality; ?></td>
      </tr>
      <tr>
            <td align="left"><B>E-mail: </i></B><?php echo $email; ?></td>
            <td height="19" align="left"><B> </i></B></td>
            <td height="19" align="left"><B>Level: </i></B><?php echo $level; ?></td>
      </tr>
      <tr>
            <td height="22" colspan="3" align="left"><B>Department: </i></B><?php echo $department; ?></td>
      </tr>
  </table>
</div>
<!-- <div class="clearfix"> </div> -->
<div class="col-md-6 hee">
  <h1 class="maintitle">O' Level Information</h1>
    <table class="table table-striped table-responsive table-hover table-bordered">
        <tr>
        	<td align="left"><b>Exam/Reg. No.:</b> <?php echo $examno1; ?>
                <div class="pull-left elabel"><b>Exam. Type:</b> <?php echo $exam_type1; ?></div>
                <div class="pull-left elabel"><b>Exam. Year: </b><?php echo $exam_year1; ?></div>
            </td>
        	
            <td align="left"><div class="pull-left elabel"><b>Exam/Reg. No.:</b> <?php echo $examno2; ?></div>
        		<div class="pull-left elabel"><b>Exam. Type: </b><?php echo $exam_type2; ?></div>
                <div class="pull-left elabel"><b>Exam. Year: </b><?php echo $exam_year2; ?></div>
         	</td>
      	</tr>
    </table>
</td>
		<table class="table table-striped table-responsive table-hover table-bordered">
            <tr>
                <th>S/N</th>
                <th>SUBJECT</th>
                <th>GRADE</th>
            </tr>
            <tr>
            	<td>1.</td>
            	<td align="left"><?php echo $sb1; ?></td>
            	<td><?php echo $grd1; ?></td>
            </tr>
            <tr>
                <td>2.</td>
                <td align="left"><?php echo $sb2; ?></td>
                <td><?php echo $grd2; ?></td>
            </tr>
            <tr>
                <td>3.</td>
                <td align="left"><?php echo $sb3; ?></td>
                <td><?php echo $grd3; ?></td>
            </tr>
			<tr>
                <td>4.</td>
                <td align="left"><?php echo $sb4; ?></td>
                <td><?php echo $grd4; ?></td>
            </tr>
            <tr>
                <td>5.</td>
                <td align="left"><?php echo $sb5; ?></td>
                <td><?php echo $grd5; ?></td>
            </tr>
            <tr>
                <td>6.</td>
                <td align="left"><?php echo $sb6; ?></td>
                <td><?php echo $grd6; ?></td>
            </tr>
            <tr>
                <td>7.</td>
                <td align="left"><?php echo $sb7; ?></td>
                <td><?php echo $grd7; ?></td>
            </tr>
            <tr>
                <td>8.</td>
                <td align="left"><?php echo $sb8; ?></td>
                <td><?php echo $grd8; ?></td>
            </tr>
            <tr>
                <td>9.</td>
                <td align="left"><?php echo $sb9; ?></td>
                <td><?php echo $grd9; ?></td>
            </tr>
		</table>
    </div>
    <div class="clearfix"> </div>
  <?php if (substr($fno,0,2)=='PU'){ ?>
    <div class="col-md-12">
    <h1 class="maintitle">Jamb Information</h1>
    	<table class="table table-striped table-responsive table-hover table-bordered">
           
            <tr>
            	<td colspan="2" align="left"><b>Choice:</b> <?php echo $poly_of_choice; ?></td>
            	<td><b>Registration No.:</b> <?php echo strtoupper($j_reg_no); ?></td>
                <td align="left"><b>Exam. Year: </b>2018</td>
            </tr>
            <tr>
            	<td align="left"><?php echo $j_eng; ?></td>
            	<td><?php echo $jgrd1; ?></td>
                <td align="left"><?php echo $jsb2; ?></td>
                <td><?php echo $jgrd2; ?></td>
            </tr>
            <tr>
                <td align="left"><?php echo $jsb3; ?></td>
                <td><?php echo $jgrd3; ?></td>
                <td align="left"><?php echo $jsb4; ?></td>
                <td><?php echo $jgrd4; ?></td>
            </tr>
			<tr>
                
            </tr>
            <tr>
                <td  colspan="2" align="right"><b>&nbsp;</b></td>
                <td  align="right"><b>JAMB TOTAL SCORE</b></td>
                <td><b><?php echo $j_total; ?></b></td>
            </tr>
		</table>
    </div>
    <?php } ?>
   <?php if  (substr($formno,0,2)!='PU'){ ?>
    <br>
    <div class="col-md-12">
        <table class="table table-striped table-responsive table-hover table-bordered">
          <tr>
                <td colspan="4" align="left"><strong>Educational Background and IT Information</strong></td>
            </tr>
            <tr>
                <td align="left"><?php echo $higher1; ?></td>
                <td align="left"><?php echo $qual1; ?></td>
                <td align="left"><?php echo $grade1; ?></td>
                <td align="left"><?php echo $year1; ?></td>
            </tr>
            <tr>
                <td align="left"><?php echo $company; ?></td>
                <td align="left"><?php echo $purpose; ?></td>
                <td align="left"><?php echo $from_year; ?></td>
                <td align="left"><?php echo $to_year; ?></td>
            </tr>
            <tr>
                <td align="left"><?php echo $higher2; ?></td>
                <td align="left"><?php echo $qual2; ?></td>
                <td align="left"><?php echo $grade2; ?></td>
                <td align="left"><?php echo $year2; ?></td>
            </tr>
         </table>
         </div>
  <?php } ?>
<div class="clearfix"> </div>
  <center>
    <INPUT TYPE="button" class="btn btn-lg btn-success" VALUE="Send to Printer"  ONCLICK="self.print();">  
  </center></div>
 </body>
 </html>

 <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<script src="js/jquery-2.1.1.min.js"></script> 