Viewing File: D:\INETPUB\VHOSTS\officespacebangalore.com\httpdocs\admin\feedback.php
<?php
$title = 'Feedback';
require_once __DIR__ . '/_header.php';
$rows = db()->query(
'SELECT f.fid,f.uid,f.fdescription,f.status,f.date,u.uname
FROM feedback f LEFT JOIN `user` u ON u.uid=f.uid
ORDER BY f.fid DESC'
)->fetchAll();
?>
<section class="admin-panel">
<div class="panel-head"><div><h2>Customer feedback</h2><p class="muted">Feedback from your existing database.</p></div></div>
<div class="table-wrap"><table>
<thead><tr><th>ID</th><th>User</th><th>Feedback</th><th>Status</th><th>Date</th></tr></thead>
<tbody>
<?php foreach($rows as $f): ?>
<tr><td>#<?=e($f['fid'])?></td><td><?=e($f['uname']??('User #'.$f['uid']))?></td><td><?=e($f['fdescription'])?></td><td><?=e($f['status'])?></td><td><?=e($f['date'])?></td></tr>
<?php endforeach; ?>
<?php if(!$rows): ?><tr><td colspan="5" class="empty">No feedback found.</td></tr><?php endif; ?>
</tbody></table></div>
</section>
<?php require __DIR__ . '/_footer.php'; ?>
Back to Directory
File Manager