2024-07-16 06:28:22 +00:00
|
|
|
<div style="margin: 0 10%;">
|
|
|
|
<h1>Published Forms</h1>
|
|
|
|
|
2024-07-16 03:00:23 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Form Title</th>
|
|
|
|
<th>Created At</th>
|
2024-07-16 06:28:22 +00:00
|
|
|
<th>Response Links</th>
|
2024-07-16 03:00:23 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php if (!empty($forms)) : ?>
|
|
|
|
<?php foreach ($forms as $form) : ?>
|
|
|
|
<tr>
|
2024-07-16 06:28:22 +00:00
|
|
|
<td><a href="<?= base_url() ?>forms/list_form_responses/<?=$form->form_id?>"><?= htmlspecialchars($form->title, ENT_QUOTES, 'UTF-8') ?></a></td>
|
2024-07-16 03:00:23 +00:00
|
|
|
<td><?= date('Y-m-d H:i:s', strtotime($form->created_at)) ?></td>
|
2024-07-16 06:28:22 +00:00
|
|
|
<td><a href="<?= $form->response_link ?>"><?= $form->response_link ?></a></td>
|
2024-07-16 03:00:23 +00:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<tr>
|
2024-07-16 06:28:22 +00:00
|
|
|
<td colspan="3">No forms found.</td>
|
2024-07-16 03:00:23 +00:00
|
|
|
</tr>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|