<?php
require("../../../config/koneksi.php");
require("../../../config/function.php");
require("../../../config/crud.php");

?>
<div class="box-body">

<div class="table-responsive">
                     <table style="font-size: 11px" id='example1' class='table'>
                        <thead>
						
                            <tr>
                                <th width='5px'>
                                    #
                                </th>
                                <th>Nama</th>
								<th width="10%">Kelas</th>
                                <th width="10%">Mapel</th>
                                 <th width="5%">Ket</th>
                            </tr>
						
                        </thead>
                        <tbody>
						
                            <?php
							$tanggal=date('Y-m-d');
							
                            $query = mysqli_query($koneksi, "select * FROM absen_mapel 
							JOIN siswa_ptm ON siswa_ptm.id_siswa=absen_mapel.idsiswa
							WHERE tanggal='$tanggal' AND guru='$_SESSION[id_pengawas]'");
                            $no = 0; ?>
                           <?php while ($absen = mysqli_fetch_array($query)) {
								$tanggal=date('d-m-Y',strtotime($agenda['tanggal']));
                                $no++;
                              
                            ?>
							
                                <tr>
                                    <td><?= $no; ?></td>
                                    <td><?= $absen['nama'] ?></td>
									 <td><?= $absen['kelas'] ?></td>
									 <td><?= $absen['mapel'] ?></td>
                                    <td><?= $absen['ket'] ?></td>
											 
																</tr>
																<?php }
																?>
															</tbody>
														</table>
														

													</div>
												</div>
											</div>

