Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
sommilito-bank2
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php include 'header.php' ?> <!-- For page Hero --> <?php $page = 'About'; $title = "Resolution"; include 'page-hero.php'; ?> <?php $pdfs = [ ['name' => 'Bank Resolution Ordinance 2025', 'file' => 'assets/resolution/bankRresolutionordinance2025.pdf'], ['name' => 'Chairman/Director Appointment Policy', 'file' => 'assets/resolution/Chairman-Director Appointment Policy in Banks and Financial Institutions-2025.pdf'], ['name' => 'Regulations for Bank Resolution, 2025', 'file' => 'assets/resolution/oct232025brd02.pdf'], ['name' => 'Guideline for forming Shariah Supervisory Committee', 'file' => 'assets/resolution/sep282025ibrpd01.pdf'], ]; ?> <section class="bg-gray-50 py-16"> <div class="max-w-5xl mx-auto px-6"> <table class="w-full bg-white shadow rounded overflow-hidden"> <thead class="bg-gray-100 text-left text-gray-600 text-sm"> <tr> <th class="px-6 py-3">Document Name</th> <th class="px-6 py-3 text-center">View</th> </tr> </thead> <tbody> <?php foreach ($pdfs as $pdf): ?> <tr class="border-t border-gray-200 hover:bg-gray-50 transition"> <td class="px-6 py-4 text-sm text-gray-800"><?= htmlspecialchars($pdf['name']) ?></td> <td class="px-6 py-4 text-center"> <button onclick="openPDF('<?= $pdf['file'] ?>')" class="text-teal-600 hover:text-teal-800 cursor-pointer"> <svg class="w-4 h-4 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> <path stroke="currentColor" stroke-width="2" d="M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z" /> <path stroke="currentColor" stroke-width="2" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /> </svg> </button> </td> </tr> <?php endforeach; ?> </tbody> </table> <!-- Modal --> <div id="pdfModal" class="fixed inset-0 bg-black/50 hidden items-center justify-center z-50"> <div class="bg-white w-11/12 h-[80%] rounded shadow relative"> <!-- Close button --> <button onclick="closePDF()" class="absolute top-2 right-2 bg-red-500 text-white px-3 py-1 rounded"> ✕ </button> <!-- PDF iframe --> <iframe id="pdfFrame" class="w-full h-full rounded" src=""> </iframe> </div> </div> </div> </section> <script> function openPDF(file) { const iframe = document.getElementById('pdfFrame'); iframe.src = file + "#toolbar=0&navpanes=0&scrollbar=0"; const modal = document.getElementById('pdfModal'); modal.classList.remove('hidden'); modal.classList.add('flex'); } function closePDF() { const modal = document.getElementById('pdfModal'); modal.classList.add('hidden'); modal.classList.remove('flex'); document.getElementById('pdfFrame').src = ""; } </script> <?php include 'footer.php' ?>