google_forms/application/views/publish_view.php

63 lines
2.7 KiB
PHP
Raw Normal View History

2024-07-23 12:54:27 +00:00
<style>/* CSS styles */
.title-column {
color: darkblue; /* Dark blue color for title */
}
.draft-row {
background-color: #f0f0f0; /* Light grey background for draft status */
}
</style>
2024-07-16 12:29:59 +00:00
<div class="container">
<div class="row">
2024-07-19 12:30:57 +00:00
<div class="col-md-12 mt-4">
2024-07-16 12:29:59 +00:00
<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>
2024-07-23 12:54:27 +00:00
<th>Responses</th>
2024-07-16 12:29:59 +00:00
<th>Title</th>
2024-07-19 12:30:57 +00:00
<th>Status</th>
2024-07-23 12:54:27 +00:00
<th>Response Link</th>
<th>Preview</th>
2024-07-16 12:29:59 +00:00
</tr>
</thead>
<tbody>
2024-07-23 12:54:27 +00:00
<?php $serialNumber = 1;foreach ($forms as $row): ?>
2024-07-16 12:29:59 +00:00
<tr>
2024-07-23 12:54:27 +00:00
<td><?php echo $serialNumber++; ?></td>
<td class="title-column">
<?php echo $row->title; ?>
</td>
2024-07-16 12:29:59 +00:00
<td>
2024-07-23 12:54:27 +00:00
<a href="<?php echo base_url('Publish_controller/unpublish_form/' . $row->id); ?>" class="btn btn-danger btn-sm" style=" background-color: rgb(103, 58, 183); border-color: rgb(103, 58, 183); color: white;">Unpublish</a>
2024-07-16 12:29:59 +00:00
</td>
<td>
2024-07-19 12:30:57 +00:00
<a href="<?php echo $row->response_link; ?>" target="_blank"><?php echo $row->response_link; ?></a>
2024-07-16 12:29:59 +00:00
</td>
<td>
2024-07-23 12:54:27 +00:00
<a href="<?php echo base_url('form_preview/' . $row->id); ?>">
<i class="fas fa-eye"></i> <!-- Eye icon -->
</a>
</td>
2024-07-16 12:29:59 +00:00
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>