2024-07-16 03:00:23 +00:00
|
|
|
<div class="page_layout">
|
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>
|
|
|
|
<th>Submitted At</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php if (!empty($responses)) : ?>
|
|
|
|
<?php foreach ($responses as $response) : ?>
|
|
|
|
<tr>
|
|
|
|
<td><a href="<?= base_url('forms/view_response/' . $response->response_id) ?>"><?= $response->response_id ?></a></td>
|
|
|
|
<td><?= date('Y-m-d H:i:s', strtotime($response->created_at)) ?></td>
|
|
|
|
</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-16 03:00:23 +00:00
|
|
|
</div>
|