$consulta->setAttribute("id", $esteCampo); $tabs2->appendChild($consulta); /* $esteCampo="rconsultas"; $rconsulta=$xmlFile->createElement('division'); $rconsulta->setAttribute("contenedor","si"); $rconsulta->setAttribute("id",$esteCampo); $tabs2->appendChild($rconsulta); */ $tabs->appendChild($tabs1); $tabs->appendChild($tabs2); //se agregan elementos a raiz $root->appendChild($tabs); $xmlFile->appendChild($root); //echo $xmlFile->saveXML(); $miConvertidor = new XML2GUI(); $miConvertidor->convertir($xmlFile->saveXML()); //no fue posible crear con los elementos del core los tabs con ul y li echo "<script>"; echo 'var ul = document.createElement("ul");'; echo 'var li1 = document.createElement("li");'; echo 'var a1 = document.createElement("a");'; echo 'a1.href = "#tabs-1";'; echo 'a1.innerHTML = "' . $this->lenguaje->getCadena("ulTabs1") . '";'; echo 'li1.appendChild(a1);'; echo 'var li2 = document.createElement("li");'; echo 'var a2 = document.createElement("a");'; echo 'a2.href = "#tabs-2";'; if ($_REQUEST["modulo"] == 68) { echo 'a2.innerHTML = "' . $this->lenguaje->getCadena("ulTabs2") . '";'; }
<?php set_include_path(__DIR__ . "/../../"); include_once "core/builder/XML2GUI.class.php"; $xml = file_get_contents("php://input"); $miConvertidor = new XML2GUI(); $miConvertidor->convertir($xml); ?>