/
listado.php
130 lines (99 loc) · 3.39 KB
/
listado.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
125
126
127
128
129
<?php
require("cabecera.php");
require_once("inc/mysql.php");
if (isset($_SESSION['log_usu']['autenticado']) && $_SESSION['log_usu']['autenticado']) {
//$trabajando = "SELECT proyectos.codProyecto,CONCAT(notarios.nom_not,' ',notarios.mat_not,' ',notarios.pat_not) AS notario,proyectos.fechaInicio FROM proyectos INNER JOIN notarios ON proyectos.codNotario=notarios.cod_not WHERE proyectos.terminado=0";
//echo $trabajando;
//$trabajando = "SELECT codProyecto,codNotario,fechaInicio FROM proyectos WHERE terminado=0";
//$result1=mysqli($trabajando);
//$terminado = "SELECT proyectos.codProyecto,CONCAT(notarios.nom_not,' ',notarios.mat_not,' ',notarios.pat_not) AS notario,proyectos.fechaInicio FROM proyectos INNER JOIN notarios ON proyectos.codNotario=notarios.cod_not WHERE proyectos.terminado=1";
//$result2=mysqli($terminado);
//llamamos a la clase
include "Proyectos.php";
$proyectos = new Proyectos();
$abierto = $proyectos->ProyectoAbierto();
$cerrado = $proyectos->ProyectoCerrado();
}
else
{
header("Location:index.php");
}
require("menu.php");
?>
<div class="container">
<div class="row">
<div class="col-md-12">
<center><h3>Proyectos en Indexación</h3></center>
<table class="table table-striped table-bordered table-condensed" >
<thead>
<tr>
<th>Código de Proyecto</th>
<th>Notario</th>
<th>Fecha de Inicio</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<?php
$_SESSION['oPDF'] = array();
while ($lista1 = $abierto->fetch_assoc()) {
$_SESSION['oPDF'][] = $lista1;
?>
<tr>
<td><?php echo $lista1['codProyecto'];?></td>
<td><?php echo $lista1['notario'];?></td>
<td><?php echo $lista1['fechaInicio'];?></td>
<td>
<a href="ingresoIndice.php"><span class="glyphicon glyphicon-edit "></span>Continuar</a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
</tfoot>
</table>
<div class="btn-group" role="group" aria-label="...">
<a href="listado.imprimir.php" class="btn btn-default" target="_blank"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Imprimir Lista</a>
</div>
<center><h3>Proyectos Terminados</h3></center>
<table class="table table-striped table-bordered table-condensed" >
<thead>
<tr>
<th>Código de Proyecto</th>
<th>Notario</th>
<th>Fecha de Inicio</th>
<th>Fecha de Cierre</th>
</tr>
</thead>
<tbody>
<?php
$_SESSION['oPDF'] = array();
while ($lista2 = $cerrado->fetch_assoc()) {
$_SESSION['oPDF'][] = $lista2;
?>
<tr>
<td><?php echo $lista2['codProyecto'];?></td>
<td><?php echo $lista2['notario'];?></td>
<td><?php echo $lista2['fechaInicio'];?></td>
<td><?php echo $lista2['fechaInicio'];?></td>
<td>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
</tfoot>
</table>
<div class="btn-group" role="group" aria-label="...">
<a href="imprimirProyectosTerminados.php" class="btn btn-default" target="_blank"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Imprimir Lista</a>
</div>
</div>
</div>
</div>
<?php
require("pie.php");
?>