/
home
/
capindnl
/
public_html
/
Upload File
HOME
<?php include"include/header.php" ?> <section class="about-main-cover-section"> <div class="about-cover-bg-shapes-container"> <div class="about-cover-shape-element about-cover-shape-element-1"></div> <div class="about-cover-shape-element about-cover-shape-element-2"></div> <div class="about-cover-shape-element about-cover-shape-element-3"></div> <div class="about-cover-shape-element about-cover-shape-element-4"></div> </div> <div class="container"> <div class="about-cover-content-wrapper"> <!-- Breadcrumb Navigation --> <nav class="about-cover-breadcrumb-nav"> <a href="index.php" class="about-breadcrumb-home-link"> <i class="fas fa-home"></i> Home </a> <span class="about-breadcrumb-divider"><i class="fas fa-chevron-right"></i></span> <span class="about-breadcrumb-active-page">Downloads</span> </nav> <!-- Page Title --> <h1 class="about-cover-heading-title">Downloads</h1> <p class="about-cover-description-text"> Access Important Documents, Forms, and Resources </p> </div> </div> </section> <!-- Downloads Introduction Section --> <section class="downloads-intro-main-section"> <div class="container"> <div class="downloads-intro-content-container"> <span class="downloads-intro-content-badge">Important Resources</span> <h2 class="downloads-intro-content-heading">Download Center</h2> <h3 class="downloads-intro-content-subheading">Access All Important Documents in One Place</h3> <p class="downloads-intro-content-description"> Welcome to our Downloads section. Here you can find all the important documents, forms, brochures, and resources related to our financial products and services. We have organized everything systematically to make it easy for you to find and download what you need. All documents are available in PDF format for easy viewing and printing. Simply click on the download link next to each document to access it. </p> </div> </div> </section> <!-- Downloads Table Section --> <section class="downloads-table-main-section"> <div class="container"> <div class="downloads-table-container"> <div class="downloads-table-header"> <h2 class="downloads-table-heading">Available Documents</h2> <p class="downloads-table-subtext"> Browse through our collection of important documents and forms. All files are available for free download. </p> </div> <!-- Professional Files Table --> <div class="table-responsive"> <table class="downloads-files-table"> <thead> <tr> <th><i class="fas fa-hashtag"></i>Sr. No.</th> <th><i class="fas fa-file-alt"></i>Title</th> <th><i class="fas fa-download"></i>Download Links</th> </tr> </thead> <tbody> <?php $res= $obj->getTable('doc_download','doc_id desc'); if($res){ $i=1; foreach($res as $legal_data){ ?> <tr> <td><?= $i++ ?></td> <td><?= $legal_data['doc_name'] ?></td> <td> <a href="capindhan_master/upload/download/<?= $legal_data['doc_link'] ?>" target="_blank" class="downloads-file-link"> <i class="fas fa-file-pdf"></i> Download PDF <span class="downloads-file-type pdf">PDF</span> </a> </td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div> </section> <?php include"include/footer.php" ?> <script> // Downloads Page Animations document.addEventListener('DOMContentLoaded', function() { // Table row hover animations const tableRows = document.querySelectorAll('.downloads-files-table tbody tr'); tableRows.forEach(row => { // Initial animation on page load row.style.opacity = '0'; row.style.transform = 'translateX(-20px)'; // Add hover animation row.addEventListener('mouseenter', function() { const link = this.querySelector('.downloads-file-link'); if (link) { link.style.transform = 'translateY(-3px) scale(1.05)'; link.style.transition = 'all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)'; } const icon = this.querySelector('.downloads-file-link i'); if (icon) { icon.style.transform = 'translateY(-2px) rotate(5deg)'; icon.style.transition = 'transform 0.3s ease'; } }); row.addEventListener('mouseleave', function() { const link = this.querySelector('.downloads-file-link'); if (link) { link.style.transform = 'translateY(0) scale(1)'; } const icon = this.querySelector('.downloads-file-link i'); if (icon) { icon.style.transform = 'translateY(0) rotate(0)'; } }); // Animate rows on scroll setTimeout(() => { row.style.opacity = '1'; row.style.transform = 'translateX(0)'; row.style.transition = 'all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275)'; }, 100 * Array.from(tableRows).indexOf(row)); }); // Download link click animation const downloadLinks = document.querySelectorAll('.downloads-file-link'); downloadLinks.forEach(link => { link.addEventListener('click', function(e) { // If it's a dummy link, prevent default and show animation if (this.getAttribute('href') === '#') { e.preventDefault(); // Create download animation const icon = this.querySelector('i'); const originalIcon = icon.className; // Change icon to downloading state icon.className = 'fas fa-spinner fa-spin'; // Reset after animation setTimeout(() => { icon.className = originalIcon; // Show success message const successMsg = document.createElement('div'); successMsg.className = 'alert alert-success alert-dismissible fade show position-fixed'; successMsg.style.cssText = 'top: 20px; right: 20px; z-index: 9999; max-width: 300px;'; successMsg.innerHTML = ` <strong>Success!</strong> File download started. <button type="button" class="btn-close" data-bs-dismiss="alert"></button> `; document.body.appendChild(successMsg); // Auto remove after 3 seconds setTimeout(() => { if (successMsg.parentNode) { successMsg.remove(); } }, 3000); }, 1500); } }); }); // File type badge hover effect const fileTypeBadges = document.querySelectorAll('.downloads-file-type'); fileTypeBadges.forEach(badge => { badge.addEventListener('mouseenter', function() { this.style.transform = 'scale(1.1)'; this.style.transition = 'transform 0.2s ease'; }); badge.addEventListener('mouseleave', function() { this.style.transform = 'scale(1)'; }); }); // Table header animation const tableHeaders = document.querySelectorAll('.downloads-files-table thead th'); tableHeaders.forEach((header, index) => { header.style.opacity = '0'; header.style.transform = 'translateY(-20px)'; setTimeout(() => { header.style.opacity = '1'; header.style.transform = 'translateY(0)'; header.style.transition = 'all 0.5s ease'; }, 200 + (index * 100)); }); }); </script>