diff --git a/js/site.js b/js/site.js index 170f3b1..1cf0841 100644 --- a/js/site.js +++ b/js/site.js @@ -129,6 +129,11 @@ function loadSection(section) { if(section == 'navegue' && sectionLoaded[section] == false) { // prepare data and filters + var scrollSettings = {}; + var scrollPane = $('#navegue #data'); + scrollPane.jScrollPane(scrollSettings); + resultsScrollApi = scrollPane.data('jsp'); + $.getJSON('constatacoes.json.php?data=geral', function(data) { irregularidadesData = data; }); @@ -198,11 +203,6 @@ function loadSection(section) { } } - var scrollSettings = {}; - var scrollPane = $('#navegue #data'); - scrollPane.jScrollPane(scrollSettings); - resultsScrollApi = scrollPane.data('jsp'); - // update with new output data and select options if(!$.isEmptyObject(selectedFilters)) { updateCurrentData(); @@ -647,7 +647,10 @@ function theMagic() { } if(selectedFilters.cidade) { - $links.append('Acesse o relatório de fiscalização da cidade'); + var filterData = jLinq.from(eduamazonia.cidade).starts('cidade', selectedFilters.cidade).select(); + filterData = filterData[0]; + $links.append('Acesse o relatório de fiscalização da cidade'); + $('.relatorio.button').attr('href', 'relatorios/' + filterData.relatorio); } $('.irregularidades-toggle').click(function() { diff --git a/relatorios/2010AC-Brasileia.pdf b/relatorios/2010AC-Brasileia.pdf new file mode 100644 index 0000000..3b3fda0 Binary files /dev/null and b/relatorios/2010AC-Brasileia.pdf differ diff --git a/relatorios/2010AM-Benjamin_Constant.pdf b/relatorios/2010AM-Benjamin_Constant.pdf new file mode 100644 index 0000000..2db6216 Binary files /dev/null and b/relatorios/2010AM-Benjamin_Constant.pdf differ diff --git a/relatorios/2010AM-Tabatinga.pdf b/relatorios/2010AM-Tabatinga.pdf new file mode 100644 index 0000000..2cdf19d Binary files /dev/null and b/relatorios/2010AM-Tabatinga.pdf differ diff --git a/relatorios/2010AM-Tefe.pdf b/relatorios/2010AM-Tefe.pdf new file mode 100644 index 0000000..2c6b371 Binary files /dev/null and b/relatorios/2010AM-Tefe.pdf differ diff --git a/relatorios/2010AP-Pedra_Branca_do_Amapari.pdf b/relatorios/2010AP-Pedra_Branca_do_Amapari.pdf new file mode 100644 index 0000000..44cff59 Binary files /dev/null and b/relatorios/2010AP-Pedra_Branca_do_Amapari.pdf differ diff --git a/relatorios/2010PA-Anajas.pdf b/relatorios/2010PA-Anajas.pdf new file mode 100644 index 0000000..a48fdb4 Binary files /dev/null and b/relatorios/2010PA-Anajas.pdf differ diff --git a/relatorios/2010PA-Cachoeira_do_Piria.pdf b/relatorios/2010PA-Cachoeira_do_Piria.pdf new file mode 100644 index 0000000..a08b031 Binary files /dev/null and b/relatorios/2010PA-Cachoeira_do_Piria.pdf differ diff --git a/relatorios/2010PA-Cameta_NAOTEMMEC.pdf b/relatorios/2010PA-Cameta_NAOTEMMEC.pdf new file mode 100644 index 0000000..64201be Binary files /dev/null and b/relatorios/2010PA-Cameta_NAOTEMMEC.pdf differ diff --git a/relatorios/2010PA-Curralinho.pdf b/relatorios/2010PA-Curralinho.pdf new file mode 100644 index 0000000..d7ac4c5 Binary files /dev/null and b/relatorios/2010PA-Curralinho.pdf differ diff --git a/relatorios/2010PA-Inhangapi.pdf b/relatorios/2010PA-Inhangapi.pdf new file mode 100644 index 0000000..14036e5 Binary files /dev/null and b/relatorios/2010PA-Inhangapi.pdf differ diff --git a/relatorios/2010PA-Itaituba.pdf b/relatorios/2010PA-Itaituba.pdf new file mode 100644 index 0000000..7f4e1b0 Binary files /dev/null and b/relatorios/2010PA-Itaituba.pdf differ diff --git a/relatorios/2010PA-Sao_sebastiao_boa_vista.pdf b/relatorios/2010PA-Sao_sebastiao_boa_vista.pdf new file mode 100644 index 0000000..8db05c9 Binary files /dev/null and b/relatorios/2010PA-Sao_sebastiao_boa_vista.pdf differ diff --git a/relatorios/2010PA-Terra_Santa.pdf b/relatorios/2010PA-Terra_Santa.pdf new file mode 100644 index 0000000..cfa09c8 Binary files /dev/null and b/relatorios/2010PA-Terra_Santa.pdf differ diff --git a/relatorios/2010RO-Cerejeiras.pdf b/relatorios/2010RO-Cerejeiras.pdf new file mode 100644 index 0000000..8ef9284 Binary files /dev/null and b/relatorios/2010RO-Cerejeiras.pdf differ diff --git a/relatorios/2010RO-Primavera_de_Rondonia.pdf b/relatorios/2010RO-Primavera_de_Rondonia.pdf new file mode 100644 index 0000000..310681f Binary files /dev/null and b/relatorios/2010RO-Primavera_de_Rondonia.pdf differ diff --git a/relatorios/2010RO-Sao_Felipe_D_Oeste.pdf b/relatorios/2010RO-Sao_Felipe_D_Oeste.pdf new file mode 100644 index 0000000..837d65c Binary files /dev/null and b/relatorios/2010RO-Sao_Felipe_D_Oeste.pdf differ diff --git a/relatorios/2010RR-Amajari.pdf b/relatorios/2010RR-Amajari.pdf new file mode 100644 index 0000000..c58bbd1 Binary files /dev/null and b/relatorios/2010RR-Amajari.pdf differ diff --git a/relatorios/2010RR-Normandia.pdf b/relatorios/2010RR-Normandia.pdf new file mode 100644 index 0000000..39ed94a Binary files /dev/null and b/relatorios/2010RR-Normandia.pdf differ diff --git a/relatorios/2010TO-Luzinopolis.pdf b/relatorios/2010TO-Luzinopolis.pdf new file mode 100644 index 0000000..7048a7c Binary files /dev/null and b/relatorios/2010TO-Luzinopolis.pdf differ diff --git a/relatorios/2010TO-Santa_Rosa_do_Tocantins.pdf b/relatorios/2010TO-Santa_Rosa_do_Tocantins.pdf new file mode 100644 index 0000000..5ef1a06 Binary files /dev/null and b/relatorios/2010TO-Santa_Rosa_do_Tocantins.pdf differ diff --git a/relatorios/2010TO-Sao_Bento_do_Tocantins.pdf b/relatorios/2010TO-Sao_Bento_do_Tocantins.pdf new file mode 100644 index 0000000..2c567c4 Binary files /dev/null and b/relatorios/2010TO-Sao_Bento_do_Tocantins.pdf differ diff --git a/relatorios/2010TO-Xambioa.pdf b/relatorios/2010TO-Xambioa.pdf new file mode 100644 index 0000000..8b461fc Binary files /dev/null and b/relatorios/2010TO-Xambioa.pdf differ diff --git a/relatorios/2011AC-Manoel_Urbano.pdf b/relatorios/2011AC-Manoel_Urbano.pdf new file mode 100644 index 0000000..d7b03cf Binary files /dev/null and b/relatorios/2011AC-Manoel_Urbano.pdf differ diff --git a/relatorios/2011AM-Urucurituba.pdf b/relatorios/2011AM-Urucurituba.pdf new file mode 100644 index 0000000..0030e1d Binary files /dev/null and b/relatorios/2011AM-Urucurituba.pdf differ diff --git a/relatorios/2011PA-Bagre.pdf b/relatorios/2011PA-Bagre.pdf new file mode 100644 index 0000000..f1e04ab Binary files /dev/null and b/relatorios/2011PA-Bagre.pdf differ diff --git a/relatorios/2011PA-Bujaru.pdf b/relatorios/2011PA-Bujaru.pdf new file mode 100644 index 0000000..76991a1 Binary files /dev/null and b/relatorios/2011PA-Bujaru.pdf differ diff --git a/relatorios/2011PA-Igarape-Miri.pdf b/relatorios/2011PA-Igarape-Miri.pdf new file mode 100644 index 0000000..bb30ebd Binary files /dev/null and b/relatorios/2011PA-Igarape-Miri.pdf differ diff --git a/relatorios/2011PA-Primavera.pdf b/relatorios/2011PA-Primavera.pdf new file mode 100644 index 0000000..2d4e9bd Binary files /dev/null and b/relatorios/2011PA-Primavera.pdf differ diff --git a/relatorios/2011PA-Santa_Maria_do_Para.pdf b/relatorios/2011PA-Santa_Maria_do_Para.pdf new file mode 100644 index 0000000..2278b42 Binary files /dev/null and b/relatorios/2011PA-Santa_Maria_do_Para.pdf differ diff --git a/relatorios/2011PA-Sao_Felix_do_ Xingu.pdf b/relatorios/2011PA-Sao_Felix_do_ Xingu.pdf new file mode 100644 index 0000000..d08fba1 Binary files /dev/null and b/relatorios/2011PA-Sao_Felix_do_ Xingu.pdf differ diff --git a/relatorios/2011RO-Presidente_Medici.pdf b/relatorios/2011RO-Presidente_Medici.pdf new file mode 100644 index 0000000..ef3c2a1 Binary files /dev/null and b/relatorios/2011RO-Presidente_Medici.pdf differ diff --git a/relatorios/2011RR-Uiramuta.pdf b/relatorios/2011RR-Uiramuta.pdf new file mode 100644 index 0000000..f06403b Binary files /dev/null and b/relatorios/2011RR-Uiramuta.pdf differ diff --git a/relatorios/2011TO-Bandeirantes_do_Tocantins.pdf b/relatorios/2011TO-Bandeirantes_do_Tocantins.pdf new file mode 100644 index 0000000..809c7c6 Binary files /dev/null and b/relatorios/2011TO-Bandeirantes_do_Tocantins.pdf differ diff --git a/relatorios/2011TO-Novo_Acordo.pdf b/relatorios/2011TO-Novo_Acordo.pdf new file mode 100644 index 0000000..b69af36 Binary files /dev/null and b/relatorios/2011TO-Novo_Acordo.pdf differ