File "MENUP.PHP.bak"

Full Path: C:/wamp64/www/APPSST/Admin/dotacion/MENUP.PHP.bak
File size: 12.48 KB
MIME-type: text/x-php
Charset: utf-8

<?PHP
session_start();
header("Cache-control: private"); // Arregla IE 6

//*******Datos de Conexion Base de Datos************
include("../../bd/conexion.php");
/* $result = $conexion->query("DELETE FROM `entregaspp` WHERE `ENTREGA`IS NULL"); */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <style>
    .img-fluid {
      border-radius: 25px;
      padding: 10px;
    }

    .btn.btn-outline-danger.btn-lg {
      color: rgb(255 138 55);
      border-color: #000000;
      border-radius: 25px !important;
      width: 100%;
      margin-top: 5px;
      margin-bottom: 5px;
      padding: 20px;

    }

    .btn.btn-outline-danger.btn-lg:hover,
    .btn.btn-outline-danger.btn-lg:focus {
        background-color: #f0f0f0; /* Color de fondo gris muy claro */
        color: rgb(255, 138, 55); /* Asegura que el color del texto no cambie */
        border-color: #000000; /* Asegura que el color del borde no cambie */
    }

    #headNewUser1 {
    background-color: rgb(255, 138, 55); /* Color de fondo */
    color: #fff; /* Color del texto para asegurar la legibilidad */
    }
  </style>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  <title>CONTROL EPP</title>
  <link rel="icon" type="image/png" href="../../img/icono.png"><!-- Cambia el icono de los titulos en las pestañas ico 16X16 -->
  <link rel="shortcut icon" href="./varios.jpg" />
  <link rel="stylesheet" type="text/css" href="../../css/menup.css">
  <link rel="stylesheet" type="text/css" href="../../css/login.css">
  <link rel="stylesheet" type="text/css" href="../../css/registro.css">

  <style type="text/css">
    @font-face {
      font-family: Roboto;
      src: url("chrome-extension://mcgbeeipkmelnpldkobichboakdfaeon/css/Roboto-Regular.ttf");
    }

    .modal-content {
        width: auto; /* Ajusta el ancho según sea necesario */
    }

  </style>
</head>

<body cz-shortcut-listen="true" class="" style="height: 100vh;background-image: linear-gradient(to right, #e2e2e2, #ffe5c9);">
  <div class="wrapper" style="display: flex;align-items: center;flex-direction: column;justify-content: center;width: 100%;min-height: 100%;padding: 20px;background-repeat: no-repeat;background-position: top center;">
    <div class="container" style="border-radius: 20px 20px 20px 20px;background: #fff;width: 100%;max-width: 750px;padding: 60px;box-shadow: 0px 10px 20px 10px rgb(0 0 0 / 10%);text-align: center;">
      <div class="row text-center justify-content-center">
        <div class="col-md-12 col-lg-8" style="margin-bottom: 20px;">
          <img src="../../img/avicampo.jpeg" class="img-fluid">
        </div>
        <div class="col-md-12">
          <h3>ENTREGA DE ELEMENTOS DE EPP</h3>
		  <h3 style ='color: black'>PANEL ADMINISTRADOR </h3>
        </div>
        <div class="col-md-12">
          <hr style=" color: black;background-color: #a21e24;">
        </div>
      </div>
      <div class="row text-center justify-content-center">
        <!-- crear nuevo registro-->
        <div class="col-md-3">
          <a href="select_epp.php" class="btn btn-outline-danger btn-lg" title="Crear Nuevo Registro">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="images/masemplado.jpg" /> -->
            <i class="fa-solid fa-user-plus fa-3x"></i>
          </a>
        </div>
		<!-- Pendientes Devolutivos-->
        <div class="col-md-3">
          <a href="../devolutivo/devolutivo.php" class="btn btn-outline-danger btn-lg" title="Pendientes Devolutivos">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="images/masemplado.jpg" /> -->
            <i class="fas fa-tshirt fa-3x"></i>
          </a>
        </div>
		
      <!-- firma entrga dot-->
        <div class="col-md-3">
          <a href="../firmadot/ENTREFIRMA.PHP" class="btn btn-outline-danger btn-lg" title="Firmar Entrega de Dotacion">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="VEOP.png" /> -->
            <i class="fa-solid fa-signature fa-3x" aria-hidden="true"></i>
          </a>
        </div>
      <!-- consulta entrega de dotacion-->
        <div class="col-md-3">
          <a href="../fconsuldota/CONSUEPP.PHP" class="btn btn-outline-danger btn-lg" title="Consulta Entrega de Dotacion">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="VEOP.png" /> -->
            <i class="fa fa-search-plus fa-3x" aria-hidden="true"></i>
          </a>
        </div>

        <!-- <div class="col-md-4">
          <a href="CONSUEPPen.PHP" class="btn btn-outline-danger btn-lg" title="Existencias">
            
            <i class="fa fa-cloud-download fa-3x" aria-hidden="true"></i>

          </a>
        </div> -->
        <!-- inventario -->
        <div class="col-md-3">
          <a href="../inventario/DOTIN.PHP" class="btn btn-outline-danger btn-lg" title="Entradas al Inventario">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="entradas.png" /> -->
            <i class="fa fa-archive fa-3x" aria-hidden="true"></i>
          </a>
        </div>

        <!-- consul inventario -->
        <div class="col-md-3">
          <a href="../invenconsul/consul.php" class="btn btn-outline-danger btn-lg" title="Consultar Inventario">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="entradas.png" /> -->
            <i class="fa-solid fa-list-check fa-3x"></i>
          </a>
        </div>

        <div class="col-md-3">
          <button type="button" name="btnXLS" id="btnXLS" class="btn btn-outline-danger btn-lg" data-toggle="modal" data-target="#modalSolicitarXls" title="Entrega de Dotacion">
            <!-- <a href="ENTREGAS.PHP" class="btn btn-outline-danger btn-lg" title="Relacion de entregas"></a> -->
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="images/entregas.png" /> -->
            <i class="fas fa-file-excel fa-3x"></i>
          </button>

		
        </div>
		
		<!-- crear nuevo Usuario-->
        <div class="col-md-3">
          <a href="../../login/crearUsuario.html" class="btn btn-outline-danger btn-lg" title="Crear Nuevo Usuario">
            <!-- <img style="width:200px; height:150px ;" class="img-fluid" src="images/masemplado.jpg" /> -->
            <i class="fa-solid fa-user-pen fa-3x"></i>
          </a>
        </div>
		<!-- Visualizar Stock-->
        <div class="col-md-3">
          <a href="stock.php" class="btn btn-outline-danger btn-lg" title="Stock">  
            <i class="fa-solid fa-bullhorn fa-3x">‌</i>
          </a>

        </div>
		<!-- Boton Matriz-->
        <div class="col-md-3">
          <a href="../../matriz/descarga.php" class="btn btn-outline-danger btn-lg" title="Matriz De EPP">  
            <i class="fa-solid fa-download fa-3x"></i>
          </a>

        </div>
		
      </div>

      <div class="row text-center justify-content-center">
        <div class="col-md-12">

          <hr style=" color: black;background-color: #a21e24;">


        </div>
      </div>


    </div>
  </div>


  <!-- Formulario modal para la solicitud de excel de reportes -->
  <!-------------------------------------- MODAL -------------------------------------->
  <div class="modal fade" id="modalSolicitarXls" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" style="display: none;" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
      <div class="modal-content" id="contNewUser">
        <div class="modal-header bg-success text-light" id="headNewUser">
          <h5 class="modal-title" id="staticBackdropLabel">SOLICITUD REPORTE EN EXCEL</h5>
        </div>
        <div class="modal-body" id="modalNewUser">
          <form action="../excel/ENTREGAS.PHP" method="POST" id="formXls">
            <div class="form-group">
              <label for="fechaXls1">FECHAS REPORTE EXCEL </label>
              <small class="text-muted"><br>Ingrese el rango de fechas o la cedula del empleado para obtener el reporte de dotacion</small><br><br>
              <strong>Cedula del Empleado</strong>
              <input type="text" name="cedula" id="cedula" class="form-control input-spacing">
              <strong>Fecha Inicial</strong>
              <input autocomplete="off" class="form-control form-control-lg" type="date" name="fechaXls1" id="fechaXls1" placeholder="Ingrese la fecha inicio" formMethod="post">
              <strong>Fecha Final</strong>
              <input autocomplete="off" class="form-control form-control-lg mt-2" type="date" name="fechaXls2" id="fechaXls2" placeholder="Ingrese la fecha fin" formMethod="post">
            </div>

        </div>
        <div class="modal-footer" id="footerNewUser">
          <button type="button" class="btn btn-primary mb-3" data-dismiss="modal">
            <i class="fa fa-reply-all" aria-hidden="true"></i>
            CANCELAR
          </button>
          <button type="submit" name="submitXls" id="submitXls" class="btn btn-success mb-3">
            <i class="fas fa-tshirt "></i>
            SOLICITAR DOTACION
          </button>
          </form>
        </div>
      </div>
    </div>
  </div>
  <?php
 
// // Para habilitar el modal de Consulta para obtener las prendas cuyo stock (CANTIDAD) es menor o igual a 20 elimina los //

// $consultaPrendasBajoStock = "SELECT DESCRIPCION, CANTIDAD FROM inventario WHERE CANTIDAD <= 20";
// $resultadoPrendasBajoStock = $conexion->query($consultaPrendasBajoStock);

// if ($resultadoPrendasBajoStock && $resultadoPrendasBajoStock->num_rows > 0) {
// ?>
<!--
<script>
    $(document).ready(function() {
        swal({
            title: "¡Cuidado!",
            type: "warning",
            confirmButtonText: "Entendido",
            html: `<ul class="list-group">
                    <h3>Las siguientes prendas están a punto de agotarse:</h3>
                    <?php
                    while ($prenda = $resultadoPrendasBajoStock->fetch_assoc()) {
                    ?>
                        <li class="list-group-item d-flex justify-content-between align-items-center">
                            <strong><?php echo $prenda['DESCRIPCION'] ?></strong>
                            <span class="badge bg-danger badge-lg rounded-pill text-light">
                                <strong><?php echo $prenda['CANTIDAD'] ?></strong>
                            </span>
                        </li>
                    <?php
                    }
                    ?>
                </ul>`
        });
    });
</script>
-->
<?php
// } else {
//     echo "";
// }

?>




  <!-- Ajax cdn -->
  <script src="https://unpkg.com/sweetalert2@7.19.3/dist/sweetalert2.all.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
  <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  <script>
    $('#btnDot').click(function() {
      $("#formDot").trigger("reset");
    })
    $('#btnDotUsado').click(function() {
      $("#formDotUsa").trigger("reset");
    })
    $('#btnXLS').click(function() {
      $("#formXls").trigger("reset");
    })
  </script>

</body>

</html>