/**
  * Función que regresa la relación que existe en un participante con los eventos anteriores a partir del día actual menos 3 y todas las fechas anteriores
  * @param  [type] $id_participante [description]
  * @return [type]                  [description]
  */
 function getEventosParticipantes($id_participante)
 {
     $cLibreria = new cLibreria();
     $fecha_fin = $cLibreria->getFechaActual();
     $fecha_fin = $cLibreria->getLessDay(3);
     $sql = "select e.nombre_evento,e.tipo_evento,e.ciudad,e.fecha_evento,e.fecha_evento_fin,e.sitio_web,e.constancia,pv.material from participantes_eventos as pv, participantes as p, eventos as e where pv.id_participante=p.id_participante and pv.id_evento=e.id_evento and pv.id_participante={$id_participante} and e.fecha_evento < '{$fecha_fin}';";
     // echo $sql;
     $result = $this->find($sql);
     return $result;
 }
<?php

session_start();
if (empty($_SESSION["nombre"])) {
    header("Location: ../");
}
include_once '../controller/cSistema.php';
$cSistema = new cSistema();
include_once '../controller/cLibreria.php';
$cLibreria = new cLibreria();
$txtFecha_inicio = $cLibreria->getMenosDia(30);
$txtFecha_fin = $cLibreria->getFechaActual();
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>Temposati</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
	<meta content="" name="description"/>
	<meta content="" name="author"/>
	<!-- BEGIN PACE PLUGIN FILES -->
	<script src="../assets/global/plugins/pace/pace.min.js" type="text/javascript"></script>
	<!-- <link href="../assets/global/plugins/pace/themes/pace-theme-flash.css" rel="stylesheet" type="text/css"/> -->
	<link href="../assets/global/plugins/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" type="text/css"/>
 function reporteAccesos()
 {
     $filescripts = array("reporteAccesos.js");
     $pag_title = "TABLERO ADMIN - CIEFT";
     $active = 10;
     $cLibreria = new cLibreria();
     $txtFechaInicio = $cLibreria->getMenosDia(7);
     $txtFechaFin = $cLibreria->getFechaActual();
     include 'view/head.php';
     include 'view/reporteAccesos.php';
     include 'view/footer.php';
 }