$vinculacion = new Vinculacion(new DB()); $vinculacion->get_sector_productivo_prt(); */ } elseif ($_REQUEST["modulo"] == 6) { $oferta_educativa = new Oferta_educativa_info(1, new DB()); // $oferta_educativa->set_debug_mode(); $oferta_educativa->get_campos_json_prt("oed_descripcion"); } elseif ($_REQUEST["modulo"] == 7) { $home = new Home_page(new DB()); $home->get_licenciaturas_json_prt(); } elseif ($_REQUEST["modulo"] == 8) { $home = new Home_page(new DB()); $home->get_maestrias_json_prt(); } /* $oferta_educativa = new Oferta_educativa_info($_REQUEST); $oferta_educativa->get_campos_json_prt("oed_descripcion"); $oferta_educativa->cierra_conexion(); */ exit; } if ($_REQUEST["cmd"] == "info_oferta_educativa") { $oferta_educativa = new Oferta_educativa_info($_REQUEST["id_oferta"], new DB()); $oferta_educativa->get_campos_json_prt("oed_nombre,oed_descripcion"); exit; } if ($_REQUEST["cmd"] == "galeria") { $galerias = new Galeria_info($_REQUEST["id_galeria"], new DB()); $galerias->get_thumbnails_json_prt(); exit; }
<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/autoload.php"; if ($_REQUEST["cmd"] == "consulta_info") { $oferta = new Oferta_educativa_info($_REQUEST["id_oferta"]); // $info_sitio->set_debug_mode(); $oferta->get_campos_json_prt("oed_id,oed_nombre,oed_descripcion"); exit; } if ($_REQUEST["cmd"] == "update_oferta_educativa") { $oferta_educativa = new Oferta_educativa(); // $oferta_educativa->set_debug_mode();debug($_REQUEST); if ($oferta_educativa->actualizaOferta($_REQUEST["id_oferta"], $_REQUEST["html"])) { $oferta_educativa->response_json_prt("ok"); } elseif ($oferta_educativa->_error) { $oferta_educativa->response_json_prt($info_sitio->_error); } else { $oferta_educativa->response_json_prt("error"); } exit; }