X7ROOT File Manager
Current Path:
/home/u126090504/domains/shreeganeshacademy.in/public_html/admin
home
/
u126090504
/
domains
/
shreeganeshacademy.in
/
public_html
/
admin
/
📁
..
📄
achievers.php
(13.81 KB)
📄
admissions.php
(5.67 KB)
📄
banners.php
(7.18 KB)
📄
change_password.php
(3.54 KB)
📄
contacts.php
(3.83 KB)
📄
dashboard.php
(9.86 KB)
📄
downloads.php
(4.91 KB)
📄
export_franchise.php
(930 B)
📄
faculty.php
(13.27 KB)
📄
forgot_password.php
(6.52 KB)
📄
franchise.php
(7.28 KB)
📄
gallery.php
(3.08 KB)
📄
governing-body-manage.php
(9.12 KB)
📄
grievance-update.php
(1003 B)
📄
grievance-view.php
(5.32 KB)
📄
grievances.php
(5.79 KB)
📁
includes
📄
index.php
(82 B)
📄
login.php
(6.59 KB)
📄
logout.php
(102 B)
📄
manage_albums.php
(2.28 KB)
📄
manage_media.php
(3.02 KB)
📄
manage_photos.php
(5.66 KB)
📄
manage_videos.php
(3.62 KB)
📄
new_password.php
(3.9 KB)
📄
notice.php
(16.36 KB)
📄
notices.php
(8.24 KB)
📄
payments.php
(15.23 KB)
📁
phpmailer
📄
popup.php
(10.68 KB)
📄
reset_password.php
(2.27 KB)
📄
secure_session.php
(1000 B)
📄
settings.php
(5.21 KB)
📄
submit-grievance.php
(4.97 KB)
📄
testimonials.php
(10.25 KB)
📄
update_status.php
(1.29 KB)
📄
upi_settings.php
(1.52 KB)
Editing: grievance-view.php
<?php // (optional) include 'secure_session.php'; include 'includes/auth.php'; require_once __DIR__ . '/../config.php'; $id = (int)($_GET['id'] ?? 0); if ($id <= 0) { die('Invalid id'); } $sql = "SELECT * FROM grievances WHERE id=?"; $stmt = $conn->prepare($sql); $stmt->bind_param('i', $id); $stmt->execute(); $res = $stmt->get_result(); $row = $res->fetch_assoc(); $stmt->close(); if (!$row) { die('Not found'); } // decode files $files = []; if (!empty($row['files_json'])) { $tmp = json_decode($row['files_json'], true); if (is_array($tmp)) $files = $tmp; } // status options – adjust to match your enum EXACTLY $statuses = ['Pending','Under Review','Action Taken','Resolved']; // or underscore versions function h($v){ return htmlspecialchars((string)$v); } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>View Grievance – <?= h($row['tracking_id']) ?></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body{font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;background:#f6f7fb;margin:0;color:#111} .wrap{max-width:1000px;margin:28px auto;padding:0 16px} h1{margin:0 0 12px} .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px} .card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.06);padding:16px;margin-bottom:12px} label{font-weight:600} .row{margin:6px 0} .badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;border:1px solid #e5e7eb;background:#f3f4f6} input,select,textarea,button{border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px} button{background:#2563eb;color:#fff;border:0;cursor:pointer} a.btn{background:#111;color:#fff;text-decoration:none;padding:8px 10px;border-radius:10px} pre{white-space:pre-wrap} @media (max-width:900px){.grid{grid-template-columns:1fr}} </style> </head> <body> <div class="wrap"> <h1>Grievance <span class="badge"><?= h($row['tracking_id']) ?></span></h1> <div class="card grid"> <div class="row"><label>Name:</label><div><?= h($row['name']) ?></div></div> <div class="row"><label>Email:</label><div><?= h($row['email']) ?></div></div> <div class="row"><label>Contact:</label><div><?= h($row['contact']) ?></div></div> <div class="row"><label>Course / Year:</label><div><?= h($row['course']) ?> / <?= h($row['year_of_study']) ?></div></div> <div class="row"><label>Dept:</label><div><?= h($row['department']) ?></div></div> <div class="row"><label>Hostel:</label><div><?= h($row['hostel_resident']) ?></div></div> <div class="row"><label>Preferred Response:</label><div><?= h($row['preferred_response']) ?></div></div> <div class="row"><label>Confidential:</label><div><?= h($row['is_confidential'] ? 'Yes' : 'No') ?></div></div> <div class="row"><label>Category:</label><div><?= h($row['category'].' / '.$row['sub_category']) ?></div></div> <div class="row"><label>Impact:</label><div><?= h($row['impact_level']) ?></div></div> <div class="row"><label>Expected Resolution:</label><div><?= h($row['expected_resolution']) ?></div></div> <div class="row"><label>Status:</label><div><span class="badge"><?= h($row['status']) ?></span></div></div> <div class="row"><label>Incident:</label><div><?= h($row['date_incident'].' '.$row['time_incident'].' @ '.$row['location']) ?></div></div> <div class="row"><label>Persons Involved:</label><div><?= h($row['persons_involved']) ?></div></div> <div class="row full"><label>Created:</label><div><?= h($row['created_at']) ?></div></div> </div> <div class="card"> <h3>Description</h3> <pre><?= h($row['description']) ?></pre> </div> <?php if(!empty($row['previous_attempts'])): ?> <div class="card"> <h3>Previous Attempts</h3> <pre><?= h($row['previous_attempts']) ?></pre> </div> <?php endif; ?> <?php if(!empty($row['desired_outcome'])): ?> <div class="card"> <h3>Desired Outcome</h3> <pre><?= h($row['desired_outcome']) ?></pre> </div> <?php endif; ?> <div class="card"> <h3>Attachments</h3> <?php if(!$files): ?> <div>No files</div> <?php else: ?> <ul> <?php foreach($files as $f): $url = '../uploads/grievances/'.rawurlencode($f); ?> <li><a class="btn" href="<?= $url ?>" target="_blank">Download: <?= h($f) ?></a></li> <?php endforeach; ?> </ul> <?php endif; ?> </div> <div class="card"> <h3>Update Status</h3> <form method="post" action="grievance-update.php"> <input type="hidden" name="id" value="<?= (int)$row['id'] ?>"> <label>Status</label> <select name="status" required> <?php foreach($statuses as $s): ?> <option value="<?= h($s) ?>" <?= $row['status']===$s?'selected':''; ?>><?= $s ?></option> <?php endforeach; ?> </select> <label style="margin-left:8px">Meet Committee?</label> <select name="meet_committee"> <option <?= $row['meet_committee']==='No'?'selected':''; ?>>No</option> <option <?= $row['meet_committee']==='Yes'?'selected':''; ?>>Yes</option> </select> <button type="submit" style="margin-left:8px">Save</button> <a class="btn" style="margin-left:8px;background:#6b7280" href="grievances.php">Back</a> </form> </div> </div> </body> </html>
Upload File
Create Folder