Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/user-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_user_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: "User Report" //do not include extension }); }); }); </script> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> User Report</h1> <?php if($success_msg == 2) {?> <div class="alert alert-danger"> Information Deleted Successfully. </div> <?php } ?> </div> </div> <div class="rowf"> <div class="col-lg-12fff"> <div class="panel panel-defaultdd"> <!--<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"> <button id="excel_btn" class="btn btn-success">Export</button><br /><br /> <div class="table-responsive" style="width:1200px;"> <table class="table table-striped table-bordered table-hover" id="table2excel"style="width:auto;"> <thead> <tr> <th colspan="14">User Report</th> </tr> <tr class="noExl"> <th width="20">Sr. No</th> <th>Full Name</th> <th>Address</th> <th>Contact Number</th> <th>Email</th> <th>Password</th> <th>Gender</th> <th>DOB</th> <th>Wife Name</th> <th>Wife DOB</th> <th>Anniversary Date</th> <th>Child Name</th> <th>Child DOB</th> <th>Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_user_info(); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $full_name = $report_details[$counter][1]; $address = $report_details[$counter][2]; $contact_no = $report_details[$counter][3]; $email = $report_details[$counter][4]; $password = $report_details[$counter][5]; $confirm_password= $report_details[$counter][6]; $gender = $report_details[$counter][7]; $dob = $report_details[$counter][8]; $status = $report_details[$counter][9]; $wife_name = $report_details[$counter][10]; $wife_dob = $report_details[$counter][11]; $anniversary_date = $report_details[$counter][12]; $child_name = $report_details[$counter][13]; $child_dob = $report_details[$counter][14]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $full_name; ?></td> <td><?php echo $address; ?></td> <td><?php echo $contact_no; ?></td> <td><?php echo $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 $wife_name; ?></td> <td><?php echo $wife_dob; ?></td> <td><?php echo $anniversary_date; ?></td> <td><?php echo $child_name; ?></td> <td><?php echo $child_dob; ?></td> <td><a href="<?php $_SERVER['PHP_SELF']; ?>?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> </div> <!-- /.table-responsive --> </div> </div> </div> </div> </div> </div> </div> </body> </html>
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