MysteryBoy
Elehhjhjjkjkfpffff
/
home
/
u417873563
/
domains
/
topfirstchoice.com
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); include('include/config.php'); if(strlen($_SESSION['alogin'])==0) { header('location:index.php'); } else{ date_default_timezone_set('Asia/Kolkata');// change according timezone $currentTime = date( 'd-m-Y h:i:s A', time () ); ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admin | Vendor Commission</title> <link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"> <link type="text/css" href="css/theme.css" rel="stylesheet"> <link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet"> <link type="text/css" href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600' rel='stylesheet'> <link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css"> <style> .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; } </style> <script language="javascript" type="text/javascript"> var popUpWin=0; function popUpWindow(URLStr, left, top, width, height) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr,'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+600+',height='+600+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); } </script> <script> //user-defined function to download CSV file function downloadCSV(csv, filename) { var csvFile; var downloadLink; //define the file type to text/csv csvFile = new Blob([csv], {type: 'text/csv'}); downloadLink = document.createElement("a"); downloadLink.download = filename; downloadLink.href = window.URL.createObjectURL(csvFile); downloadLink.style.display = "none"; document.body.appendChild(downloadLink); downloadLink.click(); } //user-defined function to export the data to CSV file format function exportTableToCSV(filename) { //declare a JavaScript variable of array type var csv = []; var rows = document.querySelectorAll("table tr"); //merge the whole data in tabular form for(var i=0; i<rows.length; i++) { var row = [], cols = rows[i].querySelectorAll("td, th"); for( var j=0; j<cols.length; j++) row.push(cols[j].innerText); csv.push(row.join(",")); } //call the function to download the CSV file downloadCSV(csv.join("\n"), filename); } </script> <style> *{ color:#2b2b2b; font-family: "Roboto Condensed"; } table { width:40%; } th { text-align:left; color:#4679bd; } </style> </head> <body> <?php include('include/header.php');?> <div class="wrapper"> <div class="container"> <div class="row"> <?php include('include/sidebar.php');?> <div class="span9"> <div class="content"> <div class="module"> <div class="module-head"> <h3>Vendor Commission</h3> <button onclick="exportTableToCSV('person.csv')"style="float: right;margin-top:-20px"> Export CSV File </button> </div> <div class="module-body"> <table id="example" class="table table-responsive"> <thead> <tr> <th>#</th> <th>User ID</th> <th>Name</th> <th>Package </th> <th>Account No.</th> <th>Bank Name</th> <th>IFSC Code</th> <th>Net Wallet</th> <th>Created On</th> <th>Action</th> </tr> </thead> <tbody> <?php $getalls = "SELECT * FROM `vendor_register`"; $getallsq = mysqli_query($con,$getalls); $i=1; while($getchdata = mysqli_fetch_array($getallsq)){ ?> <tr> <td><?php echo $i++; ?></td> <td><?php echo $getchdata["userid"]; ?></td> <td><?php echo $getchdata["username"]; ?></td> <td>₹.<?php echo $getchdata["package"]; ?></td> <td><?php echo $getchdata["accountno"]; ?></td> <td><?php echo $getchdata["bankname"]; ?></td> <td><?php echo $getchdata["ifsc"]; ?></td> <td><?php echo $getchdata["net_wallet"]; ?></td> <td><?php echo $getchdata["tmstmp"]; ?></td> <td> <?php if($getchdata["payout_status"]=='1'){ echo '<span style="color:green; font-weight:bold;">Confirmed</span>'; }elseif($getchdata["payout_status"]=='2'){ echo '<span style="color:red; font-weight:bold;">Canceled</span>'; }else{ ?> <div style="display:flex;"> <form action="payout_confirm.php" method="post"> <input type="hidden" name="id" value="<?php echo $getchdata["id"]; ?>"> <input type="hidden" name="userid" value="<?php echo $getchdata["userid"]; ?>"> <input type="hidden" name="total_commission" value="<?php echo $getchdata["net_wallet"]; ?>"> <button type="submit" name="submit" class="btn btn-success">Confirm</button> </form> <form action="payout_cancel.php" method="post"> <input type="hidden" name="id" value="<?php echo $getchdata["id"]; ?>"> <input type="hidden" name="userid" value="<?php echo $getchdata["userid"]; ?>"> <input type="hidden" name="total_commission" value="<?php echo $getchdata["net_wallet"]; ?>"> <button type="submit" name="submit" class="btn btn-danger">Cancel</button> </form> </div> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div><!--/.content--> </div><!--/.span9--> </div> </div><!--/.container--> </div><!--/.wrapper--> <?php include('include/footer.php');?> <script src="scripts/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="scripts/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script> <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="scripts/flot/jquery.flot.js" type="text/javascript"></script> <script src="scripts/datatables/jquery.dataTables.js"></script> <script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script> <script> $(document).ready(function () { $('#example').DataTable(); }); </script> </body> <?php } ?>