| Server IP : 52.9.100.119 / Your IP : 216.73.216.135 Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5 System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64 User : root ( 0) PHP Version : 7.3.30 Disable Function : exec,passthru,shell_exec,system,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /data/html/baja_real_estate/ |
Upload File : |
<?php
session_start();
if(!isset($_SESSION['idUsuario'])) {
header("location:login.php");
exit();
}
include 'head.php';
require 'models/model_registro.php';
$registros = new Registros();
$result = $registros->verRegistros();
$total = $registros->totalRegistros()->fetch_assoc();
setlocale (LC_TIME, "es_ES", "esp_esp");
setlocale(LC_TIME, 'spanish');
?>
<div class="registros">
<div class="content">
<div class="row">
<div class="col">
<h2>Registros</h2>
</div>
<div class="col-auto">
<a href="logOut.php"><strong>Cerrar sesión</strong></a>
</div>
</div>
<table class="table table-bordered table-striped table-responsive-sm">
<thead>
<tr>
<th scope="col">Nombre</th>
<th scope="col">Correo</th>
<th scope="col">Teléfono</th>
<th scope="col">Fecha de registro</th>
</tr>
</thead>
<tbody>
<?php
if($total['total'] >= 1){
while($row = $result->fetch_assoc()){
?>
<tr>
<td><?php echo $row['nombre']." ".$row['apellido'];?></td>
<td><?php echo $row['correo'];?></td>
<td><?php echo $row['telefono'];?></td>
<td class="fecha"><?php echo strftime("%d, %B %Y", strtotime($row['fecha']));?></td>
</tr>
<?php
}
}
else{
?>
<tr>
<td colspan="4" class="text-center">Sin registros</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</body>
</html>