<?php
session_start();
error_reporting(0);
include "config/koneksi.php";
include "config/fungsi_indotgl.php";
$idt = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM identitas "));
$s = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM view_detil_siswa where idSiswa='$_GET[id]'"));
?>
<html>

<head>
  <title>Buku Induk Siswa</title>
  <link rel="stylesheet" href="../bootstrap/css/printer.css">
  <style type="text/css">
    td {
      line-height: 1.3em;
    }
  </style>
</head>

<body onload="window.print()">
  <table width="100%">
    <tr>
      <td width="100px" align="left"><img src="./gambar/logo/<?php echo $idt['logo_kiri']; ?>" height="60px"></td>
      <td valign="top">
        <h3 align="center" style="margin-bottom:5px ">
          <?php echo $idt['nmSekolah']; ?>
          <center>Laporan Rekap Data Nasabah <br>
            <?php echo $idt['alamat']; ?></center>
        </h3>
      </td>
      <td width="100px" align="right"><img src="./gambar/logo/<?php echo $idt['logo_kanan']; ?>" height="60px"></td>
    </tr>
  </table>
  <hr>
  <h2 align="center">BUKU INDUK PESERTA DIDIK</h2>

  <table style='font-size:15px' width='100%'>
  <tr>
			<td align="left" colspan="5">

			</td>

			<td align="right" rowspan="5" margin="90 px" style="line-height: 2em;">
				<img src="./gambar/<?php echo $s['foto']; ?>" id="target" style="width: 134px; float:right; border:5px double black; height: 170px; ">
			</td>

		</tr>
    <tr>
    <td width='25px'>1.</td>
    <td width='190px'>Nama Lengkap Peserta Didik</td>
    <td width='10px'> : </td>
    <td> <?php echo $s['nmSiswa']; ?></td>
  </tr>
    
    <tr>
      <td>2.</td>
      <td width='190px'>Nomor Induk/NISN</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[nisSiswa] / $s[nisnSiswa]"; ?></td>
    </tr>
    <tr>
      <td>3.</td>
      <td width='190px'>Tempat,Tanggal Lahir</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[tmptLahir]"; ?></td>
    </tr>
    <tr>
      <td>4.</td>
      <td width='190px'>Jenis Kelamin</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[jkSiswa]"; ?></td>
    </tr>
    <tr>
      <td>5.</td>
      <td width='190px'>Agama</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[agamaSiswa]"; ?></td>
    </tr>
    <tr>
      <td>6.</td>
      <td width='190px'>Status dalam Keluarga</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[statusKeluarga]"; ?></td>
    </tr>
    <tr>
      <td>7.</td>
      <td width='190px'>Anak ke</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[anakKe]"; ?></td>
    </tr>
    <tr>
      <td>8.</td>
      <td width='190px'>Alamat Peserta Didik</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[alamatOrtu]"; ?></td>
    </tr>
    <tr>
      <td>9.</td>
      <td width='190px'>Nomor Telepon Siswa</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[noHpSis]"; ?></td>
    </tr>
  
    <tr>
      <td>10.</td>
      <td width='190px'>Orang Tua</td>
      <td width='10px'> : </td>
      <td> <?php echo ""; ?></td>
    </tr>
    <tr>
      <td></td>
      <td width='190px'>a. Nama Ayah</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[nmOrtu]"; ?></td>
    </tr>
    <tr>
      <td></td>
      <td width='190px'>b. Nama Ibu</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[nmOrtuIbu]"; ?></td>
    </tr>
    <tr>
      <td></td>
      <td width='190px'>c. Alamat</td>
      <td width='10px'> : </td>
      <td> <?php echo "$s[alamatOrtu]"; ?></td>
    </tr>
   
  
  </table>
  <br>
  <table width='40%' style='float:right'>
    <tr>
      <td align="center">
        <?php echo $idt['kabupaten']; ?>, <?php echo tgl_raport(date('Y-m-d')); ?>
        <br />Kepala Sekolah,<br /><br /><br /><br />
        <b><u><?php echo $idt['nmKepsek']; ?></u></b>
      </td>

    </tr>

  </table>
</body>

</html>