<div class='tHoja'> <header id='hContainer'> <div class='lContainer'><img src='img/lReporte.png'></div> <div class='rContainer'> <span><?php gHeader($idUsuario); ?> </span> <hr class='infSep'> </div> </header> <main id='pMain'> <h2>Reporte de asistencia</h2> <?php if (isset($fIni)) { gRango($fIni, $fFin); } ?> <table id='tAsistencia'> <thead> <tr> <th></th> <th>No</th> <th>Nombre</th> <th>Fecha</th> <th>Hora</th> <th>Descuento</th> </tr> </thead> <tbody> <?php
function reporteMen($idUsuario) { $fIni = date('Y-m-d', strtotime('-1month', strtotime(date('Y-m-01')))); $anio = substr($fIni, 0, 4); $mes = substr($fIni, 5, 2); $dia = date("d", mktime(0, 0, 0, $mes + 1, 1, $anio) - 1); $fFin = date("{$anio}-{$mes}-{$dia}"); gRango($fIni, $fFin); $cPag = gTReporte($fIni, $fFin, $idUsuario); return $cPag; }