<!DOCTYPE html>
<html lang="en">

<head>
  <title>Bukti Pendaftaran</title>

</head>

<body>
  <style>
    .jalur {
      background-color: #eaeaea;
      color: #21475d;
      font-size: 15pt;
      text-align: center;
      border-radius: 3px;
      padding: 2px;
      margin-top: 4px;
    }
    

    .sarat {
      margin: 2px 0px;
      color: red;
    }

    table {
      width: 100%;
      font-size: 1em;

    }

    h1,
    h2 {

      font-size: 14pt;
      text-align: center;
      line-height: 1.5px;
    }

    h3 {
      font-size: 16pt;
      font-weight: bold;
      line-height: 1.6px;
      text-align: center
      
    }

    .alamat {
      font-size: 10px;
      /* line-height: 1.px; */
      text-align: center
    }

    .logo-sekolah {
      position: absolute;
      width: 90px;
      left: 642px;
      top: 50px;
    }

    .logo-dinas {
      position: absolute;
      width: 90px;
      top: 36px;
      left: 90px;
    }

    h4 {
      text-align: center;
      text-transform: uppercase;
      font-size: 15pt;
      letter-spacing: 2px;
      line-height: 1px;
      text-decoration: underline;
      font-style: italic;

    }

    hr {
      height: 3px;
      color: black;
      margin-top: -2px;
    }

    p {
      line-height: 1px;
    }

    .ttd {

      margin-top: 20px;
      width: 100%;
      height: 30px;

      /* justify-content: space-around; */
    }

    .ttd-kiri {
      float: left;
      width: 40%;
      height: 100px;


    }

    .ttd-kanan {
      width: 40%;
      height: 100px;
      font-size: 11pt;
      float: right;
    }

    .ttd-kanan p {
      line-height: 1px;
    }

    .namaKepsek {
      margin-top: 80px;
    }

    .td1 {
      width: 30%;
      padding: 2px;
      text-align: center;
    }

    .td2 {
      width: 10%;
      text-align: center;
    }

    .td3 {
      width: 3%;
    }

    .nilaiRaport {
      border-collapse: collapse;
      width: 100%;
      font-size: 12px;
    }

    .nilaiRaport tr td {
      border: 1px solid black;
      padding: 2px;

    }

    .nilaiRaport2 {
      width: 50%;

    }

    .td4 {
      width: 10%;
    }

    .td5 {
      width: 100%;
    }

    .td6 {
      width: 4%;
    }

    .noUrut {
      width: 100px;
      height: 80px;
      border: 1px solid #eaeaea;
      position: absolute;
      left: 600px;
      top: 289px;
      font-size: 35px;
      font-weight: bold;
      text-align: center;
      line-height: 60px;
    }

    .noUrutJudul {
      height: 20px;
      border: black 1px solid;
      background-color: #eaeaea;
      color: #21475d;
      position: absolute;
      font-size: 10px;
      font-weight: bold;
      line-height: 20px;
      text-align: center;
    }
    table{
      font-size: 11px;
    }

    .syarat {
      font-size: 11px;
    }
  </style>
  <h1>PEMERINTAH KABUPATEN BOGOR</h1>
  <h2>DINAS PENDIDIKAN</h2>
  <h3><?= $dataSekolah['nama_sekolah']; ?></h3>
  <p class="alamat"><?= $dataSekolah['alamat'] . $dataSekolah['desa'] . " " . $dataSekolah['kecamatan'] . " - Kab. Bogor"; ?></p>

  <div class="logo-sekolah">
    <img src="<?= base_url('assets/img/logo/') . $dataSekolah['logo'] ?>">
  </div>
  <div class="logo-dinas">
    <img src="<?= base_url('assets/img/logo/') ?>kabBogor.png">
  </div>
  <hr>
  <h4>Bukti Registrasi PPDB</h4>
  <table>
    <tr>
      <td class="td">No Registrasi</td>
      <td class="td3">:</td>
      <td><?= $user['koreg'] ?></td>
      <td class="td2">NISN</td>
      <td>:</td>
      <td><?= $user['nisn'] ?></td>
    </tr>
    <tr>
      <td>Nama</td>
      <td class="td3">:</td>
      <td><?= $user['nama'] ?></td>
    </tr>
    <tr>
      <td>Tanggal Lahir</td>
      <td class="td3">:</td>
      <td><?= $user['tglLahir'] ?></td>
      <td class="td2">JK</td>
      <td>:</td>
      <td><?= $user['jk'] ?></td>
    </tr>
    <tr>
      <td>NIK</td>
      <td class="td3">:</td>
      <td><?= $user['nik'] ?></td>
    </tr>
    <tr>
      <td>Sekolah Asal</td>
      <td class="td3">:</td>
      <td><?= $user['sekolahAsal'] ?></td>
    </tr>
    <tr>
      <td>NPSN Sekolah Asal</td>
      <td class="td3">:</td>
      <td><?= $user['npsn'] ?></td>
    </tr>
    <tr>
      <td>Tanggal Daftar</td>
      <td class="td3">:</td>
      <td><?= date('d F Y', strtotime($user['tglDaftar'])) ?></td>
    </tr>
    <tr>
      <td>No Telepon / WA</td>
      <td class="td3">:</td>
      <td><?= $user['noHp'] ?></td>
    </tr>
    
    <tr>
      <td>Titik Kordinat</td>
      <td class="td3">:</td>
      <td><?= $user['longitude'] ?></td>
    </tr>
    <tr>
      <td>Jalur PPDB</td>
      <td class="td3">:</td>
      <td></td>
    </tr>
  </table>
  <div class="noUrut">
    <div class="noUrutJudul">NO URUT DAFTAR</div>
    <?= $user['noDaftar'] ?>
  </div>
  <h6 class="jalur"><?= $dataJalur['ppdb'] ?></h6>
 
  <!-- data Kejuaraan -->
  <?php if($dataJalur['inputPrestasi']==1):?>
    <p>Data Prestasi Non Akademik / Kejuaraan</p>
    <table class="prestasi">
    <tr>
      <td>Prestasi</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['kejuaraan']) ? $dataKejuaraan['kejuaraan']: '-' ?></td>
    </tr>
    <tr>
      <td>Nama Kejuaraan</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['namaKejuaraan']) ? $dataKejuaraan['namaKejuaraan'] : '-'; ?></td>
    </tr>
    <tr>
      <td>Kategori</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['satuan'])? $dataKejuaraan['satuan']:'' ?></td>
    </tr>
    <tr>
      <td>Penyelengara</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['peyelengara'])? $dataKejuaraan['peyelengara']:'' ?></td>
    </tr>
    <tr>
      <td>Skor Prestasi Kejuaraan</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['skor']) ? $dataKejuaraan['skor']: '-' ?></td>
    </tr>
    <tr>
      <td>Skor Kompetensi / Uji Praktek</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['skorKompetensi'])? $dataKejuaraan['skorKompetensi']:'' ?></td>
    </tr>
    <tr>
      <td>Total Skor</td>
      <td>:</td>
      <td><?= isset($dataKejuaraan['total_skor_kejuaraan'])? $dataKejuaraan['total_skor_kejuaraan']:'' ?></td>
    </tr>
  </table>
  <?php endif;?>
  <?php if($dataJalur['input_afirmasi']==1):?>
    <p>Data Afirmasi</p>
    <table>
      <tr>
        <td>Jenis Afirmasi</td>
        <td>:</td>
        <td><?php echo isset($dataAfirmasi['nama_jenis_afirmasi'])?$dataAfirmasi['nama_jenis_afirmasi']:'-' ?></td>
      </tr>
      <tr>
        <td>Nama kartu afirmasi</td>
        <td>:</td>
        <td><?php echo isset( $dataAfirmasi['nama_afirmasi'])? $dataAfirmasi['nama_afirmasi']:'-' ?></td>
      </tr>
      <tr>
        <td>Nomor Kartu Afirmsasi</td>
        <td>:</td>
        <td><?php echo isset($dataAfirmasi['no_afirmasi']) ? $dataAfirmasi['no_afirmasi']:'-' ?></td>
      </tr>
      <tr>
        <td>ID/ NO DTKS</td>
        <td>:</td>
        <td><?php echo isset($dataAfirmasi['dtks'])?$dataAfirmasi['dtks']:'-' ?></td>
      </tr>
    </table>
  <?php endif;?>

  <?php if($dataJalur['input_nilai']==1):?>
  <table class="nilaiRaport">
    <tr>
      <td rowspan="2" class="td2">No</td>
      <td rowspan="2" class="td1">Mapel</td>
      <td colspan="2" align="center">Kelas 4</td>
      <td colspan="2" align="center">Kelas 5</td>
      <td align="center">Kelas 6</td>
      <td rowspan="2" align="center">Rata Rata</td>

    </tr>
    <tr>
      <td class="td2">Smtr. 1</td>
      <td class="td2">Smtr. 2</td>
      <td class="td2">Smtr. 1</td>
      <td class="td2">Smtr. 2</td>
      <td class="td2">Smtr. 1</td>
    </tr>
    <!--isi -->
    <tr>
      <td class="td2">1</td>
      <td>Pend. Agama</td>
      <td class="td2"><?= $dataNilai['paiK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['paiK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['paiK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['paiK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['paiK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['paiK4S1'] + $dataNilai['paiK4S2'] + $dataNilai['paiK5S1'] + $dataNilai['paiK5S2'] + $dataNilai['paiK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">2</td>
      <td>P P K N</td>
      <td class="td2"><?= $dataNilai['pknK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['pknK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['pknK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['pknK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['pknK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['pknK4S1'] + $dataNilai['pknK4S2'] + $dataNilai['pknK5S1'] + $dataNilai['pknK5S2'] + $dataNilai['pknK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">3</td>
      <td>B. Indonesia</td>
      <td class="td2"><?= $dataNilai['indoK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['indoK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['indoK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['indoK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['indoK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['indoK4S1'] + $dataNilai['indoK4S2'] + $dataNilai['indoK5S1'] + $dataNilai['indoK5S2'] + $dataNilai['indoK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">4</td>
      <td>Matematika</td>
      <td class="td2"><?= $dataNilai['mtkK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['mtkK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['mtkK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['mtkK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['mtkK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['mtkK4S1'] + $dataNilai['mtkK4S2'] + $dataNilai['mtkK5S1'] + $dataNilai['mtkK5S2'] + $dataNilai['mtkK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">5</td>
      <td>I P A</td>
      <td class="td2"><?= $dataNilai['ipaK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['ipaK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['ipaK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['ipaK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['ipaK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['ipaK4S1'] + $dataNilai['ipaK4S2'] + $dataNilai['ipaK5S1'] + $dataNilai['ipaK5S2'] + $dataNilai['ipaK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">6</td>
      <td>I P S</td>
      <td class="td2"><?= $dataNilai['ipsK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['ipsK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['ipsK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['ipsK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['ipsK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['ipsK4S1'] + $dataNilai['ipsK4S2'] + $dataNilai['ipsK5S1'] + $dataNilai['ipsK5S2'] + $dataNilai['ipsK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">7</td>
      <td>SBDP</td>
      <td class="td2"><?= $dataNilai['sbdpK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['sbdpK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['sbdpK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['sbdpK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['sbdpK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['sbdpK4S1'] + $dataNilai['sbdpK4S2'] + $dataNilai['sbdpK5S1'] + $dataNilai['sbdpK5S2'] + $dataNilai['sbdpK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">8</td>
      <td>PJOK</td>
      <td class="td2"><?= $dataNilai['pjokK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['pjokK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['pjokK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['pjokK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['pjokK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['pjokK4S1'] + $dataNilai['pjokK4S2'] + $dataNilai['pjokK5S1'] + $dataNilai['pjokK5S2'] + $dataNilai['pjokK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2">9</td>
      <td>B. Sunda</td>
      <td class="td2"><?= $dataNilai['sundaK4S1'] ?></td>
      <td class="td2"><?= $dataNilai['sundaK4S2'] ?></td>
      <td class="td2"><?= $dataNilai['sundaK5S1'] ?></td>
      <td class="td2"><?= $dataNilai['sundaK5S2'] ?></td>
      <td class="td2"><?= $dataNilai['sundaK6S1'] ?></td>
      <td class="td2"><?= round(($dataNilai['sundaK4S1'] + $dataNilai['sundaK4S2'] + $dataNilai['sundaK5S1'] + $dataNilai['sundaK5S2'] + $dataNilai['sundaK6S1']) / 5, 2) ?></td>
    </tr>
    <tr>
      <td class="td2" colspan="4" align="right">Total Nilai Rata Rata</td>
      <td class="td2" colspan="4" align="left"> :<?=' '. $dataNilai['total'] ?></td>
  </tr>
  <?php if ($dataNilai['isRank'] != 0) { ?>
  <tr>
      <td class="td2" colspan="4" align="right">Ranking</td>
      <td class="td2" colspan="4"  align="left"> :<?= ' ' . $dataNilai['rank'] ?></td>
  </tr>
  <tr>
      <td class="td2" colspan="4" align="right">Skor Rank</td>
      <td class="td2" colspan="4"  align="left"> :<?= ' ' . $dataNilai['skorRank'] ?></td>
  </tr>
  <?php };?>
  <tr>
      <td class="td2" colspan="4" align="right">Total Skor</td>
      <td class="td2" colspan="4"  align="left">:<?= ' '.$dataNilai['totalSkor'] ?></td>
  </tr>

  </table>
  <?php endif;?>
  <p style="color:red; font-size: 8px;">Skor nilai raport, sekor kejuaraan dan skor jarak di bukti pendaftaran ini belum dinyatakan final, seblum di buktikan dengan  berkas asli di tahap verifikasi</p>

  <p style="color:red;font-size: 8px;">Tidak melakukan verifikasi, dalam batas akhir pendaftaran PPDB, dinyatakan mengundurkan diri, dari proses seleksi PPDB <?=$dataSekolah['nama_sekolah']?></p>
  <br>
  <p class="namaSekolah">Akan di periksa panitia <?= $dataSekolah['nama_sekolah'] ?> </p>
  <p class="sarat">Persyaratan Khusus</p>
  <table class="syarat">
    <tr>
      <td>No</td>
      <td>Persyaratan</td>
      <td>Check</td>
    </tr>
    <?php $no = 1;
    foreach ($dataSyarat as $s) : ?>

      <tr>
        <td><?= $no++ ?></td>
        <td><?= $s['persyaratan']; ?></td>
        <td>[ ]</td>
      </tr>
    <?php endforeach ?>
  </table>
  <div class="ttd">
    <div class="ttd-kiri">
    </div>
    <div class="ttd-kanan">
      <p><?= $dataSekolah['kecamatan'] . ', ' . date('d-F-Y') ?></p>
      <p>Panitia</p>
      <p class="namaKepsek">.....................</p>
      <p class="nip"></p>
    </div>
  </div>
  <div style="clear: both;"></div>
  <p>Simpan bukti pendaftaran ini akan di perlukan saat verifikasi berkas asli </p>
</body>

</html>