<?php include "header.php"; ?>
<div id="page-wrapper">

            <div class="row">
                <!-- Page Header -->
                <div class="col-lg-12">
 <?php
 $id=$_POST['id'];
	$result = mysql_query("SELECT * FROM add_teachers where id=$id and session='$session' and code='$code'");
	$a_row = mysql_fetch_row( $result );
	?>
 <style type="text/css">
<!--
.style1 {font-weight: bold}
-->
 </style>
 

 
<form  action="1.php" enctype="multipart/form-data" method="post" name="date">
<input name="id" value="<?php echo $a_row[0];?>" type="hidden"  />
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center"  class="table">
  <tr>
    <td colspan="4" align="left" style="border:none"><img src="images/add_teacher.jpg" /></td>
  </tr>
  
  <tr>
    <td> <div align="left" class="arrow">Date </div></td><td align="left" ><div align="left">
      <select name="day" tabindex="5">
        <option ><?php echo $a_row[1];?></option>
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        <option>7</option>
        <option>8</option>
        <option>9</option>
        <option>10</option>
        <option>11</option>
        <option>12</option>
        <option>13</option>
        <option>14</option>
        <option>15</option>
        <option>16</option>
        <option>17</option>
        <option>18</option>
        <option>19</option>
        <option>20</option>
        <option>21</option>
        
        <option>22</option>
        <option>23</option>
        <option>24</option>
        <option>25</option>
        <option>26</option>
        <option>27</option>
        <option>28</option>
        <option>29</option>
        <option>30</option>
        <option>31</option>
      </select>
      <select name="month" tabindex="6">
        <option value="<?php echo $a_row[2];?>"><?php echo $a_row[2];?></option>
        <option value="JANUARY">JANUARY</option>
        <option value="FEBRUARY">FEBRUARY</option>
        <option value="MARCH">MARCH</option>
        <option value="APRIL">APRIL</option>
        <option value="MAY">MAY</option>
        <option value="JUNE">JUNE</option>
        <option value="JULY">JULY</option>
        <option value="AUGUST">AUGUST</option>
        <option value="SEPTEMBER">SEPTEMBER</option>
        <option value="OCTOBER">OCTOBER</option>
        <option value="NOVEMBER">NOVEMBER</option>
        <option value="DECEMBER">DECEMBER</option>
      </select>
      <select name="year" tabindex="7">
        <option value="<?php echo $a_row[3];?>"><?php echo $a_row[3];?></option>
        <option value="2001">2001</option>
        <option value="2002">2002</option>
        <option value="2003">2003</option>
        <option value="2004">2004</option>
        <option value="2005">2005</option>
        <option value="2006">2006</option>
        <option value="2007">2007</option>
        <option value="2008">2008</option>
        <option value="2009">2009</option>
        <option value="2010">2010</option>
        <option value="2011">2011</option>
        <option value="2012">2012</option>
        <option value="2013">2013</option>
        <option value="2014">2014</option>
        <option value="2015">2015</option>
        <option value="2016">2016</option>
        <option value="2017">2017</option>
        <option value="2018">2018</option>
        <option value="2019">2019</option>
        <option value="2020">2020</option>
      </select>
    </div></td>
    <td align="right" ><div align="left" class="arrow">Marital Status </div></td>
    <td align="left" ><div align="left">
      <select name="marital_status" >
        <option value="<?php echo $a_row[4];?>"><?php echo $a_row[4];?></option>
        <option>Single</option>
        <option>Married</option>
        <option>Divorced</option>
      </select>
    </div></td>
  </tr>
  <tr>
    <td width="24%" > <div align="left" class="arrow">S.R. No. </div></td><td width="26%" >
      <div align="left">
        <input type="text" name="sr_no" value="<?php echo $a_row[5];?>"  style="width:100" required=required readonly="readonly"/>
        </div></td>
    <td width="24%" align="right" ><div align="left" class="arrow">Joining Date </div></td>
    <td width="26%" align="left" >
      <div align="left">
        <input type="text" name="date_join" value="<?php echo $a_row[6];?>"  style="width:100" />
        </div></td>
    </tr>
  <tr>
    <td ><div align="left" class="arrow">Name </div></td>
    <td >
        <div align="left">
          <input type="text" name="name" value="<?php echo $a_row[7];?>"  style="width:100" required=required />
          </div></td>
    <td ><div align="left" class="arrow">Father/Husband Name </div></td>
    <td >
      <div align="left">
        <input type="text" name="f_h_name" value="<?php echo $a_row[8];?>"   style="width:100"/>
        </div></td>
    </tr>
  
  <tr>
    <td ><div align="left" class="arrow">Date of Birth </div></td>
    <td >
      <div align="left">
        <input type="text" name="d_of_b"  value="<?php echo $a_row[9];?>" style="width:100" required=required/>
        </div></td>
    <td ><div align="left" class="arrow">Post </div></td>
    <td >
      <div align="left">
       <?php
$queryy = "SELECT * FROM post where code='$code'";
$numresultsy=mysql_query($queryy);
$resulty= mysql_query($queryy) or die("Couldn't execute query");
?>
<select name="phone_h" id="phone_h" > 

<option><?php echo $a_row[10];?></option>
      
                                  <?php
while ( $a_roww = mysql_fetch_row( $resulty ) )
 {?>
                  <option value="<?php echo $a_roww[1];?>" ><?php echo $a_roww[1];?></option>
                  <?php } ?>
                </select>
<a href="feed_post.php">Add New Records</a>        </div></td>
    </tr>
  
  <tr>
    <td ><div align="left" class="arrow">Phone - Mobile </div></td>
    <td >
      <div align="left">
        <input type="text" name="phone_m" value="<?php echo $a_row[11];?>"  style="width:100" />
        </div></td>
    <td ><div align="left" class="arrow">Email</div></td>
    <td >
      <div align="left">
        <input type="text" name="email" value="<?php echo $a_row[12];?>"  style="width:100" />
        </div></td>
    </tr>
  
  <tr>
    <td ><div align="left" class="arrow">Photo </div></td>
    
    <td >
      <div align="left">
	  <img src="<?php echo $a_row[13];?>" width="50" height="80" style="border:2px #666666 solid; padding:2px;">	</div>
	<div><input name="newname" type="hidden" value="<?php echo $a_row[13];?>"/>
     <input type="file" name="image" >
        </div></td>
    <td align="right" valign="top" class="arrow"><div align="left">Permanent Address </div></td>
    <td align="left" valign="top" ><div align="left">
        <textarea name="perma_add"><?php echo $a_row[14];?></textarea>
    </div></td>
  </tr>
  
  <tr>
    <td valign="top" ><div align="left" class="arrow">Gender</div></td>
    <td valign="top" >
      <div align="left">
        <select name="gender" >
          <option value="<?php echo $a_row[15];?>"><?php echo $a_row[15];?></option>
          <option>Male</option>
          <option>Female</option>
        </select>
        </div></td>
    <td align="right" valign="top" class="arrow"><div align="left">Present  Address </div></td>
    <td align="left" valign="top" >
      <div align="left">
        <textarea name="prse_add"><?php echo $a_row[16];?></textarea>
        </div></td>
    </tr>
  
  <tr>
    <td colspan="4" align="right" height="20" style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;"><div align="left">Academic Qualifications </div></td>
    </tr>
  <tr>
    <td colspan="4" align="right" ><table width="100%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td>Examination</td>
    <td>Passed Year </td>
    <td>Division</td>
    <td>%</td>
    <td>Medium of Instruction </td>
    <td>Name of Board/Univ.</td>
    <td>Any other Info. </td>
  </tr>
  <tr>
    <td>H.S.E.</td>
    <td><input type="text" name="year_p_hse" value="<?php echo $a_row[17];?>"  style="width:60px;" /></td>
    <td><input type="text" name="div_hse" value="<?php echo $a_row[18];?>" style="width:60px;" /></td>
    <td><input type="text" name="per_hse" value="<?php echo $a_row[19];?>"  style="width:30px;" /></td>
    <td><input type="text" name="moi_hse"  value="<?php echo $a_row[20];?>" style="width:100px;" /></td>
    <td><input type="text" name="board_hse" value="<?php echo $a_row[21];?>" style="width:100px;" /></td>
    <td><input type="text" name="info_hse"  value="<?php echo $a_row[22];?>" style="width:100px;" /></td>
  </tr>
  <tr>
    <td>Intermediate</td>
    <td><input type="text" name="year_p_i" value="<?php echo $a_row[23];?>"  style="width:60px;" /></td>
    <td><input type="text" name="div_i" value="<?php echo $a_row[24];?>" style="width:60px;" /></td>
    <td><input type="text" name="per_i" value="<?php echo $a_row[25];?>" style="width:30px;" /></td>
    <td><input type="text" name="moi_i" value="<?php echo $a_row[26];?>" style="width:100px;" /></td>
    <td><input type="text" name="board_i" value="<?php echo $a_row[27];?>" style="width:100px;" /></td>
    <td><input type="text" name="info_i" value="<?php echo $a_row[28];?>" style="width:100px;" /></td>
  </tr>
  <tr>
    <td><select name="gradu_type">
	<option value="<?php echo $a_row[29];?>"><?php echo $a_row[29];?></option>
	<option value="ba">B.A.</option>
	<option value="bsc">B.Sc.</option>
	<option value="bcom">B.Com</option>
	</select></td>
    <td><input type="text" name="year_p_g" value="<?php echo $a_row[30];?>"  style="width:60px;" /></td>
    <td><input type="text" name="div_g" value="<?php echo $a_row[31];?>" style="width:60px;" /></td>
    <td><input type="text" name="per_g" value="<?php echo $a_row[32];?>" style="width:30px;" /></td>
    <td><input type="text" name="moi_g" value="<?php echo $a_row[33];?>" style="width:100px;" /></td>
    <td><input type="text" name="board_g" value="<?php echo $a_row[34];?>" style="width:100px;" /></td>
    <td><input type="text" name="info_g" value="<?php echo $a_row[35];?>" style="width:100px;" /></td>
  </tr>
  <tr>
    <td><select name="pgradu_type">
	<option value="<?php echo $a_row[36];?>"><?php echo $a_row[36];?></option>
	<option value="bed">B.Ed.</option>
	<option value="med">M.Ed.</option>
	</select></td>
    <td><input type="text" name="year_p_p" value="<?php echo $a_row[37];?>"  style="width:60px;" /></td>
    <td><input type="text" name="div_p" value="<?php echo $a_row[38];?>" style="width:60px;" /></td>
    <td><input type="text" name="per_p" value="<?php echo $a_row[39];?>" style="width:30px;" /></td>
    <td><input type="text" name="moi_p" value="<?php echo $a_row[40];?>" style="width:100px;" /></td>
    <td><input type="text" name="board_p" value="<?php echo $a_row[41];?>" style="width:100px;" /></td>
    <td><input type="text" name="info_p" value="<?php echo $a_row[42];?>" style="width:100px;" /></td>
  </tr>
  <tr>
    <td>Other Qualification </td>
     <td><input type="text" name="year_p_o" value="<?php echo $a_row[43];?>" style="width:60px;" /></td>
    <td><input type="text" name="div_o" value="<?php echo $a_row[44];?>" style="width:60px;" /></td>
    <td><input type="text" name="per_o" value="<?php echo $a_row[45];?>" style="width:30px;" /></td>
    <td><input type="text" name="moi_o" value="<?php echo $a_row[46];?>" style="width:100px;" /></td>
    <td><input type="text" name="board_o" value="<?php echo $a_row[47];?>" style="width:100px;" /></td>
    <td><input type="text" name="info_o" value="<?php echo $a_row[48];?>" style="width:100px;" /></td>
  </tr>
</table></td>
    </tr>
  
  <tr>
    <td colspan="4" align="right" height="20" style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;"><div align="left" >Other  Information </div></td>
    </tr>
  <tr>
    <td align="right" ><div align="left" class="arrow">Experiences </div></td>
    <td align="left" >
      
        <div align="left">
          <textarea name="experiences"><?php echo $a_row[49];?></textarea>
      </div></td>
    <td align="right" ><div align="left" class="arrow">Hobbies </div></td>
    <td align="left" >
      
        <div align="left">
          <textarea name="hobbies" style="width:100"><?php echo $a_row[50];?></textarea>
      </div></td>
    </tr>
  
  <tr>
    <td align="right" >AAdhar Card</td>
    <td align="left" ><input type="text" name="aano" id="aano" value="<?php echo $a_row[58];?>" /></td>
    <td align="right" >Voter ID CARD</td>
    <td align="left" ><input type="text" name="vidc" id="vidc" value="<?php echo $a_row[59];?>" /></td>
  </tr>
  <tr>
    <td align="right" ><div align="left" class="arrow">Salary (Rs)</div></td>
    <td align="left" >
      
        <div align="left">
          <input type="text" name="d_salary" value="<?php echo $a_row[51];?>"  style="width:100" required=required />
      </div></td>
    <td align="right" >&nbsp;</td>
    <td align="left" >&nbsp;</td>
    </tr>
  <tr>
    <td align="right" >&nbsp;</td>
    <td align="left" >&nbsp;</td>
    <td align="right" >&nbsp;</td>
    <td align="left" >&nbsp;</td>
    </tr>
  
  <tr>
    <td colspan="4" align="right" ><div align="left"><strong>Name & Address of Two Persion to whom you know well:</strong></div></td>
    </tr>
  
  <tr>
    <td align="right" ><div align="left" class="arrow">Name - Frist Persion </div></td>
    <td align="left" >
      
        <div align="left">
          <input type="text" name="name_well_f" value="<?php echo $a_row[54];?>"  style="width:100"/>
      </div></td>
    <td align="right" ><div align="left" class="arrow">Address - Frist Persion </div></td>
    <td align="left" >
      
        <div align="left">
          <textarea name="add_well_f" style="width:100"><?php echo $a_row[55];?></textarea>
      </div></td>
    </tr>
  
  <tr>
    <td align="right" style="border:none"><div align="left" class="arrow">Name - Second Persion </div></td>
    <td align="right" style="border:none"><div align="left">
      <input type="text" name="name_well_s" value="<?php echo $a_row[56];?>"  style="width:100"/>
    </div></td>
    <td align="left" style="border:none"><div align="left" class="arrow">Address - Second Persion </div></td>
    <td align="left" style="border:none"><div align="left">
      <textarea name="add_well_s" style="width:100"><?php echo $a_row[57];?></textarea>
    </div></td>
  </tr>
  <tr>
    <td align="right" style="border:none">&nbsp;</td>
    <td align="right" style="border:none"><div align="right">
        <input type="Submit" name="Submit" value="Save"   />
    </div></td>
    <td align="left" style="border:none"><div align="left">
        <input name="Clear" type="reset" value="Clear"   />
    </div></td>
    <td align="left" style="border:none">&nbsp;</td>
    </tr>
</table>
</form>
 
 <!--ffffffffffffffffffffffffffffff-->
 </div></div></div>
<?php 
include "footer.php"; ?>