MINI
C:
/
siak
/
app
/
EKTP
/
Upload File:
files >> C:/siak/app/EKTP/ektp_cetak_daftar.php
<?php session_start(); if(!(isset($_SESSION['ektptool_sudah_login']))) { // redirect them to your desired location header('location:login.php'); exit; } $title="E-KTP TOOL"; $content="DAFTAR CETAK"; include('header.php'); include("koneksiektp2.php"); ?> <H3>DAFTAR PENCETAKAN EKTP - PERSONALIZED</H3> <table border="1" bgcolor="#ffffff"> <tr> <th> NO </th> <th> FOTO </th> <th> CHIP ID </th> <th> NIK </th> <th> NAMA </th> <th> JENIS KELAMIN </th> <th> TEMPAT LAHIR </th> <th> TGL LAHIR </th> <th> ALAMAT </th> <th> RT </th> <th> KELURAHAN </th> <th> TANGGAL </th> <th>PETUGAS</th> </tr> <? $rs_PerHal = 50; if(isset($_GET['hal'])) { $noHal = $_GET['hal']; } else $noHal = 1; $offset = ($noHal-1) * $rs_PerHal; //if ($offset==0) $offset=1; $query="SELECT COUNT(*) FROM CARD_MANAGEMENT"; $stid = oci_parse($connektp2, $query); $rs= oci_execute($stid); $data = oci_fetch_array($stid, OCI_BOTH); echo "<h3>TOTAL : ".number_format($data[0],0,',','.')."</h3>"; //----Paging : Menampilkan data per halaman -------- $rs_Jumlah = $data[0]; $jumPage = ceil($rs_Jumlah/$rs_PerHal); if ($noHal > 1) echo "<a href='".$_SERVER['PHP_SELF']."?".$varget."hal=".($noHal-1)."'><< Prev</a>"; for($hal = 1; $hal <= $jumPage; $hal++) { if ((($hal >= $noHal - 3) && ($hal <= $noHal + 3)) || ($hal == 1) || ($hal == $jumPage)) { if (($showPage == 1) && ($hal != 2)) echo " $nbsp; ... $nbsp; "; if (($showPage != ($jumPage - 1)) && ($hal == $jumPage)) echo "..."; if ($hal == $noHal) echo " <b>".$hal."</b> "; else echo " <a href='".$_SERVER['PHP_SELF']."?".$varget."hal=".$hal."'>".$hal."</a> "; $showPage = $hal; } } if ($noHal < $jumPage) echo "<a href='".$_SERVER['PHP_SELF']."?".$varget."hal=".($noHal+1)."'>Next >></a>"; $query="select * from ( select a.*, rownum as rnum from ( SELECT A.CHIP_ID,A.NIK,B.NAMA_LGKP,B.TMPT_LHR,B.TGL_LHR,B.JENIS_KLMIN,B.ALAMAT,B.NO_PROP,B.NAMA_PROP,B.NO_KAB,B.NAMA_KAB,B.NO_KEC,B.NAMA_KEC,B.NO_KEL,B.NAMA_KEL,B.NO_RT, TO_CHAR(A.PERSONALIZED_DATE,'DD-MM-YYYY HH24:MI:SS') AS TANGGAL,A.CREATED_USERNAME FROM CARD_MANAGEMENT A,DEMOGRAPHICS B WHERE A.NIK=B.NIK ORDER BY A.PERSONALIZED_DATE DESC) a where rownum <= $offset + $rs_PerHal) where rnum > $offset"; //echo $query; $stid = oci_parse($connektp2, $query); oci_execute($stid); $i=$offset; while ($row = oci_fetch_array($stid, OCI_BOTH)) { $query2="SELECT FACE FROM FACES WHERE NIK=".$row['NIK']; //echo 'query2 : '.$query2; $stid2 = oci_parse($connektp2, $query2); oci_execute($stid2); $row2 = oci_fetch_array($stid2, OCI_BOTH); unset($img); if ($row2['FACE']) $img = $row2['FACE']->load(); $i++; echo " <tr> <td>".$i."</td> <td>"; if (isset($img)) echo " <img src=\"data:image/png;base64,".base64_encode($img)."\" width=\"90\" height=\"120\">"; echo " <td>".$row['CHIP_ID']."</td> <td><a href=\"cekbiodata.php?nik=".$row['NIK']."&submit=Submit\" target=\"_blank\">".$row['NIK']."</a></td> <td>".$row['NAMA_LGKP']."</td> <td>".$row['JENIS_KLMIN']."</td> <td>".$row['TMPT_LHR']."</td> <td>".$row['TGL_LHR']."</td> <td>".$row['ALAMAT']."</td> <td>".$row['NO_RT']."</td> <td>".$row['NAMA_KEL']."</td> <td>".$row['TANGGAL']."</td> <td>".$row['CREATED_USERNAME']."</td> </tr> "; } echo "</table>"; include('footer.php'); ?>
Copyright ©2021 || Defacer Indonesia