MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.161
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/admin/../../public_html/sale_new/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/ppschool.org.in/public_html/admin/../../public_html/sale_new/autotree.php
<?php
include('php-includes/connect.php');
include('php-includes/check-login.php');
$userid = $_SESSION['userid'];
$search = $userid;
?>

<?php 
if(isset($_GET['search-id'])){
$search_id = mysqli_real_escape_string($con,$_GET['search-id']);
if($search_id!=""){
$query_check = mysqli_query($con,"select * from user where email='$search_id'");
if(mysqli_num_rows($query_check)>0){
$search = $search_id;
}
else{
echo '<script>alert("Access Denied");window.location.assign("home.php");</script>';
}
}
else{
echo '<script>alert("Access Denied");window.location.assign("homr.php");</script>';
} 
}
?>
<?PHP include("link/header.php")?>

<?php	
$sel35="select * from user where email='$search'";
$res35=mysqli_query($con,$sel35);
$row35=mysqli_fetch_array($res35,MYSQLI_BOTH);

$sel3="select * from tree1 where userid='$search'";
$res3=mysqli_query($con,$sel3);
$row3=mysqli_fetch_array($res3,MYSQLI_BOTH);
$left1=$row3['left'];

$right1=$row3['right'];

$sel_name_left="select * from user where email='$left1'";
$res_name_left=mysqli_query($con,$sel_name_left);
$row_name_left=mysqli_fetch_array($res_name_left,MYSQLI_BOTH);
$left1_name=$row_name_left['name'];


$sel_name_right="select * from user where email='$right1'";
$res_name_right=mysqli_query($con,$sel_name_right);
$row_name_right=mysqli_fetch_array($res_name_right,MYSQLI_BOTH);
$right1_name=$row_name_right['name'];




///// 2nd left1 coding ($left11)///////////////
$sel31="select * from tree1 where userid='$left1'";
$res31=mysqli_query($con,$sel31);
$row31=mysqli_fetch_array($res31,MYSQLI_BOTH);
$left11=$row31['left'];

$right11=$row31['right'];

$sel_name_left1="select * from user where email='$left11'";
$res_name_left1=mysqli_query($con,$sel_name_left1);
$row_name_left1=mysqli_fetch_array($res_name_left1,MYSQLI_BOTH);
$left1_name1=$row_name_left1['name'];



$sel_name_right1="select * from user where email='$right11'";
$res_name_right1=mysqli_query($con,$sel_name_right1);
$row_name_right1=mysqli_fetch_array($res_name_right1,MYSQLI_BOTH);
$right1_name1=$row_name_right1['name'];
///=====================================================////
///// 2nd MIDDLE1 coding($middle1)///////////////


$sel_name_left11="select * from user where email='$left111'";
$res_name_left11=mysqli_query($con,$sel_name_left11);
$row_name_left11=mysqli_fetch_array($res_name_left11,MYSQLI_BOTH);
$left1_name11=$row_name_left11['name'];



$sel_name_right11="select * from user where email='$right111'";
$res_name_right11=mysqli_query($con,$sel_name_right11);
$row_name_right11=mysqli_fetch_array($res_name_right11,MYSQLI_BOTH);
$right1_name11=$row_name_right11['name'];
///=====================================================////

///// 2nd RIGHT1 coding($right1)///////////////
$sel3111="select * from tree1 where userid='$right1'";
$res3111=mysqli_query($con,$sel3111);
$row3111=mysqli_fetch_array($res3111,MYSQLI_BOTH);
$left1111=$row3111['left'];

$right1111=$row3111['right'];

$sel_name_left111="select * from user where email='$left1111'";
$res_name_left111=mysqli_query($con,$sel_name_left111);
$row_name_left111=mysqli_fetch_array($res_name_left111,MYSQLI_BOTH);
$left1_name111=$row_name_left111['name'];


$sel_name_right111="select * from user where email='$right1111'";
$res_name_right111=mysqli_query($con,$sel_name_right111);
$row_name_right111=mysqli_fetch_array($res_name_right111,MYSQLI_BOTH);
$right1_name111=$row_name_right111['name'];
///=====================================================////
			
			
?>
<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">
                        <h1 class="page-header">TREE</h1>
											<script>
$(document).ready(function(){
    $('#example').DataTable({
        dom: 'Bfrtip',
       buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
    });
	
});
</script>

<style>
#div {
        float: left;
		
   }
   #div2 {
        float: left;
		
   }
</style>
<div class="table-responsive">
<table class="table" align="center" border="0" style="text-align:center">
<tr height="80">
<td colspan='8'><center><a href='person_tree1.php?flag=<?php echo $search ;?>'><?php if($row35['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span></span><span><?php if($row35){if($row35['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}}?></span><br/><?php if($row35){?><?php echo $search ;?><span>(<?php echo $row35['name'] ;?>)</span><?php };?></center></td>
</tr>
<tr height="80">
<td colspan='2' style='border-right: 2px solid black;' ><center><a href='person_tree1.php?flag=<?php echo $left1 ;?>'><?php if($row_name_left['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_left){if($row_name_left['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><br/><span><?php echo $left1 ;?>(<?php echo $left1_name;?>)</span><?php }?></center></td><td colspan='3' style='border-right: 2px solid black;'><center><a href='person_tree1.php?flag=<?php echo $right1 ;?>'><?php if($row_name_right['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_right){ if($row_name_right['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><br/><?php echo $right1 ;?>(<?php echo $right1_name;?>)<?php } ?></center></td></td>
</tr>
<tr height="80">
<td><a href='person_tree1.php?flag=<?php echo $left11 ;?>'><?php if($row_name_left1['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_left1){if($row_name_left1['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><BR/><span><?php echo $left11 ;?>(<?php echo $left1_name1;?>)</span><?PHP };?></td><td style='border-right: 2px solid black;'><a href='person_tree1.php?flag=<?php echo $right11 ;?>'><?php if($row_name_right1['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_right1){if($row_name_right1['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><BR/><span><?php echo $right11 ;?>(<?php echo $right1_name1;?>)</span><?PHP };?></td><td ><a href='person_tree1.php?flag=<?php echo $left1111 ;?>'><?php if($row_name_left111['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_left111){if($row_name_left111['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><BR/><span><?php echo $left1111 ;?>(<?php echo $left1_name111;?>)</span><?PHP };?></td><td style='border-right: 2px solid black;'><a href='person_tree1.php?flag=<?php echo $right1111 ;?>'><?php if($row_name_right111['amount']!='0'){?><img src='images/green.png' style='height:80px;width:80px;'><?php } else { ?><img src='images/red.png' style='height:80px;width:80px;'><?php ;}?></a><span><?php if($row_name_right111){if($row_name_right111['amount']!='0'){echo '<i class="fa fa-check-square-o" style="color:green;font-size:30px;font-weight:bold"></i>';} else {echo '<i class="fa fa-close" style="color:red;font-size:30px;font-weight:bold"></i>';}?></span><BR/><span><?php echo $right1111 ;?>(<?php echo $right1_name111;?>)</span><?PHP };?></td>
</tr>

	</table>
                    </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