Commit fbb4fd1406d2654a48be7e15e9b0a97d0716da20

Authored by Edmar Moretti
1 parent d4539292

Adaptação da ferramenta Opcoes Legenda para Bootstrap

admin/admin.db
No preview for this file type
ferramentas/opcoes_legenda/dicionario.js
... ... @@ -81,7 +81,7 @@ i3GEOF.opcoesLegenda.dicionario = {
81 81 es : ""
82 82 } ],
83 83 'fonte' : [ {
84   - pt : "Fonte: (teste a fonte mais adequada para apresentação correta da acentuação)",
  84 + pt : "Fonte tipográfica",
85 85 en : "",
86 86 es : ""
87 87 } ],
... ...
ferramentas/opcoes_legenda/index.js
... ... @@ -46,17 +46,7 @@ i3GEOF.opcoesLegenda = {
46 46 }
47 47 try{
48 48 $i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html();
49   - var b = new YAHOO.widget.Button(
50   - "i3GEOopcoesLegendabotao1",
51   - {onclick:{fn: i3GEOF.opcoesLegenda.executa}}
52   - );
53   - b.addClass("rodar");
54   - b = new YAHOO.widget.Button(
55   - "i3GEOopcoesLegendabotao2",
56   - {onclick:{fn: i3GEOF.opcoesLegenda.testa}}
57   - );
58   - b.addClass("rodar");
59   - i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef");
  49 + i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef","form-control");
60 50 i3GEOF.opcoesLegenda.parametrosAtuais();
61 51 i3GEO.util.aplicaAquarela("i3GEOF.opcoesLegenda_corpo");
62 52 }
... ... @@ -229,8 +219,7 @@ i3GEOF.opcoesLegenda = {
229 219 var temp = function(retorno){
230 220 i3GEOF.opcoesLegenda.aguarde.visibility = "hidden";
231 221 eval(retorno.data);
232   - $i("i3GEOopcoesLegendatesteLegenda").src = legimagem;
233   - $i("i3GEOopcoesLegendatesteLegenda").style.display = "block";
  222 + i3GEO.janela.closeMsg("<img src='" + legimagem + "' />");
234 223 },
235 224 par = i3GEOF.opcoesLegenda.parametrosFormulario(),
236 225 p = i3GEO.configura.locaplic+"/ferramentas/opcoes_legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=testaLegenda"+par,
... ...
ferramentas/opcoes_legenda/template_mst.html
1   -<div style='margin-left: 5px'>
2   - <p class='paragrafo'>{{{incluiNoMapa}}}:</p>
3   - <div class='styled-select'>
4   - <select id='i3GEOopcoesLegendastatus'>
5   - <option value='3'>{{{sim}}}</option>
6   - <option value='1'>{{{nao}}}</option>
7   - <option value='0'>---</option>
8   - </select>
9   - </div>
10   - <br>
11   - <p class='paragrafo'>{{{corFundo}}}:</p>
12   - <div class='i3geoForm100 i3geoFormIconeAquarela'>
13   - <input type='text' id='i3GEOopcoesLegendaimagecolor' value='' />
14   - </div>
15   - <br>
16   - <p class='paragrafo'>{{{contornoSimbolos}}}:</p>
17   - <div class='i3geoForm100 i3geoFormIconeAquarela'>
18   - <input type='text' id='i3GEOopcoesLegendaoutlinecolor' value='' />
19   - </div>
20   - <br>
21   - <p class='paragrafo'>{{{posicao}}}:</p>
22   - <div class='styled-select'>
23   - <select id='i3GEOopcoesLegendaposition'>
24   - <option value='101'>{{{supEsquerdo}}}</option>
25   - <option value='107'>{{{supCentro}}}</option>
26   - <option value='103' selected>{{{supDireito}}}</option>
27   - <option value='104'>{{{infEsquerdo}}}</option>
28   - <option value='108'>{{{infCentro}}}</option>
29   - <option value='102'>{{{infDireito}}}</option>
30   - </select>
31   - </div>
32   - <br>
33   - <p class='paragrafo'>{{{espacamentoY}}}:</p>
34   - <div class='i3geoForm i3geoFormIconeEdita'>
35   - <input type='text' id='i3GEOopcoesLegendakeyspacingy' value='' />
36   - </div>
37   - <br>
38   - <p class='paragrafo'>{{{espacamentoX}}}:</p>
39   - <div class='i3geoForm i3geoFormIconeEdita'>
40   - <input type='text' id='i3GEOopcoesLegendakeyspacingx' value='' />
41   - </div>
42   - <br>
43   - <p class='paragrafo'>{{{tamanhoSimboloY}}}:</p>
44   - <div class='i3geoForm i3geoFormIconeEdita'>
45   - <input type='text' id='i3GEOopcoesLegendakeysizey' value='' />
46   - </div>
47   - <br>
48   - <p class='paragrafo'>{{{tamanhoSimboloX}}}:</p>
49   - <div class='i3geoForm i3geoFormIconeEdita'>
50   - <input type='text' id='i3GEOopcoesLegendakeysizex' value='' />
51   - </div>
52   - <br>
53   - <p class='paragrafo'>{{{tamanhoTexto}}}:</p>
54   - <div class='i3geoForm i3geoFormIconeEdita'>
55   - <input type='text' id='i3GEOopcoesLegendalabelsize' value='' />
56   - </div>
57   - <br>
58   - <p class='paragrafo'>{{{fonte}}}:</p>
59   - <div class='styled-select' id='i3GEOopcoesLegendafontef'></div>
60   -
61   - <br>
62   - <p class='paragrafo'>
63   - <input id='i3GEOopcoesLegendabotao1' size='20' type='button' value='{{{aplica}}}' />
64   - </p>
65   - <br>
66   - <p class='paragrafo'>
67   - <input id='i3GEOopcoesLegendabotao2' size='20' type='button' value='{{{testa}}}' />
68   - </p>
69   - <br>
70   - <img alt='teste' src='' id='i3GEOopcoesLegendatesteLegenda' style='display: none' />
  1 +<div class='container-fluid'>
  2 + <div style="width: 100%;" class='form-group label-fixed condensed'>
  3 + <label class="control-label" for="i3GEOopcoesLegendastatus">{{{incluiNoMapa}}}</label>
  4 + <div style="width: 100%;" class="input-group">
  5 + <select class="form-control" id="i3GEOopcoesLegendastatus">
  6 + <option value='3'>{{{sim}}}</option>
  7 + <option value='1'>{{{nao}}}</option>
  8 + <option value='0'>---</option>
  9 + </select>
  10 + </div>
  11 + </div>
  12 + <div class='form-group label-fixed condensed'>
  13 + <label class="control-label" for="i3GEOopcoesLegendaimagecolor">{{{corFundo}}}</label>
  14 + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesLegendaimagecolor' value='' />
  15 + </div>
  16 + <div class='form-group label-fixed condensed'>
  17 + <label class="control-label" for="i3GEOopcoesLegendaoutlinecolor">{{{contornoSimbolos}}}</label>
  18 + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesLegendaoutlinecolor' value='' />
  19 + </div>
  20 + <div style="width: 100%;" class='form-group label-fixed condensed'>
  21 + <label class="control-label" for="i3GEOopcoesLegendaposition">{{{posicao}}}</label>
  22 + <div style="width: 100%;" class="input-group">
  23 + <select class="form-control" id="i3GEOopcoesLegendaposition">
  24 + <option value='101'>{{{supEsquerdo}}}</option>
  25 + <option value='107'>{{{supCentro}}}</option>
  26 + <option value='103' selected>{{{supDireito}}}</option>
  27 + <option value='104'>{{{infEsquerdo}}}</option>
  28 + <option value='108'>{{{infCentro}}}</option>
  29 + <option value='102'>{{{infDireito}}}</option>
  30 + </select>
  31 + </div>
  32 + </div>
  33 + <div class='form-group label-fixed condensed'>
  34 + <label class="control-label" for="i3GEOopcoesLegendakeyspacingy">{{{espacamentoY}}}</label>
  35 + <input class="form-control input-lg " type='text' id='i3GEOopcoesLegendakeyspacingy' value='' />
  36 + </div>
  37 + <div class='form-group label-fixed condensed'>
  38 + <label class="control-label" for="i3GEOopcoesLegendakeyspacingx">{{{espacamentoX}}}</label>
  39 + <input class="form-control input-lg " type='text' id='i3GEOopcoesLegendakeyspacingx' value='' />
  40 + </div>
  41 + <div class='form-group label-fixed condensed'>
  42 + <label class="control-label" for="i3GEOopcoesLegendakeysizey">{{{tamanhoSimboloY}}}</label>
  43 + <input class="form-control input-lg " type='text' id='i3GEOopcoesLegendakeysizey' value='' />
  44 + </div>
  45 + <div class='form-group label-fixed condensed'>
  46 + <label class="control-label" for="i3GEOopcoesLegendakeysizex">{{{tamanhoSimboloX}}}</label>
  47 + <input class="form-control input-lg " type='text' id='i3GEOopcoesLegendakeysizex' value='' />
  48 + </div>
  49 + <div class='form-group label-fixed condensed'>
  50 + <label class="control-label" for="i3GEOopcoesLegendalabelsize">{{{tamanhoTexto}}}</label>
  51 + <input class="form-control input-lg " type='text' id='i3GEOopcoesLegendalabelsize' value='' />
  52 + </div>
  53 + <div style="width: 100%;" class='form-group label-fixed condensed'>
  54 + <label class="control-label" for="">{{{fonte}}}</label>
  55 + <div style="width: 100%;" class="input-group">
  56 + <div id='i3GEOopcoesLegendafontef'></div>
  57 + </div>
  58 + </div>
  59 + <button onclick="i3GEOF.opcoesLegenda.executa()" class='btn btn-primary btn-sm btn-raised'>{{{aplica}}}</button>
  60 + <button onclick="i3GEOF.opcoesLegenda.testa()" class='btn btn-primary btn-sm btn-raised'>{{{testa}}}</button>
71 61 </div>
72 62 \ No newline at end of file
... ...