|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.20 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/sale/code/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include('php-includes/connect.php');
include('php-includes/check-login.php');
$userid = $_SESSION['userid'];
$sel1="select * from user where email='$userid' ";
$res1=mysqli_query($con,$sel1);
$row1=mysqli_fetch_array($res1,MYSQLI_BOTH);
$name=$row1['name'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include('php-includes/menu.php'); ?>
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Binary Plan Of <b> Dist.- <?php echo $name;?> (<?php echo $userid;?>)</b></h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="table-responsive">
<table class="table table-bordered table-striped">
<tr>
<th>S.n.</th>
<th>By Dist.Id</th>
<th>Left Dist. Id</th>
<th>Right Dist. Id</th>
<th>Pair</th>
<th>Date</th>
<th>Amount</th>
</tr>
<?php
$i=1;
$sum="";
$query = mysqli_query($con,"select * from tree1 where main='$userid' ");
if(mysqli_num_rows($query)>0){
while($row=mysqli_fetch_array($query)){
//$pin = $row['pin'];
$sum1 = $row['amount'];
$sum=$sum+$sum1;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['userid']; ?></td>
<td><?php echo $row['lefts']; ?></td>
<td><?php echo $row['rights']; ?></td>
<td style="color:green">Complete</td>
<td><?php echo $row['date']; ?></td>
<td><?php echo $row['amount']; ?></td>
</tr>
<?php
$i++;
}
}
else{
?>
<tr>
<td colspan="2">Sorry you have no pin.</td>
</tr>
<?php
}
?>
<tr>
<td colspan="6"><b>Total Amount</b></td><td><b><?php echo $sum;?></b></td>
</tr>
</table>
</div>
</div>
</div><!--/.row-->
</div>
<br/>
<button onclick="print('page-wrapper')" >print</button>
<script>
function print(page-wrapper) {
var printContents = document.getElementById(page-wrapper).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>