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: faculty.php
<?php require_once 'config.php'; include 'header.php'; /* ---------- Helpers ---------- */ function h($v){ return htmlspecialchars($v ?? '', ENT_QUOTES, 'UTF-8'); } /* ---------- Read filters ---------- */ $q = trim($_GET['q'] ?? ''); $des = trim($_GET['designation'] ?? ''); $spec = trim($_GET['specialization'] ?? ''); /* ---------- Build query with filters ---------- */ $sql = "SELECT id, position, name, designation, qualification, specialization, experience, photo FROM faculty WHERE 1=1"; $params = []; $types = ""; if ($q !== "") { $sql .= " AND (name LIKE CONCAT('%', ?, '%') OR designation LIKE CONCAT('%', ?, '%') OR qualification LIKE CONCAT('%', ?, '%') OR specialization LIKE CONCAT('%', ?, '%'))"; $params = array_merge($params, [$q,$q,$q,$q]); $types .= "ssss"; } if ($des !== "") { $sql .= " AND designation = ?"; $params[] = $des; $types .= "s"; } if ($spec !== "") { $sql .= " AND specialization LIKE CONCAT('%', ?, '%')"; $params[] = $spec; $types .= "s"; } $sql .= " ORDER BY position ASC, id DESC"; $stmt = $conn->prepare($sql); if(!empty($params)){ $stmt->bind_param($types, ...$params); } $stmt->execute(); $res = $stmt->get_result(); /* Dropdown data */ $designations = []; $specializations = []; $dx = $conn->query("SELECT DISTINCT designation FROM faculty WHERE designation<>'' ORDER BY designation"); while($r = $dx->fetch_assoc()){ $designations[] = $r['designation']; } $sx = $conn->query("SELECT DISTINCT specialization FROM faculty WHERE specialization<>'' ORDER BY specialization"); while($r = $sx->fetch_assoc()){ $specializations[] = $r['specialization']; } ?> <!-- 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">Faculty</h2></div> </div> </div> </div> </div> </div> <div class="site-main"> <!-- ===== Styles to match the screenshot ===== --> <style> :root{ --ui-bg:#f6f8fb; /* page tint */ --card-bg:#ffffff; /* filter card */ --card-br:#eef2f7; /* card border */ --label:#6b7280; /* label text */ --text:#111827; /* body text */ --muted:#64748b; /* subtle text */ --field-br:#dfe6ef; /* input border */ --field-focus:#94a3b8; /* focus border */ --shadow:0 8px 24px rgba(17,24,39,.08), 0 1px 0 rgba(17,24,39,.03); --btn:#30343b; /* dark button */ --btn-hover:#1f2329; --accent:#e50914; /* brand red (for small highlights if needed) */ } .fac-wrap{ padding:32px 0 56px; background:linear-gradient(180deg, #fafbff 0%, var(--ui-bg) 100%); } /* Filter card like screenshot */ .fac-filter{ background:var(--card-bg); border:1px solid var(--card-br); border-radius:16px; box-shadow:var(--shadow); padding:22px 22px; margin-bottom:20px; } .fac-filter .form-label{ font-weight:700; color:var(--label); margin-bottom:8px; } .fac-filter .form-control, .fac-filter .form-select{ height:46px; font-size:15px; color:var(--text); background:#fff; border:1px solid var(--field-br); border-radius:12px; padding:10px 14px; transition:border-color .2s, box-shadow .2s; } .fac-filter .form-control::placeholder{ color:#9aa5b1; } .fac-filter .form-control:focus, .fac-filter .form-select:focus{ border-color:var(--field-focus); box-shadow:0 0 0 4px rgba(148,163,184,.2); outline:0; } /* Native select caret */ .fac-filter .form-select{ -webkit-appearance:none; -moz-appearance:none; appearance:none; padding-right:40px; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px 18px; } /* Right aligned filter button like screenshot */ .fac-filter .btn-filter{ height:46px; border-radius:12px; font-weight:700; padding:10px 18px; background:var(--btn); color:#fff; border:1px solid var(--btn); } .fac-filter .btn-filter:hover{ background:var(--btn-hover); border-color:var(--btn-hover); } /* List/results cards (unchanged, just tidy) */ .fac-card-white{ background:#fff; border:1px solid #eef1f5; border-radius:16px; box-shadow:var(--shadow); } .fac-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 18px; } .fac-title-lg{ margin:0; color:#0f172a; font-weight:800; } .fac-chip{ font-size:12px; font-weight:700; color:#475569; background:#f8fafc; border:1px solid #e2e8f0; padding:4px 10px; border-radius:999px; } .fac-grid{ padding:8px 14px 18px; } .fac-card-grid{ background:#fff; border:1px solid #eaeef4; border-radius:14px; overflow:hidden; height:100%; transition:.2s; } .fac-card-grid:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(2,6,23,.06); } .fac-thumb{ background:#000; aspect-ratio:1/1; overflow:hidden; } .fac-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; } .fac-card-grid:hover .fac-thumb img{ transform:scale(1.03); } .fac-body{ padding:12px 14px 16px; } .fac-name{ margin:0 0 6px; font-weight:800; color:#0f172a; } .fac-badge{ display:inline-block; font-size:12px; font-weight:700; border:1px solid var(--accent); color:var(--accent); padding:2px 8px; border-radius:999px; background:rgba(229,9,20,.06); } .fac-meta{ color:#475569; font-size:14.5px; line-height:1.5; } .fac-muted{ color:#6b7280; } /* Force select dropdown background and text color (for all browsers) */ .fac-filter select, .fac-filter option { background-color: #ffffff !important; color: #111827 !important; } /* For Safari and Firefox fallback */ .fac-filter select:focus option, .fac-filter select optgroup { background-color: #ffffff !important; color: #111827 !important; } </style> <section class="ttm-row fac-wrap clearfix"> <div class="container"> <!-- ===== Filter bar (screenshot style) ===== --> <div class="fac-filter"> <form method="get" action=""> <div class="row g-3 align-items-end"> <div class="col-12 col-lg-4"> <label class="form-label">Designation</label> <select name="designation" class="form-select"> <option value="">All Designations</option> <?php foreach($designations as $d): ?> <option value="<?php echo h($d); ?>" <?php echo ($des===$d?'selected':''); ?>><?php echo h($d); ?></option> <?php endforeach; ?> </select> </div> <div class="col-12 col-lg-4"> <label class="form-label">Specialization</label> <select name="specialization" class="form-select"> <option value="">All Specializations</option> <?php foreach($specializations as $s): ?> <option value="<?php echo h($s); ?>" <?php echo (strcasecmp($spec,$s)===0?'selected':''); ?>><?php echo h($s); ?></option> <?php endforeach; ?> </select> </div> <div class="col-12 col-lg-4"> <label class="form-label">Search</label> <div class="d-flex" style="gap:10px;"> <input type="text" name="q" class="form-control" placeholder="Name, qualification, organizerβ¦" value="<?php echo h($q); ?>"> <button class="btn btn-filter" type="submit">Filter</button> </div> </div> </div> </form> </div> <!-- ===== Results ===== --> <div class="fac-card-white"> <div class="fac-head"> <h5 class="fac-title-lg">All Faculty</h5> <span class="fac-chip">List View</span> </div> <div class="fac-grid"> <div class="row"> <?php if ($res && $res->num_rows > 0): ?> <?php while($row = $res->fetch_assoc()): $name = h($row['name'] ?? ''); $dsg = h($row['designation'] ?? ''); $qual = h($row['qualification'] ?? ''); $spc = h($row['specialization'] ?? ''); $exp = h($row['experience'] ?? ''); $photoFile = h($row['photo'] ?? ''); $photo = !empty($photoFile) ? "uploads/faculty/" . $photoFile : "images/default-user.png"; ?> <div class="col-lg-3 col-md-4 col-sm-6 mb-3"> <div class="fac-card-grid"> <div class="fac-thumb"> <img loading="lazy" src="<?php echo $photo; ?>" alt="<?php echo $name; ?>"> </div> <div class="fac-body"> <h6 class="fac-name"><?php echo $name; ?></h6> <?php if($dsg!==''): ?><div class="mb-1"><span class="fac-badge"><?php echo $dsg; ?></span></div><?php endif; ?> <?php if($qual!==''): ?><div class="fac-meta"><?php echo $qual; ?></div><?php endif; ?> <?php if($spc!==''): ?><div class="fac-meta"><strong>Specialization:</strong> <?php echo $spc; ?></div><?php endif; ?> <?php if($exp!==''): ?><div class="fac-meta"><strong>Experience:</strong> <?php echo $exp; ?> years</div><?php endif; ?> </div> </div> </div> <?php endwhile; ?> <?php else: ?> <div class="col-12"><p class="fac-muted mb-0">No Faculty Records Found.</p></div> <?php endif; ?> </div> </div> </div> </div> </section> </div> <?php include 'footer.php'; ?>
Upload File
Create Folder