 <?php
defined('APK') or exit('Anda tidak dizinkan mengakses langsung script ini!');
?>
<?php if ($ac == '') { ?>
 <div class='row'>
        <div class='col-md-12'>
             <div class="card">
             <div class="card-header">	
                    <h5 class='card-title'><i class="fas fa-graduation-cap fa-fw"></i> Keterangan Peserta Didik</h5>
		   </div>
			
				<div class="card-body">
                    <div class='table-responsive'>
                        <table style="font-size: 11px" id='example1' class='table  table-hover'>
                            <thead>
                            <tr>
                              
                                    <th width='3px'></th>
                                    <th>NIS</th>									                                 
                                    <th>Nama</th>
                                    <th>Tmp Lahir</th>
                                    <th>Tgl Lahir</th>
                                    <th>Kelamin</th>									 
									 <th>Alamat</th>
									<th width='5%'>Photo</th>
											
									 <th width='5%'>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $query = mysqli_query($koneksi, "select * from binduk_siswa");
                            $no = 0;
                            while ($siswa = mysqli_fetch_array($query)) {
							
                                $no++;
                              
                            ?>
                                <tr>
                                    <td><?= $no; ?></td>
                                    <td><?= $siswa['nis'] ?></td>									
                                    <td><?= $siswa['nama'] ?></td>
                                    <td><?= $siswa['t_lahir'] ?></td>
									<td><?= $siswa['tgl_lahir'] ?></td>
									<td><?= $siswa['jk'] ?></td>
									<td><?= $siswa['alamat'] ?></td>
									 <td>
									<?php if($siswa['foto']<>''){ ?>
									<center><img src="../foto/fotosiswa/<?= $siswa['foto'] ?>" width="30" ></center>
									<?php }else{ ?>
									<center><img src="../dist/img/avatar.png" width="30" ></center>
									<?php } ?>
									</td>
                                   
								   <td>
								   <a href="sandik_binduk/cetaklembarinduk.php?nis=<?= $siswa['nis'] ?>" target="_blank" class="btn btn-sm btn-outline-danger"><i class="fas fa-print"></i></a>
									</td>
									</tr>
									<?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


<?php } ?>