File "controlPromedios.php"

Full Path: C:/wamp64/www/INVENTAPP/views/controlPromedios.php
File size: 4.5 KB
MIME-type: text/x-php
Charset: utf-8

<?php
session_start();

if ($_SESSION["controlReg"] == null) {

    header('Location:' . getenv('HTTP_REFERER'));
} elseif (!isset($_SESSION["controlReg"])) {
    header('Location:' . getenv('HTTP_REFERER'));
}

?>
<?php
require_once "superior.php"

?>
<!-- Begin Page Content -->
<div class="container-fluid">

    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h4 class="m-0 font-weight-bold text-dark ">CONTROL DE REGISTROS</h4>
        </div>
        <div class="card-body">
            <div class="table-responsive">

                <button class="btn btn-success btn-sm mb-4 btnCargarTblProm">CARGAR TABLA</button>
                <table class="table table-bordered table-sm " id="tblControlPromedio" width="100%" cellspacing="0">
                    <thead class="bg-warning text-dark">
                        <tr>
                            <th>ID</th>
                            <th>CODIGO LINEA</th>
                            <th>CODIGO ITEM</th>
                            <th>NOMBRE ITEM</th>
                            <th>PESO PROMEDIO</th>
                            <th>PESO MINIMO</th>
                            <th>PESO MAXIMO</th>
                            <th></th>
                        </tr>
                    </thead>

                    <tbody>

                    </tbody>
                    <tfoot class="bg-warning text-dark">
                        <tr>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                        </tr>


                    </tfoot>
                </table>
            </div>
        </div>
    </div>



</div>
<div class="modal fade" id="modalChangeProm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header text-center bg-warning">
                <h4 class="modal-title w-100 font-weight-bold text-black">Actualizar Items</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true" class="text-white">X</span>
                </button>
            </div>
            <form action="#" class="login-form" method="POST" id="formChangeProm" name="formChangeProm">

                <div class="modal-body mx-2">
                    <div class="md-form mb-3">
                        <label data-error="wrong" data-success="right" for="">Codigo Linea</label>
                        <input type="text" id="changeCodLinea" class="form-control validate" autocomplete="off
                        " required>
                        <label data-error="wrong" data-success="right" for="">Codigo Item</label>
                        <input type="text" id="changeCodItem" class="form-control " autocomplete="off
                        " required>
                        <label data-error="wrong" data-success="right" for="">Nombre Item</label>
                        <input type="text" id="changeNomItem" class="form-control " autocomplete="off
                        " required>
                        <label data-error="wrong" data-success="right" for="">Peso Promedio</label>
                        <input type="text" id="changePesoProm" class="form-control " autocomplete="off
                        " required>
                        <label data-error="wrong" data-success="right" for="">Peso Minimo</label>
                        <input type="text" id="changePesoMin" class="form-control " autocomplete="off
                        " required>
                        <label data-error="wrong" data-success="right" for="">Peso Maximo</label>
                        <input type="text" id="changePesoMax" class="form-control " autocomplete="off
                        " required>
                        <input type="submit" id="submitChangeItem" name="submitChangeItem"
                            class="form-control btn btn-success mt-4" value="ACTUALIZAR">

                    </div>


                </div>

            </form>
        </div>
    </div>
</div>
<!-- /.container-fluid -->
<?php
require_once "inferior.php"
?>