 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <br>
    <section class="content-header" >
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <a><strong>Cotrol sheet information</strong></a>
          </div> 
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="admin.php?page=dashboad">Home</a></li> 
              <li class="breadcrumb-item active">Time table</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section> 
   <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row"> 
          <!-- /.col -->
          <div class="col-md-12">
            <div class="card">
              <div class="card-header p-2">
                <ul class="nav nav-pills ">
                  <li class="nav-item"><a class="nav-link active" href="#teacher" data-toggle="tab"><i class="fas fa-th-list"></i> Time table List</a></li>  
                </ul>
              </div>
              <!-- /.card-header --> 
              <div class="card-body"> 
              <div class="tab-content">
              <!-- /.tab-pane -->
              <div class="active tab-pane" id="teacher">
              <div class="container-fluid">
                <div class="row">
                  <div class="col-sm-12"> 
                  <div class="row"> 
                        <!-- ./col -->
                         <?php   
                            $T_id=$q['teacher_roll_no']; 


                            $selected_teacher = mysqli_query($conn," 
                              SELECT *  FROM teacher_course  
                                   INNER JOIN class_srms 
                                   ON class_srms.class_id=teacher_course.class_id 
                                   INNER JOIN student_srms 
                                    ON student_srms.class_id = teacher_course.class_id WHERE teacher_course.teacher_roll_no='$T_id' GROUP BY teacher_course.class_id ");
                             while($row = mysqli_fetch_array($selected_teacher)){ 
                              $class=$row['class_id']; 
                            ?>  
                            <div class="col-lg-3 col-6">
                              <!-- small card -->
                              <div class="small-box bg-primary">
                                <div class="inner"> 
                                  <h3><?php echo $row['student']; ?></h3> 
                                  <p>TIME TABLE FOR <?php echo $row['class_name']; ?></p>
                                </div>
                                <div class="icon">
                                  <i class="fas fa-edit"></i>
                                </div> 
                                <a href="admin.php?page=timetable_list&Id_2=<?php echo $row['class_id']; ?>" class="small-box-footer">
                                  View time table <i class="fas fa-arrow-circle-right"></i>
                                </a> 
                              </div>
                            </div> 
                          <?php }?>
                      </div>
                      <br> 
                    <div class="card">
                      <div class="card-header">
                        <h3 class="card-title">Time table</h3> 
                        <div class="card-tools"> 
                        </div>

                      </div>
                      <!-- /.card-header -->
                      <div class="card-body">
                      <div class="card-body table-responsive p-0" style="height: 400px;">
                        <table  class="table table-head-fixed text-nowrap table-bordered">
                          <thead>
                            <tr>
                              <th>#</th>
                              <th>SUB - TASK</th>  
                              <th>JAN</th> 
                              <th>FEB</th> 
                              <th>MARC</th> 
                              <th>APR</th> 
                              <th>MAY</th> 
                              <th>JUN</th> 
                              <th>JUL</th> 
                              <th>AUG</th>
                              <th>SEP</th>
                              <th>OCT</th>
                              <th>NOV</th>
                              <th>DEC</th> 
                              <th>STATUS</th>
                              <th>PER (%)</th>
                            </tr>
                          </thead>
                          <tbody> 
                            <tr>
                              <td>MONDAY</td>
                              <td> 1</td> 
                              <td>2</td>  
                            </tr>
                             <tr>
                              <td>TUESDAY</td>
                              <td> 1</td> 
                              <td>2</td>  
                            </tr>
                             <tr>
                              <td>WEDNESDAY</td>
                              <td> 1</td> 
                              <td>2</td>  
                            </tr>
                             <tr>
                              <td>THURSDAY</td>
                              <td> 1</td> 
                              <td>2</td>  
                            </tr>
                             <tr>
                              <td>FRIDAY</td>
                              <td> 1</td> 
                              <td>2</td>  
                            </tr> 
                          </tbody>
                        </table>
                       </div>
                       </div>
                      <!-- /.card-body -->
                    </div>
                    </div> <!-- end card --> 
                    </div>
                    <!-- /.card -->
                  </div>
                  </div> 
             
                </div>
                <!-- /.tab-content -->
             </div><!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
 <script src="../stp_con/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../stp_con/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- DataTables  & Plugins -->
<script src="../stp_con/datatables/jquery.dataTables.min.js"></script>
<script src="../stp_con/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="../stp_con/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="../stp_con/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="../stp_con/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="../stp_con/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="../stp_con/jszip/jszip.min.js"></script> 
<script src="../stp_con/pdfmake/pdfmake.min.js"></script>
<script src="../stp_con/pdfmake/vfs_fonts.js"></script> 
<script src="../stp_con/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="../stp_con/datatables-buttons/js/buttons.print.min.js"></script>
<script src="../stp_con/datatables-buttons/js/buttons.colVis.min.js"></script>
 
<script src="../assets/js/adminlte.min.js"></script> 
 <script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,
      "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
    }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)'); 
  });
  $(function () {
    $("#example2").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,
      "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
    }).buttons().container().appendTo('#example2_wrapper .col-md-6:eq(0)'); 
  });
</script>