<?php $this->load->view('partials/script_list.php'); ?>

<?php

$this->load->view('partials/delete_modal.php');

?>

<div id="page-title" class="clearfix">

    <span style="font-size:24px;font-weight:bold;float:left;margin-top:5px;"><?php echo $nom; ?></span>

    <?php if($onlyAdmin == 'admin' || $master == 'Master'): ?>
        <div class="item-content" style="float:right;">

            <button class="btn btn-inverse" id="nuevo">Nuevo</button>

            <a href="#myModal" data-toggle="modal" class="btn btn-inverse">Eliminar</a>

            <button class="btn btn-inverse" id="restaurar">Restaurar</button>

        </div>
    <?php endif; ?>

</div>

<div class="row">

    <div class="span12">

        <div class="widget widget-table">

            <div class="widget-content">

                <div id="example_wrapper" class="dataTables_wrapper form-inline" role="grid">

                    <?php /* if(isset($message)) echo $message;

                    <div class="row">

                        <?php

                        $this->load->view('partials/table_perpage.php');

                        $this->load->view('partials/search.php');

                        ?>

                    </div> */

                        $user_reg = $this->session->userdata('user_reg');

                        $id_user = $user_reg['id'];

                    ?>

                    <?php $this->load->view('partials/table.php'); ?>

                    <?php //$this->load->view('partials/table_footer.php'); ?>

                </div>

            </div>

        </div>

    </div>

</div>	