-
Notifications
You must be signed in to change notification settings - Fork 0
/
almacenes.php
74 lines (60 loc) · 2.2 KB
/
almacenes.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
<?php
require_once("conexion.php");
session_start();
if($_SESSION['usuario'] == null || $_SESSION['usuario'] == ''){
header("location: index.php");
}
$query_get_almacenes = "SELECT * FROM almacenes";
$resultado_get_almacenes = mysqli_query($conn,$query_get_almacenes);
?>
<!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 almacenes</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 almacenes</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</th>
<th scope="col">Almacen</th>
<th scope="col">Estado</th>
<th scope="col">Ciudad</th>
<th scope="col">Codigo postal</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_array($resultado_get_almacenes)){ ?>
<tr>
<th scope="row"> <?php echo $row[0]; ?> </th>
<td><?php echo $row[1]; ?></td>
<td><?php echo $row[2]; ?></td>
<td><?php echo $row[3]; ?></td>
<td><?php echo $row[4]; ?></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>