<!doctype html>
<html>
    <head>
        <title>codeigniter crud generator</title>
        <link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
        <style>
            .word-table {
                border:1px solid black !important; 
                border-collapse: collapse !important;
                width: 100%;
            }
            .word-table tr th, .word-table tr td{
                border:1px solid black !important; 
                padding: 5px 10px;
            }
        </style>
    </head>
    <body>
        <h2>Menu List</h2>
        <table class="word-table" style="margin-bottom: 10px">
            <tr>
                <th>No</th>
        		<th>Sort</th>
        		<th>Level</th>
        		<th>Parent Id</th>
        		<th>Icon</th>
        		<th>Label</th>
        		<th>Link</th>
        		<th>Id</th>
        		<th>Id Menu Type</th>
		    </tr>
            <?php
            foreach ($menu_data as $menu)
            { ?>
            <tr>
    		    <td><?php echo ++$start ?></td>
    		    <td><?php echo $menu->sort ?></td>
    		    <td><?php echo $menu->level ?></td>
    		    <td><?php echo $menu->parent_id ?></td>
    		    <td><?php echo $menu->icon ?></td>
    		    <td><?php echo $menu->label ?></td>
    		    <td><?php echo $menu->link ?></td>
    		    <td><?php echo $menu->id ?></td>
    		    <td><?php echo $menu->id_menu_type ?></td>	
            </tr>
            <?php } ?>
        </table>
    </body>
</html>