<?php $act =5;
 include './login/connect.php';

?>

<!DOCTYPE html>
<!-- =========================================================
* ekseba Admin Template - Pro | v1.0.0
==============================================================

* Product Page: https://ekseba.com
* Created by: ekseba
* License: ekseba.com
* Copyright ThemeSelection (https://ekseba.com)

=========================================================
 -->
<!-- beautify ignore:start -->
<html lang="en"  class="light-style layout-menu-fixed"  dir="ltr"  data-theme="theme-default"  data-assets-path="assets/"  data-template="vertical-menu-template-free">
  <head>
    
    <?php include './html/head.php'; ?>
      
        <!-- serch script -->
        <script src="jeffartagame.js" type="text/javascript" charset="utf-8"></script>
        <script src="application.js" type="text/javascript" charset="utf-8"></script>
        <!-- serch script -->
     
      <style>
#customers {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%; font-size: 12px;
}

#customers td, #customers th {
  border: 1px solid #ddd;
  padding: 5px 2px 5px 2px; font-size: 12px;
  text-align: center;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white; font-size: 12px;
}
      </style>
  </head>

  <body>
    <!-- Layout wrapper -->
    <div class="layout-wrapper layout-content-navbar">
      <div class="layout-container">
        <!-- Menu -->
        <?php 
        include './menue.php';
        ?>
        <!-- / Menu -->

        <!-- Layout container -->
        <div class="layout-page">
          <!-- Navbar -->

          <?php include './navbar.php'; ?>

          <!-- / Navbar -->

          <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->

            <!-- Content wrapper -->
          <div class="content-wrapper">
            <!-- Content -->

            <div class="container-xxl flex-grow-1 container-p-y">
              <h4 class="fw-bold py-3 mb-4"><span class="text-muted fw-light">Teacher/</span> Information</h4>

              <!-- Basic Layout & Basic with Icons -->
              <div class="row">
                <!-- Basic Layout -->
                <div class="col-xl">
                  <div class="card mb-4">
                    <div class="card-header d-flex justify-content-between align-items-center">
                      <h5 class="mb-0">Teacher Information</h5>
                      
                      
                      <span class="float:right;" >
                           <button   type="button" class="btn btn-primary" data-bs-toggle="modal"
                          data-bs-target="#largeModal">Add New Teacher
                        </button>
				</a></span>
                       
                  
                    </div>
                    <div class="card-body">
                     

                <div class="col-xxl">

                    <?php require './student_class_manue.php'; ?>
                    
                  <div class="card mb-4">
                      
                     <input type="text" style="padding:15px;width:300px;" name="filter" class="search_o" value="" id="filter" placeholder="Search name/id..." autocomplete="off" />
 
              <!-- Contextual Classes -->
              <style>
                    tr:nth-child(even) {
                      background-color: #D6EEEE;
                    }
              </style>
              <div class="card">
                
                <div class="table-responsive text-nowrap">
                  <table class="table">
                    <thead>
                      <tr>
                        <th>Id</th>
                        <th> Student</th>
                        <th></th>
                        <th>Photo</th>
                         <th></th>
                          <th>Status</th>
                           <th></th>
                        <th>Actions</th>
                      </tr>
                    </thead>
                    <tbody>
			<?php
                        include('./login/connect.php');
			$designation ='teacher';
                                    $house = $conn->query("SELECT * FROM employee_details where designation='$designation'");
                                     while($row= $house->fetch_assoc()):
			?>
                    <tr>
                    <td><?php echo $row['EmployeeId'] ?></td>
                    <td><?php echo $row['EmployeeName'] ?><td>
                    <td>Photo<td>
                    <td>Status<td>			
					
                       
                        <td>
                        <a rel="facebox" title="Click to edit the product" href="editproduct.php?id=<?php echo $row['EmployeeId']; ?>"><button style="float: left; width: 20px;" class="btn btn-warning"><i class="icon-edit"></i> </button> </a>
			<a href="#" id="<?php echo $row['EmployeeId']; ?>" class="delbutton" title="Click to Delete the product"><button style="float: right; width: 20px;" class="btn btn-danger"><i class="icon-trash"></i></button></a>
                        </td>
			</tr>
			<?php endwhile; ?>
		
		
	</tbody>
                      
                    
                      
                    </tbody>
                  </table>
                </div>
              </div>
              <!--/ Contextual Classes -->
                      
                      
                      
                  </div>
                </div>
                <!-- Basic with Icons -->
  
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <!-- / Content -->
          </div>
            <!-- Footer -->
           <?php require './footer.php'; ?>
<!-- Large Modal -->
<form method="post" action="manage_student_teacher.php" style="font-size: 25px; padding: 15px;">
                      <div class="modal fade" id="largeModal" tabindex="-1" aria-hidden="true">
                        <div class="modal-dialog modal-lg" role="document">
                          <div class="modal-content">
                            <div class="modal-header">
                              <h5 class="modal-title" id="exampleModalLabel3">Teacher Registration Form</h5>
                              <button type="button" class="btn-close" data-bs-dismiss="modal"  aria-label="Close" ></button>
                            </div>
                            <div class="modal-body">
                              <div class="row">
                                <div class="col mb-3">
                                  <label for="nameLarge" class="form-label">Full Name</label>
                                    <input type="text" required name="EmployeeName" id="nameLarge" class="form-control" placeholder="Enter Name" />
                                    <input type="text" hidden value="teacher" name="designation">
                                </div>
                              </div>
                                                                
                                <div class="row g-2">
                                <div class="col mb-0">
                                  <label for="emailLarge" class="form-label">Father Name </label>
                                  <input type="text" required name="father" id="emailLarge" class="form-control" placeholder="Father Name" />
                                </div>
                                <div class="col mb-0">
                                  <label for="dobLarge" class="form-label">Mother Name</label>
                                  <input type="text" required name="mother" id="dobLarge" class="form-control" placeholder="Mother Name" />
                                </div>
                              </div>
                                
                         
                                <div class="row g-2">
                                <div class="col mb-0">
                                  <label for="emailLarge" class="form-label">Education </label>
                                 <input type="text" name="edu" id="dobLarge" class="form-control" placeholder="SSC,HSC, HON's MBA, " />
                                
                                </div>
                                <div class="col mb-0">
                                  <label for="dobLarge" class="form-label">Subject</label>
                                  <input type="text" name="sub" id="dobLarge" class="form-control" placeholder="subject" />
                                </div>
                              </div>
                                
                              <div class="row g-2">
                                  <div class="col mb-0" >
                                  <label for="emailLarge" class="form-label">Gender </label>
                                  <select name="gender" required id="dobLarge" class="form-control">
					<option value="">Select Gender</option>
                                        <option value="1">Female</option>
                                        <option value="2">Male</option>
                                   </select>
                                </div>
                                <div class="col mb-0">
                                  <label for="emailLarge" class="form-label">Mobile </label>
                                  <input type="text" name="mobile"id="emailLarge" class="form-control" placeholder="mobile" />
                                </div>
                                <div class="col mb-0">
                                  <label for="dobLarge" required class="form-label">NID</label>
                                  <input type="text" name="nid" id="dobLarge" class="form-control" placeholder="nid" />
                                </div>
                              </div>
                                <div class="row g-2">
                                    <div class="col mb-0">
                                  <label for="dobLarge" required class="form-label">Salary</label>
                                  <input type="text" name="salary" id="dobLarge" class="form-control" placeholder="salary" />
                                </div>
                                </div>
                                <div class="row">
                                    <div class="col mb-3">
                                      <label for="nameLarge" class="form-label">Address</label>
                                      <input type="text" name="address"id="nameLarge" class="form-control" placeholder="Address" />
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                              <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
                                Close
                              </button>
                              <button type="submit" name="teacher"  class="btn btn-primary">Save</button>
                            
 
                            </div>
                          </div>
                        </div>
                      </div>
</form>

                      <!-- Extra Large Modal -->
                      