[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
campus_repo
/
public
/
[
Home
]
File: document.php
<?php if (session_status() === PHP_SESSION_NONE) { session_start(); } require_once __DIR__ . '/../config/config.php'; require_once __DIR__ . '/../src/Utils.php'; require_once __DIR__ . '/../src/Document.php'; $id = $_GET['id'] ?? null; $doc = null; if ($id) { $doc = Document::find($id); } ?> <?php include 'header.php'; ?> <h2>Detail Dokumen</h2> <?php if (!$doc): ?> <p>Dokumen tidak ditemukan.</p> <?php else: ?> <h3><?= Utils::sanitize($doc['title']) ?></h3> <p><strong>Penulis:</strong> <?= Utils::sanitize($doc['authors']) ?></p> <p><strong>Tahun:</strong> <?= Utils::sanitize($doc['year']) ?></p> <p><strong>Tipe:</strong> <?= Utils::sanitize($doc['type']) ?></p> <p><strong>Status:</strong> <?= Utils::sanitize($doc['status']) ?></p> <p><strong>Abstrak:</strong><br><?= nl2br(Utils::sanitize($doc['abstract'])) ?></p> <p><strong>Kata Kunci:</strong> <?= Utils::sanitize($doc['keywords']) ?></p> <p><strong>Ukuran File:</strong> <?= round($doc['size_bytes']/1024/1024, 2) ?> MB</p> <p><strong>File:</strong> <a href="documents/<?= Utils::sanitize($doc['file_path']) ?>" target="_blank"> Unduh PDF </a> </p> <?php endif; ?> <?php include 'footer.php'; ?>