tieneAcceso()) { $objSesion->terminaSesion(); } $objSesion->validaPeriodoUsuario(); //si no tiene periodo manda a main if (!$objSesion->puedeEditar()) { header("Location: main.php?error=3"); exit(); } //Obtiene plan de estudios $stmt = $pdo->prepare('SELECT * from fs_planestudio(:nivel, NULL, NULL, true, NULL, NULL) WHERE "Carrera_esComun" IS NOT true'); $stmt->bindParam(":nivel", $_SESSION["nivel_id"]); if (!$stmt->execute()) { print_r($stmt->errorInfo()); $errorDesc = "Ocurrió un error al cargar los planes de estudios"; } else $plan_rs = $stmt->fetchAll(); $stmt->closeCursor(); $stmt = null; if (count($plan_rs) == 0) { header("Location: planestudios.php?error=4"); exit(); } //Obtiene carrera $stmt = $pdo->prepare('SELECT * from fs_carrera(NULL, :nivel, false)'); $stmt->bindParam(":nivel", $_SESSION["nivel_id"]); if (!$stmt->execute()) { print_r($stmt->errorInfo()); $errorDesc = "Ocurrió un error al cargar los planes de estudios"; } else $carrera_rs = $stmt->fetchAll(); $stmt->closeCursor(); $stmt = null; if (count($plan_rs) == 0) { header("Location: planestudios.php?error=4"); exit(); } ?> GEMA - Facultad de Ingeniería
printMenu(); //--Manejo de errores y mensajes de exito if (isset($_GET["error"]) && is_numeric($_GET["error"])) { switch ($_GET["error"]) { case 0: $errorDesc = "No se reciberon los datos para generar la insignia."; break; case 1: $errorDesc = "No tienes permiso de realizar esta acción."; break; case 3: $errorDesc = "Ningún alumno seleccionado tiene insignias."; break; } } ?>

Busca los alumnos a los que desees generar su reporte de insignias.

Debes agregar al menos 1 alumno

Con insignias: 0

Sin insignias: 0

Total: 0