Commit 2728ae7eab19d286b08b312cbb85a5a59a28763e
1 parent
97055275
Exists in
master
and in
7 other branches
Implementação do Mustache
Showing
2 changed files
with
0 additions
and
94 deletions
Show diff stats
ferramentas/preferencias/dependencias.php
| @@ -1,30 +0,0 @@ | @@ -1,30 +0,0 @@ | ||
| 1 | -<?php | ||
| 2 | -/** | ||
| 3 | - * Carrega os programas javascript necessarios para a ferramenta | ||
| 4 | - * Esse programa e usado na tag <script> ou com a funcao scripttag do i3Geo | ||
| 5 | - * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel | ||
| 6 | - * javascript i3GEOF.preferencias.MUSTACHE | ||
| 7 | - * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta | ||
| 8 | - */ | ||
| 9 | -if(extension_loaded('zlib')){ | ||
| 10 | - ob_start('ob_gzhandler'); | ||
| 11 | -} | ||
| 12 | -header("Content-type: text/javascript"); | ||
| 13 | -include("index.js"); | ||
| 14 | -include("dicionario.js"); | ||
| 15 | -echo "\n"; | ||
| 16 | -/** | ||
| 17 | - * Inclui o template mustache do HTML usado para criar o conteudo da janela | ||
| 18 | - */ | ||
| 19 | -echo 'i3GEOF.preferencias.MUSTACHE = "'; | ||
| 20 | -$texto = file_get_contents("template_mst.html"); | ||
| 21 | -$texto = str_replace("\n", "", $texto); | ||
| 22 | -$texto = str_replace("\r", "", $texto); | ||
| 23 | -$texto = str_replace("\t", "", $texto); | ||
| 24 | -$texto = str_replace('"', "'", $texto); | ||
| 25 | -echo $texto; | ||
| 26 | -echo '";'; | ||
| 27 | -if(extension_loaded('zlib')){ | ||
| 28 | - ob_end_flush(); | ||
| 29 | -} | ||
| 30 | -?> | ||
| 31 | \ No newline at end of file | 0 | \ No newline at end of file |
ferramentas/preferencias/template_mst.html
| @@ -1,64 +0,0 @@ | @@ -1,64 +0,0 @@ | ||
| 1 | -<div class='yui-navset' style='top: 0px; cursor: pointer; left: 0px;'> | ||
| 2 | - <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'> | ||
| 3 | - <li><div id='i3GEOpontosDistriguia1' style='text-align: center; left: 0px;'><a> | ||
| 4 | - <em>{{{calculo}}}</em> | ||
| 5 | - </a></div></li> | ||
| 6 | - <li><div id='i3GEOpontosDistriguia2' style='text-align: center; left: 0px;'><a> | ||
| 7 | - <em>{{{propriedades}}}</em> | ||
| 8 | - </a></div></li> | ||
| 9 | - </ul> | ||
| 10 | -</div> | ||
| 11 | -<br> | ||
| 12 | -<div class='guiaobj' id='i3GEOpontosDistriguia1obj' style='left: 1px; display: none;'> | ||
| 13 | - <p class='paragrafo'>{{{selecionaTema}}}</p> | ||
| 14 | - <div id='i3GEOpontosDistriTemas'></div> | ||
| 15 | - <p class='paragrafo'>{{{restringeAnalise}}} i3GEO.util.comboSimNao('i3GEOpontosDistrilimitePontos','sim') | ||
| 16 | - <p class='paragrafo'>{{{extendeAbrangencia}}} $inputText('','','i3GEOpontosDistriextendelimite','',3,'10')+' %' | ||
| 17 | - <p class='paragrafo'> | ||
| 18 | - <input id='i3GEOpontosDistribotao1' size='35' type='button' value='{{{densidadePontos}}}' /> | ||
| 19 | - | ||
| 20 | - <input id='i3GEOpontosDistribotao2' size='35' type='button' value='{{{distanciaPontos}}}' /> | ||
| 21 | - </p> | ||
| 22 | - <p class='paragrafo'> | ||
| 23 | - <input id='i3GEOpontosDistribotaokernel' size='35' type='button' value='Kernel' /> | ||
| 24 | - {{{desvioPadrao}}}: $inputText('','','i3GEOpontosDistrisigma','',3,'') | ||
| 25 | - </p> | ||
| 26 | - <p class='paragrafo'> | ||
| 27 | - <input id='i3GEOpontosDistribotaodeldir' size='35' type='button' value='Delaunay/Voronoi' /> | ||
| 28 | - </p> | ||
| 29 | - <p class='paragrafo'> | ||
| 30 | - <input id='i3GEOpontosDistribotao3' size='35' type='button' value='{{{relatorio}}}' /> | ||
| 31 | - </p> | ||
| 32 | - <div id='i3GEOpontosDistriresultado' style='display: none; position: relative; top: 10px; left: 0px;'></div> | ||
| 33 | -</div> | ||
| 34 | -<input type='hidden' id='i3GEOpontosDistrilistadeitens' value='' /> | ||
| 35 | -<input type='hidden' id='i3GEOpontosDistritema' value='' /> | ||
| 36 | -<div class='guiaobj' id='i3GEOpontosDistriguia2obj' style='left: 1px; display: none;'> | ||
| 37 | - <p class='paragrafo'>{{{opcoesCoresClasses}}}</p> | ||
| 38 | - <br> | ||
| 39 | - <table summary='' class='lista2' style=> | ||
| 40 | - <tr> | ||
| 41 | - <td>{{{numeroClasses}}}</td> | ||
| 42 | - <td>$inputText('','','i3GEOpontosDistrinumclasses','',4,'50') '</td> | ||
| 43 | - </tr> | ||
| 44 | - <tr> | ||
| 45 | - <td>{{{corInicial}}}</td> | ||
| 46 | - <td> | ||
| 47 | - $inputText('','','i3GEOpontosDistricori','',12,'0,0,0') | ||
| 48 | - <img alt='aquarela.gif' style='cursor: pointer' src='{{{locaplic}}}/imagens/aquarela.gif' onclick="i3GEOF.pontosDistri.corj(\' i3GEOpontosDistricori\')" /> | ||
| 49 | - </td> | ||
| 50 | - </tr> | ||
| 51 | - <tr> | ||
| 52 | - <td>{{{corFinal}}}</td> | ||
| 53 | - <td> | ||
| 54 | - $inputText('','','i3GEOpontosDistricorf','',12,'255,255,255') | ||
| 55 | - <img alt='aquarela.gif' style='cursor: pointer' src='{{{locaplic}}}/imagens/aquarela.gif' onclick="i3GEOF.pontosDistri.corj(\' i3GEOpontosDistricorf\')" /> | ||
| 56 | - </td> | ||
| 57 | - </tr> | ||
| 58 | - </table> | ||
| 59 | - <br> | ||
| 60 | - <p class='paragrafo'> | ||
| 61 | - <input id='i3GEOpontosDistribotao4' size='15' type='button' value='{{{verCor}}}' /> | ||
| 62 | - <div id='i3GEOpontosDistrimostracores' style='display: block;'></div> | ||
| 63 | -</div> | ||
| 64 | -<div class='guiaobj' id='i3GEOpontosDistriguia3obj' style='left: 1px; display: none;'></div> | ||
| 65 | \ No newline at end of file | 0 | \ No newline at end of file |