diff --git a/ferramentas/nptpol/dependencias.php b/ferramentas/nptpol/dependencias.php new file mode 100755 index 0000000..5e64abb --- /dev/null +++ b/ferramentas/nptpol/dependencias.php @@ -0,0 +1,30 @@ + ou com a funcao scripttag do i3Geo + * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel + * javascript i3GEOF.nptpol.MUSTACHE + * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta + */ +if(extension_loaded('zlib')){ + ob_start('ob_gzhandler'); +} +header("Content-type: text/javascript"); +include("index.js"); +include("dicionario.js"); +echo "\n"; +/** + * Inclui o template mustache do HTML usado para criar o conteudo da janela + */ +echo 'i3GEOF.nptpol.MUSTACHE = "'; +$texto = file_get_contents("template_mst.html"); +$texto = str_replace("\n", "", $texto); +$texto = str_replace("\r", "", $texto); +$texto = str_replace("\t", "", $texto); +$texto = str_replace('"', "'", $texto); +echo $texto; +echo '";'; +if(extension_loaded('zlib')){ + ob_end_flush(); +} +?> \ No newline at end of file diff --git a/ferramentas/nptpol/template_mst.html b/ferramentas/nptpol/template_mst.html new file mode 100755 index 0000000..6df1866 --- /dev/null +++ b/ferramentas/nptpol/template_mst.html @@ -0,0 +1,22 @@ +
+
+ +

{{{ajuda}}}

+

{{{ajuda2}}}

+

{{{ajuda3}}}

+
+
+

{{{selecionaTemaPonto}}}:
+

+
+

{{{selecionaItemSoma}}}:
+

-
+
+

{{{selecionaTemaPoligono}}}:
+

+
+
+

{{{adicionaTema}}}

+

+
+
\ No newline at end of file -- libgit2 0.21.2