Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php include("common/header2.php"); include("common/connection.php"); if (iss..
Decoded Output download
<?php
include("common/header2.php");
include("common/connection.php");
if (isset($_GET['type'])) {
# code...
$from=$_GET['type'];
$to=$_GET['ed'];
$sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' and admin_status='$from' order by transaction_id desc";
$result=mysqli_query($db,$sql);
if(mysqli_num_rows($result)>0);
}
else
{
$sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' order by transaction_id desc";
$result=mysqli_query($db,$sql);
if(mysqli_num_rows($result)>0);
}
// $sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' order by transaction_id desc";
// $result=mysqli_query($db,$sql);
// if(mysqli_num_rows($result)>0);
?>
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title">Account Summary </h4>
<div class="ml-auto text-right">
<a class="btn btn-sm btn-primary btn-round" href="adminindex.php">
<i class="icon md-link" aria-hidden="true"></i>
<span class="hidden-sm-down">Home</span>
</a>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Start Page Content -->
<!-- ============================================================== -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Manage Withdrawal </h5>
<div class="table-responsive">
<table id="zero_config" class="table table-striped table-bordered">
<thead>
<tr>
<th>Sno.</th>
<th>T Id</th>
<th>User </th>
<th>Bank Details </th>
<th>Transaction</th>
<th>Amount</th>
<th>Type</th>
<th>Status</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$count=0;
while($row = mysqli_fetch_assoc($result)) {
if($result)
{ $count++;
$app= $row['admin_status'];
?>
<tr>
<td><?php echo $count;?></td>
<td><?php echo $row['transaction_id'];?></td>
<td><?php echo "UT".$row['user_id'];
$bankdetails1= getuserdatabysponserid($row['user_id']);
echo "</br>User Name - ".$bankdetails1['name'];
echo "</br>User mobile - ".$bankdetails1['mobile'];
?></td>
<td><?php echo "UT".$row['user_id'];
$bankdetails= getbankdetails($row['user_id']);
// "id"=>$rowuser['id'],
// "user_id"=>$rowuser["user_id"],
// "bank_name"=>$rowuser["bank_name"],
// "ifsc"=>$rowuser["ifsc"],
// "user_name"=>$rowuser["user_name"],
// "account_no"=>$rowuser["account_no"]
echo "</br>Bank Name - ".$bankdetails['bank_name'];
echo "</br>BANK IFSC - ".$bankdetails['ifsc'];
echo "</br>BANK Account No - ".$bankdetails['account_no'];
echo "</br>".$bankdetails['app_name'] ."-".$bankdetails['app_no'];
?></td>
<td><?php echo $row['transcation_type'];?></td>
<td><?php echo $row['amount'];?> </td>
<td><?php echo $row['cdtype'];?></td>
<?php if($app=="0") { ?>
<td>Pending</td>
<?php } elseif($app=="1") { ?>
<td>Approved</td>
<?php }else { ?>
<td>Cancelled</td> <?php } ?>
<td><?php echo $row['created_date'];?></br>
<?php echo $row['time'];?></td>
<td>
<?php if($app=="0") { ?>
<!--<a href="approved-withdrawal.php?tid=<?php echo $row['transaction_id']; ?>&beneficiary_id=<?php echo $row['beneficiary_id']; ?>&amt=<?php echo $row['amount']; ?>&user_id=<?php echo $row['user_id']; ?>">-->
<!--<button type="button" class="btn btn-success btn-sm"> Approve<i class="far fa-check-circle"></i></button> -->
<!--</a>-->
<a href="approved-withdrawal.php?tid=<?php echo $row['transaction_id']; ?>&type=1">
<button type="button" class="btn btn-success btn-sm"> Approve<i class="far fa-check-circle"></i></button>
</a>
</BR> </BR>
<a href="cancel-withdrawal.php?uid=<?php echo $row['user_id']; ?>&amt=<?php echo $row['act_amount']; ?>&tid=<?php echo $row['transaction_id']; ?>">
<button type="button" class="btn btn-warning btn-sm"> Cancle<i class="m-r-10 mdi mdi-keyboard-return"></i></button>
</a>
<?php } else {
?>
<?php } ?>
</td>
</tr>
<?php } } ?>
<tfoot>
<tr>
<th>Sno.</th>
<th>T Id</th>
<th>User </th>
<th>Transaction</th>
<th>Amount</th>
<th>Type</th>
<th>Status</th>
<th>Date</th>
<th>Action</th>
</tr>
</tfoot>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End PAge Content -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right sidebar -->
<!-- ============================================================== -->
<!-- .right-sidebar -->
<!-- ============================================================== -->
<!-- End Right sidebar -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->
<?php
include("common/footer.php");
?>
<script src="assets/extra-libs/DataTables/datatables.min.js"></script>
<link href="assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.css" rel="stylesheet">
<link href="dist/css/style.min.css" rel="stylesheet">
<script>
/****************************************
* Basic Table *
****************************************/
$('#zero_config').DataTable();
</script>
Did this file decode correctly?
Original Code
<?php
include("common/header2.php");
include("common/connection.php");
if (isset($_GET['type'])) {
# code...
$from=$_GET['type'];
$to=$_GET['ed'];
$sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' and admin_status='$from' order by transaction_id desc";
$result=mysqli_query($db,$sql);
if(mysqli_num_rows($result)>0);
}
else
{
$sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' order by transaction_id desc";
$result=mysqli_query($db,$sql);
if(mysqli_num_rows($result)>0);
}
// $sql="SELECT * FROM tbl_transaction where transcation_type='Withdarawal Request' order by transaction_id desc";
// $result=mysqli_query($db,$sql);
// if(mysqli_num_rows($result)>0);
?>
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title">Account Summary </h4>
<div class="ml-auto text-right">
<a class="btn btn-sm btn-primary btn-round" href="adminindex.php">
<i class="icon md-link" aria-hidden="true"></i>
<span class="hidden-sm-down">Home</span>
</a>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Start Page Content -->
<!-- ============================================================== -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Manage Withdrawal </h5>
<div class="table-responsive">
<table id="zero_config" class="table table-striped table-bordered">
<thead>
<tr>
<th>Sno.</th>
<th>T Id</th>
<th>User </th>
<th>Bank Details </th>
<th>Transaction</th>
<th>Amount</th>
<th>Type</th>
<th>Status</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$count=0;
while($row = mysqli_fetch_assoc($result)) {
if($result)
{ $count++;
$app= $row['admin_status'];
?>
<tr>
<td><?php echo $count;?></td>
<td><?php echo $row['transaction_id'];?></td>
<td><?php echo "UT".$row['user_id'];
$bankdetails1= getuserdatabysponserid($row['user_id']);
echo "</br>User Name - ".$bankdetails1['name'];
echo "</br>User mobile - ".$bankdetails1['mobile'];
?></td>
<td><?php echo "UT".$row['user_id'];
$bankdetails= getbankdetails($row['user_id']);
// "id"=>$rowuser['id'],
// "user_id"=>$rowuser["user_id"],
// "bank_name"=>$rowuser["bank_name"],
// "ifsc"=>$rowuser["ifsc"],
// "user_name"=>$rowuser["user_name"],
// "account_no"=>$rowuser["account_no"]
echo "</br>Bank Name - ".$bankdetails['bank_name'];
echo "</br>BANK IFSC - ".$bankdetails['ifsc'];
echo "</br>BANK Account No - ".$bankdetails['account_no'];
echo "</br>".$bankdetails['app_name'] ."-".$bankdetails['app_no'];
?></td>
<td><?php echo $row['transcation_type'];?></td>
<td><?php echo $row['amount'];?> </td>
<td><?php echo $row['cdtype'];?></td>
<?php if($app=="0") { ?>
<td>Pending</td>
<?php } elseif($app=="1") { ?>
<td>Approved</td>
<?php }else { ?>
<td>Cancelled</td> <?php } ?>
<td><?php echo $row['created_date'];?></br>
<?php echo $row['time'];?></td>
<td>
<?php if($app=="0") { ?>
<!--<a href="approved-withdrawal.php?tid=<?php echo $row['transaction_id']; ?>&beneficiary_id=<?php echo $row['beneficiary_id']; ?>&amt=<?php echo $row['amount']; ?>&user_id=<?php echo $row['user_id']; ?>">-->
<!--<button type="button" class="btn btn-success btn-sm"> Approve<i class="far fa-check-circle"></i></button> -->
<!--</a>-->
<a href="approved-withdrawal.php?tid=<?php echo $row['transaction_id']; ?>&type=1">
<button type="button" class="btn btn-success btn-sm"> Approve<i class="far fa-check-circle"></i></button>
</a>
</BR> </BR>
<a href="cancel-withdrawal.php?uid=<?php echo $row['user_id']; ?>&amt=<?php echo $row['act_amount']; ?>&tid=<?php echo $row['transaction_id']; ?>">
<button type="button" class="btn btn-warning btn-sm"> Cancle<i class="m-r-10 mdi mdi-keyboard-return"></i></button>
</a>
<?php } else {
?>
<?php } ?>
</td>
</tr>
<?php } } ?>
<tfoot>
<tr>
<th>Sno.</th>
<th>T Id</th>
<th>User </th>
<th>Transaction</th>
<th>Amount</th>
<th>Type</th>
<th>Status</th>
<th>Date</th>
<th>Action</th>
</tr>
</tfoot>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End PAge Content -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right sidebar -->
<!-- ============================================================== -->
<!-- .right-sidebar -->
<!-- ============================================================== -->
<!-- End Right sidebar -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->
<?php
include("common/footer.php");
?>
<script src="assets/extra-libs/DataTables/datatables.min.js"></script>
<link href="assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.css" rel="stylesheet">
<link href="dist/css/style.min.css" rel="stylesheet">
<script>
/****************************************
* Basic Table *
****************************************/
$('#zero_config').DataTable();
</script>
Function Calls
None |
Stats
MD5 | 0b85f687472d50caa9b82ec22e064d31 |
Eval Count | 0 |
Decode Time | 94 ms |