| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/spp.raudhatulfalah.sch.id/mts/ |
Upload File : |
<?php
session_start();
error_reporting(0);
include "config/koneksi.php";
$sqlSiswa = mysql_query("SELECT * FROM view_detil_siswa WHERE idKelas='$_GET[kelas]' AND statusSiswa='Aktif' ORDER BY nmSiswa ASC");
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=laporan_siswa_" . str_replace(" ", "_", $kls['nmKelas']) . "_" . date('dmyHis') . ".xls");
?>
<table border="1">
<thead>
<tr>
<th>No.</th>
<th>NIS</th>
<th>NISN</th>
<th>Nama Siswa</th>
<th>Jenis Kelamin</th>
<th>Kelas</th>
</tr>
</thead>
<tbody>
<?php
$no = 1;
while ($ds = mysql_fetch_array($sqlSiswa)) {
echo "<tr>
<td>$no</td>
<td>$ds[nisSiswa]</td>
<td>$ds[nisnSiswa]</td>
<td>$ds[nmSiswa]</td>
<td>$ds[jkSiswa]</td>
<td>$ds[nmKelas]</td>
</tr>";
$no++;
}
?>
</tbody>
</table>