<link type="text/css" href="assets/plugins/form-daterangepicker/daterangepicker-bs3.css" rel="stylesheet">    <!-- DateRangePicker -->

<link type="text/css" href="assets/plugins/gridforms/gridforms/gridforms.css" rel="stylesheet"> 									<!-- Gridforms -->

<form action="action-pages/senior/personal-edit-action.php" method="post">	
<input type="hidden" name="sid" value="<?php echo $id; ?>" />

<table class="table" width="100%">
								        <tbody>
								          <tr>
								            <th style="width:200px">Program Selected</th>
								            <td><div class="col-sm-8">
											<select id="school" name="school" class="form-control" required>
           <option value="">Select Program</option>
        <?php 
		  $sql=mysql_query('SELECT * FROM `sgvu_courses` ORDER BY `sgvu_courses`.`coursename` ASC');
		  while($rows=mysql_fetch_array($sql)) 
		  {
		  
		   ?>
          
          <option value="<?php echo $rows['course_id']; ?>"
		  <?php
		  if($GetStep1Per1['program'] == $rows['course_id'])
		  {
		  ?>
		  
		  selected="selected"
		  <?php
		  }
		  ?>
		  ><?php echo $rows['coursename']; ?></option>
          <?php } ?> 
          </select>
											
											</div></td>
								          </tr>
								          <tr>
								            <th>First Name</th>
								            <td><div class="col-sm-8"><input type="text" name="firstname" value="<?php echo $GetStep1Per1['firstname']; ?>" class="form-control" required/></div></td>
								          </tr>
								          <tr>
								            <th>Middle Name</th>
								            <td><div class="col-sm-8"><input type="text" name="middlename" value="<?php echo $GetStep1Per1['middlename']; ?>" class="form-control" /></div></td>
								          </tr>
								          <tr>
								            <th>Last Name</th>
								            <td><div class="col-sm-8"><input type="text" name="lastname" value="<?php echo $GetStep1Per1['lastname']; ?>" class="form-control" required/></div></td>
								          </tr>
								          <tr>
								            <th>Sex</th>
								            <td><div class="col-sm-8"><label><input type="radio" name="sex" value="M"
			<?php
		  if($GetStep1Per1['sex'] =='M')
		  {
		  echo 'checked="checked"';
		  }
		  ?>
											 > Male</label> &nbsp;
									<label><input type="radio" name="sex" value="F"
												<?php
		  if($GetStep1Per1['sex'] =='F')
		  {
		  echo 'checked="checked"';
		  }
		  ?>

									> Female</label> &nbsp;</div></td>
								          </tr>
								          <tr>
								            <th>Date of Birth</th>
								           <td><div class="col-sm-8"><input type="text" name="dob" value="<?php echo $GetStep1Per1['dob']; ?>" class="form-control" id="datepicker"  required/></div></td>
								          </tr>
								          <tr>
								            <th>Religion</th>
								            <td><div class="col-sm-8">
											<select name="religion" class="form-control" style="" >
           <option value="">Select Religion</option>
        <?php 
		  $GetReligion=mysql_query('SELECT * FROM `religion` ORDER BY `religion`.`religion` ASC');
		  while($GetReligion1=mysql_fetch_array($GetReligion)) 
		  {
		  
		   ?>
          
          <option value="<?php echo $GetReligion1['id']; ?>"
		  <?php
		  if($GetStep1Per1['religion'] == $GetReligion1['id'])
		  {
		  ?>
		  
		  selected="selected"
		  <?php
		  }
		  ?>
		  ><?php echo $GetReligion1['religion']; ?></option>
          <?php } ?> 
          </select>
											</div></td>
								          </tr>
										  <tr>
								            <th>Category</th>
								            <td><div class="col-sm-8"><select id="" name="cat" class="form-control" style="" required>
           <option value="">Select Category</option>
        <?php 
		  $GetCat=mysql_query('SELECT * FROM `category` ORDER BY `category`.`id` ASC');
		  while($GetCat1=mysql_fetch_array($GetCat)) 
		  {
		  
		   ?>
          
          <option value="<?php echo $GetCat1['id']; ?>"
		  <?php
		  if($GetStep1Per1['cat'] == $GetCat1['id'])
		  {
		  ?>
		  
		  selected="selected"
		  <?php
		  }
		  ?>
		  
		  ><?php echo $GetCat1['category']; ?></option>
          <?php } ?> 
          </select></div></td>
								          </tr>
										  <tr>
								            <th>Father's Name</th>
								            <td><div class="col-sm-8"><input type="text" name="father_name" value="<?php echo $GetStep1Per1['father_name']; ?>" class="form-control" required/></div></td>
								          </tr>
										  <tr>
								            <th>Father's Occupation</th>
								           <td><div class="col-sm-8"><input type="text" name="father_occupation" value="<?php echo $GetStep1Per1['father_occupation']; ?>" class="form-control" required/></div></td>
								          </tr>
										  <tr>
								            <th>Father's Anuual Income</th>
<td><div class="col-sm-8"><input type="text" name="father_anuual_income" value="<?php echo $GetStep1Per1['father_anuual_income']; ?>" class="form-control" required/></div></td>								          </tr>
										  <tr>
								            <th>Mother's Name</th>
<td><div class="col-sm-8"><input type="text" name="mother_name" value="<?php echo $GetStep1Per1['mother_name']; ?>" class="form-control" required/></div></td>								          </tr>
										  <tr>
								            <th>Mother's Occupation</th>
<td><div class="col-sm-8"><input type="text" name="mother_occupation" value="<?php echo $GetStep1Per1['mother_occupation']; ?>" class="form-control"/></div></td>								          </tr>
										  <tr>
								            <th>Mother's Annual Income</th>
<td><div class="col-sm-8"><input type="text" name="mother_income" value="<?php echo $GetStep1Per1['mother_income']; ?>" class="form-control"/></div></td>								          </tr>
								        </tbody>
								      </table>
									  								<button class="btn btn-primary" type="submit">Submit</button>&nbsp;&nbsp;<button  class="btn btn-primary" type="reset">Reset</button>

									  
									  </form>
									  

<script type="text/javascript" src="assets/plugins/form-daterangepicker/daterangepicker.js"></script>     				<!-- Date Range Picker -->
<script type="text/javascript" src="assets/plugins/bootstrap-datepicker/bootstrap-datepicker.js"></script>      			<!-- Datepicker -->
<script type="text/javascript" src="assets/plugins/bootstrap-timepicker/bootstrap-timepicker.js"></script>      			<!-- Timepicker -->
<script type="text/javascript" src="assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script> <!-- DateTime Picker -->

<script type="text/javascript" src="assets/plugins/clockface/js/clockface.js"></script>     								<!-- Clockface -->


<script type="text/javascript" src="assets/demo/demo-pickers.js"></script>
<script type="text/javascript" src="assets/demo/demo-formvalidation.js"></script>
<script type="text/javascript" src="assets/demo/demo-pickers.js"></script>
