-
Notifications
You must be signed in to change notification settings - Fork 0
/
consultar_salidas.php
81 lines (66 loc) · 2.58 KB
/
consultar_salidas.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
require_once("conexion.php");
session_start();
if($_SESSION['usuario'] == null || $_SESSION['usuario'] == ''){
header("location: index.php");
}
$query_get_salidas = "SELECT id_salida,nombre_almacen,nombre_producto,cantidad,fecha,hora
FROM salidas
INNER JOIN almacenes a ON a.id_almacen = salidas.id_almacen
INNER JOIN productos p ON p.id_producto = salidas.id_producto
ORDER BY id_salida";
$resultado_get_salidas = mysqli_query($conn,$query_get_salidas);
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Consultar salidas</title>
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="css/estilos_login.css">
</head>
<body>
<!--TITULAR-->
<div class="jumbotron mb-0 p-4" >
<a href="index.php">Cerrar sesion</a>
<p> <?php echo "Usuario: " . $_SESSION['usuario'] ?> </p>
<h1 class="text-center">Consultar salidas</h1>
</div>
<!--NAVEGACION-->
<?php require_once("navegacion.php"); ?>
<div class="container">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr>
<th scope="col">Id salida</th>
<th scope="col">Almacen</th>
<th scope="col">Producto</th>
<th scope="col">Cantidad</th>
<th scope="col">Fecha</th>
<th scope="col">Hora</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($resultado_get_salidas)){ ?>
<tr>
<th scope="row"> <?php echo $row[0]; ?> </th>
<th scope="row"><?php echo $row[1]; ?></th>
<th scope="row"><?php echo $row[2]; ?></th>
<td><?php echo $row[3]; ?></td>
<td><?php echo $row[4]; ?></td>
<td><?php echo $row[5]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<!--SCRIPTS DE JAVASCRIPT DE BOOTSTRAP-->
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>