Con insignias: 0
Sin insignias: 0
Total: 0
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(); } ?>
Con insignias: 0
Sin insignias: 0
Total: 0