<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/autoload.php"; if ($_REQUEST["cmd"] == "listado") { $oferta_educativa = new Oferta_educativa(); $oferta_educativa->get_listado_xml_prt($_REQUEST["id_nivel"]); exit; } if ($_REQUEST["cmd"] == "guardar") { $oferta = new Oferta_educativa(); // $oferta->set_debug_mode();debug($_REQUEST); if ($oferta->agregaOferta($_REQUEST)) { $oferta->response_json_prt($oferta->get_respuesta()); } else { $oferta->response_json_prt("error"); } exit; } if ($_REQUEST[$_REQUEST["ids"] . "_!nativeeditor_status"] == "deleted") { $oferta = new Oferta_educativa(); // $galeria->set_debug_mode();debug($_REQUEST); if ($oferta->eliminaOferta($_REQUEST["ids"])) { $oferta->response_xml_prt(); } else { $oferta->response_xml("error", "error"); } // if($galeria->elimina($_REQUEST[""])) exit; } if ($_REQUEST[$_REQUEST["ids"] . "_!nativeeditor_status"] == "updated") { $oferta = new Oferta_educativa();