Ejemplo n.º 1
0
$alumno = new alumno();
$asistencia = new asistencia();
$curso = new curso();
extract($_GET);
$FechaInicio = fecha2Str($FechaInicio, 0);
$FechaFin = fecha2Str($FechaFin, 0);
$where = "";
if ($CodCurso != "Todo") {
    $where .= " CodCurso={$CodCurso}";
    if ($CodAlumno != "") {
        $where .= " and CodAlumno={$CodAlumno}";
    }
}
//echo $where;
$Cod = array();
foreach ($alumno->mostrarDatosAlumnosCursoWhere($where) as $al) {
    array_push($Cod, $al['CodAlumno']);
}
$Cod = implode(",", $Cod);
//echo $Cod;
$where = "CodAlumno IN({$Cod})";
if ($TipoObservacion != "Todos") {
    $where .= " and Tipo='{$TipoObservacion}'";
}
$where .= " and (Fecha BETWEEN  '{$FechaInicio}' AND  '{$FechaFin}')";
//echo $where;
$asis = $asistencia->mostrarAsistenciaWhere($where);
if (!count($asis)) {
    ?>
    <div class="alert alert-info"><?php 
    echo $idioma['NoHayResultados'];