From b1f9e7e5fa0e16fe00acf50801f3cffc21e6bf76 Mon Sep 17 00:00:00 2001 From: Murilo Caixeta Date: Wed, 22 Oct 2014 11:29:03 +0000 Subject: [PATCH] Implementação do Mustache --- ferramentas/loginusuario/dependencias.php | 30 ------------------------------ ferramentas/loginusuario/dicionario.js | 10 +++++----- ferramentas/loginusuario/template_mst.html | 17 ----------------- 3 files changed, 5 insertions(+), 52 deletions(-) delete mode 100755 ferramentas/loginusuario/dependencias.php delete mode 100644 ferramentas/loginusuario/template_mst.html diff --git a/ferramentas/loginusuario/dependencias.php b/ferramentas/loginusuario/dependencias.php deleted file mode 100755 index 6fb4ab6..0000000 --- a/ferramentas/loginusuario/dependencias.php +++ /dev/null @@ -1,30 +0,0 @@ - ou com a funcao scripttag do i3Geo - * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel - * javascript i3GEOF.loginusuario.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.loginusuario.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/loginusuario/dicionario.js b/ferramentas/loginusuario/dicionario.js index 959d44b..47b5f28 100644 --- a/ferramentas/loginusuario/dicionario.js +++ b/ferramentas/loginusuario/dicionario.js @@ -1,8 +1,8 @@ //+$trad(1,i3GEOF.loginusuario.dicionario)+ i3GEOF.loginusuario.dicionario = { -1: [{ -pt:"", -en:"", -es:"" -}] + 1 : [ { + pt : "", + en : "", + es : "" + } ] }; \ No newline at end of file diff --git a/ferramentas/loginusuario/template_mst.html b/ferramentas/loginusuario/template_mst.html deleted file mode 100644 index 6998602..0000000 --- a/ferramentas/loginusuario/template_mst.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

- '+$trad("x30")+': '+u+" -

- '+$trad("x27")+':
- -

- '+$trad("x28")+':
- -
-

- -   - -

'+$trad("x32")+'

-

'+$trad("x52")+'

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