-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliente-listado.php
More file actions
48 lines (43 loc) · 1.61 KB
/
Copy pathcliente-listado.php
File metadata and controls
48 lines (43 loc) · 1.61 KB
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
<?php
include_once "config.php";
include_once "entidades/cliente.php";
$pg = "Listado de clientes";
$aClientes = Cliente::obtenerTodos();
include_once("header.php");
?>
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800">Listado de clientes</h1>
<div class="row">
<div class="col-12 mb-3">
<a href="cliente-formulario.php" class="btn btn-primary mr-2">Nuevo</a>
</div>
</div>
<table class="table table-hover border">
<tr>
<th>CUIT</th>
<th>Nombre</th>
<th>Fecha nac.</th>
<th>Teléfono</th>
<th>Correo</th>
<th>Acciones</th>
</tr>
<?php foreach ($aClientes as $cliente): ?>
<tr>
<td><?php echo $cliente->cuit; ?></td>
<td><?php echo $cliente->nombre; ?></td>
<td><?php echo date_format(date_create($cliente->fecha_nac), "d/m/Y"); ?></td>
<td><?php echo $cliente->telefono; ?></td>
<td><?php echo $cliente->correo; ?></td>
<td style="width: 110px;">
<a href="cliente-formulario.php?id=<?php echo $cliente->idcliente; ?>"><i class="fas fa-search"></i></a>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<?php include_once("footer.php"); ?>