<?php
require_once("../../config/conexion.php");
if (isset($_SESSION["Ccod_usu"])) {
?>

<!DOCTYPE html>
<html>
<?php require_once("../head/head.php") ?>
<title>Gestor de Permisos</title>

</head>

<body class="with-side-menu">

    <?php require_once("../header/header.php") ?>
    <div class="mobile-menu-left-overlay"></div>
    <?php require_once("../nav/nav.php") ?>

    <div class="page-content">
        <div class="container-fluid">
            <header class="section-header">
                <div class="tbl">
                    <div class="tbl-row">
                        <div class="tbl-cell">
                            <h3>Gestión de Permisos</h3>
                            <ol class="breadcrumb breadcrumb-simple">
                                <li><a href="../home/home.php">Inicio</a></li>
                                <li class="active">Gestión de Permisos</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </header>
            <div class="box-typical box-typical-padding">
                <table id="permiso_tabla" class="display table table-bordered" cellspacing="0" width="100%">
                    <thead>
                        <tr>
                            <th>Tabla</th>
                            <th>Atributo</th>
                            <th>Tipo de Permiso</th>
                            <th>Rol</th>
                            <th class="text-center"></th>
                            <th class="text-center"></th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
                <button id="btnnuevo" type="button" class="btn btn-rounded btn-inline btn-primary">Nuevo Registro</button>
            </div>
        </div><!--.container-fluid-->
    </div><!--.page-content-->

    <?php require_once("modalmtn.php") ?>
    <?php require_once("../js/js.php") ?>

    <script type="text/javascript" src="mtnpermiso.js"></script>

</body>

</html>

<?php
} else {
    header("Location:" . Conectar::ruta() . "index.php");
}
?>
