<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>BIO - ALMACÉN</title>
        <link href="./view/css/styles.css" rel="stylesheet" />
        <link rel="icon" type="image/x-icon" href="./view/assets/img/trinity_bio/icono_trinity.png" />
        <script data-search-pseudo-elements defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/js/all.min.js" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.28.0/feather.min.js" crossorigin="anonymous"></script>
    </head>
    <body class="nav-fixed">

        <?php require_once("./view/menu.phtml") ?>

        <div id="layoutSidenav">

            <?php require_once("./view/menuv.phtml") ?>
            
            <div id="layoutSidenav_content">
                <main>
                    <header class="py-10 mb-4 bg-gradient-primary-to-secondary">
                        <div class="container-xl px-4">
                            <div class="text-center">
                                <h1 class="text-white"><?=$_SESSION['nombre']?></h1>
                                <p class="lead mb-0 text-white-50">DOCUMENTO IDENTIDAD: <?=$_SESSION['codigo_usuario']?></p>
                                <p class="lead mb-0 text-white-50">CENTRO DE COSTOS: <?=$_SESSION['centro']?></p>
                                <p class="lead mb-0 text-white-50">CARGO: <?=$_SESSION['cargo']?></p>
                                <p class="text-white" type="button" data-bs-toggle="modal" data-bs-target="#Modal"><i data-feather="edit"></i>ASIGNACION ALMACÉN - CENTRO DE COSTOS: <?=$_SESSION['almacen_ccosto']?></p>
                            </div>
                        </div>
                    </header>
                            <div class="modal fade" id="Modal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
                                                                    <div class="modal-dialog" role="document">
                                                                        <div class="modal-content">
                                                                            <div class="modal-header">
                                                                                <h5 class="modal-title" id="ModalLabel">CAMBIAR ALMACÉN - CENTRO DE COSTOS</h5>
                                                                                <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
                                                                            </div>
                                                                            <form method="post" action="ac.php" enctype="multipart/form-data">
                                                                                <div class="modal-body">
                                                                                    
                                                                                        <div class="row">
                                                                                            
                                                                                            <div class="col-xl-12">
                                                                                                
                                                                                                <div class="card mb-4">
                                                                                                    <div class="card-body">
                                                                                                        
                                                                                                            

                                                                                                            <div class="row gx-3 mb-3">
                                                                                                                
                                                                                                                <div class="col-md-12">
                                                                                                                    <label class="small mb-1" for="asig_i">ALMACÉN - CENTRO DE COSTOS</label>
                                                                                                                    <select required  class="form-control" id="asig_i" name="asig_i" type="text" placeholder="">
                                                                                                                                    <option value="" disabled="" selected="selected">SELECCIONAR</option>
                                                                                                                                    <?php
                                                                                                                                    foreach($_SESSION['asignacion_accesos'] as $acs){
                                                                                                                                    ?>
                                                                                                                                    <option value="<?=$acs['id_asignacion_almacen_ccosto']?>"><?=$acs['almacen'].' - '.$acs['ccosto']?></option>
                                                                                                                                    <?php
                                                                                                                                    }
                                                                                                                                    ?>
                                                                                                                                    
                                                                                                                                    
                                                                                                                                    
                                                                                                                    </select>
                                                                                                                </div>

                                                                                                                

                                                                                                            </div>

                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    
                                                                                </div>
                                                                                <div class="modal-footer"><button class="btn btn-danger" type="button" data-bs-dismiss="modal">CERRAR</button><input class="btn btn-primary" type="submit" name="CAMBIAR" id="CAMBIAR" value="CAMBIAR"></div>
                                                                            </form>
                                                                        </div>
                                                                    </div>
                            </div>
                    
                </main>
                <footer class="footer-admin mt-auto footer-light">
                    <div class="container-xl px-4">
                        <div class="row">
                            <div class="col-md-6 small">Copyright &copy; TRINITY ERP - BIO SAC 2022</div>
                            <div class="col-md-6 text-md-end small">
                                <a href="#!">POLÍTICAS DE PRIVACIDAD</a>
                                &middot;
                                <a href="#!">TERMINOS &amp; CONDICIONES</a>
                            </div>
                        </div>
                    </div>
                </footer>
            </div>
        </div>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
        <script src="./view/js/scripts.js"></script>
    </body>
</html>
