Commit 65aec7041becfcd5894600f245e911b4a18f8fc3
1 parent
fbb4fd14
Exists in
master
and in
7 other branches
Adaptação da ferramenta Opcoes Escala para Bootstrap
Showing
2 changed files
with
60 additions
and
76 deletions
Show diff stats
ferramentas/opcoes_escala/index.js
... | ... | @@ -46,16 +46,6 @@ i3GEOF.opcoesEscala = { |
46 | 46 | } |
47 | 47 | try{ |
48 | 48 | $i(iddiv).innerHTML += i3GEOF.opcoesEscala.html(); |
49 | - var b = new YAHOO.widget.Button( | |
50 | - "i3GEOopcoesEscalabotao1", | |
51 | - {onclick:{fn: i3GEOF.opcoesEscala.executa}} | |
52 | - ); | |
53 | - b.addClass("rodar"); | |
54 | - b = new YAHOO.widget.Button( | |
55 | - "i3GEOopcoesEscalabotao2", | |
56 | - {onclick:{fn: i3GEOF.opcoesEscala.testa}} | |
57 | - ); | |
58 | - b.addClass("rodar"); | |
59 | 49 | i3GEOF.opcoesEscala.parametrosAtuais(); |
60 | 50 | i3GEO.util.aplicaAquarela("i3GEOF.opcoesEscala_corpo"); |
61 | 51 | } |
... | ... | @@ -177,7 +167,6 @@ i3GEOF.opcoesEscala = { |
177 | 167 | $i("i3GEOopcoesEscalaocor").value = ocor; |
178 | 168 | } |
179 | 169 | i3GEOF.opcoesEscala.aguarde.visibility = "hidden"; |
180 | - i3GEOF.opcoesEscala.testa(); | |
181 | 170 | }catch(e){ |
182 | 171 | i3GEO.janela.tempoMsg("Erro. "+e); |
183 | 172 | i3GEOF.opcoesEscala.aguarde.visibility = "hidden"; |
... | ... | @@ -218,7 +207,7 @@ i3GEOF.opcoesEscala = { |
218 | 207 | i3GEOF.opcoesEscala.aguarde.visibility = "visible"; |
219 | 208 | var temp = function(retorno){ |
220 | 209 | i3GEOF.opcoesEscala.aguarde.visibility = "hidden"; |
221 | - $i("i3GEOopcoesEscalateste").src = retorno.data; | |
210 | + i3GEO.janela.closeMsg("<img src='" + retorno.data + "' />"); | |
222 | 211 | }, |
223 | 212 | par = i3GEOF.opcoesEscala.parametrosFormulario(), |
224 | 213 | p = i3GEO.configura.locaplic+"/ferramentas/opcoes_escala/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=testaescalagrafica"+par, | ... | ... |
ferramentas/opcoes_escala/template_mst.html
1 | -<div style='margin-left: 5px'> | |
2 | - <p class='paragrafo'>{{{incluiNoMapa}}}:</p> | |
3 | - <div class='styled-select'> | |
4 | - <select id='i3GEOopcoesEscalastatus'> | |
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'>{{{largura}}}:</p> | |
12 | - <div class='i3geoForm i3geoFormIconeEdita'> | |
13 | - <input type='text' id='i3GEOopcoesEscalaw' value='' /> | |
14 | - </div> | |
15 | - <br> | |
16 | - <p class='paragrafo'>{{{altura}}}:</p> | |
17 | - <div class='i3geoForm i3geoFormIconeEdita'> | |
18 | - <input type='text' id='i3GEOopcoesEscalah' value='' /> | |
19 | - </div> | |
20 | - <br> | |
21 | - <p class='paragrafo'>{{{unidade}}}:</p> | |
22 | - <div class='styled-select'> | |
23 | - <select id='i3GEOopcoesEscalaunidade'> | |
24 | - <option value='3' selected>Metros</option> | |
25 | - <option value='4'>Km</option> | |
26 | - </select> | |
27 | - </div> | |
28 | - <br> | |
29 | - <p class='paragrafo'>{{{estilo}}}:</p> | |
30 | - <div class='styled-select'> | |
31 | - <select id='i3GEOopcoesEscalaestilo'> | |
32 | - <option value='0' selected>{{{bloco}}}</option> | |
33 | - <option value='1'>{{{linear}}}</option> | |
34 | - <option value='2'>{{{semBarra}}}</option> | |
35 | - </select> | |
36 | - </div> | |
37 | - <br> | |
38 | - <p class='paragrafo'>{{{intervalos}}}:</p> | |
39 | - <div class='i3geoForm i3geoFormIconeEdita'> | |
40 | - <input type='text' id='i3GEOopcoesEscalaintervalos' value='' /> | |
41 | - </div> | |
42 | - <br> | |
43 | - <p class='paragrafo'>{{{cor}}}:</p> | |
44 | - <div class='i3geoForm100 i3geoFormIconeAquarela'> | |
45 | - <input type='text' id='i3GEOopcoesEscalacor' value='' /> | |
46 | - </div> | |
47 | - <br> | |
48 | - <p class='paragrafo'>{{{fundo}}}:</p> | |
49 | - <div class='i3geoForm100 i3geoFormIconeAquarela'> | |
50 | - <input type='text' id='i3GEOopcoesEscalabcor' value='' /> | |
51 | - </div> | |
52 | - <br> | |
53 | - <p class='paragrafo'>{{{contorno}}}:</p> | |
54 | - <div class='i3geoForm100 i3geoFormIconeAquarela'> | |
55 | - <input type='text' id='i3GEOopcoesEscalaocor' value='' /> | |
56 | - </div> | |
57 | - <br> | |
58 | - <p class='paragrafo'> | |
59 | - <input id='i3GEOopcoesEscalabotao1' size='20' type='button' value='{{{aplica}}}' /> | |
60 | - </p> | |
61 | - <p class='paragrafo'> | |
62 | - <input id='i3GEOopcoesEscalabotao2' size='20' type='button' value='{{{testa}}}' /> | |
63 | - </p> | |
64 | - <br> | |
1 | +<div class='container-fluid'> | |
2 | + <div style="width: 100%;" class='form-group label-fixed condensed'> | |
3 | + <label class="control-label" for="i3GEOopcoesEscalastatus">{{{incluiNoMapa}}}</label> | |
4 | + <div style="width: 100%;" class="input-group"> | |
5 | + <select class="form-control" id="i3GEOopcoesEscalastatus"> | |
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="i3GEOopcoesEscalaw">{{{largura}}}</label> | |
14 | + <input class="form-control input-lg " type='text' id='i3GEOopcoesEscalaw' value='' /> | |
15 | + </div> | |
16 | + <div class='form-group label-fixed condensed'> | |
17 | + <label class="control-label" for="i3GEOopcoesEscalah">{{{altura}}}</label> | |
18 | + <input class="form-control input-lg " type='text' id='i3GEOopcoesEscalah' value='' /> | |
19 | + </div> | |
20 | + <div style="width: 100%;" class='form-group label-fixed condensed'> | |
21 | + <label class="control-label" for="i3GEOopcoesEscalaunidade">{{{unidade}}}</label> | |
22 | + <div style="width: 100%;" class="input-group"> | |
23 | + <select class="form-control" id="i3GEOopcoesEscalaunidade"> | |
24 | + <option value='3' selected>Metros</option> | |
25 | + <option value='4'>Km</option> | |
26 | + </select> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div style="width: 100%;" class='form-group label-fixed condensed'> | |
30 | + <label class="control-label" for="i3GEOopcoesEscalaestilo">{{{estilo}}}</label> | |
31 | + <div style="width: 100%;" class="input-group"> | |
32 | + <select class="form-control" id="i3GEOopcoesEscalaestilo"> | |
33 | + <option value='0' selected>{{{bloco}}}</option> | |
34 | + <option value='1'>{{{linear}}}</option> | |
35 | + <option value='2'>{{{semBarra}}}</option> | |
36 | + </select> | |
37 | + </div> | |
38 | + </div> | |
39 | + <div class='form-group label-fixed condensed'> | |
40 | + <label class="control-label" for="i3GEOopcoesEscalaintervalos">{{{intervalos}}}</label> | |
41 | + <input class="form-control input-lg " type='text' id='i3GEOopcoesEscalaintervalos' value='' /> | |
42 | + </div> | |
43 | + <div class='form-group label-fixed condensed'> | |
44 | + <label class="control-label" for="i3GEOopcoesEscalacor">{{{cor}}}</label> | |
45 | + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesEscalacor' value='' /> | |
46 | + </div> | |
47 | + <div class='form-group label-fixed condensed'> | |
48 | + <label class="control-label" for="i3GEOopcoesEscalabcor">{{{fundo}}}</label> | |
49 | + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesEscalabcor' value='' /> | |
50 | + </div> | |
51 | + <div class='form-group label-fixed condensed'> | |
52 | + <label class="control-label" for="i3GEOopcoesEscalaocor">{{{contorno}}}</label> | |
53 | + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesEscalaocor' value='' /> | |
54 | + </div> | |
55 | + <button onclick="i3GEOF.opcoesEscala.executa()" class='btn btn-primary btn-sm btn-raised'>{{{aplica}}}</button> | |
56 | + <button onclick="i3GEOF.opcoesEscala.testa()" class='btn btn-primary btn-sm btn-raised'>{{{testa}}}</button> | |
57 | + | |
58 | + | |
59 | + | |
65 | 60 | <img src='' id='i3GEOopcoesEscalateste' /> |
66 | 61 | </div> |
67 | 62 | \ No newline at end of file | ... | ... |