tieneAcceso()){ $objSesion->terminaSesion(); } $objSesion->validaPeriodoUsuario();//si no tiene periodo manda a main $stmt = $pdo->prepare('Select * from fs_grupo(NULL, :periodo)'); $stmt->bindParam(":periodo", $_SESSION["periodo_id"]); if(!$stmt->execute()){ header("Location: grupos.php?error=4"); exit(); }else{ $grupos_rs = $stmt->fetchAll(); } $stmt->closeCursor(); //Obtiene fechas de periodo $stmt = $pdo->prepare('Select * from fs_periodo(:periodo, NULL, NULL, true)'); $stmt->bindParam(":periodo", $_SESSION["periodo_id"]); if(!$stmt->execute()){ $errorDesc = "Ocurrió un error al cargar las fechas del periodo"; }else{ $periodo_rs = $stmt->fetch(); } $stmt->closeCursor(); $stmt = null; $fecha_ini = date('Y-m-d', strtotime($periodo_rs["Periodo_fecha_final"].' -10 days')) ; //$fecha_fin = $periodo_rs["Periodo_fecha_final"]; ?>