Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/sales_repor.php

<?php
	require_once('lib/functions.php');
	$db		=	new class_functions();
	
	if(isset($_SESSION['current_login_admin'])) {
    $current_login_admin=$_SESSION['current_login_admin'];

}
	$flag	=	0;
	
	if(isset($_GET['delete_id']))
	{
		$delete_id	=	$_GET['delete_id'];
		
		if($db->delete_add_project($delete_id))
		{
			$flag	=	3;
		}
	}

		$agent_name 	  		= "";
		// $project_type 	  	   	= "";
		// $project_current_status = "";
		// $project_selling_status = "";
		
	if(isset($_POST['search']))
	{

		$agent_name 	  		= $_POST['agent_name'];
		// $project_type 	  	   	= $_POST['project_type'];
		// $project_current_status = $_POST['project_current_status'];
		// $project_selling_status = $_POST['project_selling_status'];
	

		$_SESSION['filter_agent_name'] 			= $agent_name;
		// $_SESSION['filter_project_type'] 			= $project_type;
		// $_SESSION['filter_project_current_status'] 	= $project_current_status;
		// $_SESSION['filter_project_selling_status'] 	= $project_selling_status;
		
	}	

	else if(isset($_SESSION['filter_project_name'])){

		$agent_name = $_SESSION['filter_agent_name'];
		// $project_type = $_SESSION['filter_project_type'];

		// $project_current_status = $_SESSION['filter_project_current_status'];
		// $project_selling_status = $_SESSION['filter_project_selling_status'];
		
	}
// echo "----". $agent_name;
			$data	=	array();
			$data	=	$db->get_all_register_for_search12($agent_name);
?>
<!doctype html>
<html lang="en" dir="ltr">
  <head>
   <?php
		require_once('header-common.php');
   ?>
  </head>
  <body class="  ">
    <style>
    	table tbody td {
		font-size: 14px !important;
		padding: 5px 5px 5px 5px!important;
		text-align: center	;
	}
	table thead th {
		font-size: 14px !important;
		padding: 5px 5px 5px 5px!important;
		text-align: center;

	}
	.header-title{
		padding-left: 30px;
		/* margin-bottom: 0px; */
	}
    </style>
    
    <aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all ">
        <div class="sidebar-header d-flex align-items-center justify-content-start">
            <a href="index.php" class="navbar-brand">
				<img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" />
            </a>
            <div class="sidebar-toggle" data-toggle="sidebar" data-active="true">
                <i class="icon">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                </i>
            </div>
        </div>
        
	<?php
		require_once('left-side.php');
	?>
		<div class="sidebar-footer"></div>
    </aside>   
	<main class="main-content">
    	<?php
			require_once('navbar.php');
		?>
	  
      <div class="conatiner-fluid content-inner mt-n5 py-0">
<div class="row">
    <div class="col-sm-12">
        <div class="card">
		
			<?php
				if($flag ==3)
				{
			?>
				<div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;">
					<span>Project Record Deleted Successfully</span>
					<button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button>
				</div>
			<?php
				}
			?>
			 
                  
		
			<div class="card-header d-flex justify-content-between flex-wrap">
                <div class="header-title">
                    <h3 class="card-title mb-0"> Sales Report </h3><br>
                </div>
            </div>
				 <div class="">
                           <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
                              <div class="row" style="margin-left:20px;margin-top:30px">
                                
                                <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">Agent Name</label>
                                    <input type="text" name="agent_name" class="form-control" value="<?php echo $agent_name; ?>" placeholder="Enter Agent Name " >
                                    </div>
                                 </div>	
                                 
	                        
                                <div class="col-lg-2" style="margin-top:29px">
                                    <div class="form-group" >
                                       
                                       <input type="submit" name="search"  value="Search" class="btn btn-primary" placeholder=""   />

                                    </div>
                                </div>
                              
                              </div>
                        </form><br> 
                
            </div>
				    <div class="card-body" style="overflow:scroll;">
	                <div class="table-responsive">
	                  <table class="table table-bordered">
                        <thead>
                            <tr>
								<th>Sr No</th>
                                <th>Company Name</th>
								<th>Agent Full Name</th>
								<th>Agent Phone Number</th>
								<th>Confirmed Tickets</th>
								<th>Total Amount of Confirmed Tickets</th>
								<th>Cancelled Tickets</th>
								<th>Total Amount of Cancelled Tickets</th>
								<!-- <th>Total of Commision Amount</th> -->
								
                            </tr>								
                        </thead>
                        <tbody>						
							<?php
							
								$counter = 0;
								if(!empty($data))
								{
									foreach($data as $record)
									{	
										$id								=$data[$counter][0];
										$company_name					=$data[$counter][1];
										$full_name						=$data[$counter][2];
										$phone_number					=$data[$counter][3];
										$whatsapp_number				=$data[$counter][4];
										$email_address					=$data[$counter][5];
										$referred_by					=$data[$counter][6];
										$country						=$data[$counter][7];
										$state							=$data[$counter][8];
										$district						=$data[$counter][9];
										$city							=$data[$counter][10];
										$address						=$data[$counter][11];
										$pin_code						=$data[$counter][12];
										$status							=$data[$counter][13];
										$your_locailty					=$data[$counter][14];
										$nearest_airport				=$data[$counter][15];
										$primary_business				=$data[$counter][16];
										$monthly_busines				=$data[$counter][17];
										$secondary_business				=$data[$counter][18];
										$monthly_business				=$data[$counter][19];
										$pan_no							=$data[$counter][20];
										$company_gst_no					=$data[$counter][21];
										$online_ota_1					=$data[$counter][22];
										$online_ota_2					=$data[$counter][23];
										$series_ota_1					=$data[$counter][24];
										$series_ota_2					=$data[$counter][25];
										$password						=$data[$counter][26];
										$date							=$data[$counter][27];
										$time							=$data[$counter][28];
										$wallet_balance					=$data[$counter][29];
										$dailycount			=	$db->count_entries_daily($phone_number);
										$weeklycount		=	$db->count_entries_weekly($phone_number);
										$monthlycount		=	$db->count_entries_monthly($phone_number);

										$confirm_ticket		=	$db->count_ticket_confirm($phone_number);
										
										$confirm_ticket_count = $db->count_ticket_amount($phone_number);
										$cancel_ticket		=	$db->count_ticket_cancel($phone_number);
										$cancel_ticket_count = $db->count_ticket_amount_cancel($phone_number);


										//$function_id_name= $db->get_function_hall_by_id($function_hall_id);
										//$function_hall_name= $db->get_function_event_by_id($hall_name);
										//$function_booking_for= $db->get_function_booking_for_by_id($booking_for);										
							?>
	                           <tr class="">
                                <td class=""><?php echo $counter+1; ?></td>
								<td class=""><?php echo $company_name; ?> <br></td>
								<td class=""><?php echo	$full_name; ?></td>
								<td><?php echo $phone_number;  ?></td>

								<td class=""><?php echo	$confirm_ticket; ?></td>
								<td class=""><?php echo	$confirm_ticket_count; ?></td>
								
								<td><?php echo $cancel_ticket;  ?></td>
								<td class=""><?php echo	$cancel_ticket_count; ?></td>
								<!-- <td class=""><?php echo	$phone_number; ?></td> -->

								

							<!-- 	<td><a href="completed_sales.php?sales_id=<?php echo $phone_number; ?>"><?php echo $monthlycount; ?></a></td>
								<td><a href="confirm_sales.php?sales_id=<?php echo $phone_number; ?>"><?php echo $dailycount; ?></a></td>
								<td><a href="pending_sales.php?sales_id=<?php echo $phone_number; ?>"><?php echo $weeklycount; ?></a></td>
								<td><a href="confirmed_tickets.php?sales_id=<?php echo $phone_number; ?>"><?php echo $confirm_ticket;  ?></a></td>
								<td><a href="cancelled_tickets.php?sales_id=<?php echo $phone_number; ?>"><?php echo $cancel_ticket; ?></a></td>
								 -->
								<!-- <td class=""><?php echo $wallet_balance; ?></td> -->
								
								
								
									
                            </tr>
							
							<?php
												$counter++;
										}
									}
									else
									{
										echo "no data found.";
									}
							?>
						</tbody>
                    </table>
                  
                  
                </div>
            </div>
	</div>
</div>
</div>
 
    <!-- Library Bundle Script -->
    <script src="../assets/js/core/libs.min.js"></script>
    
    <!-- External Library Bundle Script -->
    <script src="../assets/js/core/external.min.js"></script>
    
    <!-- Widgetchart Script -->
    <script src="../assets/js/charts/widgetcharts.js"></script>
    
    <!-- mapchart Script -->
    <script src="../assets/js/charts/vectore-chart.js"></script>
    <script src="../assets/js/charts/dashboard.js" ></script>
    
    <!-- fslightbox Script -->
    <script src="../assets/js/plugins/fslightbox.js"></script>
    
    <!-- Settings Script -->
    <script src="../assets/js/plugins/setting.js"></script>
    
    <!-- Slider-tab Script -->
    <script src="../assets/js/plugins/slider-tabs.js"></script>
    
    <!-- Form Wizard Script -->
    <script src="../assets/js/plugins/form-wizard.js"></script>
    
    <!-- AOS Animation Plugin-->
    <script src="../assets/vendor/aos/dist/aos.js"></script>
    
    <!-- App Script -->
    <script src="../assets/js/hope-ui.js" defer></script>
	
     <style>
	.sidebar.sidebar-default .nav-link:not(.static-item).active , .sidebar.sidebar-default .nav-link:not(.static-item).active, .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true]
	{
		background-color:#FE6600 !important;
	}
	</style>
  </body>
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4