include_once "../class/class_curso.php"; include_once "../class/class_ramo.php"; include_once '../class/class_personas.php'; include_once '../PHPCriteria/Criteria.php'; include_once '../PHPCriteria/criterion/Restrictions.php'; $criteria = new Criteria(); validarAcceso(AuthUser::TIPO_UTP, "../"); /*********************************** Librería para los templates ***********************************/ require "../smartyLib/Smarty.class.php"; $smarty = new Smarty(); smartyTemplate($smarty, "../"); $class_ramo = new ramo(); $areas = $class_ramo->obtenerAreas(); $tipos = $class_ramo->obtenerTipos(); $class_personas = new Personas(); $curso = $_GET["curso"]; $colegio_ID = $_SESSION["colegio"]->colegio_ID; $mostrac_curso = ""; if (str_word_count($curso) == 0) { $smarty->assign("error", "Debe tener seleccionado un curso"); } else { $mostrar_curso = mostrar_curso($curso); $personas = $class_personas->listaPersonal($colegio_ID, "docente"); } if (postForm($_POST['postID']) && $_POST['postID'] > 0) { $ramo = PHPBind::post(new EntityRamos()); $persona = new EntityPersonas(); if (!($ramo->profesor > 0)) { $smarty->assign("error", "Debe seleccionar un profesor");