2024-07-16 12:29:59 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 mt-4 ">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<?php if ($this->session->flashdata('status')): ?>
|
|
|
|
<div class="alert alert-success">
|
|
|
|
<?= $this->session->flashdata('status'); ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<h3>
|
|
|
|
Published Forms
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<!-- here your table will occur -->
|
|
|
|
<table id="basetable1" class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Form_Id</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Status</th>
|
|
|
|
<th>Response Link</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($forms as $row): ?>
|
|
|
|
<tr>
|
2024-07-19 10:46:18 +00:00
|
|
|
<td><a href="<?php echo base_url('Response_submit/view/' . $row->id); ?>"><?php echo $row->id; ?></td>
|
2024-07-16 12:29:59 +00:00
|
|
|
<td>
|
2024-07-19 10:46:18 +00:00
|
|
|
<a href="<?php echo base_url('forms/preview_back/' . $row->id); ?>"><?php echo $row->title; ?></a>
|
2024-07-16 12:29:59 +00:00
|
|
|
</td>
|
|
|
|
<td><?php echo $row->description; ?></td>
|
|
|
|
<td>
|
|
|
|
<?php echo ($row->is_published ? 'Published' : 'Draft'); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<?php echo $row->response_link; ?>" target="_blank"><?php echo $row->response_link; ?></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|