<?php session_start(); include "../confiq.php";  ?>
<?php if(isset($_SESSION['iduser'])){?>
<!DOCTYPE html>
<html>

<?php include "../head_print.php";?>

<body class="theme-green" style="width:70%">
    <!-- Page Loader -->

   
  

    <section>

			<?php 
		
			if(isset($_GET['id']))
			{
			$id=noninjection($koneksi,$_GET['id']);
			$qry_rek=mysqli_query($koneksi,"SELECT * FROM `tb_rekening` WHERE id='".$id."'");
			$N=mysqli_num_rows($qry_rek);
			if($N<>0)
			{
			while($row=mysqli_fetch_array($qry_rek))
			{
			$qry_cari=mysqli_query($koneksi,"SELECT * FROM `tb_anggota` WHERE idanggota='".$row['idanggota']."'");
			$row_cari=mysqli_fetch_array($qry_cari)
			?>
 <div class="row clearfix">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
				
                    <div class="card">
                        <div class="header">
						<div>
                            <img src="../images/logo.png" width="48" height="48" alt="Logo" />
							</div>
							<div style="margin-left:60px; margin-top:-50px;">
						    <h2><?php echo $_SESSION['judul'];?></h2>
							<div style="font-size:14px; margin-top:-2px;"><?php echo $_SESSION['client'];?>
							<br><?php echo $_SESSION['clientAlamat'];?>
							<?php echo $_SESSION['clientPhone'];?>
							</div>
                           </div>
						   
                        </div>
							<div style="font-size:18px" align="center"><b>[ SLIP PENARIKAN <?php echo $_SESSION['judul'];?> ]</b></div>
                        <div class="body">
					
						<div class="row" style=" ">
					<div class="col-sm-6">
						
						<div class="row" style=" ">
  							<div class="col-sm-4">ID Member</div>
 							 <div class="col-sm-8"><?php echo $row['idanggota'];?></div>
							</div> 
							
							<div class="row" style="background-color:#D8F5D3;  ">
  							<div class="col-sm-4">Kategori</div>
 							 <div class="col-sm-8"><?php echo $row_cari['kategori'];?></div>
							</div> 
							
						
							
							<div class="row" >
  							<div class="col-sm-4">Nama</div>
 							 <div class="col-sm-8"><?php echo  $row_cari['nama'];?></div>
							</div> 
							
							
							</div><div class="col-sm-6">
							<div class="row" style="">
  							<div class="col-sm-4">Nominal</div>
 							 <div class="col-sm-8"><?php echo  number_format($row['nominal'],0,",",".");?> IDR</div>
							</div> 
							
							<div class="row"  style="background-color:#D8F5D3; ">
  							<div class="col-sm-4">Keterangan</div>
 							 <div class="col-sm-8"><?php echo $row['keterangan'];?></div>
							</div> 
							
							<div class="row" style="">
  							<div class="col-sm-4">Saldo</div>
 							 <div class="col-sm-8"><?php echo number_format($row['saldo'],0,",",".");
							 ?> IDR</div>
							</div>
							
							
							
							<div class="row"  style="background-color:#D8F5D3; ">
  							<div class="col-sm-4">Tgl. Trans.</div>
 							 <div class="col-sm-8"><?php echo $row['tgl'];?></div>
							</div>
							<div class="row" >
  							<div class="col-sm-12">
							<div>
							<?php echo $_SESSION['clientKota'].", ".date('d M Y');?>
							<br>Tanda Tangan <br>Petugas</div>
 							 <div style="margin-top:60px;">( <b><?php echo $_SESSION['user_nama'];?> </b>)</div></div>
							</div>
							
							</div>
							</div></div></div>



<?php }} else {?> 
<div style="font-size:10px; color:#CC0000"> DATA TIDAK TERSEDIA</div>
<?php }} ?>

    <!-- #END# CONTENT -->  
    </section>
<?php include "../jscript_print.php";?>
   
</body>

</html>
<?php } else {
include "../login.php";
}?>
