File "RegistrosAudi1.php"
Full Path: C:/wamp64/www/INVENTAPP/RegistrosAudi1.php
File size: 3.8 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("conexion.php");
$FECHA = date("Y-m-d");
$USUARIO=$_SESSION['nomUser'];
$UBICACION=$_SESSION['ubicacion'];
$USUARIOA=$USUARIO."A";
$TKILOS = 0;
$TUNI = 0;
$TCANASTAS = 0;
$TBULTOS = 0;
$TCAJAS = 0;
$TBASES = 0;
$N = 0;
$D1 = "";
$D2 = "";
$D3 = "";
//***A TODAS LAS UBICACIONES
//AAA => Consulta todas las ubicaciones todos los codigos y todos los planilladores
//ABA => Consulta todas las ubicaciones segĂșn el producto
//AAB => Consulta todas las ubicaciones todos los productos segun digitador
//BAA => Consulta todas una ubicacion especial con todos los codigos y planilladores
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Acta de Registros Inventarios</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.container {
width: 100%;
max-width: 800px;
margin: auto;
padding: 20px;
box-sizing: border-box;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #000;
padding: 8px;
text-align: center;
}
th {
background-color: #ffcc99; /* Light orange */
color: #663300; /* Dark brown */
}
td {
background-color: #fff2e6; /* Very light orange */
}
.header {
background-color: #ffcc99; /* Light orange */
}
.totals {
background-color: #ffcc99; /* Light orange */
}
.data {
background-color: #ffebcc; /* Lighter orange */
}
canvas {
border: 1px solid #000;
width: 100%;
}
.textbox {
width: 100%;
padding: 5px;
box-sizing: border-box;
}
.vertical-fields {
margin-bottom: 20px;
}
.logo {
text-align: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="logo.png" alt="avicampo Logo" width="200">
</div>
<form method="post" action="process_form.php">
<center>
<p><strong>Acta de Control de Registros Inventario General AVICAMPO PEREIRA</strong></p>
<p>Fecha: <?php echo $FECHA; ?></p>
<div class="vertical-fields">
<p> <td width="121"><label for="CON"><strong>
<select name="CON" id="CON">
<?PHP
$tabla = $conexion->query("SELECT * FROM documento ; ");
while ($row_consulta_form = $tabla->fetch_array()) {
$NOMBREP = $row_consulta_form['dcto'];
echo '<option value="'.$NOMBREP.'">'.$NOMBREP;'</option>';
}
?>
</select>
</strong></label></p>
</div>
<p> </p>
<p> </p>
</center>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/signature_pad@2.3.2/dist/signature_pad.min.js"></script>
<script>
var canvas = document.getElementById('signatureCanvas');
var signaturePad = new SignaturePad(canvas, {
backgroundColor: 'rgba(255, 255, 255, 0)',
penColor: 'black'
});
function resizeCanvas() {
var ratio = Math.max(window.devicePixelRatio || 1, 1);
canvas.width = canvas.offsetWidth * ratio;
canvas.height = canvas.offsetHeight * ratio;
canvas.getContext('2d').scale(ratio, ratio);
signaturePad.clear(); // otherwise isEmpty() might return incorrect value
}
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
function clearCanvas() {
signaturePad.clear();
document.getElementById('signature').value = '';
}
canvas.addEventListener('mouseup', function() {
document.getElementById('signature').value = signaturePad.toDataURL();
});
</script>
</body>
</html>