public static function generateDEMOGRAFIA_SAUDE_etaria($block_etaria) { $tenv = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_ENV"); //T_ENV $rd = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "RAZDEP"); //T_ENV $block_etaria->setData("subtitulo", "Estructura de edad"); //@Translate $block_etaria->setData("info", ""); //@Translate $str = "Entre el 2000 y 2010, la razón de dependencia de [municipio] pasó de un [rz_dependencia00]%\n a un [rz_dependencia10]% y la tasa de envejecimiento pasó de un [indice_envelhecimento00]% a un [indice_envelhecimento10]%.\n Entre 1991 y el 2000, la razón de dependencia pasó de un [rz_dependencia91]% a un [rz_dependencia00]%,\n mientras que la tasa de envejecimiento pasó de un [indice_envelhecimento91]% a un [indice_envelhecimento00]%."; $texto = new Texto($str); $texto->replaceTags("municipio", TextBuilder_ES::$nomeMunicipio); $texto->replaceTags("indice_envelhecimento91", Formulas::getIndiceEnvelhecimento91($tenv)); $texto->replaceTags("indice_envelhecimento00", Formulas::getIndiceEnvelhecimento00($tenv)); $texto->replaceTags("indice_envelhecimento10", Formulas::getIndiceEnvelhecimento10($tenv)); $texto->replaceTags("rz_dependencia91", Formulas::getRazaoDependencia91($rd)); $texto->replaceTags("rz_dependencia00", Formulas::getRazaoDependencia00($rd)); $texto->replaceTags("rz_dependencia10", Formulas::getRazaoDependencia10($rd)); $block_etaria->setData("text", $texto->getTexto()); //@Translate $block_etaria->setData("block_box1", "<b>¿Qué es la razón de<br> dependencia?</b><br>\n Es el porcentaje de la <br>\n población menor de 15 <br>\n años y de al menos 65 <br>\n años (población dependente) <br>\n con respecto a la población <br>\n de entre 15 y 64 años<br>\n (población potencialmente<br>\n activa)."); $block_etaria->setData("block_box2", "<b>¿Qué es la tasa de<br> envejecimiento?</b><br>\n Es la razón entre la <br>\n población de al menos <br>\n 65 años y la población <br>\n total multiplicada."); $block_etaria->setData("tableContent", ""); }
public static function generateDEMOGRAFIA_SAUDE_etaria($block_etaria) { $tenv = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_ENV"); //T_ENV $rd = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "RAZDEP"); //T_ENV $block_etaria->setData("subtitulo", "Age structure"); //@Translate $block_etaria->setData("info", ""); //@Translate $str = "Between 2000 and 2010, the dependency ratio of [municipio] went from [rz_dependencia00]%\n to [rz_dependencia10]% and the aging index increased from [indice_envelhecimento00]% to\n [indice_envelhecimento10]%.\n Between 1991 and 2000, the dependency ratio went from [rz_dependencia91]% to [rz_dependencia00]%,\n while the aging index increased from [indice_envelhecimento91]% to [indice_envelhecimento00]%."; $texto = new Texto($str); $texto->replaceTags("municipio", TextBuilder_EN::$nomeMunicipio); $texto->replaceTags("indice_envelhecimento91", Formulas::getIndiceEnvelhecimento91($tenv)); $texto->replaceTags("indice_envelhecimento00", Formulas::getIndiceEnvelhecimento00($tenv)); $texto->replaceTags("indice_envelhecimento10", Formulas::getIndiceEnvelhecimento10($tenv)); $texto->replaceTags("rz_dependencia91", Formulas::getRazaoDependencia91($rd)); $texto->replaceTags("rz_dependencia00", Formulas::getRazaoDependencia00($rd)); $texto->replaceTags("rz_dependencia10", Formulas::getRazaoDependencia10($rd)); $block_etaria->setData("text", $texto->getTexto()); //@Translate $block_etaria->setData("block_box1", "<b>What is the dependency<br> ratio?</b><br>\n Percentage of the population <br>\n aged less than 15 years <br>\n and population aged 65 years <br>\n and older (population <br>\n dependent) compared to <br>\n the population aged 15-64 <br>\n years (potentially active <br>\n population)."); $block_etaria->setData("block_box2", "<b>What is the<br> aging index?</b><br>\n Population aged 65 <br>\n years or older compared <br>\n to the population aged <br>\n less than 15 years."); $block_etaria->setData("tableContent", ""); }
public static function generateDEMOGRAFIA_SAUDE_etaria($block_etaria) { $tenv = TextBuilder::getVariaveis_table(TextBuilder::$idMunicipio, "T_ENV"); //T_ENV $rd = TextBuilder::getVariaveis_table(TextBuilder::$idMunicipio, "RAZDEP"); //T_ENV $tenv_br = TextBuilder::getVariaveis_Brasil("T_ENV"); //T_ENV $rd_br = TextBuilder::getVariaveis_Brasil("RAZDEP"); //T_ENV if (TextBuilder::$print) { $block_etaria->setData("quebra", "<div style='page-break-after: always'></div>"); } else { $block_etaria->setData("quebra", ""); } $block_etaria->setData("subtitulo", TextBuilder::$aba->getSubTitulo()); //@Translate $block_etaria->setData("info", ""); //@Translate $str = TextBuilder::$aba->getTexto(); $texto = new Texto($str); $texto->replaceTags("municipio", TextBuilder::$nomeMunicipio); $texto->replaceTags("indice_envelhecimento91", Formulas::getIndiceEnvelhecimento91($tenv)); $texto->replaceTags("indice_envelhecimento00", Formulas::getIndiceEnvelhecimento00($tenv)); $texto->replaceTags("indice_envelhecimento10", Formulas::getIndiceEnvelhecimento10($tenv)); $texto->replaceTags("rz_dependencia91", Formulas::getRazaoDependencia91($rd)); $texto->replaceTags("rz_dependencia00", Formulas::getRazaoDependencia00($rd)); $texto->replaceTags("rz_dependencia10", Formulas::getRazaoDependencia10($rd)); $texto->replaceTags("indice_envelhecimento91_br", Formulas::getIndiceEnvelhecimento91($tenv_br)); $texto->replaceTags("indice_envelhecimento00_br", Formulas::getIndiceEnvelhecimento00($tenv_br)); $texto->replaceTags("indice_envelhecimento10_br", Formulas::getIndiceEnvelhecimento10($tenv_br)); $texto->replaceTags("rz_dependencia91_br", Formulas::getRazaoDependencia91($rd_br)); $texto->replaceTags("rz_dependencia00_br", Formulas::getRazaoDependencia00($rd_br)); $texto->replaceTags("rz_dependencia10_br", Formulas::getRazaoDependencia10($rd_br)); if (TextBuilder::$type === "perfil_udh") { //MunicÃpio e RM em que a UDH está situada $mun_da_udh = TextBuilder::getMUN_udh(TextBuilder::$idMunicipio); $rm_da_udh = TextBuilder::getRM_udh(TextBuilder::$idMunicipio); $tenv_mun = TextBuilder::getVariaveis_tablePersonalizado($mun_da_udh[0]["id"], "T_ENV", "perfil_m"); //T_ENV $rd_mun = TextBuilder::getVariaveis_tablePersonalizado($mun_da_udh[0]["id"], "RAZDEP", "perfil_m"); //T_ENV $tenv_rm = TextBuilder::getVariaveis_tablePersonalizado($rm_da_udh[0]["id"], "T_ENV", "perfil_rm"); //T_ENV $rd_rm = TextBuilder::getVariaveis_tablePersonalizado($rm_da_udh[0]["id"], "RAZDEP", "perfil_rm"); //T_ENV $texto->replaceTags("indice_envelhecimento10_mun_udh", Formulas::getTaxaCrescimentoPop0010($tenv_mun)); $texto->replaceTags("rz_dependencia10_mun_udh", Formulas::getTaxaCrescimentoPop0010($rd_mun)); $texto->replaceTags("indice_envelhecimento10_rm_udh", Formulas::getTaxaCrescimentoPop0010($tenv_rm)); $texto->replaceTags("rz_dependencia10_rm_udh", Formulas::getTaxaCrescimentoPop0010($rd_rm)); } $block_etaria->setData("text", $texto->getTexto()); //@Translate $block_etaria->setData("block_box1", TextBuilder::$aba->getRDependencia()); $block_etaria->setData("block_box2", TextBuilder::$aba->getTEnvelhecimento()); $block_etaria->setData("tableContent", ""); }