Commit c5dad11d2b2ba252dfb39e33c7e14305cdfda33c

Authored by Edmar Moretti
1 parent 0e2953eb

Adaptação para bootstrap da lista de mapas salvos

admin/admin.db
No preview for this file type
init/accessories-dictionary.png

5.27 KB

init/application-vnd-google-earth-kml.png

3.78 KB

init/applications-development-web.png

9.53 KB

init/applications-development.png

3.83 KB

init/atlas.png

6.39 KB

init/cartogramas.png

17.7 KB

init/certificate-server.png

6.71 KB

init/docapi.png

5.27 KB

init/editor.png

20 KB

init/facebook.png

57.8 KB

init/folder-image.png

5.23 KB

init/googleearth.png

29.8 KB

init/googlemaps.png

16.1 KB

init/googlemaps_noite.png

15.7 KB

init/guiamigracao.png

5.27 KB

init/gvsigtraining.png

5.27 KB

init/imagens/window-duplicate.png

8.22 KB | W: | H:

10.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
init/index.js
... ... @@ -50,7 +50,7 @@ botoesIni = [
50 50 "target": "_blank"
51 51 },{
52 52 "img":"window-duplicate.png",
53   - "href": location.href.replace("index.php","") + "../ferramentas/salvamapa/lista.htm",
  53 + "href": location.href.replace("index.php","") + "../mapas/index.php",
54 54 "titulo":$trad(34,g_traducao_init),
55 55 "subtitulo": $trad("34a",g_traducao_init),
56 56 "fa": "map-o",
... ...
init/indexold.php
... ... @@ -1,226 +0,0 @@
1   -<?php
2   -/**
3   - * Pagina inicial do i3Geo
4   - * Voce pode utilizar o parametro customDir para indicar a pasta onde
5   - * as interfaces de mapa estao. Nesse caso, os links utilizarao esse parametro
6   - * Exemplo: localhost/i3geo/init/index.php?customDir=minhaPasta
7   - *
8   - * minhaPasta deve estar dentor da pasta i3geo.
9   - *
10   - * Se dentro da pasta $customDir existir um arquivo chamado index.php sera feito o include
11   - * na pagina.
12   - */
13   -/**
14   - * Cria as pastas temporarias que o i3Geo precisa, caso nao existam
15   - */
16   -include(dirname(__FILE__)."/../ms_configura.php");
17   -if(!empty($_GET["customDir"])){
18   - $customDir = strip_tags($_GET["customDir"]);
19   -}
20   -else if(empty($customDir)){
21   - $customDir = "interface";
22   -}
23   -if(!file_exists($dir_tmp)){
24   - @mkdir ($dir_tmp,0777);
25   -}
26   -if(file_exists($dir_tmp)){
27   - @mkdir($dir_tmp."/comum",0777);
28   - @mkdir($dir_tmp."/saiku-datasources",0777);
29   - chmod($dir_tmp."/saiku-datasources",0777);
30   - @mkdir($dir_tmp."/cache",0777);
31   - chmod($dir_tmp."/cache",0777);
32   - @mkdir($dir_tmp."/cache/googlemaps",0777);
33   - chmod($dir_tmp."/cache/googlemaps",0777);
34   -}
35   -if(file_exists($locaplic."/".$customDir."/index.php")){
36   - include($locaplic."/".$customDir."/index.php");
37   -}
38   -error_reporting(0);
39   -?>
40   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
41   -<html>
42   -<head>
43   -<title>i3Geo</title>
44   -<meta name="url" content="http://www.softwarepublico.gov.br" />
45   -<meta name="description" content="i3Geo" />
46   -<meta name="keywords" content="i3geo mapa geoprocessamento" />
47   -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
48   -<meta name="viewport" content="width=device-width, initial-scale=1">
49   -<?php
50   -$cache_expire = 1;
51   -header("Pragma: public");
52   -header("Cache-Control: max-age=".$cache_expire);
53   -header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
54   -?>
55   -<script>
56   -i3GEOF = [];
57   -men = "";
58   -<?php
59   -include("dicionario.js");
60   -include("../classesjs/compactados/dicionario_compacto.js");
61   -include("../classesjs/compactados/classe_util_compacto.js");
62   -include("../classesjs/compactados/classe_idioma_compacto.js");
63   -include("../versao.php");
64   -include("index.js");
65   -if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){
66   - echo "men = $"."trad(19,g_traducao_init);";
67   -}
68   -?>
69   -</script>
70   -
71   -<style>
72   -body {
73   - padding-top: 0px;
74   - COLOR: #2F4632;
75   - text-align: center;
76   - font-size: 0.6cm;
77   - font-family: Verdana, Arial, Helvetica, sans-serif;
78   - background-color: rgb(250, 250, 250);
79   - margin: auto;
80   -}
81   -
82   -.r {
83   - border: 1px solid #F0F0F0;
84   - border-radius: 5px 5px 5px 5px;
85   - box-shadow: 1px 1px 1px 1px lightgray;
86   - float: left;
87   - height: 150px;
88   - margin: 0px 25px 20px auto;
89   - padding: 5px;
90   - width: 200px;
91   - background: white;
92   - vertical-align: middle;
93   - font-size: 0.4cm;
94   - position: relative;
95   - display: block;
96   - text-align: center;
97   - z-index: 2;
98   -}
99   -
100   -.ri {
101   - left: 50%;
102   - position: absolute;
103   - top: 50%;
104   - transform: translate(-50%, -50%);
105   - width: 100%;
106   -}
107   -
108   -table {
109   - width: 100%;
110   -}
111   -
112   -td {
113   - font-size: 0.4cm;
114   - text-align: center;
115   - height: 150px;
116   -}
117   -
118   -h1 {
119   - font-size: 0.6cm;
120   - text-align: left;
121   - margin: 25px;
122   -}
123   -
124   -#brasil {
125   - background-image: url("../imagens/sprite.png");
126   - background-position: 0 -600px;
127   - background-repeat: no-repeat;
128   - cursor: pointer;
129   - height: 10px;
130   - width: 20px;
131   -}
132   -
133   -#uk {
134   - background-image: url("../imagens/sprite.png");
135   - background-position: 0 -625px;
136   - background-repeat: no-repeat;
137   - cursor: pointer;
138   - height: 10px;
139   - width: 20px;
140   -}
141   -
142   -#espanhol {
143   - background-image: url("../imagens/sprite.png");
144   - background-position: 0 -1400px;
145   - background-repeat: no-repeat;
146   - cursor: pointer;
147   - height: 10px;
148   - width: 20px;
149   -}
150   -
151   -#bandeiras img {
152   - margin-left: 7px;
153   -}
154   -
155   -#bandeiras {
156   - width: 100px;
157   - text-align: left;
158   - position: absolute;
159   - left: 0.2cm;
160   - z-index: 10;
161   -}
162   -
163   -a {
164   - margin: 0px auto;
165   - text-decoration: none;
166   - font-size: 14px;
167   - color: #26298D;
168   - outline: doted;
169   -}
170   -
171   -A:hover {
172   - color: #4142ff;
173   -}
174   -
175   -.borda {
176   - background-color: #4682b4;
177   - padding: 5px 0px 5px 0px;
178   - text-align: left;
179   - width: 100%;
180   -}
181   -</style>
182   -</head>
183   -<body class=" yui-skin-sam " style="background-color: rgb(250, 250, 250);">
184   - <div class="borda">
185   - <div id="bandeiras"></div>
186   - <div style="text-align: center">
187   - <a href="http://www.softwarepublico.gov.br" target="_blank" style="color: white;">
188   - <b><?php echo $mensagemInicia;?> </b>
189   - </a>
190   - </div>
191   - </div>
192   -
193   - <div id="conteudo" style="position: relative; top: -10px; margin: auto; max-width: 1000px; left: 10px;">
194   - <div style="margin-top: 5px;">
195   - <div id="mensagemLogin" style="font-size: 14px; color: red; margin-top: 20px; text-align: left;"></div>
196   - <br>
197   - <div id="botoes" style="width: 100%;"></div>
198   - <script>mostraBotoes();</script>
199   - <div class="r">
200   - <div class="ri">
201   - <script type='text/javascript' src='https://www.openhub.net/p/i3geo/widgets/project_users?format=js&style=blue'></script>
202   - </div>
203   - </div>
204   - </div>
205   - <div style="float: left;">
206   - <div class="r" style="width: 230px; height: 380px;">
207   - <div class="ri">
208   - <a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" width="220" height="350">Tweets @i3Geo</a>
209   - <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
210   - </div>
211   - </div>
212   - <div class="r" style="width: 230px; height: 380px;">
213   - <div class="ri">
214   - <a class="twitter-timeline" href="https://twitter.com/hashtag/i3geo" data-widget-id="643417277208133633">i3geo Tweets</a>
215   - <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
216   - </div>
217   - </div>
218   - <div class="r" style="width: 345px; height: 220px;">
219   - <div class="ri">
220   - <script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_basic_stats.js"></script>
221   - </div>
222   - </div>
223   - </div>
224   - </div>
225   -</body>
226   -</html>
init/insert-link.png

5.31 KB

init/logo_psp.png

5.91 KB

init/mailman.jpg

1.97 KB

init/mashup.png

13 KB

init/offcanvas.css
... ... @@ -1,59 +0,0 @@
1   -/*
2   - * Style tweaks
3   - * --------------------------------------------------
4   - */
5   -html,
6   -body {
7   - overflow-x: hidden; /* Prevent scroll on narrow devices */
8   -}
9   -body {
10   - padding-top: 70px;
11   -}
12   -footer {
13   - padding: 30px 0;
14   -}
15   -
16   -/*
17   - * Off Canvas
18   - * --------------------------------------------------
19   - */
20   -@media screen and (max-width: 767px) {
21   - .row-offcanvas {
22   - position: relative;
23   - -webkit-transition: all .25s ease-out;
24   - -o-transition: all .25s ease-out;
25   - transition: all .25s ease-out;
26   - }
27   -
28   - .row-offcanvas-right {
29   - right: 0;
30   - }
31   -
32   - .row-offcanvas-left {
33   - left: 0;
34   - }
35   -
36   - .row-offcanvas-right
37   - .sidebar-offcanvas {
38   - right: -50%; /* 6 columns */
39   - }
40   -
41   - .row-offcanvas-left
42   - .sidebar-offcanvas {
43   - left: -50%; /* 6 columns */
44   - }
45   -
46   - .row-offcanvas-right.active {
47   - right: 50%; /* 6 columns */
48   - }
49   -
50   - .row-offcanvas-left.active {
51   - left: 50%; /* 6 columns */
52   - }
53   -
54   - .sidebar-offcanvas {
55   - position: absolute;
56   - top: 0;
57   - width: 50%; /* 6 columns */
58   - }
59   -}
init/ogc_logo.jpg

1.26 KB

init/openlayers.png

16.1 KB

init/openlayersdebug.png

15.6 KB

init/osm.png

26.3 KB

init/start-here.png

7.87 KB

init/svn-update.png

4.99 KB

init/tools-report-bug.png

4.77 KB

init/trac_logo_mini.png

689 Bytes

init/window-duplicate.png

3.53 KB

mapas/dicionario.js 0 → 100755
... ... @@ -0,0 +1,9 @@
  1 +//veja em index.js o objeto que utiliza essa traducao
  2 +g_traducao_mapas =
  3 +{
  4 + "mapas" : [{
  5 + pt : "Mapas de usu&aacute;rios",
  6 + en : "",
  7 + es : ""
  8 + }]
  9 +};
... ...
mapas/index.js 0 → 100755
... ... @@ -0,0 +1,91 @@
  1 +function mostraBotoesBT(men){
  2 + var html = "";
  3 + //menu
  4 + i3GEO.configura = {"locaplic" : ".."};
  5 + html = Mustache.to_html(
  6 + "{{#d}}" + $("#botoesTpl").html() + "{{/d}}",
  7 + {"d":botoesIni,"abrir" : $trad(36,g_traducao_init)}
  8 + );
  9 + $("#botoesTpl").html(html);
  10 +}
  11 +function mostraBotoesBT(){
  12 + var r, p;
  13 + i3GEO.configura = {"locaplic" : ".."};
  14 + r = function(d){
  15 + d = d.data;
  16 + var html = "", n, camadas = [], i;
  17 + n = d.mapas.length;
  18 + for(i=0; i<n; i++){
  19 + d.mapas[i] = verificaMapa(d.mapas[i]);
  20 + }
  21 + html = Mustache.to_html(
  22 + "{{#mapas}}" + $("#botoesTpl").html() + "{{/mapas}}",
  23 + d
  24 + );
  25 + $("#botoesTpl").html(html);
  26 + html = Mustache.to_html(
  27 + "{{#mapas}}" + $("#indice").html() + "{{/mapas}}",
  28 + d
  29 + );
  30 + $("#indice").html(html);
  31 + };
  32 + //cpJSON vem de class_php.js
  33 + cpJSON.call("../classesphp/mapa_controle.php?map_file=&funcao=pegaMapas&g_sid=", "foo", r);
  34 +}
  35 +function verificaMapa(mapa){
  36 + var link, nome, combo, links = [], html;
  37 + //imagem dinamica ou nao
  38 + if(mapa.IMAGEM == ""){
  39 + mapa.IMAGEM = i3GEO.configura.locaplic
  40 + + "/ferramentas/salvamapa/geraminiatura.php?w=100&h=90&restauramapa="
  41 + + mapa.ID_MAPA;
  42 + }
  43 + //constroi o link para o mapa
  44 + lkd = mapa.LINK;
  45 + if(mapa.LINK != ""){
  46 + link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + mapa.TEMAS + "&layers=" + mapa.LIGADOS;
  47 + if (mapa.EXTENSAO !== "") {
  48 + link += "&mapext=" + mapa.EXTENSAO;
  49 + }
  50 + if (mapa.OUTROS !== "") {
  51 + link += "&" + mapa.OUTROS;
  52 + }
  53 + mapa.LINK = link;
  54 + links.push({
  55 + "nome": "",
  56 + "link": mapa.LINK
  57 + });
  58 + }
  59 + // verifica se o mapfile esta salvo no banco
  60 + // diretamente
  61 + mapa.NOME = mapa.NOME + " (" + mapa.ID_MAPA + ")";
  62 + if (mapa.CONTEMMAPFILE != "nao") {
  63 + links = [
  64 + {
  65 + "nome": "Como foi salvo",
  66 + "link": mapa.LINK
  67 + },{
  68 + "nome": "Openlayers com todos os botoes",
  69 + "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA
  70 + },{
  71 + "nome": "Sem o fundo",
  72 + "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=est_wms"
  73 + },{
  74 + "nome": "Com botoes principais",
  75 + "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA + "&fundo=e_wsm&botoes=legenda pan zoombox zoomtot zoomin zoomout distancia area identifica"
  76 + },{
  77 + "nome": "Botoes de navegacao",
  78 + "link": i3GEO.configura.locaplic + "/mashups/openlayers.php?numzoomlevels=18&restauramapa=" + mapa.ID_MAPA
  79 + }
  80 + ];
  81 +
  82 +
  83 + }
  84 + html = Mustache.to_html(
  85 + "{{#d}}" + $("#templateLinks").html() + "{{/d}}",
  86 + {"d":links}
  87 + );
  88 + mapa.subtitulo = html;
  89 + return mapa;
  90 +}
  91 +
... ...
mapas/index.php 0 → 100755
... ... @@ -0,0 +1,135 @@
  1 +<?php
  2 +define ( ONDEI3GEO, ".." );
  3 +include (dirname ( __FILE__ ) . "/../ms_configura.php");
  4 +if (! empty ( $_GET ["customDir"] )) {
  5 + $customDir = strip_tags ( $_GET ["customDir"] );
  6 +} else if (empty ( $customDir )) {
  7 + $customDir = "interface";
  8 +}
  9 +if (! file_exists ( $dir_tmp )) {
  10 + @mkdir ( $dir_tmp, 0777 );
  11 +}
  12 +if (file_exists ( $dir_tmp )) {
  13 + @mkdir ( $dir_tmp . "/comum", 0777 );
  14 + @mkdir ( $dir_tmp . "/saiku-datasources", 0777 );
  15 + chmod ( $dir_tmp . "/saiku-datasources", 0777 );
  16 + @mkdir ( $dir_tmp . "/cache", 0777 );
  17 + chmod ( $dir_tmp . "/cache", 0777 );
  18 + @mkdir ( $dir_tmp . "/cache/googlemaps", 0777 );
  19 + chmod ( $dir_tmp . "/cache/googlemaps", 0777 );
  20 +}
  21 +error_reporting ( 0 );
  22 +include "../init/head.php";
  23 +?>
  24 +<style>
  25 +.btn-qrcode {
  26 + background-color: #fff;
  27 + color: #ddd;
  28 + margin: 5px;
  29 + width: 13px;
  30 + position: absolute;
  31 + top: 12px;
  32 + left: 28px;
  33 + text-align: center;
  34 + border-radius: 20%;
  35 +}
  36 +
  37 +.list-group .list-group-separator::before {
  38 + width: 100%;
  39 +}
  40 +</style>
  41 +<script id="templateLinks" type="x-tmpl-mustache">
  42 +<div class="list-group-item">
  43 + <div class="bs-component btn-group-sm pull-left" >
  44 + <a target="_blank" class="btn btn-primary btn-fab" href="{{{link}}}">
  45 + <i class="material-icons">launch</i>
  46 + </a>
  47 + </div>
  48 + <h4>
  49 + &nbsp;{{{nome}}}
  50 + <a href="{{{link}}}" target="_blank">&nbsp;{{{link}}}</a>
  51 + </h4>
  52 +</div>
  53 +<div class="list-group-separator"></div>
  54 +
  55 +
  56 +</script>
  57 +<body style="background-color: #eeeeee; padding-top: 55px;" id="topo" data-spy="scroll" data-target="#indiceSpy" data-offset="80">
  58 + <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
  59 + <div class="container-fluid">
  60 + <div class="navbar-header">
  61 + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
  62 + data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  63 + <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
  64 + class="icon-bar"></span>
  65 + </button>
  66 + <a class="navbar-brand" onclick="$('.cartao').fadeIn(600);" href="#"><?php echo $mensagemInicia;?> <i
  67 + class="fa fa-home fa-1x"></i></a>
  68 + </div>
  69 + </div>
  70 + </nav>
  71 + <div class="container-fluid">
  72 + <div class="row">
  73 + <ol class="breadcrumb">
  74 + <li><a href="../init/index.php">i3Geo</a></li>
  75 + <li class="active">Mapas de usuários</li>
  76 + </ol>
  77 + </div>
  78 + </div>
  79 + <div class="container">
  80 + <!-- Template para criacao dos quadros ver index.js -->
  81 + <div class="hidden">
  82 + <div class="row">
  83 + <div class="col-xs-9 center-block main" id="botoesTpl" >
  84 + <div class="row" id="affix-{{ID_MAPA}}" >
  85 + <div class="col-xs-12 center-block">
  86 + <div class="panel panel-default">
  87 + <div class="panel-heading">
  88 + <div class="thumbnail" role="button" style="float: left; height: 78px; width: 170px"
  89 + data-toggle="quadroQrcode" data-url="{{{href}}}">
  90 + <img class="img-rounded" style="height: 67px; width: 160px" src="{{{IMAGEM}}}" />
  91 + </div>
  92 + <h3>&nbsp;{{{NOME}}}</h3>
  93 + </div>
  94 + <div class="clearfix"></div>
  95 + <div class="panel-body">
  96 + <div class="list-group">{{{subtitulo}}}</div>
  97 + </div>
  98 + </div>
  99 + </div>
  100 + </div>
  101 + </div>
  102 + <div class="row complementary">
  103 + <div class="col-xs-3 center-block" >
  104 + <nav class="bs-docs-sidebar hidden-xs affix" style="" id="indiceSpy">
  105 + <ul class="nav nav-pills nav-stacked" data-spy="affix" data-offset-top="60" id="indice">
  106 + <li><a href="#affix-{{ID_MAPA}}">{{{NOME}}}</a></li>
  107 + </ul>
  108 + </nav>
  109 + </div>
  110 + </div>
  111 + </div>
  112 + </div>
  113 + </div>
  114 + <script>
  115 + </script>
  116 + <script src='../pacotes/cpaint/cpaint2_compacto.inc.js'></script>
  117 + <script src='../classesjs/compactados/dicionario_compacto.js'></script>
  118 + <script src='../classesjs/compactados/classe_util_compacto.js'></script>
  119 + <script src='../classesjs/compactados/classe_idioma_compacto.js'></script>
  120 + <script src='../classesjs/compactados/classe_login_compacto.js'></script>
  121 + <script src='../classesjs/compactados/classe_php_compacto.js'></script>
  122 + <script src='../classesjs/compactados/mustache.js'></script>
  123 + <script src='dicionario.js'></script>
  124 + <script src='index.js'></script>
  125 + <script>
  126 + $(document).ready(function(){
  127 + i3GEO.configura = {"locaplic" : window.location.href.split("/mapas")[0],"sid": ""};
  128 + $(".active").html($trad("mapas",g_traducao_mapas));
  129 + mostraBotoesBT();
  130 + $('.hidden').removeClass('hidden');
  131 + $.material.init();
  132 + });
  133 + </script>
  134 +</body>
  135 +</html>
... ...