X7ROOT File Manager
Current Path:
/home/u126090504/domains/saiadarshainternationalschool.org.in/public_html
home
/
u126090504
/
domains
/
saiadarshainternationalschool.org.in
/
public_html
/
📁
..
📄
.htaccess
(0 B)
📄
Antiraging-Cell.php
(2.73 KB)
📄
SVM-INT (1) (1).zip
(117.51 MB)
📄
about-us.php
(5.86 KB)
📄
academic-calendar.php
(2.73 KB)
📄
achievements.php
(9.56 KB)
📄
achievers.php
(15.19 KB)
📁
admin
📄
admission-process.php
(6.85 KB)
📄
admission.php
(12.93 KB)
📄
admission_submit.php
(3.38 KB)
📄
album.php
(890 B)
📄
assessment-policy.php
(6.8 KB)
📄
cbse-curriculum-summary.php
(5.99 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.27 KB)
📄
contact-us.php
(14.63 KB)
📄
contactdb.php
(796 B)
📄
courses.php
(10.44 KB)
📁
css
📄
director's-message.php
(6.54 KB)
📄
downloads.php
(2.9 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(6.04 KB)
📄
faculty.php
(10.27 KB)
📄
fee-structure.php
(7.97 KB)
📁
fonts
📄
footer.php
(23.95 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.05 KB)
📄
google929b505e9f42f894.html
(53 B)
📄
grievance-form.php
(16.52 KB)
📄
header.php
(19.69 KB)
📄
homework.php
(9.64 KB)
📁
images
📄
index.php
(39.38 KB)
📄
infrastructure-details.php
(5.39 KB)
📁
js
📁
lib
📄
managing-committee.php
(3.34 KB)
📄
media-corner.php
(2.48 KB)
📄
non-academic-achievers.php
(14.65 KB)
📄
payment.php
(21.85 KB)
📄
payment_submit.php
(15.1 KB)
📄
payment_verify.php
(2.31 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.65 KB)
📄
public-disclosure.php
(3.38 KB)
📁
qrcodes
📁
revolution
📁
sai
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📄
sitemap.xml
(4.69 KB)
📄
subjects-offered.php
(6 KB)
📄
submit-grievance.php
(3.88 KB)
📁
svm
📄
thank-you.php
(1.28 KB)
📄
u126090504_svmint.sql
(40.87 KB)
📁
uploads
📄
videos.php
(6.87 KB)
Editing: public-disclosure.php
<?php require_once 'config.php'; // mysqli $conn include 'header.php'; ?> <!-- 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">Public Disclosure</h2> </div> </div> </div> </div> </div> </div> <!-- page-title end--> <!-- site-main start --> <div class="site-main"> <section style="margin-top:5%; margin-bottom:5%;"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="bs-example"> <table class="table table-bordered table-striped"> <thead class="thead-dark"> <tr> <th style="width:90px;">SL NO</th> <th style="text-align:center;">SUBJECT</th> <th style="width:140px;">DOWNLOAD</th> </tr> </thead> <tbody> <?php // Fetch only active documents $sql = "SELECT id, subject, file_path FROM public_disclosures WHERE status='active' ORDER BY sort_order ASC, created_at DESC"; $res = $conn->query($sql); if ($res && $res->num_rows > 0) { $sl = 1; while ($row = $res->fetch_assoc()) { $subject = htmlspecialchars($row['subject']); // file_path is already a relative path like uploads/disclosures/xxx.pdf $fileRel = $row['file_path']; $fileUrl = htmlspecialchars($fileRel); // Optional: show "File missing" if path empty $downloadCell = "<span class='text-danger'>Missing</span>"; if (!empty($fileRel)) { // Use your existing icon images if present; else fallback to text $iconImg = "images/pd.png"; // change if your icon path is different if (file_exists($iconImg)) { $iconHtml = "<img src='images/pd.png' alt='PDF' style='height:40px;'>"; } else { $iconHtml = "Download"; } $downloadCell = "<a href='{$fileUrl}' target='_blank' rel='noopener'>{$iconHtml}</a>"; } echo "<tr> <td>{$sl}</td> <td style='font-weight:700; font-size:18px; text-align:center; text-transform:uppercase;'>{$subject}</td> <td class='text-center'>{$downloadCell}</td> </tr>"; $sl++; } } else { echo "<tr><td colspan='3' class='text-center'>No documents available</td></tr>"; } ?> </tbody> </table> </div> </div> </div> </div> </section> </div> <!-- site-main end --> <?php include 'footer.php'; ?>
Upload File
Create Folder