-
Notifications
You must be signed in to change notification settings - Fork 0
/
prueba.php
executable file
·124 lines (98 loc) · 4.41 KB
/
prueba.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Pruebas</title>
<link href="estilos.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
<script src="js/jquery-3.1.1.min.js"> </script>
<script src="js/jquery-ui-1.12.1/jquery-ui.js"></script>
<style type="text/css">
body {
background: url(images/fondo-web.jpg) no-repeat center center fixed;
}
</style>
</head>
<body style="margin:0px;padding:0px;">
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF" style="border-left:1px solid #f0050a;border-right:1px solid #f0050a;"><a href="menu.php"><img src="images/cabecera-gestor.png" alt="Gestion de partes" width="960" border="0" /></a></td>
</tr>
<tr>
<td class="bordeLateral">
<div class="menu_botones_arriba">
<div id="menu_botones_up">
<span class="icono-salir"><a href="salir.php">Cerrar</a></span>
<span class="icono-perfil"><a href="menu.php?action=admin-perfil">Settings</a></span>
<span class="icono-menu"><a href="menu.php">Menú</a></span>
<div style="float:left;" class="textosuperior">Bienvenido/a</div>
<div class="limpiar"></div>
</div>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="bordeLateral">
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
require("clase_base.php");
$base = new base('config.php');
//~ $base -> debug = True;
$base -> abcedario = False;
$base -> buscar = False;
$base -> tabla_imagen = "images/icono-almacen.png";
$base -> consulta = "SELECT almacenes.nombre,
articulos.referencia,
movimientos.id AS Seleccion,
accion AS 'Entrada/Salida',
(SELECT id FROM movimientos WHERE 1=1 GROUP BY 1 LIMIT 1) AS SUBcon,
cantidad AS Uds,
movimientos.fecha,
movimientos.id AS Eliminar
FROM movimientos INNER JOIN almacenes ON movimientos.id_almacen=almacenes.id
INNER JOIN articulos ON movimientos.id_articulo=articulos.id
WHERE 1=1
ORDER BY 1
";
$base -> where_activo = array('articulos.activo' => 1);
$buscar_ref = 1;
$dos = 2;
$tres = 3;
$base -> filtros = array($buscar_ref => 'periodo', $dos => 'checkboxes', $tres => 'fecha');
$base -> filtros_texto = array($buscar_ref => 'Fechas', $dos => 'Proveedores', $tres => 'Fecha: ');
$base -> filtros_consultas = array($dos => 'SELECT id, nombre FROM proveedores LIMIT 10');
$base -> filtros_where = array($buscar_ref => 'movimientos.fecha', $dos => 'movimientos.id_proveedor', $tres => 'movimientos.fecha');
$base -> filtros_boton_buscar = True;
$base -> migasdepan = 1;
$base -> migas = array('Menú' => 'menu.php', 'Listado Entradas/Salidas' => '');
$base -> tabla_titulo = "Almacen » Listado de Entradas/Salidas";
$base -> orden_predeterminado = array(4 => 'ASC');
$base -> ordenar = array(0 => 'DESC', 1 => 'DESC', 2 => 'DESC', 3 => 'DESC', 4 => 'DESC');
$base -> orden_anidado = 0;
$fecha = 'Fecha';
$eliminar = 'Eliminar';
$entrada = 'Entrada/Salida';
$seleccion = 'Seleccion';
$base -> columna = array($fecha => 'fecha', $eliminar => 'eliminar', $entrada => 'estado', $seleccion => 'select');
$base -> select_consulta = 'SELECT * FROM familias';
$base -> select_texto_defecto= 'Selecione..';
$base -> estados = array(0 => 'Entrada', 1 => 'Salida');
$base -> eliminar = 1;
$base -> eliminar_columna = 'id';
$base -> eliminar_tabla = 'movimientos';
$base -> eliminar_imagen = 'images/icono-eliminar.png';
$base -> fecha_formato_entrada = 'Y-m-d H:i:s';
$base -> fecha_formato_salida = 'd/m/Y \a \l\a\s H:i';
$base -> enlace_nueva_ventana = array($eliminar => false);
$base -> menu = True;
$base -> menu_url = array(1 => 'menu.php?action=admin-movimientos-gestion&entrada', 2 => 'menu.php?action=admin-movimientos-gestion&salida');
$base -> menu_imagen = array(1 => "images/boton-entrada.png", 2 => "images/boton-salida.png");
$base -> mostrar_total_registros = 1;
$base -> pagesize = 50;
$base -> footer = 1;
$base -> radio_inferior = False;
$base -> tabla();
?>
</body>
</html>