]]jkjjgdjffksdkdxmnnnnnnnnnnnmnmmnmnmnmnmbnwqeqwewqskfgj
במ12[cvbnvbnvbnvbnnmnnmnmnnmnmnmnmnmnmmnnmnmnmqewv;'
/
home
/
cgniioxq
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); if($_SESSION['username']=='' && $_SESSION['admin_id'] !='1') { header('Location:login.php'); } include_once 'Config.php'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Admin</title> <!-- Tell the browser to be responsive to screen width --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Font Awesome Icons --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- DataTables --> <link rel="stylesheet" href="plugins/datatables/dataTables.bootstrap4.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <script> function deleteenquiry(id) { var x = confirm("Are you sure you want to delete?"); if (x) { $.ajax ({ type:'POST', url:'deleteenquiry.php',data:{id:id}, success:function(result) { if(result == 1) { // alert(result); alert("Data has been deleted successfully"); $('#sessiondiv'+id).hide(); location.reload(); } else { //alert(result); alert("Invalid Seletion"); } } }); } else alert("Not Deleted"); } </script> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <!-- Navbar --> <?php include_once('includes/header.php'); ?> <!-- /.navbar --> <!-- Main Sidebar Container --> <?php include_once('includes/left.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Contact Request</h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item active">Request</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h3 class="card-title">All Details </h3> </div> <!-- /.card-header --> <div class="card-body table-responsive"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <!-- <th>#</th> --> <th>Date</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th>Subject</th> <th>Message</th> <th>Action</th> </tr> </thead> <tbody> <?php $count=1; $query=$mysqli->query("SELECT * FROM enquiry ORDER BY enquiry_id DESC"); if($query->num_rows > 0){ while($enquiry_res=$query->fetch_assoc()) { ?> <tr id="sessiondiv<?php echo $enquiry_res['enquiry_id'];?>"> <td class="td-15"><?php echo $enquiry_res['created_at'];?></td> <td class="td-10"><?php echo $enquiry_res['name'];?></td> <td class="td-10"><?php echo $enquiry_res['email'];?></td> <td class="td-10"><?php echo $enquiry_res['phone'];?></td> <td class="td-20"><?php echo $enquiry_res['subject'];?></td> <td class="td-30"><?php echo $enquiry_res['message'];?></td> <td class="td-5"> <a href="javascript:void(o);" onClick="deleteenquiry(<?php echo $enquiry_res['enquiry_id'];?>);"> <button class="btn btn-outline-danger btn-sm remove-s"> <i class="far fa-trash-alt"></i> </button> </a> </td> </tr> <?php $count++; } } ?> </tbody> <tfoot> <tr> <!-- <th>#</th> --> <th>Date</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th>Subject</th> <th>Message</th> <th>Action</th> </tr> </tfoot> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include_once('includes/footer.php');?> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> </div> <!-- ./wrapper --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- DataTables --> <script src="plugins/datatables/jquery.dataTables.min.js"></script> <script src="plugins/datatables/dataTables.bootstrap4.min.js"></script> <!-- SlimScroll --> <script src="plugins/slimScroll/jquery.slimscroll.min.js"></script> <!-- FastClick --> <script src="plugins/fastclick/fastclick.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="dist/js/demo.js"></script> <!-- page script --> <script> $(function () { $("#example1").DataTable({ "paging": true, "lengthChange": true, "searching": true, "ordering": false, "info": true, "autoWidth": false }); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false }); }); </script> <!-- <script> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false }); }); </script> --> </body> </html>