Commit c8e9d0b684fc9229c1ba31f79888b0aead890c78
1 parent
bda52ea3
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
10 additions
and
39 deletions
Show diff stats
ferramentas/opcoes_tamanho/index.htm
| ... | ... | @@ -11,22 +11,17 @@ |
| 11 | 11 | </div> |
| 12 | 12 | <table class=lista2 width="100%"> |
| 13 | 13 | <tr> |
| 14 | - <td>Largura:</td> | |
| 15 | - <td><input style="cursor:text" size=4 class=digitar type='text' id=l value='' /></td> | |
| 16 | - </tr> | |
| 17 | - <tr> | |
| 18 | - <td>Altura:</td> | |
| 19 | - <td><input style="cursor:text" size=4 class=digitar type='text' id=a value='' /></td> | |
| 14 | + <td>Tempo após o qual o mapa será redesenhado automaticamente:</td> | |
| 15 | + <td><input style="cursor:text" size=8 class=digitar type='text' id=t value='' /></td> | |
| 20 | 16 | </tr> |
| 21 | 17 | </table> |
| 22 | 18 | |
| 23 | -<br><div style=left:0px class=destaca >Valores em pixels.</div> | |
| 19 | +<br><div style=left:0px class=destaca >Tempo em milisegundos. Utilize 0 para eliminar o temporizador</div> | |
| 24 | 20 | |
| 25 | 21 | </body> |
| 26 | 22 | <script type="text/javascript" src="../../pacotes/yui/build/yahoo-dom-event/yahoo-dom-event.js"></script> |
| 27 | 23 | <script type="text/javascript" src="../../pacotes/yui/build/element/element-beta.js"></script> |
| 28 | 24 | <script type="text/javascript" src="../../pacotes/yui/build/button/button-beta.js"></script> |
| 29 | 25 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
| 30 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
| 31 | 26 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
| 32 | 27 | </html> |
| 33 | 28 | \ No newline at end of file | ... | ... |
ferramentas/opcoes_tamanho/index.js
| ... | ... | @@ -19,9 +19,7 @@ GNU junto com este programa; se não, escreva para a |
| 19 | 19 | Free Software Foundation, Inc., no endereço |
| 20 | 20 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 21 | 21 | */ |
| 22 | -$i("l").value = window.parent.objmapa.w | |
| 23 | -$i("a").value = window.parent.objmapa.h | |
| 24 | -parametrosURL() | |
| 22 | +$i("t").value = window.parent.g_autoRedesenho | |
| 25 | 23 | YAHOO.example.init = function () |
| 26 | 24 | { |
| 27 | 25 | function onPushButtonsMarkupReady() |
| ... | ... | @@ -30,34 +28,12 @@ YAHOO.example.init = function () |
| 30 | 28 | }() |
| 31 | 29 | function executaf() |
| 32 | 30 | { |
| 33 | - var l = $i("l").value | |
| 34 | - var a = $i("a").value | |
| 35 | - if ((l > 5) && (a > 5)) | |
| 31 | + window.parent.autoRedesenho("desativa") | |
| 32 | + window.parent.g_autoRedesenho = $i("t").value | |
| 33 | + if (($i("t").value == 0) || ($i("t").value == "")) | |
| 34 | + {window.parent.autoRedesenho("desativa")} | |
| 35 | + else | |
| 36 | 36 | { |
| 37 | - var doc = window.parent.document | |
| 38 | - window.parent.objmapa.w = l | |
| 39 | - window.parent.objmapa.h = a | |
| 40 | - var pos = "px" | |
| 41 | - if (window.parent.navm){pos = ""} | |
| 42 | - doc.getElementById("img").style.width= l+pos | |
| 43 | - doc.getElementById("img").style.height= a+pos | |
| 44 | - doc.getElementById("corpoMapa").style.width= l+pos | |
| 45 | - doc.getElementById("corpoMapa").style.height= a+pos | |
| 46 | - doc.getElementById("corpoMapa").style.clip = 'rect('+0+" "+(l*1+2)+" "+(a*1+2)+" "+0+')' | |
| 47 | - var calc = 5; | |
| 48 | - if (doc.getElementById("ferramentas")) | |
| 49 | - {calc += parseInt(doc.getElementById("ferramentas").style.width);} | |
| 50 | - if (doc.getElementById("contemFerramentas")) | |
| 51 | - {calc += parseInt(doc.getElementById("contemFerramentas").style.width);} | |
| 52 | - doc.getElementById("mst").style.width = (l * 1) + calc + pos; | |
| 53 | - doc.getElementById("contemImg").style.height= a+pos | |
| 54 | - doc.getElementById("contemImg").style.width= l+pos | |
| 55 | - window.parent.calcposf() | |
| 56 | - window.parent.objaguarde.abre("ajaxredesenha","Aguarde...") | |
| 57 | - var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=mudatamanho&altura="+a+"&largura="+l | |
| 58 | - var cp = new cpaint(); | |
| 59 | - //cp.set_debug(2) | |
| 60 | - cp.set_response_type("JSON"); | |
| 61 | - cp.call(p,"mudaQS",window.parent.ajaxredesenha); | |
| 37 | + window.parent.autoRedesenho("ativa") | |
| 62 | 38 | } |
| 63 | 39 | } |
| 64 | 40 | \ No newline at end of file | ... | ... |