<?php
include('../../../configuracion.php');
include('config.php');
?>
<?php $resultados = $db->results(TABLA,"*","","fecha desc");?>
<!doctype html>
<html class="fixed">
	<head>
		<?php include("../../inc/head.php")?>
		<!-- ESPACIO HEAD ADICIONALES -->

		<!-- FIN ESPACIO HEAD ADICIONALES -->
	</head>
	<body>
		<section class="body">
			<!-- start: header -->
			<?php include("../../inc/header.php")?>
			<!-- end: header -->
			<div class="inner-wrapper">
				<!-- start: sidebar -->
				<?php include("../../inc/side-left.php")?>
				<!-- end: sidebar -->
				
                    


				<div class="row">



<div class="col text-right">
	<a href="<?php echo MODULO?>/descargar-excel.php" target="_blank" class="btn btn-primary"><i class="fas fa-plus mr-3"></i>Descargar Excel</a>
</div>
</div>






					<!-- start: page -->
					<div class="row">
							<div class="col">
								<section class="card">
									<div class="card-body">
										
									
											<?php	if(count($resultados)){ ?>
											<table class="table table-bordered table-striped mb-none" id="datatable-default">
												<thead>
													<tr>
														<th>Visto</th>
														<th>Fecha</th>
														<th>E-mail</th>
														<th class="center">Acciones</th>
													</tr>
												</thead>
												<tbody>
													<?php foreach($resultados as $row){?>
													<tr class="gradeX ">
														<td class="center"><?php include("../../inc/visto.php")?></td>
														<td><?php echo funcion::nombre_dia($row->fecha); echo ', '; echo funcion::cambiar_fecha($row->fecha, 'D de F Y'); echo ' a las '; echo funcion::cambiar_fecha($row->fecha, 'H:i');?></td>
														<td><?php echo $row->email ?></td>
														<td class="center"><?php include("../../inc/ver.php")?></td>
													</tr>
													<?php }?>
													
												</tbody>
											</table>
											<?php }?>


									</div>
								</section>
							</div>
						</div>







		
					

		<!-- NO TOCAR -->
		<?php include("../../inc/side-right.php")?>
		<?php include("../../inc/bottom.php")?>
		<!-- NO TOCAR -->

		
		<!-- ESPACIO JS ADICIONALES -->

	

    </body>
</html>