BLACKSITE
:
216.73.216.62
:
147.93.18.13 / vinyasaweddings.com
:
Linux srv667811 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
:
/
var
/
www
/
insonohearing
/
admin
/
Upload File:
files >> /var/www/insonohearing/admin/enquiries.php
<?php require __DIR__ . '/../db.php'; // Fetch all enquiries $stmt = $conn->prepare("SELECT * FROM enquiries ORDER BY created_at DESC"); $stmt->execute(); $enquiries = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>All Enquiries</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <style> body { background-color: #f8f9fa; padding: 30px; } .table-container { background-color: #fff; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.05); padding: 25px; } .btn-back { margin-bottom: 20px; } </style> </head> <body> <div class="container"> <a href="index.php?page=dashboard" class="btn btn-primary btn-back">← Back to Dashboard</a> <div class="table-container"> <h3 class="mb-4">All Enquiries</h3> <?php if (count($enquiries) > 0): ?> <div class="table-responsive"> <table class="table table-bordered align-middle"> <thead class="table-light"> <tr> <th>#</th> <th>Name</th> <th>Phone</th> <th>Problem</th> <th>Submitted At</th> </tr> </thead> <tbody> <?php foreach ($enquiries as $index => $enquiry): ?> <tr> <td><?= $index + 1 ?></td> <td><?= htmlspecialchars($enquiry['name']) ?></td> <td><?= htmlspecialchars($enquiry['phone']) ?></td> <td><?= nl2br(htmlspecialchars($enquiry['problem'])) ?></td> <td><?= date("d M Y, h:i A", strtotime($enquiry['created_at'])) ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php else: ?> <p class="text-muted">No enquiries found.</p> <?php endif; ?> </div> </div> </body> </html>