public static function generateEDUCACAO_nivel_educacional($block_nivel_educacional)
 {
     $t_freq4a6 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FREQ5A6");
     //T_FREQ5A6 - Mudou variável
     $t_fund12a14 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FUND11A13");
     //T_FUND11A13 - Mudou variável
     $t_fund16a18 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FUND15A17");
     //T_FUND15A17 - Mudou variável
     $t_med19a21 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_MED18A20");
     //T_MED18A20 - Mudou variável
     $t_atraso_0_fund = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_ATRASO_0_FUND");
     //T_ATRASO_0_FUND
     $t_flfund = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FLFUND");
     //T_FLFUND
     $t_atraso_0_med = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_ATRASO_0_MED");
     //T_ATRASO_0_MED
     $t_flmed = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FLMED");
     //T_FLMED
     $t_flsuper = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FLSUPER");
     //T_FLSUPER
     $t_freq6a14 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FREQ6A14");
     //T_FREQ6A14
     $t_freq15a17 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FREQ15A17");
     //T_FREQ15A17
     //$t_freq18a24 = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "T_FREQ18A24");  //T_FREQ15A17
     if (TextBuilder_EN::$print) {
         $block_nivel_educacional->setData("quebra", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra", "");
     }
     $block_nivel_educacional->setData("fonte", TextBuilder_EN::$fontePerfil);
     $block_nivel_educacional->setData("titulo", "Education");
     //@Translate
     $block_nivel_educacional->setData("subtitulo", "Children and young people");
     //@Translate
     $block_nivel_educacional->setData("info", "");
     //@Translate
     $str1 = "<br>The share of children and young people attending school or having completed the given educational grades indicates the state of education among the school-age population of a municipality – and hence, it is part of MHDI Education.. \n        <br><br>In 2000-2010 the share of <b>children aged 5 to 6 years attending school</b>\n        and grew [cresc_4-6esc_0010]% and, in 1991- 2000,\n        [cresc_4-6esc_9100]%. The share of <b>children aged 11 to 13 years attending the final years of primary education\n        </b> grew [cresc_12-14esc_0010]%\n        between 2000 and 2010, and [cresc_12-14esc_9100]% between 1991 and 2000. \n        \n        <br><br>The share of <b>young people aged between 15 to 17 years having completed primary education</b>\n        increased by [cresc_16-18fund_0010]% between 2000 and 2010 and by\n        [cresc_16-18fund_9100]% between 1991 and 2000. And the share of <b>young people aged between 18 and 20 years having completed secondary education</b>\n        grew [cresc_19-21medio_0010]%\n        between 2000 and 2010, and [cresc_19-21medio_9100]% between 1991 and 2000.";
     $texto1 = new Texto($str1);
     $texto1->replaceTags("municipio", TextBuilder_EN::$nomeMunicipio);
     $texto1->replaceTags("cresc_4-6esc_0010", Formulas::getCrescimento4a6Esc0010($t_freq4a6));
     $texto1->replaceTags("cresc_4-6esc_9100", Formulas::getCrescimento4a6Esc9100($t_freq4a6));
     $texto1->replaceTags("cresc_12-14esc_0010", Formulas::getCrescimento12a14Esc0010($t_fund12a14));
     $texto1->replaceTags("cresc_12-14esc_9100", Formulas::getCrescimento12a14Esc9100($t_fund12a14));
     $texto1->replaceTags("cresc_16-18fund_0010", Formulas::getCrescimento16a18Fund0010($t_fund16a18));
     $texto1->replaceTags("cresc_16-18fund_9100", Formulas::getCrescimento16a18Fund9100($t_fund16a18));
     $texto1->replaceTags("cresc_19-21medio_0010", Formulas::getCrescimento19a21Medio0010($t_med19a21));
     $texto1->replaceTags("cresc_19-21medio_9100", Formulas::getCrescimento19a21Medio9100($t_med19a21));
     $block_nivel_educacional->setData("text1", $texto1->getTexto());
     if (TextBuilder_EN::$print) {
         $block_nivel_educacional->setData("quebra4", "<div style=margin-top: 20px;'></div>");
     } else {
         $block_nivel_educacional->setData("quebra4", "");
     }
     $block_nivel_educacional->setData("canvasContent1", getChartFluxoEscolar(TextBuilder_EN::$idMunicipio, TextBuilder_EN::$lang));
     if (TextBuilder_EN::$print) {
         $block_nivel_educacional->setData("quebra1", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra1", "");
     }
     $block_nivel_educacional->setData("canvasContent2", getChartFrequenciaEscolar(TextBuilder_EN::$idMunicipio, TextBuilder_EN::$lang));
     //@Translate
     $str2 = "<br>In 2010, [tx_fund_sematraso_10]% of the students aged between 6 and 14 years of [municipio]\n        attended primary school regularly, in grades appropriate to their age.\n        In 2000, this percentage was [tx_fund_sematraso_00]% and in 1991\n        [tx_fund_sematraso_91]%.\n        [tx_medio_sematraso_10]% of young people aged15 to 17 years who were attending school regularly, without educational delays.\n        In 2000, the percentage was [tx_medio_sematraso_00]% and, in 1991, [tx_medio_sematraso_91]%. \n        [t_flsuper_10]% of students aged 18 to 24 years were attending higher education in 2010,\n        [t_flsuper_00]% in 2000 and [t_flsuper_91]% in 1991.\n        <br><br>\n        It is noteworthy that, in 2010, [p6a14]% of the children aged 6 to14 years did not attend school.\n        Among young people aged 15 to 17 years, the percentage reached [p15a17]%.";
     $texto2 = new Texto($str2);
     $texto2->replaceTags("municipio", TextBuilder_EN::$nomeMunicipio);
     $texto2->replaceTags("tx_fund_sematraso_10", Formulas::getTxFundSemAtraso10($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_fund_sematraso_00", Formulas::getTxFundSemAtraso00($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_fund_sematraso_91", Formulas::getTxFundSemAtraso91($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_medio_sematraso_10", Formulas::getTxMedioSemAtraso10($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("tx_medio_sematraso_00", Formulas::getTxMedioSemAtraso00($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("tx_medio_sematraso_91", Formulas::getTxMedioSemAtraso91($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("t_flsuper_10", Formulas::getTxFLSuper10($t_flsuper));
     $texto2->replaceTags("t_flsuper_00", Formulas::getTxFLSuper00($t_flsuper));
     $texto2->replaceTags("t_flsuper_91", Formulas::getTxFLSuper91($t_flsuper));
     $texto2->replaceTags("p6a14", Formulas::getP6a14($t_freq6a14));
     $texto2->replaceTags("p15a17", Formulas::getP15a17($t_freq15a17));
     $block_nivel_educacional->setData("text2", $texto2->getTexto());
     if (TextBuilder_EN::$print) {
         $block_nivel_educacional->setData("quebra2", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra2", "");
     }
     $block_nivel_educacional->setData("canvasContent3", getChartFrequenciaDe6a14(TextBuilder_EN::$idMunicipio, TextBuilder_EN::$lang));
     $block_nivel_educacional->setData("canvasContent4", getChartFrequenciaDe15a17(TextBuilder_EN::$idMunicipio, TextBuilder_EN::$lang));
     $block_nivel_educacional->setData("canvasContent5", getChartFrequenciaDe18a24(TextBuilder_EN::$idMunicipio, TextBuilder_EN::$lang));
     if (TextBuilder_EN::$print) {
         $block_nivel_educacional->setData("quebra3", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra3", "");
     }
 }
 public static function generateEDUCACAO_nivel_educacional($block_nivel_educacional)
 {
     $t_freq4a6 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FREQ5A6");
     //T_FREQ5A6 - Mudou variável
     $t_fund12a14 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FUND11A13");
     //T_FUND11A13 - Mudou variável
     $t_fund16a18 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FUND15A17");
     //T_FUND15A17 - Mudou variável
     $t_med19a21 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_MED18A20");
     //T_MED18A20 - Mudou variável
     $t_atraso_0_fund = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_ATRASO_0_FUND");
     //T_ATRASO_0_FUND
     $t_flfund = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FLFUND");
     //T_FLFUND
     $t_atraso_0_med = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_ATRASO_0_MED");
     //T_ATRASO_0_MED
     $t_flmed = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FLMED");
     //T_FLMED
     $t_flsuper = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FLSUPER");
     //T_FLSUPER
     $t_freq6a14 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FREQ6A14");
     //T_FREQ6A14
     $t_freq15a17 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FREQ15A17");
     //T_FREQ15A17
     //$t_freq18a24 = TextBuilder_ES::getVariaveis_table(TextBuilder_ES::$idMunicipio, "T_FREQ18A24");  //T_FREQ15A17
     if (TextBuilder_ES::$print) {
         $block_nivel_educacional->setData("quebra", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra", "");
     }
     $block_nivel_educacional->setData("fonte", TextBuilder_ES::$fontePerfil);
     $block_nivel_educacional->setData("titulo", "Educación");
     //@Translate
     $block_nivel_educacional->setData("subtitulo", "Niños y jóvenes");
     //@Translate
     $block_nivel_educacional->setData("info", "");
     //@Translate
     $str1 = "<br>La proporción de niños y jóvenes que cursan o terminaron determinados ciclos refleja la situación de la educación entre la población en edad escolar del municipio y compone el IDHM Educación. \n        <br><br>Entre el 2000 y 2010, la proporción de <b>niños de 5 a 6 años que van a la escuela</b> aumentó un [cresc_4-6esc_0010]% y entre 1991 y el 2000\n        un [cresc_4-6esc_9100]%. La proporción de <b>niños de 11 a 13 años que cursa los últimos años de la educación primaria</b> aumentó un [cresc_12-14esc_0010]%\n        entre el 2000 y 2010 y un [cresc_12-14esc_9100]% entre 1991 y el 2000. \n        \n        <br><br>La proporción de <b>jóvenes de 15 a 17 años con educación primaria completa</b> aumentó un [cresc_16-18fund_0010]% entre el 2000 y 2010 y un\n        [cresc_16-18fund_9100]% entre 1991 y el 2000. Y la proporción de <b>jóvenes de entre 18 y 20 años con educación secundaria completa</b> aumentó un [cresc_19-21medio_0010]%\n        entre el 2000 y 2010 y un [cresc_19-21medio_9100]% entre 1991 y el 2000.";
     $texto1 = new Texto($str1);
     $texto1->replaceTags("municipio", TextBuilder_ES::$nomeMunicipio);
     $texto1->replaceTags("cresc_4-6esc_0010", Formulas::getCrescimento4a6Esc0010($t_freq4a6));
     $texto1->replaceTags("cresc_4-6esc_9100", Formulas::getCrescimento4a6Esc9100($t_freq4a6));
     $texto1->replaceTags("cresc_12-14esc_0010", Formulas::getCrescimento12a14Esc0010($t_fund12a14));
     $texto1->replaceTags("cresc_12-14esc_9100", Formulas::getCrescimento12a14Esc9100($t_fund12a14));
     $texto1->replaceTags("cresc_16-18fund_0010", Formulas::getCrescimento16a18Fund0010($t_fund16a18));
     $texto1->replaceTags("cresc_16-18fund_9100", Formulas::getCrescimento16a18Fund9100($t_fund16a18));
     $texto1->replaceTags("cresc_19-21medio_0010", Formulas::getCrescimento19a21Medio0010($t_med19a21));
     $texto1->replaceTags("cresc_19-21medio_9100", Formulas::getCrescimento19a21Medio9100($t_med19a21));
     $block_nivel_educacional->setData("text1", $texto1->getTexto());
     if (TextBuilder_ES::$print) {
         $block_nivel_educacional->setData("quebra4", "<div style=margin-top: 20px;'></div>");
     } else {
         $block_nivel_educacional->setData("quebra4", "");
     }
     $block_nivel_educacional->setData("canvasContent1", getChartFluxoEscolar(TextBuilder_ES::$idMunicipio, TextBuilder_ES::$lang));
     if (TextBuilder_ES::$print) {
         $block_nivel_educacional->setData("quebra1", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra1", "");
     }
     $block_nivel_educacional->setData("canvasContent2", getChartFrequenciaEscolar(TextBuilder_ES::$idMunicipio, TextBuilder_ES::$lang));
     //@Translate
     $str2 = "<br>En 2010, el [tx_fund_sematraso_10]% de los estudiantes de [municipio] entre 6 y 14 años cursaban la educación primaria regular en el nivel adecuado para su edad.\n        En el 2000 eran un [tx_fund_sematraso_00]% y en 1991, un\n        [tx_fund_sematraso_91]%. Entre los jóvenes de 15 a 17 años, el [tx_medio_sematraso_10]% cursaba la educación secundaria regular sin retraso.\n        En el 2000 eran un [tx_medio_sematraso_00]% y en 1991, un [tx_medio_sematraso_91]%. \n        Ente los alumnos de 18 a 24 años, un [t_flsuper_10]% cursaba la educación superior en 2010, un [t_flsuper_00]% % la cursaba en el 2000 y un [t_flsuper_91]% la cursaba en 1991.\n        <br><br>\n        Nótese que, en 2010, el [p6a14]% de los niños de 6 a 14 años no iba a la escuela, porcentaje que, entre los jóvenes de 15 a 17 años ascendía a un [p15a17]%.";
     $texto2 = new Texto($str2);
     $texto2->replaceTags("municipio", TextBuilder_ES::$nomeMunicipio);
     $texto2->replaceTags("tx_fund_sematraso_10", Formulas::getTxFundSemAtraso10($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_fund_sematraso_00", Formulas::getTxFundSemAtraso00($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_fund_sematraso_91", Formulas::getTxFundSemAtraso91($t_atraso_0_fund, $t_flfund));
     $texto2->replaceTags("tx_medio_sematraso_10", Formulas::getTxMedioSemAtraso10($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("tx_medio_sematraso_00", Formulas::getTxMedioSemAtraso00($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("tx_medio_sematraso_91", Formulas::getTxMedioSemAtraso91($t_atraso_0_med, $t_flmed));
     $texto2->replaceTags("t_flsuper_10", Formulas::getTxFLSuper10($t_flsuper));
     $texto2->replaceTags("t_flsuper_00", Formulas::getTxFLSuper00($t_flsuper));
     $texto2->replaceTags("t_flsuper_91", Formulas::getTxFLSuper91($t_flsuper));
     $texto2->replaceTags("p6a14", Formulas::getP6a14($t_freq6a14));
     $texto2->replaceTags("p15a17", Formulas::getP15a17($t_freq15a17));
     $block_nivel_educacional->setData("text2", $texto2->getTexto());
     if (TextBuilder_ES::$print) {
         $block_nivel_educacional->setData("quebra2", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra2", "");
     }
     $block_nivel_educacional->setData("canvasContent3", getChartFrequenciaDe6a14(TextBuilder_ES::$idMunicipio, TextBuilder_ES::$lang));
     $block_nivel_educacional->setData("canvasContent4", getChartFrequenciaDe15a17(TextBuilder_ES::$idMunicipio, TextBuilder_ES::$lang));
     $block_nivel_educacional->setData("canvasContent5", getChartFrequenciaDe18a24(TextBuilder_ES::$idMunicipio, TextBuilder_ES::$lang));
     if (TextBuilder_ES::$print) {
         $block_nivel_educacional->setData("quebra3", "<div style='page-break-after: always'></div>");
     } else {
         $block_nivel_educacional->setData("quebra3", "");
     }
 }