2020-05-17 12:57:28 +00:00
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<?php if($this->session->flashdata('message')) { ?>
|
|
|
|
<!-- Display Message -->
|
|
|
|
<div class="alert-message error">
|
|
|
|
<p><?php echo $this->session->flashdata('message'); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<?php echo $page_title; ?>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="card-text">This is the place you can customize your modes-list by activating/deactivating modes to be shown in the select-list.</p>
|
2020-10-13 10:24:19 +00:00
|
|
|
<p><button onclick="createModeDialog();" class="btn btn-primary"><i class="fas fa-plus"></i> Create a Mode</button></p>
|
2020-08-19 15:19:56 +00:00
|
|
|
<div class="table-responsive">
|
2020-10-12 18:45:48 +00:00
|
|
|
<table style="width:100%" class="modetable table table-striped">
|
2020-05-17 12:57:28 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Mode</th>
|
2020-05-23 22:06:08 +00:00
|
|
|
<th scope="col">Sub-Mode</th>
|
2020-05-17 12:57:28 +00:00
|
|
|
<th scope="col">SSB/DATA/CW</th>
|
|
|
|
<th scope="col">Active</th>
|
2020-10-12 18:45:48 +00:00
|
|
|
<th scope="col"></th>
|
2020-05-17 12:57:28 +00:00
|
|
|
<th scope="col"></th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($modes->result() as $row) { ?>
|
|
|
|
<tr>
|
2020-05-23 22:06:08 +00:00
|
|
|
<td><?php echo $row->mode;?></td>
|
|
|
|
<td><?php echo $row->submode;?></td>
|
2020-05-17 12:57:28 +00:00
|
|
|
<td><?php echo $row->qrgmode;?></td>
|
2020-10-09 16:29:41 +00:00
|
|
|
<td class='mode_<?php echo $row->id ?>'><?php if ($row->active == 1) { echo "active";} else { echo "not active";};?></td>
|
|
|
|
<td>
|
|
|
|
<?php if ($row->active == 1) {
|
|
|
|
echo "<button onclick='javascript:deactivateMode(". $row->id . ")' class='btn_" . $row->id . " btn btn-success btn-sm'><i class='fas fa-edit-alt'></i> Deactivate</button>";
|
|
|
|
} else {
|
|
|
|
echo "<button onclick='javascript:activateMode(". $row->id . ")' class='btn_" . $row->id . " btn btn-success btn-sm'><i class='fas fa-edit-alt'></i> Activate</button>";
|
|
|
|
};?>
|
|
|
|
</td>
|
2020-05-17 12:57:28 +00:00
|
|
|
<td>
|
|
|
|
<a href="<?php echo site_url('mode/edit')."/".$row->id; ?>" class="btn btn-info btn-sm"><i class="fas fa-edit-alt"></i> Edit</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-10-09 16:29:41 +00:00
|
|
|
<a href="<?php echo site_url('mode/delete')."/".$row->id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want delete mode <?php echo $row->mode; ?> ');"><i class="fas fa-trash-alt"></i> Delete</a>
|
|
|
|
</td>
|
2020-05-17 12:57:28 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
</tbody>
|
|
|
|
<table>
|
2020-08-19 15:19:56 +00:00
|
|
|
</table>
|
|
|
|
|
2020-10-12 18:45:48 +00:00
|
|
|
|
2020-05-17 12:57:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|