| .. | |||||
| curl | |||||
| .htaccess | |||||
| index.php |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.108 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/tracking/ |
Upload File : |
<!doctype html>
<?php
date_default_timezone_set("Asia/Jakarta");
include ('../admin/part/db.php');
require_once 'curl/curl.php';
$ipPublik ='http://36.37.127.162:82/simpel2/';
if(!isset($_REQUEST['nomor'])){
$error=true;
$ket='<div class="alert_message green" jQuery> Silahkan Masukan Nomor PEndaftaran Anda ke form Tracking Perizinan Disamping, lalu tekan tombol "Search" untuk melakukan proses tracking perizinan anda.</div>';
}else{
$online=false;
$error=false;
$no=trim($_REQUEST['nomor']);
$length=strlen($no);
if($length==9){
$curl = new Curl();
$curl->get($ipPublik.'index.php?act=Permohonan&task=client&find=tracking&id='.$no.'&html=0');
if ($curl->http_status_code == 200) {
$response = json_decode($curl->response);
//debug($response);
}else{
$error=true;
$ket='<div class="alert_message red" jQuery><p style="font-weight:700;"><i class="fa fa-ban"></i> NOMOR PENDAFTARAN INVALID!</p></div>';
}
$permohonan=$response->obj;
}elseif($length==11){
$online=true;
$curl = new Curl();
$curl->get('http://perizinan.pekanbaru.go.id/lama/index.php?act=Permohonan&task=client&find=verifikasi&id='.$no.'&html=0');
//debug($curl);
if ($curl->http_status_code == 200) {
$response = json_decode($curl->response);
//debug($response);
}else{
$error=true;
$ket='<div class="alert_message red" jQuery><p style="font-weight:700;"><i class="fa fa-ban"></i> NOMOR PENDAFTARAN INVALID!</p></div>';
}
$dataOnline=$response;
//debug($dataOnline);exit;
$berkassyarat=$dataOnline->berkassyarat;
if($dataOnline->permohonan->mhnValidasi==1){
$curl2 = new Curl();
$curl2->get($ipPublik.'index.php?act=Permohonan&task=client&find=tracking&id='.$no.'&html=0');
if ($curl2->http_status_code == 200) {
$response = json_decode($curl2->response);
}else{
$error=true;
$ket='<div class="alert_message red" jQuery><p style="font-weight:700;"><i class="fa fa-ban"></i> NOMOR PENDAFTARAN INVALID!</p></div>';
}
$permohonan=$response->obj;
}else{
$permohonan=$dataOnline->permohonan;
if(isset($dataOnline->perusahaan)){
$permohonan->perNama=$dataOnline->perusahaan->perNama;
$permohonan->perAlamat=$dataOnline->perusahaan->perAlamat;
}
}
}else{
$error=true;
$ket='<div class="alert_message red" jQuery><p style="font-weight:700;"><i class="fa fa-ban"></i> NOMOR PENDAFTARAN INVALID!</p></div>';
}
}
//debug($permohonan); exit;
?>
<html>
<?php
include ('../part/head.php');
?>
<body>
<!-- Wrapper -->
<div id="wrapper" class="wide">
<?php
include ('../part/nav.php');
?>
<?php
$all = getData('all',3);
?>
<style type="text/css">
#chart {
height: 400px;
min-width: 310px;
max-width: 800px;
margin: 0 auto;
}
.dp{
line-height:28px;
border-bottom:dashed 1px silver;
}
</style>
<!-- Section -->
<section>
<div class="container">
<div class="row">
<!-- Main content -->
<div class="col col_9_of_12">
<?php
if($error){
echo $ket;
}else{
?>
<div class="head_title"><h2><i class="fa fa-search"></i> Tracking</h2></div>
<h2>Status Permohonan No. Pendaftaran <b><?php echo $permohonan->mhnNoUrutLengkap; ?></b></h2>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Detail Permohonan</h2></div>
<ul>
<?php if($permohonan->noPermohonanOnline<>''){ ?>
<li class="dp">No. Pendaftaran Online <b><?php echo $permohonan->noPermohonanOnline; ?></b></li>
<?php } ?>
<li class="dp">Tgl. Pendaftaran <b><?php echo tglIndo($permohonan->mhnTgl); ?></b></li>
<li class="dp">Nama Pemohon <b><?php echo $permohonan->mhnNama; ?></b></li>
<li class="dp">Alamat Pemohon <b><?php echo $permohonan->mhnAlamat; ?></b></li>
<?php
if(!empty($permohonan->perNama)){
?>
<li class="dp">Nama Perusahaan <b><?php echo $permohonan->perNama; ?></b></li>
<li class="dp">Alamat Perusahaan <b><?php echo $permohonan->perAlamat; ?></b></li>
<?php
}
?>
</ul>
<?php
if($online){
if($dataOnline->permohonan->mhnValidasi<>1){
$ket='<div class="alert_message red">Permohonan Belum Valid</div>';
$info=' <div class="alert_message red">
<b style="color:red;">Status Permohonan Anda Masih Belum Valid!</b><br>mohon Periksa Kembali File Berkas Syarat yang Anda Upload dan Pastikan Benar. karena Permohonan anda tidak dapat kami proses jika anda masih belum melengkapi persyaratan.
</div>';
}else{$ket='<div class="alert_message green">Permohonan sudah Valid</div>';
$info='';
}
echo $ket;
}
?>
</div>
</div>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Jenis Permohonan</h2></div>
<?php
if($online){
?>
<table class="table_green">
<thead>
<tr>
<th width="20px">No.</th>
<th>Jenis Izin</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
foreach($dataOnline->detailPermohonan as $jsi){
echo '
<tr>
<td>'.$x.'</td>
<td>'.$jsi->jsiNama.'</td>
</tr>
';
$x++;
}
?>
</tbody>
</table>
<?php
}else{
?>
<table class="table_green">
<thead>
<tr>
<th width="20px">No.</th>
<th width="40%">Jenis Izin</th>
<th width="35%">Petugas</th>
<th width="25%">Status</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
foreach($permohonan->suratizin as $jsi){
echo '
<tr>
<td>'.$x.'</td>
<td>'.$jsi->nama.'</td>
<td>Petugas Administrasi</td>
<td>'.$jsi->status.'</td>
</tr>
';
$x++;
}
?>
</tbody>
</table>
<?php
}
?>
</div>
</div>
<!-- Persyaratan -->
<?php
if(isset($berkassyarat)){
echo $info;
?>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Berkas Syarat</h2></div>
<table class="table_orange">
<thead>
<tr>
<th>No.</th>
<th width="40%">Syarat</th>
<th width="20%">File</th>
<th width="30%">Catatan</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
foreach($berkassyarat as $syarat){
if($syarat->berkassyaratFile<>''){$ketsyarat='Ada';}else{$ketsyarat='Tidak Ada';}
echo '
<tr>
<td>'.$x.'</td>
<td>'.$syarat->syaratonlineNama.'</td>
<td align="center">'.$ketsyarat.'</td>
<td>'.$syarat->berkassyaratKet.'</td>
</tr>
';
$x++;
}
?>
</tbody>
</table>
</div>
</div>
<?php
}
?>
<!-- Cek Lokasi -->
<?php
if(!empty($permohonan->BAP)){
?>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Keterangan Cek Lokasi</h2></div>
<ul>
<?php
if($permohonan->BAP->tglspt=='0000-00-00'){
echo '<li class="dp">Tgl. SPT <b style="color:red;">Belum ada SPT survey!</b></li>';
}else{
?>
<li class="dp">Tanggal SPT <b><?php echo tglIndo($permohonan->BAP->tglspt); ?></b></li>
<li class="dp">Tanggal BAP <b><?php
if($permohonan->BAP->tglbap<>'0000-00-00'){
echo tglIndo($permohonan->BAP->tglbap);
}else{ echo ' <b style="color:red;">Belum ada BAP</b>' ;}
?></b></li>
<li class="dp">Petugas BAP <b><?php //echo str_replace(';','; ',$permohonan->BAP->petugas); ?></b></li>
<?php
}
?>
</ul>
</div>
</div>
<?php
}
?>
<!-- Data Retribusi (jika ada Retribusi) -->
<?php
if(!empty($permohonan->Retribusi)){
?>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Retribusi Izin Gangguan (HO)</h2></div>
<ul>
<?php
if($permohonan->Retribusi->tgl=='0000-00-00'){
echo '<div class="alert_message red">Belum Bayar Retribusi!</div>';
}else{
?>
<li class="dp">Tanggal Bayar <b><?php echo tglIndo($permohonan->Retribusi->tgl); ?></b></li>
<li class="dp">Jumlah Bayar <b> Rp. <?php echo MySQLToMoney($permohonan->Retribusi->jumlah); ?></b></li>
<?php
}
?>
</ul>
</div>
</div>
<?php
}
?>
<!-- Detail Jika Permohonan IMB -->
<?php
if(isset($permohonan->imb)){
?>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Permohonan IMB</h2></div>
<div class="col col_6_of_12">
<h5>Detail TABG</h5>
<?php
if(!isset($permohonan->imb->tabg)){
echo '<div class="alert_message red">Berkas Belum dikirim ke TABG!</div>';
}else{
?>
<ul>
<li class="dp">No. Surat TABG <b><?php echo $permohonan->imb->tabg->tabgNoSurat; ?></b></li>
<li class="dp">Jenis Permohonan <b><?php echo $permohonan->imb->tabg->tabgJenisPermohonan; ?></b></li>
<li class="dp">Jenis Bangunan <b><?php echo $permohonan->imb->tabg->tabgJenisBangunan; ?></b></li>
<li class="dp">Tanggal Kirim <b><?php echo tglIndo($permohonan->imb->tabg->tabgTglKirim); ?></b></li>
<li class="dp">Tanggal Kembali <b><?php echo tglIndo($permohonan->imb->tabg->tabgTglKembali); ?></b></li>
<li class="dp">Tanggal Hasil <b><?php echo $permohonan->imb->tabg->tabgHasil; ?></b></li>
</ul>
<?php
}
?>
</div>
<div class="col col_6_of_12">
<h5>Retribusi IMB</h5>
<ul>
<?php
if(!isset($permohonan->imb->retimb)){
echo '<div class="alert_message red">Nilai Retribusi belum dihitung!</div>';
}else{
if($permohonan->imb->retimb->retimbTglBayar=='0000-00-00'){
echo '<div class="alert_message red">Belum Bayar Retribusi!</div>';
}else{
?>
<ul>
<li class="dp">No. SKRD <b><?php echo $permohonan->imb->retimb->retimbNo; ?></b></li>
<li class="dp">Tanggal Bayar <b><?php echo tglIndo($permohonan->imb->retimb->retimbTglBayar); ?></b></li>
</ul>
<?php
}
}
?>
</ul>
</div>
</div>
</div>
<?php
}
?>
<!-- Validasi -->
<?php
if(!empty($permohonan->validasi)){
?>
<div class="row">
<div class="col col_12_of_12">
<div class="head_title"><h2 style="font-size:16px;">Validasi</h2></div>
<table class="table_black">
<thead>
<tr>
<th>No.</th>
<th width="40%">Validator</th>
<th width="30%">Tanggal Masuk</th>
<th width="30%">Tanggal Keluar</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
foreach($permohonan->validasi as $val){
echo '
<tr>
<td>'.$x.'</td>
<td>'.$val->pnJabatan.'</td>
<td>'.tglIndo($val->valTglMasuk).'</td>
<td>'.tglIndo($val->valTglKeluar).'</td>
</tr>
';
$x++;
}
?>
</tbody>
</table>
</div>
</div>
<?php
}
?>
<?php
}
?>
<hr>
<!-- You might also like -->
<div class="panel_title">
<div>
<h4><a href="#">Recent Post</a></h4>
</div>
</div>
<div class="row">
<?php
foreach($all as $b){
$tgl=explode(' ',$b['post_date']);
$dom = new domDocument;
$dom->loadHTML($b['post_content']);
$dom->preserveWhiteSpace = false;
$p = $dom->getElementsByTagName('p');
$nar=array();
foreach($p as $n){ $nar[] = $n->nodeValue;}
if(!empty($nar)){
$narasi=ambilNarasi($nar[0],200);
}else{$narasi='';}
?>
<div class="col col_4_of_12">
<!-- Layout post 1 -->
<div class="layout_post_1">
<div class="item_thumb">
<div class="thumb_icon">
<a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>" jQuery><i class="fa fa-copy"></i></a>
</div>
<div class="thumb_hover">
<a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><img src="<?php echo PATH.'assets/post/'.$b['post_image']; ?>" onerror="this.onerror=null;this.src='<?php echo PATH.'assets/post/no_image_available.jpeg'; ?>.';" class="visible animated"></a>
</div>
<div class="thumb_meta">
<span class="category" jQuery><a href="#"><?php echo $b['post_type']; ?></a></span>
<span class="comments"><a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><?php echo tglIndo($tgl[0]); ?></a></span>
</div>
</div>
<div class="item_content">
<h4><a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><?php echo $b['post_title']; ?></a></h4>
<p style="text-align:justify"><?php echo $narasi; ?></p>
<a class="btn btn_turquoise btn_expand btn_red" href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>">Read More <i class="fa fa-chevron-right"></i></a>
</div>
</div><!-- End Layout post 1 -->
</div>
<?php
}
?>
</div><!-- End You might also like -->
</div><!-- End Main content -->
<?php
include ('../part/sidebar.php');
?>
</div>
</div>
</section><!-- End Section -->
<?php
include ('../part/foot.php');
?>
</div><!-- End Wrapper -->
<?php
include ('../part/importJS.php');
?>
</body>
</html>