diff --git a/css/default.css b/css/default.css index 624ed57..33c8f03 100755 --- a/css/default.css +++ b/css/default.css @@ -873,6 +873,29 @@ td { background: none; } +.bd table { + border: 0px solid #FFFFFF; + padding: 0px; + margin: 0px; + width: 100%; + max-width: 100%; + font-weight: unset; +} + +.bd table tr:first-of-type td { + padding: 20px; +} + +.bd td { + border: 0px solid #89afd4; + padding: 0px; + color: white; + margin: 0px; + text-align: center; + border-top: 3px solid #89afd4; + font-weight: initial; +} + .yui-skin-sam .yui-panel .ft { background: none repeat scroll 0 0 rgba(0, 0, 0, 0); border: 13px none; diff --git a/css/geral.css b/css/geral.css index 2c48f42..b43e8dc 100755 --- a/css/geral.css +++ b/css/geral.css @@ -658,6 +658,16 @@ table { margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; } +td { + background-color: white; + border: 0px solid gray; + padding: 0px; + color: #2F4632; + margin: 0px; + text-align: center; + font-size: 10pt !Important; + font-family: Verdana, Arial, Helvetica, sans-serif; +} div { border: 0px solid #FFFFFF; @@ -676,16 +686,7 @@ H1 { color: #004080; } -td { - background-color: white; - border: 0px solid gray; - padding: 0px; - color: #2F4632; - margin: 0px; - text-align: center; - font-size: 10pt !Important; - font-family: Verdana, Arial, Helvetica, sans-serif; -} + /* .ajuda_usuario { background-image: url(../imagens/oxygen/16x16/dialog-information.png); diff --git a/ferramentas/atalhosedicao/template_mst.html b/ferramentas/atalhosedicao/template_mst.html index ce72de9..8fae5b7 100755 --- a/ferramentas/atalhosedicao/template_mst.html +++ b/ferramentas/atalhosedicao/template_mst.html @@ -38,7 +38,7 @@
diff --git a/ferramentas/etiqueta/templateLista_mst.html b/ferramentas/etiqueta/templateLista_mst.html index cf9b857..8d8cc71 100755 --- a/ferramentas/etiqueta/templateLista_mst.html +++ b/ferramentas/etiqueta/templateLista_mst.html @@ -1,5 +1,5 @@
- +
diff --git a/ferramentas/graficotema/index.js b/ferramentas/graficotema/index.js index 46483cb..4acfba6 100755 --- a/ferramentas/graficotema/index.js +++ b/ferramentas/graficotema/index.js @@ -60,6 +60,7 @@ i3GEOF.graficoTema = { * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php */ MUSTACHE : "", + MUSTACHELISTA : "", /** * Susbtitutos para o template */ @@ -97,12 +98,20 @@ i3GEOF.graficoTema = { */ inicia: function(iddiv){ if(i3GEOF.graficoTema.MUSTACHE == ""){ - $.get(i3GEO.configura.locaplic + "/ferramentas/graficotema/template_mst.html", function(template) { - i3GEOF.graficoTema.MUSTACHE = template; + var t1 = i3GEO.configura.locaplic + "/ferramentas/graficotema/template_mst.html", + t2 = i3GEO.configura.locaplic + "/ferramentas/graficotema/templateLista_mst.html"; + + $.when( $.get(t1),$.get(t2) ).done(function(r1,r2) { + i3GEOF.graficoTema.MUSTACHE = r1[0]; + i3GEOF.graficoTema.MUSTACHELISTA = r2[0]; i3GEOF.graficoTema.inicia(iddiv); + }).fail(function() { + i3GEO.janela.closeMsg($trad("erroTpl")); + return; }); return; } + if (!$i("i3GEOFgraficotemaComboCabecaSel")) { i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){ var botao = evt.target; @@ -130,12 +139,7 @@ i3GEOF.graficoTema = { {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia1","i3GEOgraficotemaguia");}; $i("i3GEOgraficotemaguia2").onclick = function() {i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficotemaguia2","i3GEOgraficotemaguia");}; - var b = new YAHOO.widget.Button( - "i3GEOgraficotemabotao1", - {onclick:{fn: i3GEOF.graficoTema.criaNovoTema}} - ); - b.addClass("rodar"); - i3GEO.util.mensagemAjuda("i3GEOgraficotemamen1",$i("i3GEOgraficotemamen1").innerHTML); + // //pega a lista de itens e chama a função de montagem das opções de escolha // @@ -172,7 +176,7 @@ i3GEOF.graficoTema = { return; } //cria a janela flutuante - titulo = "
------
"+$trad("t37a")+""; + titulo = "
------
"+$trad("t37a")+""; janela = i3GEO.janela.cria( "400px", "330px", @@ -186,7 +190,11 @@ i3GEOF.graficoTema = { "", "", "", - true + true, + "", + "", + "", + "" ); divid = janela[2].id; i3GEOF.graficoTema.aguarde = $i("i3GEOF.graficoTema_imagemCabecalho").style; @@ -201,18 +209,28 @@ i3GEOF.graficoTema = { A lista é inserida no elemento html com id "i3GEOgraficotemalistai" */ montaListaItens: function(retorno){ - var ins,i,n; + var ins,i,n, temp = {}, mustache = []; try{ ins = []; ins.push("
Coluna Identifica
"); n = retorno.data.valores.length; for (i=0;i"); - ins.push(""); - ins.push(""); + temp = {}; + temp.item = retorno.data.valores[i].item; + temp.rcor = i3GEO.util.randomRGB(); + mustache.push(temp); } - ins.push("
 "+retorno.data.valores[i].item+"
"); - $i("i3GEOgraficotemalistai").innerHTML = ins.join(""); + ins = Mustache.render( + i3GEOF.graficoTema.MUSTACHELISTA, + $.extend( + {}, + { + "linhas" : mustache, + }, + i3GEOF.graficoTema.DICIONARIO + ) + ); + $i("i3GEOgraficotemalistai").innerHTML = ins; i3GEO.util.aplicaAquarela("i3GEOgraficotemalistai"); } catch(e) diff --git a/ferramentas/graficotema/templateLista_mst.html b/ferramentas/graficotema/templateLista_mst.html new file mode 100755 index 0000000..420313e --- /dev/null +++ b/ferramentas/graficotema/templateLista_mst.html @@ -0,0 +1,24 @@ + + + + {{#linhas}} + + + + + + {{/linhas}} +
+
+ +
+
{{{item}}} +
+ +
+
\ No newline at end of file diff --git a/ferramentas/graficotema/template_mst.html b/ferramentas/graficotema/template_mst.html index c9ac1c9..d1889ea 100755 --- a/ferramentas/graficotema/template_mst.html +++ b/ferramentas/graficotema/template_mst.html @@ -1,4 +1,4 @@ -
+
  • @@ -15,44 +15,40 @@

-