if (isset($message)) { echo sprintf('<p>%s</p>', $message); } ?> <table> <thead> <tr> <th width="100">Actions</th> <th>User</th> </tr> </thead> <tbody> <?php $admin_users_model = new AdminUsersModel(); $admin_users_model->setOrderBy('user ASC'); $admin_users = $admin_users_model->load_all(); foreach ($admin_users as $admin_user) { echo '<tr>'; echo '<td><a href="?action=delete&admin_user='******'id'] . '">Delete</a> | <a href="?action=edit&admin_user='******'id'] . '">Edit</a></td>'; echo '<td>' . $admin_user['user'] . '</td>'; echo '</tr>'; } ?> </tbody> </table> <?php break; } ?> </div>