<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>
            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo $pagetitle; ?>
                    <?php echo $breadcrumb; ?>
                </section>

                <section class="content">
                    <div class="row">
                        <div class="filterable">
                               
                        <div class="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                    <h3 class="box-title"><?php echo anchor('menus/menus/create', '<i class="fa fa-plus"></i> '. lang('menus_create'), array('class' => 'btn btn-block btn-primary btn-flat')); ?></h3>
                                    <div class="pull-right">
                                        <button class="btn btn-default btn-xs btn-filter"><span class="glyphicon glyphicon-filter"></span> Filter</button>
                                    </div>
                                </div>
                                <div class="box-body">
                                    <table id="tabla_listado" class="table table-striped table-hover">
                                        <thead>
                                            <tr class="filters">

                                                <th><input type="text" class="form-control"             placeholder="<?php echo lang('menus_id');?>"                  disabled></th>
                                                <th><input type="text" class="form-control"             placeholder="<?php echo lang('menus_nombre_menu');?>"                  disabled></th>
                                                <th><input type="text" class="form-control"             placeholder="<?php echo lang('menus_id_menupadre');?>"                 disabled></th>
                                                <th><input type="text" class="form-control"             placeholder="<?php echo lang('menus_nombre_menu_padre');?>"                 disabled></th> 
                                                <th><input type="text" class="form-control"             placeholder="<?php echo lang('menus_menupos');?>"                      disabled></th>                                            
                                                <th width="80"><input type="text" class="form-control"  placeholder="<?php echo lang('menus_acciones');?>"                     disabled></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        
<?php foreach ($menus as $values):?>
                                            <tr>
											    <td><?php echo htmlspecialchars($values->id,                    ENT_QUOTES, 'UTF-8'); ?></td>
                                                												
                                                <td><?php echo htmlspecialchars($values->nombre_menu,           ENT_QUOTES, 'UTF-8'); ?></td>												
                                                <td><?php echo htmlspecialchars($values->id_menupadre,          ENT_QUOTES, 'UTF-8'); ?></td>												
                                                <td><?php echo htmlspecialchars($values->nombre_menu_padre,     ENT_QUOTES, 'UTF-8'); ?></td>	

                                                <td><?php echo htmlspecialchars($values->menupos,               ENT_QUOTES, 'UTF-8');?></td>

                                                <td align="center">
                                                    <?php echo anchor('menus/menus/edit/'.$values->id, lang('menu_actions_edit')); ?>
                                                    <?php echo '&nbsp;';?>
                                                    <?php echo anchor('menus/menus/delete/'.$values->id, lang('menu_actions_delete')); ?>
                                                </td>
                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>                                    
                                </div>
                            </div>
                         </div>
                         </div>
                    </div>
                </section>
            </div>

