X7ROOT File Manager
Current Path:
/home/u126090504/domains/oceanicabeachresort.com/public_html/admin
home
/
u126090504
/
domains
/
oceanicabeachresort.com
/
public_html
/
admin
/
📁
..
📁
assets
📄
banners.php
(9.78 KB)
📄
booking-dashboard.php
(4.93 KB)
📄
booking_status_update.php
(6.14 KB)
📄
booking_view.php
(4.04 KB)
📄
branding_settings.php
(5.93 KB)
📄
change_password.php
(3.01 KB)
📄
contacts.php
(3.83 KB)
📄
dashboard.php
(5.64 KB)
📁
dompdf
📄
downloads.php
(4.91 KB)
📄
forgot_password.php
(5.76 KB)
📄
gallery.php
(3.08 KB)
📁
img
📁
includes
📄
index.php
(82 B)
📁
invoices
📄
login.php
(13.47 KB)
📄
logo.png
(19.29 KB)
📄
logout.php
(102 B)
📄
manage_albums.php
(10.82 KB)
📄
manage_media.php
(11.77 KB)
📄
manage_photos.php
(6.35 KB)
📄
manage_videos.php
(18.38 KB)
📄
new_password.php
(3.9 KB)
📄
notice.php
(15.52 KB)
📄
notice_error.log
(38.45 KB)
📄
notices.php
(8.24 KB)
📄
payments.php
(14.96 KB)
📄
pdf_bill_template.php
(30.69 KB)
📁
phpmailer
📄
popup.php
(14.07 KB)
📄
reset_password.php
(2.27 KB)
📄
secure_session.php
(1000 B)
📄
settings.php
(8.34 KB)
📄
test.php
(239 B)
📄
test_pdf.php
(1.58 KB)
📄
testimonials.php
(15.15 KB)
📁
tmp
📄
update_status.php
(1.66 KB)
📄
upi_settings.php
(1.52 KB)
Editing: booking-dashboard.php
<?php include 'secure_session.php'; include 'includes/auth.php'; require_once '../config.php'; include 'includes/header.php'; if(!isset($_SESSION['admin'])) header("Location: login.php"); $data = mysqli_query($conn,"SELECT * FROM bookings ORDER BY id DESC"); ?> <!DOCTYPE html> <html> <head> <title>Booking Dashboard</title> <style> :root{ --red:#e60000; --black:#0f0f0f; --gray:#f4f6f9; } body{ background:var(--gray); font-family:'Segoe UI',Tahoma,Arial,sans-serif; } /* CARD */ .dashboard-card{ background:#fff; padding:25px; border-radius:16px; box-shadow:0 15px 40px rgba(0,0,0,0.08); border-top:4px solid var(--red); } /* HEADER */ .dashboard-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; } .dashboard-header h2{ margin:0; color:var(--black); } /* FILTERS */ .filters{ display:flex; gap:12px; margin-bottom:15px; flex-wrap:wrap; } .filters input, .filters select{ padding:9px 14px; border-radius:8px; border:1px solid #ccc; font-size:14px; } /* TABLE */ table{ width:100%; border-collapse:collapse; background:#fff; } th{ background:var(--black); color:#fff; padding:12px; font-size:14px; text-transform:uppercase; } td{ padding:12px; border-bottom:1px solid #eee; font-size:14px; } tr:hover{ background:#fff3f3; } /* STATUS */ .status-paid{ background:#198754; color:#fff; padding:5px 12px; border-radius:20px; font-size:12px; } .status-pending{ background:#ffc107; color:#000; padding:5px 12px; border-radius:20px; font-size:12px; } /* BUTTONS */ .btn{ padding:7px 14px; border-radius:8px; font-size:13px; text-decoration:none; display:inline-flex; align-items:center; gap:6px; transition:.2s; } .btn-view{ background:var(--black); color:#fff; } .btn-view:hover{ background:#000; } .btn-invoice{ background:var(--red); color:#fff; } .btn-invoice:hover{ background:#c40000; } .na{ color:#bbb; font-size:13px; } </style> </head> <body> <div class="dashboard-card"> <div class="dashboard-header"> <h2>📋 Booking Dashboard</h2> </div> <!-- FILTERS --> <div class="filters"> <input type="text" id="searchInput" placeholder="🔍 Search Booking / Name / Room"> <select id="statusFilter"> <option value="">All Status</option> <option value="Paid">Paid</option> <option value="Pending">Pending</option> </select> </div> <table id="bookingTable"> <tr> <th>ID</th> <th>Name</th> <th>Room</th> <th>Check-In</th> <th>Check-Out</th> <th>Amount</th> <th>Status</th> <th>Invoice</th> <th>Action</th> </tr> <?php while($r=mysqli_fetch_assoc($data)){ ?> <tr> <td><?= $r['booking_id'] ?></td> <td><?= htmlspecialchars($r['name']) ?></td> <td><?= htmlspecialchars($r['room_type']) ?></td> <td><?= $r['checkin_date'] ?></td> <td><?= $r['checkout_date'] ?></td> <td><strong>₹<?= number_format($r['amount'],2) ?></strong></td> <td> <?= $r['payment_status']=='Paid' ? '<span class="status-paid">Paid</span>' : '<span class="status-pending">Pending</span>' ?> </td> <td> <?php $invoiceFile = "invoices/Invoice_{$r['booking_id']}.pdf"; if (file_exists(__DIR__.'/'.$invoiceFile)) { echo '<a href="'.$invoiceFile.'" target="_blank" class="btn btn-invoice"> <i class="fa-solid fa-file-pdf"></i> PDF </a>'; } else { echo '<span class="na">N/A</span>'; } ?> </td> <td> <a href="booking_view.php?id=<?= $r['id'] ?>" class="btn btn-view"> <i class="fa-solid fa-eye"></i> View </a> </td> </tr> <?php } ?> </table> </div> <script> const searchInput = document.getElementById("searchInput"); const statusFilter = document.getElementById("statusFilter"); const table = document.getElementById("bookingTable"); const rows = table.getElementsByTagName("tr"); function filterTable(){ const search = searchInput.value.toLowerCase(); const status = statusFilter.value; for(let i=1;i<rows.length;i++){ let text = rows[i].innerText.toLowerCase(); let rowStatus = rows[i].cells[6].innerText.trim(); let show = text.includes(search); if(status && rowStatus !== status) show = false; rows[i].style.display = show ? "" : "none"; } } searchInput.addEventListener("keyup", filterTable); statusFilter.addEventListener("change", filterTable); </script> </body> </html> <?php include 'includes/footer.php'; ?>
Upload File
Create Folder