<?php
	include("inside/config.php");
	session_start();
	$user=$_SESSION['username'];
	if(empty($user))
	{
		echo "<script>window.location='login.php'</script>";
	}
	$id=$_REQUEST['id'];
	$sql=mysql_query("select * from `online_registration` where `id`='$id'");
	$rs=mysql_fetch_array($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Admin Panel : Frontier Public High School</title>
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<?php include('inside/jsfunctions.php'); ?>
</head>
<body>
<?php include('inside/header.php'); ?>
<!-- Container -->
<div id="container">
	<div class="shell">
		
		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">Dashboard</a>
			<span>&gt;</span>
			Student Detail
		</div>
		<!-- End Small Nav -->
		<!-- Message OK -->		
		<?php if($type=="ok"){ ?>
        <div class="msg msg-ok" id="msgok">
			<p><strong><?php echo $msg; ?></strong></p>
			<a href="#" class="close" onclick="removeOk();">close</a>
		</div>
		<!-- End Message OK -->		
		<?php } ?>
		<!-- Message Error -->
		<?php if($type=="error"){ ?>
		<div class="msg msg-error" id="error">
			<p><strong><?php echo $msg; ?></strong></p>
			<a href="#" class="close" onclick="removeError();">close</a>
		</div>
        <?php } ?>
		<!-- End Message Error -->

		<br />
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>
			
			<!-- Content -->
			<div id="content">
				
				<!-- Box --><!-- End Box -->
				
				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2> Student Detail | Online Registration</h2></div>
					<!-- End Box Head -->
					
					<div class="table">
                    <table width="100%" align="left">
                    <tr>
                      <td width="35%"><strong>Student ID</strong></td>
                      <td width="65%" bgcolor="#0000FF"><?php echo $rs['id']; ?></td>
                    </tr>
                    <tr>
                    <td><strong>Student Name</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['student_name']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Father Name</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['father_name']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Guardian's Name</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['guardian_name']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Nationality</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['nationality']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Gender</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['gender']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>DOB</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['dob']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Seeking Addmission in Class</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['class']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Guuardian's CNIC</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['guardian_cnic']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Guardian's Occupation</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['guardian_occupation']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Email Address</strong></td>
                    <td bgcolor="#0000FF"><a href="mailto:<?php echo $rs['email']; ?>?Subject=RE%20:%20Online%20Registration"><?php echo $rs['email']; ?></td>
                    </tr>
                    <tr>
                      <td><strong>Contact Number</strong></td>
                    <td bgcolor="#0000FF"><?php echo $rs['contact']; ?></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td bgcolor="#0000FF"><a href="online-registration.php">GO BACK</a></td>
                    </tr>
                    </table>
                  </div>
				</div>
				<!-- End Box -->

			</div>
			<!-- End Content -->
			
			<!-- Sidebar -->
			<div id="sidebar">
				
				<!-- Box -->
			  <div class="box">
					
					<!-- Box Head -->
					<div class="box-head">
						<h2>Management</h2>
					</div>
					<!-- End Box Head-->
					
					<div class="box-content">
				</div>
				</div>
				<!-- End Box -->
			</div>
			<!-- End Sidebar -->
			
			<div class="cl">&nbsp;</div>			
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->
<?php include("inside/footer.php"); ?>
</body>
</html>