-
Notifications
You must be signed in to change notification settings - Fork 0
/
reporte_comisiones.php
69 lines (66 loc) · 2.51 KB
/
reporte_comisiones.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
require_once('globales_sistema.php');
if (!isset($_COOKIE['nombre_usuario'])) {
header('Location: index.php');
}
$titulo_pagina = 'Reporte Comisiones';
$titulo_sistema = 'Mamut Peru';
require_once('recursos/componentes/header.php');
?>
</form>
<hr/>
<?php
include_once('nucleo/comisiones.php');
$obj = new comisiones();
$objs = $obj->listDB();
include_once('nucleo/turno.php');
include_once('nucleo/conductor.php');
include_once('nucleo/supervisor.php');
?>
<div class='contenedor-tabla'>
<table id='tb' class='display' cellspacing='0' width='100%'>
<thead>
<tr>
<th>Id</th>
<th>Fecha</th>
<th>Turno</th>
<th>Conductor</th>
<th>Vueltas Por Comision</th>
<th>Monto</th>
<th>Motivo</th>
<th>Supervisor</th>
</tr>
</thead>
<tbody>
<?php
if (is_array($objs)):
foreach ($objs as $o):
?>
<tr><td><?php echo $o['id']; ?></td><td><?php echo $o['fecha']; ?></td><td>
<?php
$objturno = new turno();
$objturno->setVar('id', $o['id_turno']);
$objturno->getDB();
echo $objturno->getVar($gl_comisiones_id_turno);
?></td><td>
<?php
$objconductor = new conductor();
$objconductor->setVar('id', $o['id_conductor']);
$objconductor->getDB();
echo $objconductor->getNombres()." ".$objconductor->getApellidos();
?></td><td><?php echo $o['vueltas_por_comision']; ?></td><td><?php echo $o['monto']; ?></td><td><?php echo $o['motivo']; ?></td><td>
<?php
$objsupervisor = new supervisor();
$objsupervisor->setVar('id', $o['id_supervisor']);
$objsupervisor->getDB();
echo $objsupervisor->getNombres()." ".$objsupervisor->getApellidos();
?></td>
</tr>
<?php
endforeach;
endif;
?>
<?php
$nombre_tabla = 'comisiones';
require_once('recursos/componentes/footer.php');
?>