示例#1
0
 public function asignarInasistenciasMovil()
 {
     try {
         $this->vista->set('titulo', 'Actualizar Inasistencias');
         $periodo = isset($_POST['periodo']) ? $_POST['periodo'] : NULL;
         $idSalon = isset($_POST['salon']) ? $_POST['salon'] : NULL;
         $idMateria = isset($_POST['materia']) ? $_POST['materia'] : NULL;
         $materia = new Materia();
         $materias = $materia->leerMateriaPorId($idMateria);
         foreach ($materias as $mats) {
             $mat = $mats;
         }
         $docente = new Docente();
         $resultado = $docente->crearConsulta2($idSalon, $idMateria);
         $this->vista->set('periodo', $periodo);
         $this->vista->set('idSalon', $idSalon);
         $this->vista->set('materia', $mat);
         $this->vista->set('resultado', $resultado);
         return $this->vista->imprimir();
     } catch (Exception $exc) {
         echo $exc->getTraceAsString();
     }
 }