File "AGREGAR.PHP-20260419143005.bak"
Full Path: C:/wamp64/www/APPSST/inventario/AGREGAR.PHP-20260419143005.bak
File size: 8.63 KB
MIME-type: text/x-php
Charset: utf-8
<?PHP
session_start();
header("Cache-control: private"); // Arregla IE 6
include("../bd/conexion.php");
require_once('insertar.php');
?>
<!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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css">
<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>Elemento PP</title>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js" integrity="sha512-2ImtlRlf2VVmiGZsjm9bEyhjGW4dU7B6TNwh/hx/iSByxNENtj3WVE6o/9Lj4TJeVXPi4bnOIMXFIJJAeufa0A==" crossorigin="anonymous" referrerpolicy="no-referrer"></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="shortcut icon" href="./agrego.png">
<link rel="stylesheet" type="text/css" href="../css/login.css">
<link rel="stylesheet" type="text/css" href="../css/registro.css">
</head>
<style>
/* Diseño base */
form {
width: 973px; /* Ancho fijo para pantallas grandes, como en el diseño original */
padding: 20px; /* Espaciado interno */
background: white; /* Fondo blanco para mantener diseño */
border-radius: 25px; /* Bordes redondeados */
box-shadow: 0px 10px 20px 10px rgb(0 0 0 / 10%); /* Sombra suave */
margin: auto; /* Centrado horizontal */
}
/* Tabla del formulario */
table {
width: 100%; /* La tabla ocupa todo el ancho del formulario */
border-spacing: 0; /* Elimina espacios entre celdas */
}
/* Estilo de celdas */
table td {
padding: 10px; /* Espaciado interno de las celdas */
vertical-align: top; /* Alineación superior para texto */
}
table td strong {
display: block; /* Etiquetas como bloques */
margin-bottom: 5px; /* Espaciado inferior */
}
/* Campos de entrada y select */
input[type="text"],
input[type="date"],
select {
width: 100%; /* Campos ocupan todo el ancho disponible */
padding: 10px; /* Espaciado interno */
font-size: 16px; /* Texto legible */
border: 1px solid #ccc; /* Borde ligero */
border-radius: 5px; /* Bordes redondeados */
box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
}
/* Botones */
input[type="submit"],
a.btn {
padding: 10px 20px; /* Espaciado interno */
margin: 10px 5px; /* Espaciado entre botones */
text-align: center; /* Texto centrado */
display: inline-block; /* Evita que los botones ocupen todo el ancho */
}
/* Responsividad para pantallas medianas (tablets y móviles grandes) */
@media (max-width: 992px) {
form {
width: 80%; /* Reduce el ancho a 80% del contenedor */
margin: auto; /* Centrado horizontal */
}
}
/* Responsividad para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
form {
width: 90%; /* Ocupa el 90% del ancho en pantallas pequeñas */
padding: 15px; /* Reduce el espaciado */
}
table td {
padding: 8px 0; /* Menor espaciado en celdas */
}
input[type="text"],
input[type="date"],
select {
font-size: 14px; /* Texto más pequeño */
}
}
/* Responsividad para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
form {
width: 95%; /* Ajuste a casi todo el ancho de la pantalla */
padding: 10px; /* Menor espaciado */
}
input[type="text"],
input[type="date"],
select {
font-size: 12px; /* Texto aún más pequeño */
}
input[type="submit"],
a.btn {
padding: 8px 10px; /* Botones más compactos */
font-size: 14px; /* Texto en botones más pequeño */
}
}
</style>
<body style="height: 100vh;background-image: linear-gradient(to right, #e2e2e2, #ffe5c9);">
<div 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; ">
<form class="form-horizontal" method="post" style="background: white;border-radius: 25px; box-shadow: 0px 10px 20px 10px rgb(0 0 0 / 10%);">
<center>
<table width="973" height="489" cellspacing="0">
<tbody>
<tr>
<td height="487">
<p>
<center>
<p>
<strong>
<font color="coral">REGISTRO PRENDAS</font>
</strong>
</p>
<hr>
<table width="700" height="171" border="0">
<tbody>
<tr>
<td width="99" height="40"><strong>Codigo :</strong></td>
<td width="256"><label for="textfield" required="required"></label>
<input type="text" autocomplete="off" name="codigo" class="form-control ">
</td>
</tr>
<tr>
<td height="42"><strong>Nombres prenda</strong></td>
<td><input type="text" style="text-transform:uppercase;" autocomplete="off" name="prenda" class="form-control"></td>
</tr>
</tbody>
</table>
<br>
<p>
<strong>
<input type="submit" name="guardar" id="CONFIRMAR" value="GUARDAR" class="btn btn-orange btn-lg">
<a class="btn btn-red btn-lg" href="DOTIN.PHP">
<i class="fa fa-reply-all mr-2" aria-hidden="true"></i></i>ATRAS
</a>
<a class="btn btn-red " href="eliminarEPP.php">ELIMINAR EPP</a>
</strong>
</p>
</center>
<p></p>
<p> </p>
</td>
</tr>
</tbody>
</table>
</center>
<script>
$(document).ready(function() {
$('#ccosto,#cargo,#tallaPant,#tallaCami,#tallaBot').select2({
autowidth: 'false',
width: '100%',
height: '100px'
})
})
</script>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 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 src="../js/fecha.js"></script>
</form>
</div>
</body>
</html>