📁 File Manager
Editing:
/home/wvl7mof7402e/public_html/int/admin/index.php
<?php if (session_status() === PHP_SESSION_NONE) { session_start(); } // Admin Login Check if (empty($_SESSION['ADMIN_ID'])) { header("Location: login.php"); exit; } $adminName = $_SESSION['ADMIN_NAME'] ?? 'Administrator'; $adminEmail = $_SESSION['ADMIN_EMAIL'] ?? ''; $initial = strtoupper(substr($adminName, 0, 1)); function e($value) { return htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admin Dashboard | International Adventures</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <style> :root { --navy: #101d3a; --blue: #315bea; --light: #f4f7fc; --text: #26344d; --muted: #8792a6; } * { box-sizing: border-box; } body { margin: 0; font-family: 'Inter', sans-serif; background: var(--light); color: var(--text); } .sidebar { width: 265px; height: 100vh; position: fixed; top: 0; left: 0; background: var(--navy); padding: 25px 18px; z-index: 1000; transition: .3s; } .brand { display: flex; align-items: center; gap: 12px; padding: 8px 10px 30px; border-bottom: 1px solid rgba(255,255,255,.12); } .brand-icon { width: 43px; height: 43px; border-radius: 12px; background: linear-gradient(135deg, #4778ff, #20c5bb); color: white; display: flex; align-items: center; justify-content: center; font-size: 19px; } .brand h5 { color: white; font-size: 14px; line-height: 1.5; font-weight: 800; margin: 0; } .brand small { color: #aab7d0; font-size: 10px; letter-spacing: 1px; } .menu-heading { color: #8493b1; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 30px 12px 13px; } .sidebar a { display: flex; align-items: center; gap: 14px; padding: 14px 15px; color: #b9c5dc; text-decoration: none; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 7px; transition: .25s; } .sidebar a i { width: 20px; font-size: 16px; } .sidebar a:hover, .sidebar a.active { color: white; background: linear-gradient(100deg, #315bea, #4779f5); box-shadow: 0 7px 20px rgba(49,91,234,.25); } .sidebar-bottom { position: absolute; bottom: 25px; left: 18px; right: 18px; } .admin-mini { border-top: 1px solid rgba(255,255,255,.13); padding: 18px 5px 0; display: flex; align-items: center; gap: 11px; } .admin-avatar { width: 39px; height: 39px; border-radius: 50%; background: #315bea; color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; } .admin-mini strong { display: block; color: white; font-size: 12px; } .admin-mini small { color: #9caac4; font-size: 10px; } .main { margin-left: 265px; min-height: 100vh; padding: 30px 35px; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 35px; } .page-title h2 { font-size: 25px; font-weight: 800; color: var(--navy); margin: 0 0 7px; } .page-title p { color: var(--muted); font-size: 13px; margin: 0; } .top-right { display: flex; align-items: center; gap: 12px; } .welcome { background: white; border: 1px solid #e8edf5; padding: 10px 15px; border-radius: 12px; font-size: 12px; color: #64718a; } .welcome strong { color: var(--navy); } .logout-btn { background: #fff0f0; color: #e34c4c; padding: 11px 16px; border-radius: 10px; font-size: 12px; font-weight: 700; text-decoration: none; } .logout-btn:hover { background: #e34c4c; color: white; } .welcome-card { background: linear-gradient(110deg, #17294f, #315bea); border-radius: 18px; padding: 30px; color: white; margin-bottom: 30px; position: relative; overflow: hidden; } .welcome-card:after { content: ""; position: absolute; width: 220px; height: 220px; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; right: 45px; top: -85px; } .welcome-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; } .welcome-card p { color: #d7e1ff; font-size: 13px; margin: 0; } .section-heading { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 18px; } .dashboard-card { display: block; background: white; border: 1px solid #e9eef6; border-radius: 16px; padding: 25px; height: 100%; text-decoration: none; transition: .3s; position: relative; overflow: hidden; } .dashboard-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(25,45,85,.10); border-color: transparent; } .card-icon { width: 57px; height: 57px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 22px; } .gallery-icon { color: #315bea; background: #eaf0ff; } .jobs-icon { color: #12a58c; background: #e4f8f3; } .enquiry-icon { color: #e39a23; background: #fff4df; } .dashboard-card h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 9px; } .dashboard-card p { color: #8792a6; font-size: 12px; line-height: 1.7; margin-bottom: 20px; } .card-link { color: var(--blue); font-size: 12px; font-weight: 700; } .card-link i { margin-left: 5px; transition: .2s; } .dashboard-card:hover .card-link i { transform: translateX(5px); } .footer { text-align: center; color: #9ba5b6; font-size: 11px; margin-top: 55px; padding: 20px; border-top: 1px solid #e6ebf2; } .mobile-toggle { display: none; border: 0; background: var(--navy); color: white; width: 42px; height: 42px; border-radius: 10px; } .overlay { display: none; } @media(max-width: 768px) { .sidebar { left: -280px; } .sidebar.show { left: 0; } .overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; } .main { margin-left: 0; padding: 20px 15px; } .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; } .topbar { align-items: flex-start; } .page-title h2 { font-size: 19px; } .welcome { display: none; } .welcome-card { padding: 23px; } .welcome-card h3 { font-size: 18px; } } </style> </head> <body> <div class="overlay" id="overlay" onclick="closeSidebar()"></div> <!-- SIDEBAR --> <aside class="sidebar" id="sidebar"> <div class="brand"> <div class="brand-icon"> <i class="fa-solid fa-earth-asia"></i> </div> <div> <h5>INTERNATIONAL<br>ADVENTURES</h5> <small>ADMIN PANEL</small> </div> </div> <div class="menu-heading">MAIN MENU</div> <a href="index.php" class="active"> <i class="fa-solid fa-house"></i> Dashboard </a> <a href="gallery.php"> <i class="fa-regular fa-images"></i> Gallery </a> <a href="jobs.php"> <i class="fa-solid fa-briefcase"></i> Jobs </a> <a href="enquiry.php"> <i class="fa-solid fa-envelope-open-text"></i> Enquiry Form </a> <div class="sidebar-bottom"> <div class="admin-mini"> <div class="admin-avatar"><?php echo e($initial); ?></div> <div> <strong><?php echo e($adminName); ?></strong> <small>Administrator</small> </div> </div> </div> </aside> <!-- MAIN CONTENT --> <main class="main"> <div class="topbar"> <div class="d-flex align-items-center gap-3"> <button class="mobile-toggle" onclick="openSidebar()"> <i class="fa-solid fa-bars"></i> </button> <div class="page-title"> <h2>Dashboard Overview</h2> <p>Welcome to International Adventures Admin Panel</p> </div> </div> <div class="top-right"> <div class="welcome"> Welcome, <strong><?php echo e($adminName); ?></strong> </div> <a href="logout.php" class="logout-btn" onclick="return confirm('Are you sure you want to logout?')"> <i class="fa-solid fa-right-from-bracket me-1"></i> Logout </a> </div> </div> <!-- WELCOME BANNER --> <div class="welcome-card"> <h3>Welcome to Admin Dashboard!</h3> <p>Manage your website Gallery, Job Listings and Customer Enquiries from one place.</p> </div> <h4 class="section-heading">Website Management</h4> <div class="row g-4"> <!-- GALLERY --> <div class="col-lg-4 col-md-6"> <a href="gallery.php" class="dashboard-card"> <div class="card-icon gallery-icon"> <i class="fa-regular fa-images"></i> </div> <h4>Gallery Management</h4> <p> Add, view, update and delete website gallery images. Manage all your photos easily. </p> <div class="card-link"> Manage Gallery <i class="fa-solid fa-arrow-right"></i> </div> </a> </div> <!-- JOBS --> <div class="col-lg-4 col-md-6"> <a href="jobs.php" class="dashboard-card"> <div class="card-icon jobs-icon"> <i class="fa-solid fa-briefcase"></i> </div> <h4>Jobs Management</h4> <p> Manage job vacancies, add new job listings, update details and remove old jobs. </p> <div class="card-link"> Manage Jobs <i class="fa-solid fa-arrow-right"></i> </div> </a> </div> <!-- ENQUIRY --> <div class="col-lg-4 col-md-6"> <a href="enquiry.php" class="dashboard-card"> <div class="card-icon enquiry-icon"> <i class="fa-solid fa-envelope-open-text"></i> </div> <h4>Enquiry Form</h4> <p> View website enquiries and check customer contact details and submitted information. </p> <div class="card-link"> View Enquiries <i class="fa-solid fa-arrow-right"></i> </div> </a> </div> </div> <div class="footer"> © <?php echo date('Y'); ?> International Adventures Overseas Services. All Rights Reserved. </div> </main> <script> function openSidebar() { document.getElementById('sidebar').classList.add('show'); document.getElementById('overlay').classList.add('show'); } function closeSidebar() { document.getElementById('sidebar').classList.remove('show'); document.getElementById('overlay').classList.remove('show'); } </script> </body> </html>
Save
Cancel