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

<head>

    <link rel="stylesheet" href="../../../../asset/bootstrap/css/adminlte.min.css">
    <style>
        .font {
            font-family: arial;
            font-size: 11px;
        }

        .fontlamp {
            font-family: arial;
            font-size: 8px;
        }

        .fontJudullamp {
            font-size: 12px;
            font-family: arial;

        }

        .fontInput {
            font-size: 11px;
            font-family: arial;
        }

        .fontJudul {
            font-size: 12px;
            font-family: arial;
            color: dodgerblue;
            background: #000;
        }
    </style>
</head>

<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed small">

    <div class="wrapper">
        <?php
        require('../../../../asset/mod/autoLoad.php');
        // require('../../../../bootstrap/asset/phpqrcode/qrlib.php');

        $clssekolah = new sekolah;

        date_default_timezone_set('Asia/Jakarta');
        $tanggal = mktime(date("m"), date("d"), date("Y"));
        $tglsekarang = date("d-m-Y", $tanggal);
        $tahunnow = date("Y", $tanggal);

        $id = $_GET['id'];
        $tahun = $_GET['tahun'];

        $clsTabel = new cekTabel;
        $tb_transaksi = $clsTabel->getTabel('simakom_transaksi', $tahun);
        $clsCrud = new crudData();
        $view = $clsCrud->editData($tb_transaksi, 'id', $id);
        $data = $view->fetch(PDO::FETCH_OBJ);

        $clsFormat = new format;

        $clssekolah = new sekolah();

        $simakom_bendahara_nama = $clssekolah->dataSekolah('simakom_bendahara_nama');
        $simakom_bendahara_nip = $clssekolah->dataSekolah('simakom_bendahara_nip');
        $simakom_atasan_nama = $clssekolah->dataSekolah('simakom_atasan_nama');
        $simakom_atasan_nip = $clssekolah->dataSekolah('simakom_atasan_nip');
        $simakom_atasan_jabatan = $clssekolah->dataSekolah('simakom_atasan_jabatan');

        ?>


        <div class="container col-12 mb-4">
            <div class="row">
                <div class="col-12">
                    <div class="row">
                        <div class="card-body col-12 mx-4">
                            <h5 class="page-header">
                                <?php
                                $view = new lembaga;
                                echo $view->viewImage('../../../../asset/dokumen/foto/', 'logo', 'mr-2 position-absolute', '60', '60');
                                echo "<b class='d-block ml-5 pl-3 pt-1'>" . $clssekolah->dataSekolah('sekolah') . "</b>";
                                echo "<i class='footer font ml-5 pl-3 mb-2 pb-3'>" . $clssekolah->dataSekolah('alamat') . "</i>"; ?>
                                <small class="float-right position-relative"><b class="text-black">KUITANSI PEMBAYARAN <br>TAHUN PELAJARAN <?php echo $tahun; ?></b> </small><br>
                            </h5>
                        </div>

                        <div class="card-body mx-4">


                            <div class="row col-md-12 mt-3">
                                <div class='col-sm-12 invoice-col'>
                                    <div class='col-md-12'>
                                        <dl class='row'>
                                            <dd class='col-sm-2'>Telah terima dari</dd>
                                            <dd class='col-sm-1 pl-5'>:</dd>
                                            <dd class='col-sm-9'>Bendahara <?php echo $clssekolah->dataSekolah('sekolah'); ?></dd>
                                            <dd class='col-sm-2'>Uang sebesar</dd>
                                            <dd class='col-sm-1 pl-5'>:</dd>
                                            <dd class='col-sm-9'><?php echo ucwords($clsFormat->terbilang($data->kredit) . " Rupiah"); ?></dd>
                                            <dd class='col-sm-2'>Guna Membayar</dd>
                                            <dd class='col-sm-1 pl-5'>:</dd>
                                            <dd class='col-sm-9'><?php echo $clsFormat->entityEncode($data->uraian); ?> </dd>
                                            <dd class='col-sm-2'>Terbilang</dd>
                                            <dd class='col-sm-1 pl-5'>:</dd>
                                            <dd class='col-sm-9'>Rp. <?php echo $clsFormat->ribuan($data->kredit); ?></dd>

                                            <dd class='col-sm-2 mt-4'>Akun / Mata Anggaran</dd>
                                            <dd class='col-sm-1 pl-5  mt-4'>:</dd>
                                            <dd class='col-sm-9  mt-4'><?php echo $data->rkas_kategori . "." . $data->rkas_kegiatan . "." . $data->rkas_komponen . "." . $data->rkas_akun; ?></dd>
                                            <dd class='col-sm-2'>No Bukti Pengeluaran</dd>
                                            <dd class='col-sm-1 pl-5'>:</dd>
                                            <dd class='col-sm-9'><?php echo $data->bukti; ?></dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>

                            <div class="row col-md-12 mt-3">
                                <div class='col-sm-12 invoice-col'>
                                    <div class='col-md-12'>
                                        <dl class='row'>
                                            <dd class='col-sm-1'></dd>
                                            <dd class='col-sm-3'>Mengetahui,<br><?php echo $simakom_atasan_jabatan . "<br><br><br><br><br>" . $simakom_atasan_nama; ?></dd>
                                            <dd class='col-sm-1'></dd>
                                            <dd class='col-sm-3'>Lunas dibayar tanggal, <?php echo $clsFormat->dateToIndoLong($data->tanggal) . "<br>Bendahara<br><br><br><br><br>" . $simakom_bendahara_nama; ?></dd>
                                            <dd class='col-sm-1'></dd>
                                            <dd class='col-sm-3'><?php echo $clssekolah->dataSekolah('kota') . ", " . $clsFormat->dateToIndoLong($data->tanggal) . "<br>" . $data->penerima_jabatan . "<br><br><br><br><br>" . $data->penerima; ?></dd>

                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <!--
                            <div class="row col-md-12 mt-3">
                                <div class='col-sm-12 invoice-col'>
                                    <div class='col-md-12'>
                                        <?php $clsTransaksi = new simakom_transaksi;
                                        $clsTransaksi->penandaTangan_Kuitansi($data->tanggal, $tahun); ?>
                                    </div>
                                </div>
                            </div>
    -->


                        </div>

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

        </div>

        <script src="../../../../asset/bootstrap/js/adminlte.min.js"></script>




</body>

</html>