]]jkjjgdjffksdkdxmnnnnnnnnnnnmnmmnmnmnmnmbnwqeqwewqskfgj
במ12[cvbnvbnvbnvbnnmnnmnmnnmnmnmnmnmnmmnnmnmnmqewv;'
/
home
/
cgniioxq
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); if($_SESSION['username']=='' && $_SESSION['admin_id']=='') { 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"> <link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/css/bootstrap4-toggle.min.css" rel="stylesheet"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <script> function deleteuser(id) { var x = confirm("Are you sure you want to delete?"); if (x) { $.ajax ({ type:'POST', url:'deleteuser.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>User</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">User</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>Username </th> <th>Email Id</th> <th>Password</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; $query=$mysqli->query("SELECT * FROM admin WHERE admin_id != '1' ORDER BY admin_id DESC"); if($query->num_rows > 0){ while($res=$query->fetch_assoc()) { ?> <tr class="odd gradeX" id="sessiondiv<?php echo $res['admin_id'];?>"> <td><?php echo $i++;?></td> <td><?php echo $res['username'];?></td> <td><?php echo $res['email'];?></td> <td><?php echo $res['ori_password'];?></td> <td> <a href="javascript:void(o);" onClick="deleteuser(<?php echo $res['admin_id'];?>);"> <button class="btn btn-outline-danger btn-sm remove-s"><i class="far fa-trash-alt"></i></button> </a> </td> </tr> <?php } } else{ ?> <tr class="odd gradeX" id="sessiondiv"><td colspan="5">No Data(s) found.....</td></tr> <?php } $i++; ?> </tbody> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php echo 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="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script> <script type="text/javascript"> $(function() { $('.status-event').change(function() { var _status = $(this).prop('checked'); var id = $(this).data('listing_id'); //alert(id); //console.log(_status, id); //alert(_status); $.ajax({ type:'POST', data: {status: _status,listing_id: id}, url:'listing_status.php', dataType:'json', success:function(res) { console.log(res); //alert(res); }, error: function(a, b, c){ console.log(a, b, c); } }); }) }) </script> <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(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false }); }); </script> </body> </html>