<h2>Klasifikasi</h2>
<?php 
echo add_path('klasifikasi');
echo $this->session->flashdata('notice');
echo table_open_tag('cellpadding=\\"5\\" cellspacing=\\"0\\"');
$title = array('No', 'ID', 'Nama Klasifikasi', 'Aksi');
echo table_title($title);
$no = 1;
foreach ($results as $row) {
    $data = array($no, $row->KLASIFIKASI_ID, $row->NAMA_KLASIFIKASI, delete_path('klasifikasi', $row->ID, $row->NAMA_KLASIFIKASI) . ' | ' . edit_path('klasifikasi', $row->ID));
    echo table_contents($data);
    $no++;
}
echo table_close_tag();
if (empty($results)) {
    echo "Data tidak ditemukan..";
}
<h2>User Group</h2>
<?php 
echo add_path('user_group');
echo $this->session->flashdata('notice');
echo table_open_tag('cellpadding=\\"5\\" cellspacing=\\"0\\"');
$title = array('Nama Group', 'Aksi');
echo table_title($title);
foreach ($results as $row) {
    $data = array($row->NAMA_GROUP, edit_path('user_group', $row->ID));
    echo table_contents($data);
}
echo table_close_tag();
echo empty($results) ? 'Data tidak ditemukan' : '';
<h2>Menu Group</h2>
<?php 
echo add_path('menu group');
?>

<?php 
echo $this->session->flashdata('notice');
echo table_open_tag('cellpadding=\\"5\\" cellspacing=\\"0\\"');
$title = array('No', 'Nama Menu Group', 'Aksi');
echo table_title($title);
$no = 1;
foreach ($results as $row) {
    $data = array($no, $row->NAMA_GROUP, edit_path('menu_group', $row->ID));
    echo table_contents($data);
    $no++;
}
echo table_close_tag();
<h2>Menu</h2>
<?php 
echo add_path('menu');
echo $this->session->flashdata('notice');
echo table_open_tag('cellpadding=\\"5\\" cellspacing=\\"0\\"');
$title = array('No', 'Menu Group', 'Nama Menu', 'URL', 'Urutan', 'Aksi');
echo table_title($title);
$no = 1;
$nama_group = "";
$nama_group_prev = "";
foreach ($results as $row) {
    if ($nama_group_prev != $row->NAMA_GROUP) {
        $nama_group = $row->NAMA_GROUP;
        $nama_group_prev = $nama_group;
    } else {
        $nama_group = "-";
    }
    $data = array($no, $nama_group, $row->NAMA_MENU, $row->URL, $row->URUTAN, edit_path('menu', $row->ID));
    echo table_contents($data);
    $no++;
}
echo table_close_tag();