Commit c2cac57b41a6fffec794f5ffeaa34fbb1760dfc9
1 parent
db6f8068
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
394 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,316 @@ |
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 | +?> | |
39 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
40 | +<html> | |
41 | +<head> | |
42 | +<meta name="url" content="http://www.softwarepublico.gov.br" /> | |
43 | +<meta name="description" content="i3Geo" /> | |
44 | +<meta name="keywords" content="i3geo mapa geoprocessamento" /> | |
45 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
46 | +<meta name="viewport" content="width=device-width, initial-scale=1"> | |
47 | +<?php | |
48 | +$cache_expire = 1; | |
49 | +header("Pragma: public"); | |
50 | +header("Cache-Control: max-age=".$cache_expire); | |
51 | +header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); | |
52 | +?> | |
53 | +<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
54 | +<script type="text/javascript" src="dicionario.js"></script> | |
55 | +<link rel="stylesheet" type="text/css" href="../admin/html/admin.css"> | |
56 | + | |
57 | +<style> | |
58 | +body { | |
59 | + padding-top: 0px; | |
60 | + COLOR: #2F4632; | |
61 | + text-align: center; | |
62 | + font-size: 0.6cm; | |
63 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
64 | + background-color: rgb(250, 250, 250); | |
65 | + maergin: auto; | |
66 | +} | |
67 | + | |
68 | +.r { | |
69 | + border: 1px solid #F0F0F0; | |
70 | + border-radius: 5px 5px 5px 5px; | |
71 | + box-shadow: 1px 1px 1px 1px lightgray; | |
72 | + float: left; | |
73 | + height: 150px; | |
74 | + margin: 0px 25px 20px auto; | |
75 | + padding: 5px; | |
76 | + width: 200px; | |
77 | + background: white; | |
78 | + vertical-align: middle; | |
79 | + font-size: 0.4cm; | |
80 | + position: relative; | |
81 | + display: block; | |
82 | + text-align: center; | |
83 | + z-index: 2; | |
84 | +} | |
85 | + | |
86 | +table { | |
87 | + width: 100%; | |
88 | +} | |
89 | + | |
90 | +td { | |
91 | + font-size: 0.4cm; | |
92 | + text-align: center; | |
93 | + height: 150px; | |
94 | +} | |
95 | + | |
96 | +h1 { | |
97 | + font-size: 0.6cm; | |
98 | + text-align: left; | |
99 | + margin: 25px; | |
100 | +} | |
101 | + | |
102 | +#bandeiras { | |
103 | + width: 80px; | |
104 | + text-align: left; | |
105 | + position: absolute; | |
106 | + left: 0.2cm; | |
107 | + z-index: 10; | |
108 | +} | |
109 | + | |
110 | +a { | |
111 | + margin: 0px auto; | |
112 | + text-decoration: none; | |
113 | + font-size: 14px; | |
114 | +} | |
115 | + | |
116 | +.borda { | |
117 | + background-color: #990000; | |
118 | + padding: 5px 0px 5px 0px; | |
119 | + text-align: left; | |
120 | + width: 100%; | |
121 | +} | |
122 | +</style> | |
123 | +</head> | |
124 | +<body class=" yui-skin-sam "> | |
125 | + <div class="borda"> | |
126 | + <div id="bandeiras"></div> | |
127 | + <div> | |
128 | + <a href="http://www.softwarepublico.gov.br" target="_blank" style="color: white;"><b>i3Geo 6.0</b> </a> | |
129 | + </div> | |
130 | + </div> | |
131 | + | |
132 | + <div id="conteudo" style="position: relative; top: -10px; margin: auto; max-width: 1000px; left: 10px;"> | |
133 | + <div style="margin-top: 5px;"> | |
134 | + <?php | |
135 | + if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){ | |
136 | + echo "<p style='font-size:14px;color:red;margin-top:20px;'><script>document.write($"."trad(19,g_traducao_init));</script>"; | |
137 | + } | |
138 | + ?> | |
139 | + <br> | |
140 | + <div id="botoes" style=""></div> | |
141 | + | |
142 | + <div class="r"> | |
143 | + <table> | |
144 | + <tbody> | |
145 | + <tr> | |
146 | + <td> | |
147 | + <script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_users.js?style=gray"></script> | |
148 | + </td> | |
149 | + </tr> | |
150 | + </tbody> | |
151 | + </table> | |
152 | + </div> | |
153 | + </div> | |
154 | + <div style="float: left"> | |
155 | + <a href="#" class="r" style="width: 230px; height: 380px;"> | |
156 | + <table> | |
157 | + <tr> | |
158 | + <td> | |
159 | + <a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" width="220" height="350">Tweets @i3Geo</a> | |
160 | + <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> | |
161 | + </td> | |
162 | + </tr> | |
163 | + </table> | |
164 | + </a> <a href="#" class="r" style="width: 230px; height: 380px;"> | |
165 | + <table> | |
166 | + <tr> | |
167 | + <td> | |
168 | + <a class="twitter-timeline" href="https://twitter.com/search?q=@i3geo" data-widget-id="288053202174222336" width="220" height="350">Tweets #i3Geo</a> | |
169 | + <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> | |
170 | + </td> | |
171 | + </tr> | |
172 | + </table> | |
173 | + </a> <a href="#" class="r" style="width: 345px; height: 220px;"> | |
174 | + <table> | |
175 | + <tr> | |
176 | + <td> | |
177 | + <script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_basic_stats.js"></script> | |
178 | + </td> | |
179 | + </tr> | |
180 | + </table> | |
181 | + </a> | |
182 | + </div> | |
183 | + </div> | |
184 | + | |
185 | +</body> | |
186 | +<script> | |
187 | +botoesIni = []; | |
188 | +botoesIni.push({ | |
189 | + "img":"start-here.png", | |
190 | + "href":"../testainstal.php", | |
191 | + "titulo":$trad(2,g_traducao_init) | |
192 | + },{ | |
193 | + "img":"applications-development-web.png", | |
194 | + "href":"../admin", | |
195 | + "titulo":$trad(3,g_traducao_init) | |
196 | + },{ | |
197 | + "img":"openlayers.png", | |
198 | + "href":"../<?php echo $customDir; ?>/black_ol.htm", | |
199 | + "titulo":$trad(4,g_traducao_init) | |
200 | + },{ | |
201 | + "img":"openlayersdebug.png", | |
202 | + "href":"../<?php echo $customDir; ?>/openlayersdebug.htm", | |
203 | + "titulo":$trad(5,g_traducao_init) | |
204 | + },{ | |
205 | + "img":"osm.png", | |
206 | + "href":"../<?php echo $customDir; ?>/black_osm.htm", | |
207 | + "titulo":$trad(23,g_traducao_init) | |
208 | + },{ | |
209 | + "img":"mashup.png", | |
210 | + "href":"../mashups", | |
211 | + "titulo":$trad(18,g_traducao_init) + "<br><a href='../mashups/osm.php?temas=&largura=800&altura=500' target=_blank >OSM</a>" + " - <a href='../mashups/openlayers.php?temas=&largura=800&altura=500' target=_blank >OpenLayers</a>" | |
212 | + },{ | |
213 | + "img":"googlemaps.png", | |
214 | + "href":"../<?php echo $customDir; ?>/black_gm.phtml", | |
215 | + "titulo":$trad(6,g_traducao_init) | |
216 | + },{ | |
217 | + "img":"googlemaps_noite.png", | |
218 | + "href":"../<?php echo $customDir; ?>/googlemaps_noite.phtml", | |
219 | + "titulo":$trad(22,g_traducao_init) | |
220 | + },{ | |
221 | + "img":"googleearth.png", | |
222 | + "href":"../<?php echo $customDir; ?>/googleearth.phtml", | |
223 | + "titulo":$trad(7,g_traducao_init) | |
224 | + },{ | |
225 | + "img":"cartogramas.png", | |
226 | + "href":"../<?php echo $customDir; ?>/black_carto_ol.htm", | |
227 | + "titulo":$trad(8,g_traducao_init) | |
228 | + },{ | |
229 | + "img":"editor.png", | |
230 | + "href":"../ferramentas/metaestat/editorlimites.php", | |
231 | + "titulo":$trad(9,g_traducao_init) | |
232 | + },{ | |
233 | + "img":"svn-update.png", | |
234 | + "href":"../datadownload.htm", | |
235 | + "titulo":$trad(10,g_traducao_init) | |
236 | + },{ | |
237 | + "img":"ogc_logo.jpg", | |
238 | + "href":"../ogc.htm", | |
239 | + "titulo":$trad(11,g_traducao_init) | |
240 | + },{ | |
241 | + "img":"application-vnd-google-earth-kml.png", | |
242 | + "href":"../kml.php", | |
243 | + "titulo":$trad(12,g_traducao_init) | |
244 | + },{ | |
245 | + "img":"../imagens/saiku_free_small.png", | |
246 | + "href":"../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), | |
247 | + "titulo":$trad(25,g_traducao_init), | |
248 | + "subtitulo": " <a style='cursor:pointer;' target=_blank src='https://medium.com/innovative-business-intelligence/so-people-who-land-on-our-community-download-page-will-notice-a-subtle-difference-when-they-click-1b61aca316c5' >"+$trad(29,g_traducao_init)+"</a>", | |
249 | + },{ | |
250 | + "img":"../imagens/gvsig.jpg", | |
251 | + "href":"../pacotes/gvsig/gvsig2mapfile/upload.htm", | |
252 | + "titulo":$trad(26,g_traducao_init) | |
253 | + },{ | |
254 | + "img":"insert-link.png", | |
255 | + "href":"../geradordelinks.htm", | |
256 | + "titulo":$trad(13,g_traducao_init) | |
257 | + },{ | |
258 | + "img":"atlas.png", | |
259 | + "href":"../atlas", | |
260 | + "titulo":$trad(27,g_traducao_init) | |
261 | + },{ | |
262 | + "img":"folder-image.png", | |
263 | + "href":"../exemplos", | |
264 | + "titulo":$trad(14,g_traducao_init) | |
265 | + },{ | |
266 | + "img":"accessories-dictionary.png", | |
267 | + "href":"../guia_de_migracao.txt", | |
268 | + "titulo":$trad(17,g_traducao_init) | |
269 | + },{ | |
270 | + "img":"accessories-dictionary.png", | |
271 | + "href":"../documentacao", | |
272 | + "titulo":$trad(24,g_traducao_init) | |
273 | + },{ | |
274 | + "img":"accessories-dictionary.png", | |
275 | + "href":"http://moodle.gvsig-training.com/course/view.php?id=11", | |
276 | + "titulo":$trad(28,g_traducao_init) | |
277 | + },{ | |
278 | + "img":"tools-report-bug.png", | |
279 | + "href":"http://svn.softwarepublico.gov.br/trac/i3geo/newticket", | |
280 | + "titulo":$trad(16,g_traducao_init) | |
281 | + },{ | |
282 | + "img":"trac_logo_mini.png", | |
283 | + "href":"http://svn.softwarepublico.gov.br/trac/i3geo/wiki", | |
284 | + "titulo":$trad(30,g_traducao_init) | |
285 | + },{ | |
286 | + "img":"logo_psp.png", | |
287 | + "href":"http://www.softwarepublico.gov.br/ver-comunidade?community_id=1444332", | |
288 | + "titulo":$trad(31,g_traducao_init) | |
289 | + },{ | |
290 | + "img":"mailman.jpg", | |
291 | + "href":"http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo", | |
292 | + "titulo":$trad(32,g_traducao_init) | |
293 | + } | |
294 | +); | |
295 | +mostraBotoes(); | |
296 | + | |
297 | +i3GEO.configura.locaplic = ".."; | |
298 | +i3GEO.idioma.IDSELETOR = "bandeiras"; | |
299 | +i3GEO.idioma.mostraSeletor(); | |
300 | +i3GEO.barraDeBotoes.ATIVA = false; | |
301 | +function mostraBotoes(){ | |
302 | + var ins = [],i,n = botoesIni.length,texto; | |
303 | + for(i=0;i<n;i++){ | |
304 | + texto = '<div class="r" ><table ><tr><td><a target=_blank href="'+botoesIni[i].href+'" ><img src="'+botoesIni[i].img+'" /><br><br>'+botoesIni[i].titulo+'</a>'; | |
305 | + if(botoesIni[i].subtitulo){ | |
306 | + texto += botoesIni[i].subtitulo; | |
307 | + } | |
308 | + texto += '</td></tr></table></div>'; | |
309 | + ins.push(texto); | |
310 | + } | |
311 | + $i("botoes").innerHTML = ins.join(""); | |
312 | + $i("conteudo").style.height = i3GEO.util.getScrollHeight() + "px"; | |
313 | +} | |
314 | + | |
315 | +</script> | |
316 | +</html> | ... | ... |
... | ... | @@ -0,0 +1,78 @@ |
1 | +<?xml version="1.1" encoding="iso-8859-1"?> | |
2 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
3 | +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
4 | + | |
5 | +<html> | |
6 | +<head> | |
7 | +<title>RGBColor test</title> | |
8 | +<style type="text/css"> | |
9 | +#result { | |
10 | + margin: 5px; | |
11 | + width: 50px; | |
12 | + height: 50px; | |
13 | +} | |
14 | + | |
15 | +#result-wrap { | |
16 | + border: 1px solid #999999; | |
17 | + width: 60px; | |
18 | + height: 60px; | |
19 | + margin: 5px; | |
20 | +} | |
21 | + | |
22 | +body { | |
23 | + font-family: Arial; | |
24 | +} | |
25 | +</style> | |
26 | +<script type="text/javascript" src="../rgbcolor.js"></script> | |
27 | +<script type="text/javascript"> | |
28 | + function isThatAColor(s) { | |
29 | + var color = new RGBColor(s); | |
30 | + if (color.ok) { | |
31 | + document.getElementById('result').style.backgroundColor = 'rgb(' + color.r + ', ' + color.g + ', ' + color.b + ')'; | |
32 | + document.getElementById('result-text').innerHTML = | |
33 | + 'Red: ' + color.r | |
34 | + + '<br />Green: ' | |
35 | + + color.g | |
36 | + + '<br />Blue: ' | |
37 | + + color.b | |
38 | + + '<br />RGB: ' | |
39 | + + color.toRGB() | |
40 | + + '<br />Hex: ' | |
41 | + + color.toHex(); | |
42 | + } else { | |
43 | + document.getElementById('result-text').innerHTML = 'Never heard of such a color :('; | |
44 | + document.getElementById('result').style.backgroundColor = 'rgb(255, 255, 255)'; | |
45 | + } | |
46 | + } | |
47 | + | |
48 | + function showHelp() { | |
49 | + var color = new RGBColor(''); | |
50 | + document.getElementById('help').innerHTML = ''; | |
51 | + document.getElementById('help').appendChild(color.getHelpXML()); | |
52 | + } | |
53 | +</script> | |
54 | +</head> | |
55 | +<body> | |
56 | + | |
57 | + <h1>RGB color parser demo</h1> | |
58 | + | |
59 | + <p>This is a demo of the RGBColor JavaScript class. Just type in something that should be a color and navigate away from the input field. The script will try to parse your input and derive a valid color.</p> | |
60 | + <p>For ideas on what's possible, click "Help?"</p> | |
61 | + <p> | |
62 | + More info in <a href="http://www.phpied.com/rgb-color-parser-in-javascript/">this blog posting</a>. | |
63 | + </p> | |
64 | + <form action="" onsubmit="isThatAColor(this.elements[0].value); return false;"> | |
65 | + <div> | |
66 | + <input type="text" value="" onblur="isThatAColor(this.value)" /> | |
67 | + </div> | |
68 | + </form> | |
69 | + <div id="result-wrap"> | |
70 | + <div id="result"></div> | |
71 | + </div> | |
72 | + <div id="result-text"></div> | |
73 | + <p /> | |
74 | + <span onclick="showHelp()" style="cursor: pointer; text-decoration: underline">help?</span> | |
75 | + <div id="help"></div> | |
76 | + | |
77 | +</body> | |
78 | +</html> | ... | ... |