Commit 77e2a78011a089a7cafa17b6de3d116cd495a387
1 parent
fcd561b7
Exists in
master
and in
7 other branches
Novo desenho da ferramenta imprimir
Showing
7 changed files
with
74 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,30 @@ | @@ -0,0 +1,30 @@ | ||
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.imprimir.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.imprimir.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 | +?> | ||
0 | \ No newline at end of file | 31 | \ No newline at end of file |
@@ -0,0 +1,44 @@ | @@ -0,0 +1,44 @@ | ||
1 | +<style> | ||
2 | +.yui-button#i3GEOFimprimirPdf button { | ||
3 | + background: url('../imagens/oxygen/16x16/application-pdf.png') 5% 50% no-repeat; | ||
4 | + width: 200px; | ||
5 | +} | ||
6 | +.yui-button#i3GEOFimprimirTiff button { | ||
7 | + background: url('../imagens/oxygen/16x16/application-x-mswinurl.png') 5% 50% no-repeat; | ||
8 | + width: 200px; | ||
9 | +} | ||
10 | +.yui-button#i3GEOFimprimirAgg button { | ||
11 | + background: url('../imagens/oxygen/16x16/applications-graphics.png') 5% 50% no-repeat; | ||
12 | + width: 200px; | ||
13 | +} | ||
14 | +.yui-button#i3GEOFimprimirJpg button { | ||
15 | + background: url('../imagens/oxygen/16x16/applications-graphics.png') 5% 50% no-repeat; | ||
16 | + width: 200px; | ||
17 | +} | ||
18 | +.yui-button#i3GEOFimprimirSvg button { | ||
19 | + background: url('../imagens/oxygen/16x16/application-xhtml+xml.png') 5% 50% no-repeat; | ||
20 | + width: 200px; | ||
21 | +} | ||
22 | + | ||
23 | +</style> | ||
24 | +<div style='margin-left: 5px'> | ||
25 | + | ||
26 | + <p class=paragrafo > | ||
27 | + {{{escolha}}} | ||
28 | + </p> | ||
29 | + <p class='paragrafo'> | ||
30 | + <input id='i3GEOFimprimirPdf' type='button' value='A4 com margens pdf' /> | ||
31 | + </p> | ||
32 | + <p class='paragrafo'> | ||
33 | + <input id='i3GEOFimprimirTiff' type='button' value='Geo Tiff' /> | ||
34 | + </p> | ||
35 | + <p class='paragrafo'> | ||
36 | + <input id='i3GEOFimprimirAgg' type='button' value='Agg/Png alta qualidade' /> | ||
37 | + </p> | ||
38 | + <p class='paragrafo'> | ||
39 | + <input id='i3GEOFimprimirJpg' type='button' value='JPEG' /> | ||
40 | + </p> | ||
41 | + <p class='paragrafo'> | ||
42 | + <input id='i3GEOFimprimirSvg' type='button' value='Svg - vetorial' /> | ||
43 | + </p> | ||
44 | +</div> |
615 Bytes
685 Bytes
748 Bytes
686 Bytes
797 Bytes