38 lines
1.5 KiB
PHP
Executable File
38 lines
1.5 KiB
PHP
Executable File
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
|
|
<div
|
|
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h1 class="h2">Classes</h1>
|
|
<a href="/administrator/classsection/create" class="btn btn-primary">Add New Class</a>
|
|
</div>
|
|
<table class="table table-striped mt-3">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Description</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if (!empty($classsection)): ?>
|
|
<?php foreach ($classsection as $classsec): ?>
|
|
<tr>
|
|
<td><?php echo $classsec['id']; ?></td>
|
|
<td><?php echo $classsec['name']; ?></td>
|
|
<td><?php echo $classsec['description']; ?></td>
|
|
<td>
|
|
<a href="/administrator/classsection/edit/<?php echo $classsec['id']; ?>"
|
|
class="btn btn-warning">Edit</a>
|
|
<a href="/administrator/classsection/delete/<?php echo $classsec['id']; ?>" class="btn btn-danger"
|
|
onclick="return confirm('Are you sure you want to delete this class?');">Delete</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td colspan="4">No classsection found.</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</main>
|