<?php include "header.php"; ?><?php
 $date_array = getdate();?>
<div id="page-wrapper">

            <div class="row">
                <!-- Page Header -->
                <div class="col-lg-12">
                    <h1 class="page-header">Add Teachers</h1>

<form  action="msg_add_teachers_insert.php" enctype="multipart/form-data" name="date" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center"  class="table">
  
  
  <tr>
    <td> <div align="left" class="arrow">Date </div></td><td align="left" ><div align="left">
      <select name="day" >
        <option value="<?php echo $date_array[mday];?>"><?php echo $date_array[mday];?></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" >
       <option><?php echo $date_array[mon];?></option>
         <option value="1">1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
          <option value="5">5</option>
          <option value="6">6</option>
          <option value="7">7</option>
          <option value="8">8</option>
          <option value="9">9</option>
          <option value="10">10</option>
          <option value="11">11</option>
          <option value="12">12</option>
      </select>
      <select name="year" >
        <option value="<?php echo $date_array[year]; ?>"><?php echo $date_array[year]; ?></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" required=required>
        <option></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"><?php	
$query = "SELECT * FROM add_teachers ORDER BY ID asc";
$numresults=mysql_query($query);
 $numrows=mysql_num_rows($numresults);
$result = mysql_query($query) or die("Couldn't execute query");
?> 
                    
                        <?php
		  $counter = 1;
while ( $a_roww = mysql_fetch_row( $result ) )
 {?>
                             <?php $time=$a_roww[5];?>
                           <?php
		  $counter++; 
		  }
		  $time=++$time;
		  
		  ?>
        <input type="text" name="sr_no"  style="width:200" value="<?php echo $time;  ?>" required=required/>
        </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="date" name="date_join" value=""  style="width:200" required=required/>
        </div></td>
    </tr>
  <tr>
    <td ><div align="left" class="arrow">Name </div></td>
    <td >
        <div align="left">
          <input type="text" name="name"  style="width:200" 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"   style="width:200" required=required/>
        </div></td>
    </tr>
  
  <tr>
    <td ><div align="left" class="arrow">Date of Birth </div></td>
    <td >
      <div align="left">
        <input type="date" name="d_of_b"  style="width:200" 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" required> 

<option></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"  style="width:200" />
        </div></td>
    <td ><div align="left" class="arrow">Email</div></td>
    <td >
      <div align="left">
        <input type="text" name="email"  style="width:200" />
        </div></td>
    </tr>
  
  <tr>
    <td ><div align="left" class="arrow">Photo </div></td>
    
    <td >
      <div align="left">
        <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"></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" required=required>
          <option></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"></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"  style="width:60px;" /></td>
    <td><input type="text" name="div_hse"  style="width:60px;" /></td>
    <td><input type="text" name="per_hse"  style="width:30px;" /></td>
    <td><input type="text" name="moi_hse"  style="width:100px;" /></td>
    <td><input type="text" name="board_hse"  style="width:100px;" /></td>
    <td><input type="text" name="info_hse"  style="width:100px;" /></td>
  </tr>
  <tr>
    <td>Intermediate</td>
    <td><input type="text" name="year_p_i"  style="width:60px;" /></td>
    <td><input type="text" name="div_i"  style="width:60px;" /></td>
    <td><input type="text" name="per_i"  style="width:30px;" /></td>
    <td><input type="text" name="moi_i"  style="width:100px;" /></td>
    <td><input type="text" name="board_i"  style="width:100px;" /></td>
    <td><input type="text" name="info_i"  style="width:100px;" /></td>
  </tr>
  <tr>
    <td><select name="gradu_type">
	<option value=""></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"  style="width:60px;" /></td>
    <td><input type="text" name="div_g"  style="width:60px;" /></td>
    <td><input type="text" name="per_g"  style="width:30px;" /></td>
    <td><input type="text" name="moi_g"  style="width:100px;" /></td>
    <td><input type="text" name="board_g"  style="width:100px;" /></td>
    <td><input type="text" name="info_g"  style="width:100px;" /></td>
  </tr>
  <tr>
    <td><select name="pgradu_type">
	<option value=""></option>
	<option value="bed">B.Ed.</option>
	<option value="med">M.Ed.</option>
	</select></td>
    <td><input type="text" name="year_p_p"  style="width:60px;" /></td>
    <td><input type="text" name="div_p"  style="width:60px;" /></td>
    <td><input type="text" name="per_p"  style="width:30px;" /></td>
    <td><input type="text" name="moi_p"  style="width:100px;" /></td>
    <td><input type="text" name="board_p"  style="width:100px;" /></td>
    <td><input type="text" name="info_p"  style="width:100px;" /></td>
  </tr>
  <tr>
    <td>Other Qualification </td>
     <td><input type="text" name="year_p_o"  style="width:60px;" /></td>
    <td><input type="text" name="div_o"  style="width:60px;" /></td>
    <td><input type="text" name="per_o"  style="width:30px;" /></td>
    <td><input type="text" name="moi_o"  style="width:100px;" /></td>
    <td><input type="text" name="board_o"  style="width:100px;" /></td>
    <td><input type="text" name="info_o"  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"></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:200"></textarea>
      </div></td>
    </tr>
  <tr>
    <td align="right" ><div align="left">AAdhar No</div></td>
    <td align="left" ><input type="text" name="aano" id="aano" /></td>
    <td align="right" ><div align="left">Voter ID </div></td>
    <td align="left" ><input type="text" name="vidc" id="vidc" /></td>
  </tr>
  
  <tr>
    <td align="right" bgcolor="#FF0000" ><div align="left" class="arrow">Salary (Rs)</div></td>
    <td align="left" bgcolor="#FF0000" >
      
        <div align="left"><input type="text" name="d_salary"  style="width:200" required=required/>
      </div></td>
    <td align="right" >&nbsp;</td>
    <td align="left" >
      
        <div align="left"></div></td>
    </tr>
  
  
  <tr>
    <td colspan="4" align="right" style="border:none;background:url(images/title2.jpg); height:20; color:#990000; background-repeat:repeat-x;"><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"  style="width:200"/>
      </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:200"></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"  style="width:200"/>
    </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:200"></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>

</div></div></div>
<?php 
include "footer.php"; ?>