Server IP : 148.135.140.132 / Your IP : 18.219.85.34 Web Server : LiteSpeed System : Linux in-mum-web1116.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u496275626 ( 496275626) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u496275626/domains/apnadigitalsolution.com/public_html/indianartbazar/m/admin/ |
Upload File : |
<?php include 'config.php'; $row=mysqli_query($con, "SELECT * FROM `banner`"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Admin | Banner</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <!-- DataTables --> <link rel="stylesheet" href="plugins/datatables-bs4/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" href="plugins/datatables-responsive/css/responsive.bootstrap4.min.css"> <link rel="stylesheet" href="plugins/datatables-buttons/css/buttons.bootstrap4.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <style> #form{ margin-left:90px; margin-top:-30px; } thead th{ text-align:center; } tbody td{ text-align:center; } tfoot th{ text-align:center; } .wrapper > span{ width:100%; position:absolute; top:-20px; left:-25%; font-family:Tahoma; font-size:12px; color: grey; text-shadow: 1px 1px rgb(50,50,50); } /********************Button 1*******************/ .box-1 { width:60px; height:20px; background: rgb(200,200,200) ; position:relative; margin-bottom:20px; } .box-1 input{ position:absolute; width:100%; height:100%; cursor:pointer; opacity:0; z-index:999; } .box-1 .toogle{ display:block; position:absolute; z-index:998; width:30px; height:100%; background: grey; top:0; box-shadow:0px 0px 3px rgb(50,50,50) inset; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; text-align:center; } .box-1 .toogle:before{ content:"ON"; color: #fff; text-shadow: 1px 1px #000; font-family:tahoma; font-size: 11px; } .box-1 input:checked ~ .toogle{ margin-left:30px; } .box-1 input:checked + .toogle:before{ content:"OFF"; } </style> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <!-- Navbar --> <?php include 'header.php'; ?> <!-- /.navbar --> <!-- Main Sidebar Container --> <?php include 'sidebar.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>Banner</h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="index">Home</a></li> <li class="breadcrumb-item active">Banner</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <a href="add_banner.php" class="btn btn-success">Add banner</a> </div> <!-- /.card-header --> <div class="card-body"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Sl</th> <th>Image</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $counter=1; foreach($row as $query) { ?> <tr> <td><?php echo $counter ?></td> <td><img src="upload/<?=$query['image']?>" onerror="this.src='product_img/default-img.jfif'" alt="<?php echo $query['image'] ?>" width="150"></td> <td> <?= ($query['status'] == 1) ? '<span class="badge badge-success">Enabled</span>' : '<span class="badge badge-danger">Disabled</span>' ;?> </td> <td> <a href="add_banner.php?id=<?php echo $query['b_id'] ?>"> <i class="fa fa-edit" style="font-size:20px;color:blue"></i></a> <a href="pages/delete_banner.php?id=<?php echo $query['b_id'] ?>" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash" style="font-size:20px;color:red"></i></a> </td> </tr> <?php $counter++; } ?> </tbody> <tfoot> <tr> <th>Sl</th> <th>Image</th> <th>Status</th> <th>Action</th> </tr> </tfoot> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include '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 & Plugins --> <script src="plugins/datatables/jquery.dataTables.min.js"></script> <script src="plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script> <script src="plugins/datatables-responsive/js/dataTables.responsive.min.js"></script> <script src="plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script> <script src="plugins/datatables-buttons/js/dataTables.buttons.min.js"></script> <script src="plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script> <script src="plugins/jszip/jszip.min.js"></script> <script src="plugins/pdfmake/pdfmake.min.js"></script> <script src="plugins/pdfmake/vfs_fonts.js"></script> <script src="plugins/datatables-buttons/js/buttons.html5.min.js"></script> <script src="plugins/datatables-buttons/js/buttons.print.min.js"></script> <script src="plugins/datatables-buttons/js/buttons.colVis.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- AdminLTE for demo purposes --> <!-- Page specific script --> <script> $(function () { $("#example1").DataTable({ "responsive": true, "lengthChange": false, "autoWidth": false, "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"] }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)'); $('#example2').DataTable({ "paging": true, dom:'lBfrtip', buttons: ["copy", "csv", "excel", "pdf", "print"], "lengthChange": false, "searching": true, "ordering": true, "info": true, "autoWidth": false, "responsive": true, }); }); function checkbox_validation(id,status){ $.ajax({ url:"status.php", type:"post", data:{id:id,status:status}, success:function(data){ if(data==1){ alert("Hide from home page"); } if(data==0){ alert("View from home page"); } } }) } </script> </body> </html>