CodeIgniter_Gforms/application/views/forms/user_forms.php

32 lines
1.1 KiB
PHP
Raw Normal View History

<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>
<th>Response Links</th>
2024-07-16 03:00:23 +00:00
</tr>
</thead>
<tbody>
<?php if (!empty($forms)) : ?>
2024-07-16 10:46:16 +00:00
<?php foreach ($forms as $form) : ?>
<?php if ($form->is_published == 1) : ?>
<tr>
<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>
<td><a href="<?= $form->response_link ?>"><?= $form->response_link ?></a></td>
2024-07-16 10:46:16 +00:00
</tr>
<?php endif; ?>
<?php endforeach; ?>
2024-07-16 03:00:23 +00:00
<?php else : ?>
<tr>
<td colspan="3">No forms found.</td>
2024-07-16 03:00:23 +00:00
</tr>
<?php endif; ?>
</tbody>
</table>
2024-07-16 10:46:16 +00:00
</div>