From dc1d7eec99ba02d338fef015e265781099bcd923 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 10 May 2013 22:22:20 +0000 Subject: [PATCH] --- admin/js/estat_mapa.js | 10 ++++++---- admin/php/metaestat_templates.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ classesphp/funcoes_gerais.php | 11 +++++++++++ ferramentas/metaestat/templates/semguias_lateral.png | Bin 0 -> 41660 bytes ferramentas/metaestat/templates/simples_fixa.png | Bin 0 -> 41218 bytes ferramentas/metaestat/templates/simples_flutuante.png | Bin 0 -> 44482 bytes ferramentas/metaestat/templates/simples_lateral.png | Bin 0 -> 42782 bytes ferramentas/metaestat/templates/simples_movel.png | Bin 0 -> 42547 bytes 8 files changed, 65 insertions(+), 4 deletions(-) create mode 100755 admin/php/metaestat_templates.php create mode 100644 ferramentas/metaestat/templates/semguias_lateral.png create mode 100644 ferramentas/metaestat/templates/simples_fixa.png create mode 100644 ferramentas/metaestat/templates/simples_flutuante.png create mode 100644 ferramentas/metaestat/templates/simples_lateral.png create mode 100644 ferramentas/metaestat/templates/simples_movel.png diff --git a/admin/js/estat_mapa.js b/admin/js/estat_mapa.js index 5718001..c7e0415 100755 --- a/admin/js/estat_mapa.js +++ b/admin/js/estat_mapa.js @@ -17,7 +17,7 @@ Este programa é distribuído na expectativa de que seja útil porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral do GNU para mais detalhes. -Você deve ter recebido uma cópia da Licença Pública Geral do +Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. @@ -330,7 +330,7 @@ function montaDivMapa(i) { "linhas":[ {titulo:"Título:",id:"Etitulo",size:"50",value:i.titulo,tipo:"text",div:""}, - {titulo:"Template :",id:"Etemplate",size:"50",value:i.template,tipo:"text",div:""}, + {titulo:"Template (prévia) :",id:"Etemplate",size:"50",value:i.template,tipo:"text",div:""}, {titulo:"Logo (esquerdo) :",id:"Elogoesquerdo",size:"50",value:i.logoesquerdo,tipo:"text",div:""}, {titulo:"Logo (direito) ::",id:"Elogodireito",size:"50",value:i.logodireito,tipo:"text",div:""} ] @@ -377,8 +377,10 @@ function selTemplate(id){ textos = [], selecionados = [$i(id).value]; for(i=0;i + + + + +Lista de templates + + + + +
 
+
+
+

Lista de templates para uso em aplicações do sistema de metadados estatísticos

+ Nome do template: $arq

"; + $nomeimg = $locaplic.$metaestatTemplates."/".$nome.".png"; + if(file_exists($nomeimg)){ + echo ""; + } + } + } + ?> +
+ \ No newline at end of file diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 26730b1..3991319 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -414,6 +414,17 @@ function listaArquivos($diretorio) {return "erro";} } /* + Function: echoimg + + Envia para o navegador uma imagem. Utilizado na tag IMG em arquivos HTML + */ +function echoimg($arquivo,$tipo){ + echo header("Content-type: image/png \n\n"); + header('Content-Length: '.filesize($arquivo)); + fpassthru(fopen($arquivo, 'rb')); + exit; +} +/* Function: gravaDados Grava as linhas de um array em um arquivo. diff --git a/ferramentas/metaestat/templates/semguias_lateral.png b/ferramentas/metaestat/templates/semguias_lateral.png new file mode 100644 index 0000000..34d8afc Binary files /dev/null and b/ferramentas/metaestat/templates/semguias_lateral.png differ diff --git a/ferramentas/metaestat/templates/simples_fixa.png b/ferramentas/metaestat/templates/simples_fixa.png new file mode 100644 index 0000000..727047f Binary files /dev/null and b/ferramentas/metaestat/templates/simples_fixa.png differ diff --git a/ferramentas/metaestat/templates/simples_flutuante.png b/ferramentas/metaestat/templates/simples_flutuante.png new file mode 100644 index 0000000..33a6676 Binary files /dev/null and b/ferramentas/metaestat/templates/simples_flutuante.png differ diff --git a/ferramentas/metaestat/templates/simples_lateral.png b/ferramentas/metaestat/templates/simples_lateral.png new file mode 100644 index 0000000..3ae779f Binary files /dev/null and b/ferramentas/metaestat/templates/simples_lateral.png differ diff --git a/ferramentas/metaestat/templates/simples_movel.png b/ferramentas/metaestat/templates/simples_movel.png new file mode 100644 index 0000000..675ff86 Binary files /dev/null and b/ferramentas/metaestat/templates/simples_movel.png differ -- libgit2 0.21.2