Professional Documents
Culture Documents
php
include "css.php";
include "dbFunctions.php";
include "dbInfo.php";
include "header.php";
function request($url,$type,$headers,$yes){
$typee="CURLOPT_$type";
$ch=curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, $typee, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, GET);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
#curl_setopt($ch, CURLOPT_PROXY, "117.160.250.133:81");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
curl_setopt($ch, CURLOPT_HEADER, $yes);
$output1= curl_exec ($ch);
return $output1;
}
$txn_data = file_get_contents('https://upigetway.site/phnpe/user_txn.php?no='.
$user_token.'');
$txn_data= substr("$txn_data",6);
///////////JSON DECODE
$jsondecode=json_decode($txn_data,1);
$data = $jsondecode["data"];
$results = $data["results"];
$rows = count($results);
</div> -->
<div class="adminx-main-content">
<div class="container-fluid">
<!-- BreadCrumb -->
</div>
</div>
<th class="text-white">
<input type="date" name="to_date"
value="2022-11-11" class="form-control form-control-sm">
</th>
<th class="text-white">
<input type="number" name="rows_input"
value="100" class="form-control form-control-sm" placeholder="Show entries">
</th>
</tr>
</thead>
</form>
<thead>
<tr class="bg-mix">
<th class="text-white">ID</th>
<th class="text-white">App Name</th>
<th class="text-white">Customer Name</th>
<th class="text-white">Amount</th>
<th class="text-white">Date & Time</th>
<th class="text-white">Status</th>
<th class="text-white">UTR Number</th>
<th class="text-white">Payment Upi</th>
</tr>
</thead>
';
for ($i = 0; $i < $rows; $i++) {
$customerDetails=$results[$i]["customerDetails"];
$user_name=$customerDetails["userName"];
$paymentApp=$results[$i]["paymentApp"];
$paymentApp=$paymentApp["paymentApp"];
$logo=$paymentApp["logo"];
$amount=$results[$i]["amount"];
$amount=$amount / 100;
$transactionId=$results[$i]["transactionId"];
$paymentState=$results[$i]["paymentState"];
$transactionDate=$results[$i]["transactionDate"];
//$transactionDate=date('m/d/Y', $transactionDate);
$Status=$results[$i]["paymentState"];
$UTR=$results[$i]["UTR"];
$vpa=$results[$i]["vpa"];
date_default_timezone_set("Asia/Calcutta");
$seconds = $transactionDate / 1000;
$transactionDate=date("d-m-Y h:i", $seconds);
echo '<tbody><td>'.$i.'</td></td><td>'.
$paymentApp.'</td><td>'.$user_name.'</td><td>'.$amount.'</td><td>'.
$transactionDate.'</td> <td>'.$Status.'</td> <td>'.$transactionId.'</td><td>'.
$vpa.'</td></tbody>';
}
echo '</table>
<div class="row">
<div class="col-sm-12 col-md-5">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
';}else{
echo '<center> <h2>Please Login Again';
}
?>
<!-- If you prefer jQuery these are the required scripts -->
<script src="assets/dist/js/jquery-3.2.1.min.js"></script>
<script src="assets/dist/js/popper.min.js"></script>
<script src="assets/dist/js/bootstrap.min.js"></script>
<script src="assets/dist/js/vendor.js"></script>
<script src="assets/dist/js/adminx.js"></script>
<script src="assets/dist/js/table2excel.js"></script>
<script src="assets/dist/js/custom-new.js"></script>
<!--script src="assets/dist/js/jquery.dataTables.min.js"></script>
<script src="assets/dist/js/dataTables.bootstrap4.min.js"></script-->
<script type="text/javascript">
function Export(str) {
$(".table").table2excel({
filename: str+".xls"
});
}
</script>
<script>
function printDiv(divName) {
w.document.write(printContents);
w.document.write('<scr' + 'ipt type="text/javascript">' + 'window.onload =
function() { window.print(); window.close(); };' + '</sc' + 'ript>');
return true;
}
</script>
<!--script src="assets/dist/js/swipe.js"></script>
<script>
window.onload = function() {
document.addEventListener('swiped-right', function(e) {
//alert(e.type);
$(".adminx-sidebar").addClass("in");
});
document.addEventListener('swiped-left', function(e) {
//alert(e.type);
$(".adminx-sidebar").removeClass("in");
});
}
</script-->
</body>
</html>