Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/registration-report.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 = ""; $category = ""; $owner_name = ""; $product_id =""; $product_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_registered_user_info($del_id); // $success_msg = 2; // } if($to_date == "") { $to_date = Date("d-m-Y"); } if($from_date == "") { $from_date = Date("d-m-Y"); } $delete_id=""; if(isset($_GET['delete_id'])) { $delete_id = $_GET['delete_id']; if($db->delete_registered_user_info($delete_id)) { $flag = 3; } } ?> <?php require_once('header.php'); ?> <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> <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: "Product Report" //do not include extension }); }); }); </script> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> Registered User 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"> Registered Users Report </div> <div class="panel-body"> <div class="row"> <?php if(isset($_POST['add_btn'])) { $category = $_POST['category']; $owner_name = $_POST['owner_name']; $product_id = $_POST['product_id']; $product_name = $_POST['product_name']; } ?> <form role="form" method="post" enctype="multipart/form-data"> <!-- <div class="col-lg-1" style="display:inline-table; "> <input type="text" class="form-control" placeholder="Enter Owner Email id" name="owner_name" value="<?php echo $owner_name; ?>"> </div> <div class="col-lg-1" style="display:inline-table;"> <input type="text" class="form-control" placeholder="Enter Product Id" name="product_id" value="<?php echo $product_id; ?>"> </div> <div class="col-lg-2" style="display:inline-table;"> <input type="text" class="form-control" placeholder="Enter Product name" name="product_name" value="<?php echo $product_name; ?>"> </div> --> <!-- <div class="col-lg-2" style="display:inline-table;"> <select name="category" class="form-control"> <?php if($category != "") { ?> <option value="<?php echo $category; ?>"><?php echo $category; ?></option> <?php } ?> <option value="Select Category">Select Category</option> --> <?php // $report_details = $db->get_all_main_category(); // if(!empty($report_details)) // { // $counter =0; // foreach($report_details as $record) // { // $id = $report_details[$counter][0]; // $menubar = $report_details[$counter][1]; // $category_n = $report_details[$counter][2]; // ?> <!-- // <option value="<?php echo $category_n; ?>"><?php echo $category_n; ?></td> --> <?php // $counter ++; // } // }else // { // ?> <!-- <td colspan="11">No Data Found...</td> --> <?php // } // ?> <!-- // </select> // </div> --> <!-- <div class="col-lg-3" style="display:inline-table;"> <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"> <thead> <tr> </tr> <tr class="noExl"> <th>Sr. No</th> <th>Name</th> <th>Email</th> <th>Gender</th> <th>Date of Birth</th> <th>Mobile No</th> <th>Password</th> <th width="30">Delete</th> </tr> </thead> <tbody> <?php $u_name=""; $email=""; $gender=""; $dob=""; $mobile_no=""; $pasword=""; $report_details = $db->get_all_registered_users($u_name,$email,$gender,$dob,$mobile_no,$pasword); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $u_name = $report_details[$counter][1]; $email = $report_details[$counter][2]; $gender = $report_details[$counter][3]; $dob = $report_details[$counter][4]; $mobile_no = $report_details[$counter][5]; $pasword = $report_details[$counter][6]; // $seller_data = $db->get_seller_info_from_email($seller_email); // $seller_name = $seller_data[0][1]; // $seller_contact = $seller_data[0][4]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $u_name; ?></td> <td><?php echo $email; ?></td> <td><?php echo $gender; ?></td> <td><?php echo $dob; ?></td> <td><?php echo $mobile_no; ?></td> <td><?php echo $pasword; ?></td> <td><a href="registration-report.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } } ?> </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