CodeIgniter_Gforms/application/views/forms/form_responses.php

32 lines
1.1 KiB
PHP
Raw Normal View History

2024-07-18 10:49:23 +00:00
2024-07-16 10:46:16 +00:00
<div style="margin: 0 10%;">
2024-07-16 03:00:23 +00:00
<h1>Responses for: <?= htmlspecialchars($form->title, ENT_QUOTES, 'UTF-8') ?></h1>
2024-07-17 02:27:24 +00:00
<a href="<?php echo base_url('responses/index/' . $form->form_id); ?>">View responses Question wise</a>
2024-07-16 03:00:23 +00:00
<table>
<thead>
<tr>
<th>Response ID</th>
2024-07-23 07:41:51 +00:00
<th>User Name</th>
2024-07-16 03:00:23 +00:00
<th>Submitted At</th>
</tr>
</thead>
<tbody>
<?php if (!empty($responses)) : ?>
<?php foreach ($responses as $response) : ?>
<tr>
2024-07-23 07:41:51 +00:00
<td><?= $response->response_id ?></td>
<td><a href="<?= base_url('forms/view_response/' . $response->response_id) ?>"><?= $response->username ?></a></td>
<td><?= date('Y-m-d H:i:s', strtotime($response->submitted_at)) ?></td>
2024-07-16 03:00:23 +00:00
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr>
<td colspan="2">No responses found.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
2024-07-16 10:46:16 +00:00
</div>
2024-07-18 10:49:23 +00:00