<?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('vistas/vistas/create', '<i class="fa fa-plus"></i> '. lang('vistas_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('vistas_nombre_vista');?>"         disabled></th>
                                                    <th><input type="text" class="form-control" placeholder="<?php echo lang('vistas_url');?>"                  disabled></th>
                                                    <th><input type="text" class="form-control" placeholder="<?php echo lang('vistas_c_tipo');?>"               disabled></th>  
                                                    <th><input type="text" class="form-control" placeholder="<?php echo lang('vistas_c_tipo_desc');?>" 
                                                    disabled></th>  
                                                    <th><input type="text" class="form-control" placeholder="<?php echo lang('vistas_c_modulo');?>"             disabled></th>
                                                    <th><input type="text" class="form-control" placeholder="<?php echo lang('vistas_c_modulo_desc');?>"        disabled></th>
                                                    <th width="80"><input type="text" class="form-control" placeholder="<?php echo lang('vistas_acciones');?>"  disabled></th>
                                            </tr>
                                        </thead>
                                        <tbody>
<?php foreach ($vistas as $values):?>
                                            <tr>
												<td><?php echo htmlspecialchars($values->nombre_vista, ENT_QUOTES, 'UTF-8'); ?></td>												
                                                <td><?php echo htmlspecialchars($values->url, ENT_QUOTES, 'UTF-8'); ?></td>												
                                                <td><?php echo htmlspecialchars($values->c_tipo, ENT_QUOTES, 'UTF-8'); ?></td>	

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

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

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

                                                <td align="center">
                                                    <?php echo anchor('vistas/vistas/edit/'.$values->id, lang('vista_actions_edit')); ?>
                                                    <?php echo '&nbsp;';?>

                                                    <?php echo anchor('vistas/vistas/delete/'.$values->id, lang('vista_actions_delete')); ?>
                                                </td>
                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>                                    
                                </div>
                            </div>
                         </div>
                         </div>
                    </div>
                </section>
            </div>

