require_once PERFIL_PACKAGE . 'controller/TextBuilder_ES.class.php'; require_once PERFIL_PACKAGE . 'Block.class.php'; //require_once $comPath . "util/protect_sql_injection.php"; if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { header("Location: {$path_dir}404"); } $cidade = $_POST["city"]; $lang = $_POST["lang"]; //$pagina = (int) $_POST["page"]; //unset($_POST["page"]); $perfil = new PerfilPrint($cidade); TextBuilder::$idMunicipio = $perfil->getCityId(); //TextBuilder::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder::$nomeMunicipio = $perfil->getCityName(); TextBuilder::$ufMunicipio = $perfil->getUfName(); TextBuilder::$print = false; TextBuilder_EN::$idMunicipio = $perfil->getCityId(); //TextBuilder_EN::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder_EN::$nomeMunicipio = $perfil->getCityName(); TextBuilder_EN::$ufMunicipio = $perfil->getUfName(); TextBuilder_EN::$print = false; TextBuilder_ES::$idMunicipio = $perfil->getCityId(); //TextBuilder_EN::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder_ES::$nomeMunicipio = $perfil->getCityName(); TextBuilder_ES::$ufMunicipio = $perfil->getUfName(); TextBuilder_ES::$print = false; $perfil->drawScriptsMaps(); $perfil->drawMap(); $perfil->drawBoxes($lang); switch ($lang) { case "pt":
//require_once $comPath . "util/protect_sql_injection.php"; if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { header("Location: {$path_dir}404"); die; } $cidade = $_POST["city"]; $lang = $_POST["lang"]; $perfilType = $_POST["perfilType"]; //(isset($_POST["print"]) ? $print = true : $print = false ); $perfil = new Perfil($cidade, $perfilType); TextBuilder::$idMunicipio = $perfil->getCityId(); TextBuilder::$nomeMunicipio = $perfil->getCityName(); TextBuilder::$ufMunicipio = $perfil->getUfName(); TextBuilder::$lang = $lang; TextBuilder::$type = $perfilType; TextBuilder::$print = true; //@#Todo perfil já estará adaptado para impressão. $perfil->drawScriptsMaps(); $perfil->drawMap(); //$perfil->drawBoxes($lang, $perfilType); TextBuilder::$bd = new bd(); $boxes = new ITCaracterizacao($lang, $perfilType); $boxes->getTabelaCaracterizacao(); //IDH ---------------------------------- TextBuilder::$aba = new ITComponentes($lang, $perfilType); $block_componente = new Block(1); TextBuilder::generateIDH_componente($block_componente); $block_componente->draw(); //@NãoInclusoEmRM&UDH if ($perfilType != "perfil_rm" && $perfilType != "perfil_udh") { $block_table_componente = new Block(15);