Commit a7c0a1f0bc9b23efc5cd4dcbf4d252cbde17e7b0
1 parent
24ab1b53
Exists in
master
and in
7 other branches
Implementação do Mustache
Showing
2 changed files
with
0 additions
and
38 deletions
Show diff stats
ferramentas/navegapostgis/dependencias.php
... | ... | @@ -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.navegapostgis.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.navegapostgis.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 | 0 | \ No newline at end of file |
ferramentas/navegapostgis/template_mst.html
... | ... | @@ -1,8 +0,0 @@ |
1 | -<span class='paragrafo' style='width: 50px;'>{{{selecionaConexao}}}</span> | |
2 | -<div class='paragrafo' id='i3GEOFnavegapostgisConexao' style='display: block; margin: 5px; position: relative; left: 125px; top: -22px; width: 100px;'></div> | |
3 | -<div id='i3GEOFnavegapostgispar' style='padding: 2px; position: relative; top: -15px; display: none;'> | |
4 | - <div id='i3GEOFnavegapostgisArvore' style='width: 215px; overflow: auto; height: 210px; border: 1px solid lightgray; position: absolute; top: 0px;'></div> | |
5 | - <div id='i3GEOFnavegapostgisColunas' style='padding: 2px; width: 230px; overflow: auto; height: 184px; border: 1px solid lightgray; position: absolute; left: 223px; top: 0px;'></div> | |
6 | - <textarea id='i3GEOFnavegapostgisSql' style='width: 233px; overflow: auto; height: 84px; border: 1px solid lightgray; position: absolute; left: 223px; top: 190px;'> | |
7 | -</textarea> | |
8 | -</div> | |
9 | 0 | \ No newline at end of file |