<?php session_start(); if ($_SESSION["controlReg"] == null) { header('Location:' . getenv('HTTP_REFERER')); } elseif (!isset($_SESSION["controlReg"])) { header('Location:' . getenv('HTTP_REFERER')); } include_once('../models/modelo_conexion.php'); $objeto = new Conexion(); $conexion = $objeto->Conectar(); ?> <?php require_once "superior.php" ?> <div class="container-fluid"> <?PHP $consulta = "SELECT * FROM `user` where permiso != '3' AND ESTADO = 'INACTIVO'"; $resultado = $conexion->prepare($consulta); $resultado->execute(); if ($resultado->rowCount() >= 1) { ?> <button class="btn btn-lg btn-outline-success mb-4 btn-rounded" id="btnOpenInventario">ACTIVACIÓN DE INVENTARIO</button> <?PHP } else { ?> <button class="btn btn-lg btn-outline-danger mb-4 btn-rounded" id="btnCloseInventario">CIERRE DE INVENTARIO</button> <?php } ?> <div class="row"> <!-- Grow In Utility --> <div class="col-md-3 col-lg-4 col-xl-6"> <div class="card shadow mb-4 position-relative"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-dark">AGREGAR O ACTUALIZAR USUARIO</h6> </div> <div class="card-body"> <form action="#" method="POST" id="formNewUser" name="formNewUser"> <div class="form-group"> <label for="">Usuario</label> <input type="text" class="form-control fs-4" name="inpUsuario" id="inpUsuario" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Nombre</label> <input type="text" class="form-control" name="inpNomUsuario" id="inpNomUsuario" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Tipo Permiso</label> <select id="slctPermiso" class="form-control" name="slctPermiso" required> <option value="" selected disabled>--Seleccione--</option> <option value="1">Usuario Natural</option> <option value="2">Usuario Administrador</option> <option value="3">Usuario Supervisor</option> </select> <label for="">Contraseña</label> <input type="text" class="form-control" name="inpContraseña" id="inpContraseña" placeholder="" required autocomplete="off"> <label for="">Estado del Usuario</label> <select id="slctEstado" class="form-control" name="slctEstado" required> <option value="" selected disabled>--Seleccione--</option> <option>ACTIVO</option> <option>INACTIVO</option> </select> <input type="submit" class="btn btn-lg btn-success form-control mt-4" value="AGREGAR - ACTUALIZAR USUARIO"> </div> </form> </div> </div> </div> <!-- Fade In Utility --> <div class="col-md-3 col-lg-4 col-xl-6"> <div class="card shadow mb-4 position-relative"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-dark">AGREGAR NUEVO ITEM</h6> </div> <div class="card-body"> <form action="#" method="POST" id="formNewItem" name="formNewItem"> <div class="form-group"> <label for="">Codigo Linea</label> <input type="text" class="form-control fs-4" name="inpCodLinea" id="inpCodLinea" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Nombre Linea</label> <input type="text" class="form-control fs-4" name="inpNomLinea" id="inpNomLinea" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Codigo Item</label> <input type="text" class="form-control" name="inpCodItem" id="inpCodItem" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Nombre Item</label> <input type="text" class="form-control" name="inpNomItem" id="inpNomItem" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Peso Promedio</label> <input type="text" class="form-control" name="aggPesoProm" id="aggPesoProm" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Peso Minimo</label> <input type="text" class="form-control" name="aggPesoMin" id="aggPesoMin" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Peso Maximo</label> <input type="text" class="form-control" name="aggPesoMax" id="aggPesoMax" aria-describedby="helpId" placeholder="" required autocomplete="off"> <input type="submit" class="btn btn-lg btn-success form-control mt-4" value="INSERTAR NUEVO ITEM"> </div> </form> </div> </div> </div> <!-- Grow In Utility --> <div class="col-md-3 col-lg-4 col-xl-6"> <div class="card shadow mb-4 position-relative"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-dark">AGREGAR NUEVA UBICACION</h6> </div> <div class="card-body"> <form action="#" method="POST" id="formNewUbi" name="formNewUbi"> <div class="form-group"> <label for="">Nombre Ubicacion</label> <input type="text" class="form-control fs-4" name="AggUbicacion" id="AggUbicacion" aria-describedby="helpId" placeholder="" required autocomplete="off"> <input type="submit" class="btn btn-lg btn-success form-control mt-4" value="AGREGAR UBICACION"> </div> </form> </div> </div> </div> <!-- Fade In Utility --> <div class="col-md-3 col-lg-4 col-xl-6"> <div class="card shadow mb-4 position-relative"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-dark">ACTUALIZAR DOCUMENTO</h6> </div> <div class="card-body"> <form action="#" method="POST" id="formUpdtDcto" name="formUpdtDcto"> <div class="form-group"> <label for="">Actualizar Nombre del Documento</label> <input type="text" class="form-control fs-4" name="actuDcto" id="actuDcto" aria-describedby="helpId" placeholder="" required value='<?php $consulta = "SELECT * FROM `documento`"; $resultado = $conexion->prepare($consulta); $resultado->execute(); $data = $resultado->fetchAll(PDO::FETCH_ASSOC); foreach ($data as $dat) { ?><?php echo $dat['dcto'] ?><?php } ?>'> <input type="submit" class="btn btn-lg btn-success form-control mt-4" value="ACTUALIZAR DOCUMENTO" form="formUpdtDcto"> </div> </form> </div> </div> </div> <div class="col-md-3 col-lg-4 col-xl-6"> <div class="card shadow mb-4 position-relative"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-dark">AGREGAR NUEVA LINEA</h6> </div> <div class="card-body"> <form action="#" method="POST" id="formNewLine" name="formNewLine"> <div class="form-group"> <label for="">Codigo Linea</label> <input type="text" class="form-control fs-4" name="aggCodLinea" id="aggCodLinea" aria-describedby="helpId" placeholder="" required autocomplete="off"> <label for="">Nombre Linea</label> <input type="text" class="form-control" name="aggNomLinea" id="aggNomLinea" aria-describedby="helpId" placeholder="" required autocomplete="off"> <input type="submit" class="btn btn-lg btn-success form-control mt-4" value="INSERTAR NUEVA LINEA"> </div> </form> </div> </div> </div> </div> </div> <?php require_once "inferior.php" ?>