This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.php
69 lines (64 loc) · 2.47 KB
/
panel.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
<?php
session_start();
if(isset($_SESSION['loggedin'])){
?>
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Login</title>
<link rel="stylesheet" href="assets/css/tether.min.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="assets/css/listado.css">
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/tether.js"></script>
<script src="assets/js/vue.min.js"></script>
</head>
<body>
<?php
include_once('header.php');
include_once('./assets/config/db.php');
include_once('./assets/config/funciones.php');
$sql = "SELECT * FROM material WHERE borrado = 1";
$result = $conexion->query($sql);
echo '<div class="row"><div class="col-md-12"><H2 align="center">LISTADO DE MATERIAL</H2></div></div>';
while($row = $result->fetch_array())
{
echo '<div class="row">
<div class="col-md-12">
<table border=1>
<tr>
<td width="25px">'.$row['id'].'</td>
<td width="80px">'.$row['familia'].'</td>
<td width="100px">'.$row['codigo'].'</td>
<td width="150px">'.$row['modelo'].'</td>
<td width="10px">'.$row['version'].'</td>
<td width="250px">'.$row['numero_serie'].'</td>
<td width="100px">'.$row['fecha_compra'].'</td>
<td width="260px">'.$row['ruta_factura'].'</td>
<td width="15px">'.$row['activo'].'</td>
<td width="150px">'.$row['empresa'].'</td>
<td width="150px">'.$row['departamento'].'</td>
<td width="120px">'.$row['usuario'].'</td>
<td width="320px">'.$row['observaciones'].'</td>
</tr>
</table>
</div>
</div>';
}
/* cerrar el resultset */
$result->close();
?>
</body>
</html>
<?php
}else{
header('Location:logout.php');
}
?>