Commit c0514e320b32e5c9588403c7a538743550d31944
1 parent
02c0dc7c
Exists in
master
and in
7 other branches
Adaptação da ferramenta Aplicar SLD para Bootstrap
Showing
2 changed files
with
16 additions
and
16 deletions
Show diff stats
ferramentas/aplicarsld/index.js
... | ... | @@ -71,10 +71,6 @@ i3GEOF.aplicarsld = { |
71 | 71 | inicia: function(iddiv){ |
72 | 72 | try{ |
73 | 73 | $i(iddiv).innerHTML += i3GEOF.aplicarsld.html(); |
74 | - new YAHOO.widget.Button( | |
75 | - "i3GEOaplicarsldbotao1", | |
76 | - {onclick:{fn: i3GEOF.aplicarsld.submete}} | |
77 | - ); | |
78 | 74 | } |
79 | 75 | catch(erro){i3GEO.janela.tempoMsg(erro);} |
80 | 76 | }, |
... | ... | @@ -108,7 +104,7 @@ i3GEOF.aplicarsld = { |
108 | 104 | titulo = "<span class='i3GeoTituloJanelaBsNolink' >" + $trad("t43") + "</span></div>"; |
109 | 105 | |
110 | 106 | janela = i3GEO.janela.cria( |
111 | - "320px", | |
107 | + "400px", | |
112 | 108 | "280px", |
113 | 109 | "", |
114 | 110 | "", | ... | ... |
ferramentas/aplicarsld/template_mst.html
1 | -<form id='i3GEOaplicarsldf' target='i3GEOaplicarsldiframe' action='{{{locaplic}}}/ferramentas/aplicarsld/upload.php?tema={{{temaAtivo}}}' method='post' ENCTYPE='multipart/form-data'> | |
2 | - <p class='paragrafo'> | |
3 | - {{{arquivo}}}: <br> | |
4 | - <input type='file' size='18' name='i3GEOaplicarsld' style='top: 0px; left: 0px; cursor: pointer;'> | |
5 | - </p> | |
6 | - <br> | |
7 | - <p class='paragrafo'> | |
8 | - <input id='i3GEOaplicarsldbotao1' type='button' value='{{{aplica}}}' size='12' name='submit'> | |
1 | +<div class='container-fluid'> | |
2 | + <h5>{{{arquivo}}}</h5> | |
3 | + <form class="form-horizontal" role="form" id='i3GEOaplicarsldf' target='i3GEOaplicarsldiframe' action='{{{locaplic}}}/ferramentas/aplicarsld/upload.php?tema={{{temaAtivo}}}' method='post' | |
4 | + ENCTYPE='multipart/form-data'> | |
5 | + <div class="input-group-btn"> | |
6 | + <button style="margin-right: 10px;" type="button" class="btn btn-primary btn-raised pull-left" onclick="$(this).parent().find('input[type=file]').click();">SLD</button> | |
7 | + <input name="i3GEOaplicarsld" onchange="$(this).parent().find('.form-control').html($(this).val().split(/[\\|/]/).pop());" style="display: none;" type="file"> | |
8 | + <span class="form-control upload"></span> | |
9 | + </div> | |
10 | + <br> | |
11 | + <button onclick=" i3GEOF.aplicarsld.submete()" class='btn btn-primary btn-sm btn-raised' name='submit'>{{{aplica}}}</button> | |
9 | 12 | <input type='hidden' name='g_sid' value='+i3GEO.configura.sid+'> |
10 | 13 | <input type='hidden' name='MAX_FILE_SIZE' value='100000'> |
11 | -</form> | |
12 | -<br> | |
13 | -<iframe name='i3GEOaplicarsldiframe' style='text-align: left; border: 1px solid gray;' width='98%' height='60px'></iframe> | |
14 | 14 | \ No newline at end of file |
15 | + </form> | |
16 | + <br> | |
17 | + <iframe name='i3GEOaplicarsldiframe' style='text-align: left; border: 1px solid gray;' width='98%' height='60px'></iframe> | |
18 | +</div> | |
15 | 19 | \ No newline at end of file | ... | ... |