File deleted successfully!
Close
Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
Submit
~
home
touristi
public_html
admin
File Content:
all_product.php
<?php include 'config.php'; $sql2="select * from company "; $res2=$con->query($sql2); $rowm=$res2->fetch_array(); ?> <?php session_start(); if($_SESSION['username'] == true){ }else{ header('location:index.php'); } ?> <?php if(isset($_GET['id'])) { $id=$_GET['id']; $sql="DELETE from Product where id=$id"; $con->query($sql); echo "<script>alert(' Deleted')</script>"; } ?> <!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 content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.7 --> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="css/ionicons.min.css"> <!-- Theme style --> <link rel="stylesheet" href="css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="css/_all-skins.min.css"> <!-- Morris chart --> <link rel="stylesheet" href="css/morris.css"> <!-- jvectormap --> <link rel="stylesheet" href="css/jquery-jvectormap.css"> <!-- Date Picker --> <link rel="stylesheet" href="css/bootstrap-datepicker.min.css"> <!-- Daterange picker --> <link rel="stylesheet" href="css/daterangepicker.css"> <!-- bootstrap wysihtml5 - text editor --> <link rel="stylesheet" href="css/bootstrap3-wysihtml5.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> <script type="text/javascript"> function delete_id(id) { if(confirm('Sure To Remove This Record ?')) { window.location.href='customerdelete.php?delete_id='+id; } } </script> </head> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> <!-- Left side column. contains the logo and sidebar --> <?php include 'header.php';?> <aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <div class="user-panel"> <div class="pull-left image"> <img src="upload/924Koala.jpg" class="img-circle" alt="User Image"> </div> <div class="pull-left info"> <p>Admin</p> <a href="#"><i class="fa fa-circle text-success"></i> Online</a> </div> </div> <?php include 'sidebar.php'; ?> </section> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> All Product Details <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="allsliderimg.php"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active">All Details</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">All Details Table</h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="box-body table-responsive"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Product Name</th> <th>Product Details</th> <th>Price</th> <th>Image</th> <th>Date</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <?php if($con->error) echo $con->error; else { $sql="select * from product"; $res=$con->query($sql); ?> <?php while($row=$res->fetch_array()) { ?> <tbody> <tr> <td><?php echo $row['name'] ?></td> <td><?php echo $row['details'] ?></td> <td><?php echo $row['price'] ?></td> <td><img src="<?php echo $row['image']; ?>" style="width:120px;"></td> <td><?php echo $row['date'] ?></td> <td><a href="edit_product.php?id=<?php echo $row['id']?>"><button class="btn btn-warning"> <i class="fa fa-pencil"></i></button></a></td> <td><a onclick="return confirm('Are you sure to Delete?');" href="all_product.php?id=<?php echo $row['id']?>"> <button class="btn btn-danger"><i class="fa fa-trash"></i></button></a></td> </tr> </tbody> <?php } } ?> </table> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> </section> </div> <!-- /.content-wrapper --> <footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Version</b> 2.4.0 </div> <strong>Copyright © 2023 <?php echo $rowm['name']; ?> , All Right Reserved -Developed by <a href="https://sstechnoweb.com" target="_blank">SS Technoweb Solutions </footer> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> <div class="control-sidebar-bg"></div> </div> <!-- ./wrapper --> <!-- jQuery 3 --> <script src="js/jquery.min.js"></script> <!-- jQuery UI 1.11.4 --> <script src="js/jquery-ui.min.js"></script> <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip --> <script> $.widget.bridge('uibutton', $.ui.button); </script> <!-- Bootstrap 3.3.7 --> <script src="js/bootstrap.min.js"></script> <!-- Morris.js charts --> <script src="js/raphael.min.js"></script> <script src="js/morris.min.js"></script> <script src="js/dataTables.bootstrap.min.js"></script> <!-- Sparkline --> <script src="js/jquery.sparkline.min.js"></script> <!-- jvectormap --> <script src="js/jquery-jvectormap-1.2.2.min.js"></script> <script src="js/jquery-jvectormap-world-mill-en.js"></script> <!-- jQuery Knob Chart --> <script src="js/jquery.knob.min.js"></script> <!-- daterangepicker --> <script src="js/moment.min.js"></script> <script src="js/daterangepicker.js"></script> <!-- datepicker --> <script src="js/bootstrap-datepicker.min.js"></script> <!-- Bootstrap WYSIHTML5 --> <script src="js/bootstrap3-wysihtml5.all.min.js"></script> <!-- Slimscroll --> <script src="js/jquery.slimscroll.min.js"></script> <!-- FastClick --> <script src="js/fastclick.js"></script> <!-- AdminLTE App --> <script src="js/adminlte.min.js"></script> <!-- AdminLTE dashboard demo (This is only for demo purposes) --> <script src="js/pages/dashboard.js"></script> <!-- AdminLTE for demo purposes --> <script src="js/demo.js"></script> <script src="js/jquery.dataTables.min.js"></script> <script type="text/javascript"> randomNum = ''; randomNum += Math.round (Math.random() * 9999); window.onload = function () { document.getElementById("demo").value = randomNum; } </script> <script> $(function () { $('#example1').DataTable() $('#example2').DataTable({ 'paging' : true, 'lengthChange': false, 'searching' : false, 'ordering' : true, 'info' : true, 'autoWidth' : false }) }) </script> <script> $("#search").keyup(function() { var value = this.value; $("table").find("tr").each(function(index) { if (index === 0) return; var if_td_has = false; //boolean value to track if td had the entered key $(this).find('td').each(function () { if_td_has = if_td_has || $(this).text().indexOf(value) !== -1; //Check if td's text matches key and then use OR to check it for all td's }); $(this).toggle(if_td_has); }); }); </script> </body> </html>
Edit
Rename
Chmod
Delete