<?php 
require_once("header.php");
require_once("session_check.php");

//FETCH DATA FROM DATABASE
$fetch_record = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `usertable_stu` WHERE `id` = '".$_REQUEST['id']."'"));
?>

<?php require_once("left_panel.php");?>
<div class="content">
	<div class="workplace">
		<div class="row-fluid">
			<div class="span12">
				<div class="head clearfix">
					<div class="isw-documents"></div>					
					<h1>Student Volunteer Details</h1>					
				</div>
				<form action="" method="post" enctype="multipart/form-data">
				<div class="block-fluid">
					<div class="row-form clearfix">
						<div class="span3">Name</div>
						<div class="span9"><?php echo stripslashes($fetch_record['name']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Guardian Name</div>
						<div class="span9"><?php echo stripslashes($fetch_record['gar_name']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Relation With Guardian</div>
						<div class="span9"><?php echo stripslashes($fetch_record['relation']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Guardian Occupation</div>
						<div class="span9"><?php echo stripslashes($fetch_record['occupation']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Date of Birth</div>
						<div class="span9"><?php echo date("F d, Y",strtotime($fetch_record['dob']));?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Gender</div>
						<div class="span9"><?php echo stripslashes($fetch_record['sex']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Blood Group</div>
						<div class="span9"><?php echo stripslashes($fetch_record['bloodgroup']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Vaccination Status</div>
						<div class="span9"><?php echo stripslashes($fetch_record['vaccination']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Email Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['email']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Phone No.</div>
						<div class="span9"><?php echo stripslashes($fetch_record['phone']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Postal Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['postal_area']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Postal City</div>
						<div class="span9"><?php echo stripslashes($fetch_record['postal_city']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Postal State</div>
						<div class="span9"><?php echo stripslashes($fetch_record['postal_state']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Postal Pincode</div>
						<div class="span9"><?php echo stripslashes($fetch_record['postal_pin']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Permanent Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['parmanent_area']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Permanent City</div>
						<div class="span9"><?php echo stripslashes($fetch_record['parmanent_city']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Permanent State</div>
						<div class="span9"><?php echo stripslashes($fetch_record['parmanent_state']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Permanent Pincode</div>
						<div class="span9"><?php echo stripslashes($fetch_record['parmanent_pin']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Religion</div>
						<div class="span9"><?php echo stripslashes($fetch_record['religion']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Nationality</div>
						<div class="span9"><?php echo stripslashes($fetch_record['nationality']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Aadhar No.</div>
						<div class="span9"><?php echo stripslashes($fetch_record['aadhar']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Aadhar Attachment</div>
						<div class="span9"><a href="../uploads/student/aadhar/<?php echo stripslashes($fetch_record['file']);?>" target="_blank">Click To Open</a></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">ID Card No</div>
						<div class="span9"><?php echo stripslashes($fetch_record['idcard']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">ID Card Attachment</div>
						<div class="span9"><a href="../uploads/student/idcard/<?php echo stripslashes($fetch_record['id_file']);?>" target="_blank">Click To Open</a></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Educational Standard Class</div>
						<div class="span9"><?php echo stripslashes($fetch_record['ed_class']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Year</div>
						<div class="span9"><?php echo stripslashes($fetch_record['ed_year']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Stream</div>
						<div class="span9"><?php echo stripslashes($fetch_record['stream']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">School/College</div>
						<div class="span9"><?php echo stripslashes($fetch_record['school_name']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">School/College Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['school_address']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">School/College City</div>
						<div class="span9"><?php echo stripslashes($fetch_record['school_city']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">School/College State</div>
						<div class="span9"><?php echo stripslashes($fetch_record['school_state']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">School/College Pincode</div>
						<div class="span9"><?php echo stripslashes($fetch_record['school_pin']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Registration Date</div>
						<div class="span9"><?php echo date("d.m.Y h:i A",strtotime($fetch_record['date_created']));?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">&nbsp;</div>
						<div class="span9">						
							<button class="btn" type="button" name="back" onclick="window.location.href='student_list.php'">Back To Student Volunteers List</button>
						</div>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div> 

<?php require_once("footer.php"); ?>