| Server IP : 74.208.250.37 / Your IP : 216.73.216.233 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/brainwavemx/resources/templates/admin/ |
Upload File : |
<?php $this->layout('admin/layout/main', ['title' => 'Posts', 'env' => $env]); ?>
<div id="main">
<div class="container-fluid">
<table class="table_list table table-striped">
<thead>
<tr>
<th>ID.</th>
<th>Title</th>
<th>Author</th>
<th>FrontPage</th>
<th>Creation Date</th>
<th class="text-center">Status</th>
</tr>
</thead>
<?php if (is_object($posts)) : ?>
<?php foreach ($posts->rows as $post) : ?>
<tr>
<td>
<a href="/<?= $env['ADMIN'] ?>/post/update?id_post=<?= $post['id_post'] ?>">
<?= $post['id_post'] ?>
</a>
</td>
<td>
<a href="/<?= $env['ADMIN'] ?>/post/update?id_post=<?= $post['id_post'] ?>">
<?= $post['title'] ?>
</a>
</td>
<td><?= $post['author'] ?></td>
<td>
<?php if ($post['is_frontpage'] == 1) : ?>
FrontPage
<?php endif ?>
</td>
<td><?= $post['create_date'] ?></td>
<td class="text-center update" id="post_<?= $post['id_post'] ?>"
data-id="<?= $post['id_post'] ?>"
data-status="<?= $post['is_enabled'] ?>">
<?php if ($post['is_enabled'] == 1) : ?>
<div class="btn btn-success text-center text-white">enabled</div>
<?php elseif ($post['is_enabled'] == 0) : ?>
<div class="btn btn-danger text-center text-white">disabled</div>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
</div>
</div>