font-family: Georgia; font-size: 11pt; } .treeMenuDefault{ font-style: italic; } .treeMenuBold { font-style: italic; font-weight: bold; } </style> <script src="simedh/javascript/HTML_TreeMenu/TreeMenu.js" language="JavaScript" type="text/javascript"></script> </head> <body> <?php $objMenu = new HTML_TreeMenuFacilito($arrayX, ""); $scriptJSArbolDeMierda = $objMenu->getTreeMenuJSAjax(); echo "<br>"; echo "<script>eval(\"{$scriptJSArbolDeMierda}\");</script>"; /* $scriptJSArbolDeMierda = $treeMenu->printMenu(); $scriptJSArbolDeMierda = str_replace("<script type=\"text/javascript\">","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("//<![CDATA[","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("// ]]>","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("</script>","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("\n","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("\t","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("\r","",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("\"","'",$scriptJSArbolDeMierda); $scriptJSArbolDeMierda = str_replace("\\","\\\\",$scriptJSArbolDeMierda); echo "<script>eval(\"$scriptJSArbolDeMierda\");</script>";
public function getArbolMenu($idsistema) { $o_LFormulario = new LFormulario(); $arrayMenu = $o_LFormulario->sp_lista_formulario_tree($idsistema, '%', '1'); $arrayIconos = array("1" => array("icono" => "historial.png", "iconoExpandido" => "historial.png"), "2" => array("icono" => "forward.png", "iconoExpandido" => "forward.png"), "3" => array("icono" => "groupevent.png", "iconoExpandido" => "groupevent.png"), "4" => array("icono" => "folder_sent_mail.png", "iconoExpandido" => "folder_sent_mail.png"), "5" => array("icono" => "hos_medico.png", "iconoExpandido" => "hos_medico.png")); $oTreeMenu = new HTML_TreeMenuFacilito($arrayMenu, "div_arbol", "../../../imagen/imagenTreeMenu", $arrayIconos, false, 'eventoMenuArbol'); $oTreeMenu->generaArrayNivelesRecursivo(); $arrayOficinasNiveles = $oTreeMenu->getArrayNiveles(); $arrayOficinasRecursivo = $oTreeMenu->getArrayRecursivo(); $scripJsTreeMenuOficinas = $oTreeMenu->getTreeMenuJSAjax(); $scripJsTreeMenuOficinas = str_replace("\\\\", "\\", $scripJsTreeMenuOficinas); return $scripJsTreeMenuOficinas; }