Commit ab291d22d0e60c6ff0924f5a885285da9645ce49

Authored by Edmar Moretti
1 parent 37237e8a

Inclusão de ícones no menu principal

admin/admin.db
No preview for this file type
admin/dicionario/menup.js
@@ -92,12 +92,12 @@ i3GEOadmin.menup.dicionario = { @@ -92,12 +92,12 @@ i3GEOadmin.menup.dicionario = {
92 es : "" 92 es : ""
93 } ], 93 } ],
94 'xmlWmsMetaestat' : [ { 94 'xmlWmsMetaestat' : [ {
95 - pt : "Ver xml com a lista de serviços WMS originados do sistema de metadados estatísticos", 95 + pt : "XML com a lista de serviços WMS originados do sistema de metadados estatísticos",
96 en : "", 96 en : "",
97 es : "" 97 es : ""
98 } ], 98 } ],
99 'verRss' : [ { 99 'verRss' : [ {
100 - pt : "Ver RSS com a lista de mapas cadastrados", 100 + pt : "RSS com a lista de mapas cadastrados",
101 en : "", 101 en : "",
102 es : "" 102 es : ""
103 } ], 103 } ],
@@ -132,17 +132,17 @@ i3GEOadmin.menup.dicionario = { @@ -132,17 +132,17 @@ i3GEOadmin.menup.dicionario = {
132 es : "" 132 es : ""
133 } ], 133 } ],
134 'rssArvore' : [ { 134 'rssArvore' : [ {
135 - pt : "Ver RSS com os grupos, subgrupos e temas", 135 + pt : "RSS com os grupos, subgrupos e temas",
136 en : "", 136 en : "",
137 es : "" 137 es : ""
138 } ], 138 } ],
139 'rssArvoreJson' : [ { 139 'rssArvoreJson' : [ {
140 - pt : "Ver JSON com os grupos, subgrupos e temas", 140 + pt : "JSON com os grupos, subgrupos e temas",
141 en : "", 141 en : "",
142 es : "" 142 es : ""
143 } ], 143 } ],
144 'rssComentarios' : [ { 144 'rssComentarios' : [ {
145 - pt : "Ver RSS com os comentários sobre os temas", 145 + pt : "RSS com os comentários sobre os temas",
146 en : "", 146 en : "",
147 es : "" 147 es : ""
148 } ], 148 } ],
@@ -166,6 +166,16 @@ i3GEOadmin.menup.dicionario = { @@ -166,6 +166,16 @@ i3GEOadmin.menup.dicionario = {
166 en : "", 166 en : "",
167 es : "" 167 es : ""
168 } ], 168 } ],
  169 + 'rssMapas' : [ {
  170 + pt : "RSS com a lista de mapas",
  171 + en : "",
  172 + es : ""
  173 + } ],
  174 + 'rssMapasJson' : [ {
  175 + pt : "RSS com a lista de mapas (JSON)",
  176 + en : "",
  177 + es : ""
  178 + } ],
169 'editaMenus' : [ { 179 'editaMenus' : [ {
170 pt : "Edição dos menus de adição de temas", 180 pt : "Edição dos menus de adição de temas",
171 en : "", 181 en : "",
@@ -217,17 +227,32 @@ i3GEOadmin.menup.dicionario = { @@ -217,17 +227,32 @@ i3GEOadmin.menup.dicionario = {
217 es : "" 227 es : ""
218 } ], 228 } ],
219 'xmlWebServ' : [ { 229 'xmlWebServ' : [ {
220 - pt : "Ver xml com a lista de serviços WS (webservices convencionais)", 230 + pt : "RSS com a lista de serviços WS (webservices convencionais)",
  231 + en : "",
  232 + es : ""
  233 + } ],
  234 + 'xmlWebServJson' : [ {
  235 + pt : "RSS com a lista de serviços WS (webservices convencionais) em JSON",
221 en : "", 236 en : "",
222 es : "" 237 es : ""
223 } ], 238 } ],
224 'xmlWms' : [ { 239 'xmlWms' : [ {
225 - pt : "Ver xml com a lista de serviços WMS", 240 + pt : "RSS com a lista de serviços WMS",
  241 + en : "",
  242 + es : ""
  243 + } ],
  244 + 'xmlWmsJson' : [ {
  245 + pt : "RSS com a lista de serviços WMS em JSON",
226 en : "", 246 en : "",
227 es : "" 247 es : ""
228 } ], 248 } ],
229 'xmlGeoRss' : [ { 249 'xmlGeoRss' : [ {
230 - pt : "Ver xml com a lista de serviços Geo RSS", 250 + pt : "RSS com a lista de serviços Geo RSS",
  251 + en : "",
  252 + es : ""
  253 + } ],
  254 + 'xmlGeoRssJson' : [ {
  255 + pt : "RSS com a lista de serviços Geo RSS em JSON",
231 en : "", 256 en : "",
232 es : "" 257 es : ""
233 } ], 258 } ],
@@ -252,7 +277,7 @@ i3GEOadmin.menup.dicionario = { @@ -252,7 +277,7 @@ i3GEOadmin.menup.dicionario = {
252 es : "" 277 es : ""
253 } ], 278 } ],
254 'xmlSistAdiciona' : [ { 279 'xmlSistAdiciona' : [ {
255 - pt : "Ver xml com a lista de sistemas que adicionam temas especiais", 280 + pt : "XML com a lista de sistemas que adicionam temas especiais",
256 en : "", 281 en : "",
257 es : "" 282 es : ""
258 } ], 283 } ],
admin/menu.html
@@ -23,6 +23,10 @@ @@ -23,6 +23,10 @@
23 color: navy; 23 color: navy;
24 font-size: 12px; 24 font-size: 12px;
25 } 25 }
  26 + .ygtvcontent img{
  27 + width: 12px;
  28 + margin-right: 2px;
  29 + }
26 </style> 30 </style>
27 </head> 31 </head>
28 <body class=" yui-skin-sam" style="background-color:white;text-align:left;"> 32 <body class=" yui-skin-sam" style="background-color:white;text-align:left;">
@@ -36,19 +40,19 @@ @@ -36,19 +40,19 @@
36 type: "html", 40 type: "html",
37 children:[ 41 children:[
38 { 42 {
39 - html: "<a href='../ms_criamapa.php' target='principal'>"+$trad("abre",i3GEOadmin.menup.dicionario)+"</a>", 43 + html: "<a href='../ms_criamapa.php' target='principal'><img src='imagens/i3geo2.jpg' />"+$trad("abre",i3GEOadmin.menup.dicionario)+"</a>",
40 type: "html", 44 type: "html",
41 enableHighlight: false, 45 enableHighlight: false,
42 },{ 46 },{
43 - html: "<a href='../testainstal.php' target='principal'>"+$trad("testaInstal",i3GEOadmin.menup.dicionario)+"</a>", 47 + html: "<a href='../testainstal.php' target='principal'><img src='imagens/41.png' />"+$trad("testaInstal",i3GEOadmin.menup.dicionario)+"</a>",
44 type: "html", 48 type: "html",
45 enableHighlight: false, 49 enableHighlight: false,
46 },{ 50 },{
47 - html: "<a href='../init/remover.php' target='principal'>"+$trad("removeInicia",i3GEOadmin.menup.dicionario)+"</a>", 51 + html: "<a href='../init/remover.php' target='principal'><img src='imagens/edit.png' />"+$trad("removeInicia",i3GEOadmin.menup.dicionario)+"</a>",
48 type: "html", 52 type: "html",
49 enableHighlight: false, 53 enableHighlight: false,
50 },{ 54 },{
51 - html: "<a href='../classesjs/compactajs.php' target='principal'>"+$trad("compacta",i3GEOadmin.menup.dicionario)+"</a>", 55 + html: "<a href='../classesjs/compactajs.php' target='principal'><img src='imagens/edit.png' />"+$trad("compacta",i3GEOadmin.menup.dicionario)+"</a>",
52 type: "html", 56 type: "html",
53 enableHighlight: false, 57 enableHighlight: false,
54 } 58 }
@@ -57,17 +61,17 @@ @@ -57,17 +61,17 @@
57 type: "html", 61 type: "html",
58 children:[ 62 children:[
59 { 63 {
60 - html: "<a href='html/operacoes.html' target='principal'>"+$trad("controleOperac",i3GEOadmin.menup.dicionario)+"</a>", 64 + html: "<a href='html/operacoes.html' target='principal'><img src='imagens/edit.png' />"+$trad("controleOperac",i3GEOadmin.menup.dicionario)+"</a>",
61 type: "html", 65 type: "html",
62 enableHighlight: false, 66 enableHighlight: false,
63 67
64 },{ 68 },{
65 - html: "<a href='html/usuarios.html' target='principal'>"+$trad("cadastroUsuario",i3GEOadmin.menup.dicionario)+"</a>", 69 + html: "<a href='html/usuarios.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroUsuario",i3GEOadmin.menup.dicionario)+"</a>",
66 type: "html", 70 type: "html",
67 enableHighlight: false, 71 enableHighlight: false,
68 72
69 },{ 73 },{
70 - html: "<a href='html/gruposusuarios.html' target='principal'>"+$trad("cadastroGrupos",i3GEOadmin.menup.dicionario)+"</a>", 74 + html: "<a href='html/gruposusuarios.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroGrupos",i3GEOadmin.menup.dicionario)+"</a>",
71 type: "html", 75 type: "html",
72 enableHighlight: false, 76 enableHighlight: false,
73 77
@@ -82,52 +86,52 @@ @@ -82,52 +86,52 @@
82 enableHighlight: false, 86 enableHighlight: false,
83 87
84 },{ 88 },{
85 - html: "<a href='html/estat_variavel.html' target='principal'>"+$trad("cadastroVariav",i3GEOadmin.menup.dicionario)+"</a>", 89 + html: "<a href='html/estat_variavel.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroVariav",i3GEOadmin.menup.dicionario)+"</a>",
86 type: "html", 90 type: "html",
87 enableHighlight: false, 91 enableHighlight: false,
88 92
89 },{ 93 },{
90 - html: "<a href='html/estat_mapa.html' target='principal'>"+$trad("cadastroMapas",i3GEOadmin.menup.dicionario)+"</a>", 94 + html: "<a href='html/estat_mapa.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroMapas",i3GEOadmin.menup.dicionario)+"</a>",
91 type: "html", 95 type: "html",
92 enableHighlight: false, 96 enableHighlight: false,
93 97
94 },{ 98 },{
95 - html: "<a href='html/estat_unidade_medida.html' target='principal'>"+$trad("cadastroMedidas",i3GEOadmin.menup.dicionario)+"</a>", 99 + html: "<a href='html/estat_unidade_medida.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroMedidas",i3GEOadmin.menup.dicionario)+"</a>",
96 type: "html", 100 type: "html",
97 enableHighlight: false, 101 enableHighlight: false,
98 102
99 },{ 103 },{
100 - html: "<a href='html/estat_tipo_periodo.html' target='principal'>"+$trad("cadastroPeriodos",i3GEOadmin.menup.dicionario)+"</a>", 104 + html: "<a href='html/estat_tipo_periodo.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroPeriodos",i3GEOadmin.menup.dicionario)+"</a>",
101 type: "html", 105 type: "html",
102 enableHighlight: false, 106 enableHighlight: false,
103 107
104 },{ 108 },{
105 - html: "<a href='html/estat_conexao.html' target='principal'>"+$trad("cadastroConexoes",i3GEOadmin.menup.dicionario)+"</a>", 109 + html: "<a href='html/estat_conexao.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroConexoes",i3GEOadmin.menup.dicionario)+"</a>",
106 type: "html", 110 type: "html",
107 enableHighlight: false, 111 enableHighlight: false,
108 112
109 },{ 113 },{
110 - html: "<a href='html/estat_tipo_regiao.html' target='principal'>"+$trad("cadastroTabelas",i3GEOadmin.menup.dicionario)+"</a>", 114 + html: "<a href='html/estat_tipo_regiao.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroTabelas",i3GEOadmin.menup.dicionario)+"</a>",
111 type: "html", 115 type: "html",
112 enableHighlight: false, 116 enableHighlight: false,
113 117
114 },{ 118 },{
115 - html: "<a href='html/estat_fonteinfo.html' target='principal'>"+$trad("cadastroFonte",i3GEOadmin.menup.dicionario)+"</a>", 119 + html: "<a href='html/estat_fonteinfo.html' target='principal'><img src='imagens/edit.png' />"+$trad("cadastroFonte",i3GEOadmin.menup.dicionario)+"</a>",
116 type: "html", 120 type: "html",
117 enableHighlight: false, 121 enableHighlight: false,
118 122
119 },{ 123 },{
120 - html: "<a href='html/estat_editor.html' target='principal'>"+$trad("gerenciaBd",i3GEOadmin.menup.dicionario)+"</a>", 124 + html: "<a href='html/estat_editor.html' target='principal'><img src='imagens/41.png' />"+$trad("gerenciaBd",i3GEOadmin.menup.dicionario)+"</a>",
121 type: "html", 125 type: "html",
122 enableHighlight: false, 126 enableHighlight: false,
123 127
124 },{ 128 },{
125 - html: "<a href='xmlmetaestatogc.php' target='principal'>"+$trad("xmlWmsMetaestat",i3GEOadmin.menup.dicionario)+"</a>", 129 + html: "<a href='xmlmetaestatogc.php' target='principal'><img src='imagens/application-xhtml+xml.png' />"+$trad("xmlWmsMetaestat",i3GEOadmin.menup.dicionario)+"</a>",
126 type: "html", 130 type: "html",
127 enableHighlight: false, 131 enableHighlight: false,
128 132
129 },{ 133 },{
130 - html: "<a href='rssmapas.php' target='principal'>"+$trad("verRss",i3GEOadmin.menup.dicionario)+"</a>", 134 + html: "<a href='rssmapas.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("verRss",i3GEOadmin.menup.dicionario)+"</a>",
131 type: "html", 135 type: "html",
132 enableHighlight: false, 136 enableHighlight: false,
133 137
@@ -137,17 +141,17 @@ @@ -137,17 +141,17 @@
137 type: "html", 141 type: "html",
138 children:[ 142 children:[
139 { 143 {
140 - html: "<a href='html/subirshapefile.html' target='principal'>"+$trad("enviarShp",i3GEOadmin.menup.dicionario)+"</a>", 144 + html: "<a href='html/subirshapefile.html' target='principal'><img src='imagens/open.png' />"+$trad("enviarShp",i3GEOadmin.menup.dicionario)+"</a>",
141 type: "html", 145 type: "html",
142 enableHighlight: false, 146 enableHighlight: false,
143 147
144 },{ 148 },{
145 - html: "<a href='html/estat_editor.html' target='principal'>"+$trad("gerenciaBd",i3GEOadmin.menup.dicionario)+"</a>", 149 + html: "<a href='html/estat_editor.html' target='principal'><img src='imagens/open.png' />"+$trad("gerenciaBd",i3GEOadmin.menup.dicionario)+"</a>",
146 type: "html", 150 type: "html",
147 enableHighlight: false, 151 enableHighlight: false,
148 152
149 },{ 153 },{
150 - html: "<a href='html/subirsimbolo.html' target='principal'>"+$trad("uploadSimbolo",i3GEOadmin.menup.dicionario)+"</a>", 154 + html: "<a href='html/subirsimbolo.html' target='principal'><img src='imagens/open.png' />"+$trad("uploadSimbolo",i3GEOadmin.menup.dicionario)+"</a>",
151 type: "html", 155 type: "html",
152 enableHighlight: false, 156 enableHighlight: false,
153 157
@@ -157,37 +161,37 @@ @@ -157,37 +161,37 @@
157 type: "html", 161 type: "html",
158 children:[ 162 children:[
159 { 163 {
160 - html: "<a href='html/editormapfile.html' target='principal'>"+$trad("editorMapfile",i3GEOadmin.menup.dicionario)+"</a>", 164 + html: "<a href='html/editormapfile.html' target='principal'><img src='imagens/edit.png' />"+$trad("editorMapfile",i3GEOadmin.menup.dicionario)+"</a>",
161 type: "html", 165 type: "html",
162 enableHighlight: false, 166 enableHighlight: false,
163 167
164 },{ 168 },{
165 - html: "<a href='html/menus.html' target='principal'>"+$trad("editorMenus",i3GEOadmin.menup.dicionario)+"</a>", 169 + html: "<a href='html/menus.html' target='principal'><img src='imagens/edit.png' />"+$trad("editorMenus",i3GEOadmin.menup.dicionario)+"</a>",
166 type: "html", 170 type: "html",
167 enableHighlight: false, 171 enableHighlight: false,
168 172
169 },{ 173 },{
170 - html: "<a href='html/arvore.html' target='principal'>"+$trad("arvoreTemas",i3GEOadmin.menup.dicionario)+"</a>", 174 + html: "<a href='html/arvore.html' target='principal'><img src='imagens/edit.png' />"+$trad("arvoreTemas",i3GEOadmin.menup.dicionario)+"</a>",
171 type: "html", 175 type: "html",
172 enableHighlight: false, 176 enableHighlight: false,
173 177
174 },{ 178 },{
175 - html: "<a href='html/subirsimbolo.html' target='principal'>"+$trad("uploadSimbolo",i3GEOadmin.menup.dicionario)+"</a>", 179 + html: "<a href='html/subirsimbolo.html' target='principal'><img src='imagens/open.png' />"+$trad("uploadSimbolo",i3GEOadmin.menup.dicionario)+"</a>",
176 type: "html", 180 type: "html",
177 enableHighlight: false, 181 enableHighlight: false,
178 182
179 },{ 183 },{
180 - html: "<a href='rssgrupos.php?output=xml' target='principal'>"+$trad("rssArvore",i3GEOadmin.menup.dicionario)+"</a>", 184 + html: "<a href='rssgrupos.php?output=xml' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("rssArvore",i3GEOadmin.menup.dicionario)+"</a>",
181 type: "html", 185 type: "html",
182 enableHighlight: false, 186 enableHighlight: false,
183 187
184 },{ 188 },{
185 - html: "<a href='rssgrupos.php?output=json' target='principal'>"+$trad("rssArvoreJson",i3GEOadmin.menup.dicionario)+"</a>", 189 + html: "<a href='rssgrupos.php?output=json' target='principal'><img src='imagens/code-context.png' />"+$trad("rssArvoreJson",i3GEOadmin.menup.dicionario)+"</a>",
186 type: "html", 190 type: "html",
187 enableHighlight: false, 191 enableHighlight: false,
188 192
189 },{ 193 },{
190 - html: "<a href='rsscomentariostemas.php' target='principal'>"+$trad("rssComentarios",i3GEOadmin.menup.dicionario)+"</a>", 194 + html: "<a href='rsscomentariostemas.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("rssComentarios",i3GEOadmin.menup.dicionario)+"</a>",
191 type: "html", 195 type: "html",
192 enableHighlight: false, 196 enableHighlight: false,
193 197
@@ -197,27 +201,33 @@ @@ -197,27 +201,33 @@
197 type: "html", 201 type: "html",
198 children:[ 202 children:[
199 { 203 {
200 - html: "<a href='html/mapas.html' target='principal'>"+$trad("editaLinks",i3GEOadmin.menup.dicionario)+"</a>", 204 + html: "<a href='html/mapas.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaLinks",i3GEOadmin.menup.dicionario)+"</a>",
201 type: "html", 205 type: "html",
202 enableHighlight: false, 206 enableHighlight: false,
203 -  
204 },{ 207 },{
205 - html: "<a href='xmlmapas.php' target='principal'>"+$trad("xmlMapas",i3GEOadmin.menup.dicionario)+"</a>", 208 + html: "<a href='xmlmapas.php' target='principal'><img src='imagens/application-xhtml+xml.png' />"+$trad("xmlMapas",i3GEOadmin.menup.dicionario)+"</a>",
  209 + type: "html",
  210 + enableHighlight: false,
  211 + },{
  212 + html: "<a href='rssmapas.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("rssMapas",i3GEOadmin.menup.dicionario)+"</a>",
  213 + type: "html",
  214 + enableHighlight: false,
  215 + },{
  216 + html: "<a href='rssmapas.php?output=json' target='principal'><img src='imagens/code-context.png' />"+$trad("rssMapasJson",i3GEOadmin.menup.dicionario)+"</a>",
206 type: "html", 217 type: "html",
207 enableHighlight: false, 218 enableHighlight: false,
208 -  
209 } 219 }
210 ]},{ 220 ]},{
211 html: $trad("editaMenus",i3GEOadmin.menup.dicionario), 221 html: $trad("editaMenus",i3GEOadmin.menup.dicionario),
212 type: "html", 222 type: "html",
213 children:[ 223 children:[
214 { 224 {
215 - html: "<a href='html/arvore.html' target='principal'>"+$trad("editaArvore",i3GEOadmin.menup.dicionario)+"</a>", 225 + html: "<a href='html/arvore.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaArvore",i3GEOadmin.menup.dicionario)+"</a>",
216 type: "html", 226 type: "html",
217 enableHighlight: false, 227 enableHighlight: false,
218 228
219 },{ 229 },{
220 - html: "<a href='html/menus.html' target='principal'>"+$trad("editaListaMenus",i3GEOadmin.menup.dicionario)+"</a>", 230 + html: "<a href='html/menus.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaListaMenus",i3GEOadmin.menup.dicionario)+"</a>",
221 type: "html", 231 type: "html",
222 enableHighlight: false, 232 enableHighlight: false,
223 233
@@ -227,12 +237,12 @@ @@ -227,12 +237,12 @@
227 type: "html", 237 type: "html",
228 children:[ 238 children:[
229 { 239 {
230 - html: "<a href='html/perfis.html' target='principal'>"+$trad("editaPerfil",i3GEOadmin.menup.dicionario)+"</a>", 240 + html: "<a href='html/perfis.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaPerfil",i3GEOadmin.menup.dicionario)+"</a>",
231 type: "html", 241 type: "html",
232 enableHighlight: false, 242 enableHighlight: false,
233 243
234 },{ 244 },{
235 - html: "<a href='html/tags.html' target='principal'>"+$trad("editaTags",i3GEOadmin.menup.dicionario)+"</a>", 245 + html: "<a href='html/tags.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaTags",i3GEOadmin.menup.dicionario)+"</a>",
236 type: "html", 246 type: "html",
237 enableHighlight: false, 247 enableHighlight: false,
238 248
@@ -242,7 +252,7 @@ @@ -242,7 +252,7 @@
242 type: "html", 252 type: "html",
243 children:[ 253 children:[
244 { 254 {
245 - html: "<a href='html/atlas.html' target='principal'>"+$trad("editaAtlas",i3GEOadmin.menup.dicionario)+"</a>", 255 + html: "<a href='html/atlas.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaAtlas",i3GEOadmin.menup.dicionario)+"</a>",
246 type: "html", 256 type: "html",
247 enableHighlight: false, 257 enableHighlight: false,
248 258
@@ -252,32 +262,43 @@ @@ -252,32 +262,43 @@
252 type: "html", 262 type: "html",
253 children:[ 263 children:[
254 { 264 {
255 - html: "<a href='html/webservices.html' target='principal'>"+$trad("editaWebServ",i3GEOadmin.menup.dicionario)+"</a>", 265 + html: "<a href='html/webservices.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaWebServ",i3GEOadmin.menup.dicionario)+"</a>",
256 type: "html", 266 type: "html",
257 enableHighlight: false, 267 enableHighlight: false,
258 268
259 },{ 269 },{
260 - html: "<a href='xmlservicosws.php' target='principal'>"+$trad("xmlWebServ",i3GEOadmin.menup.dicionario)+"</a>", 270 + html: "<a href='xmlservicosws.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("xmlWebServ",i3GEOadmin.menup.dicionario)+"</a>",
261 type: "html", 271 type: "html",
262 enableHighlight: false, 272 enableHighlight: false,
263 273
264 },{ 274 },{
265 - html: "<a href='xmlservicoswms.php' target='principal'>"+$trad("xmlWms",i3GEOadmin.menup.dicionario)+"</a>", 275 + html: "<a href='xmlservicosws.php?output=json' target='principal'><img src='imagens/code-context.png' />"+$trad("xmlWebServJson",i3GEOadmin.menup.dicionario)+"</a>",
266 type: "html", 276 type: "html",
267 enableHighlight: false, 277 enableHighlight: false,
268 -  
269 },{ 278 },{
270 - html: "<a href='xmlgeorss.php' target='principal'>"+$trad("xmlGeoRss",i3GEOadmin.menup.dicionario)+"</a>", 279 + html: "<a href='xmlservicoswms.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("xmlWms",i3GEOadmin.menup.dicionario)+"</a>",
271 type: "html", 280 type: "html",
272 enableHighlight: false, 281 enableHighlight: false,
273 282
  283 + },{
  284 + html: "<a href='xmlservicoswms.php?output=json' target='principal'><img src='imagens/code-context.png' />"+$trad("xmlWmsJson",i3GEOadmin.menup.dicionario)+"</a>",
  285 + type: "html",
  286 + enableHighlight: false,
  287 + },{
  288 + html: "<a href='xmlgeorss.php' target='principal'><img src='imagens/application-rss+xml.png' />"+$trad("xmlGeoRss",i3GEOadmin.menup.dicionario)+"</a>",
  289 + type: "html",
  290 + enableHighlight: false,
  291 + },{
  292 + html: "<a href='xmlgeorss.php?output=json' target='principal'><img src='imagens/code-context.png' />"+$trad("xmlGeoRssJson",i3GEOadmin.menup.dicionario)+"</a>",
  293 + type: "html",
  294 + enableHighlight: false,
274 } 295 }
275 ]},{ 296 ]},{
276 html: $trad("sistIdentifica",i3GEOadmin.menup.dicionario), 297 html: $trad("sistIdentifica",i3GEOadmin.menup.dicionario),
277 type: "html", 298 type: "html",
278 children:[ 299 children:[
279 { 300 {
280 - html: "<a href='html/identifica.html' target='principal'>"+$trad("editaIdentifica",i3GEOadmin.menup.dicionario)+"</a>", 301 + html: "<a href='html/identifica.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaIdentifica",i3GEOadmin.menup.dicionario)+"</a>",
281 type: "html", 302 type: "html",
282 enableHighlight: false, 303 enableHighlight: false,
283 304
@@ -288,12 +309,12 @@ @@ -288,12 +309,12 @@
288 309
289 children:[ 310 children:[
290 { 311 {
291 - html: "<a href='html/sistemas.html' target='principal'>"+$trad("editaSist",i3GEOadmin.menup.dicionario)+"</a>", 312 + html: "<a href='html/sistemas.html' target='principal'><img src='imagens/edit.png' />"+$trad("editaSist",i3GEOadmin.menup.dicionario)+"</a>",
292 type: "html", 313 type: "html",
293 enableHighlight: false, 314 enableHighlight: false,
294 315
295 },{ 316 },{
296 - html: "<a href='xmlsistemas.php' target='principal'>"+$trad("xmlSistAdiciona",i3GEOadmin.menup.dicionario)+"</a>", 317 + html: "<a href='xmlsistemas.php' target='principal'><img src='imagens/application-xhtml+xml.png' />"+$trad("xmlSistAdiciona",i3GEOadmin.menup.dicionario)+"</a>",
297 type: "html", 318 type: "html",
298 enableHighlight: false, 319 enableHighlight: false,
299 320
admin/php/xml.php
@@ -256,11 +256,11 @@ Retorno: @@ -256,11 +256,11 @@ Retorno:
256 256
257 RSS 257 RSS
258 */ 258 */
259 -function geraXmlWS($locaplic) 259 +function geraXmlWS($locaplic,$output)
260 { 260 {
261 global $esquemaadmin; 261 global $esquemaadmin;
262 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where tipo_ws = 'WS' and nome_ws <> ''"; 262 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where tipo_ws = 'WS' and nome_ws <> ''";
263 - return geraXmlRSS($locaplic,$sql,"Web services"); 263 + return geraXmlRSS($locaplic,$sql,"Web services",$output);
264 } 264 }
265 /* 265 /*
266 Function: geraXmlKmlrss 266 Function: geraXmlKmlrss
@@ -294,11 +294,11 @@ Retorno: @@ -294,11 +294,11 @@ Retorno:
294 294
295 RSS 295 RSS
296 */ 296 */
297 -function geraXmlWMS($locaplic) 297 +function geraXmlWMS($locaplic,$output)
298 { 298 {
299 global $esquemaadmin; 299 global $esquemaadmin;
300 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where (tipo_ws = 'WMS' or tipo_ws = 'WMS-Tile') and nome_ws <> '' order by nome_ws"; 300 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where (tipo_ws = 'WMS' or tipo_ws = 'WMS-Tile') and nome_ws <> '' order by nome_ws";
301 - return geraXmlRSS($locaplic,$sql,"Web services WMS-OGC"); 301 + return geraXmlRSS($locaplic,$sql,"Web services WMS-OGC",$output);
302 } 302 }
303 /* 303 /*
304 Function: geraXmlWMSmetaestat 304 Function: geraXmlWMSmetaestat
@@ -338,11 +338,11 @@ Retorno: @@ -338,11 +338,11 @@ Retorno:
338 338
339 RSS 339 RSS
340 */ 340 */
341 -function geraXmlGeorss($locaplic) 341 +function geraXmlGeorss($locaplic,$output)
342 { 342 {
343 global $esquemaadmin; 343 global $esquemaadmin;
344 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where tipo_ws = 'GEORSS' and nome_ws <> ''"; 344 $sql = "select * from ".$esquemaadmin."i3geoadmin_ws where tipo_ws = 'GEORSS' and nome_ws <> ''";
345 - return geraXmlRSS($locaplic,$sql,"Georss"); 345 + return geraXmlRSS($locaplic,$sql,"Georss",$output);
346 } 346 }
347 /* 347 /*
348 Function: geraRSStemasDownload 348 Function: geraRSStemasDownload
@@ -707,7 +707,7 @@ function geraXmlMapas($perfil,$locaplic,$editores) @@ -707,7 +707,7 @@ function geraXmlMapas($perfil,$locaplic,$editores)
707 return $xml; 707 return $xml;
708 } 708 }
709 //mostra apenas os mapas que possuem outros_mapa definido, o que e tipico do sistema de metadados estatisticos 709 //mostra apenas os mapas que possuem outros_mapa definido, o que e tipico do sistema de metadados estatisticos
710 -function geraRSSmapas($locaplic) 710 +function geraRSSmapas($locaplic,$output)
711 { 711 {
712 global $esquemaadmin; 712 global $esquemaadmin;
713 $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); 713 $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']);
@@ -724,7 +724,7 @@ function geraRSSmapas($locaplic) @@ -724,7 +724,7 @@ function geraRSSmapas($locaplic)
724 $descricao .= "<img src=$url/ferramentas/salvamapa/geraminiatura.php?w=300&h=300&restauramapa='||id_mapa||' >]]>'"; 724 $descricao .= "<img src=$url/ferramentas/salvamapa/geraminiatura.php?w=300&h=300&restauramapa='||id_mapa||' >]]>'";
725 $sql = "select '' as tipo_ws,'".$url."/ms_criamapa.php?restauramapa='||id_mapa as link_ws, nome_mapa as nome_ws, ".$descricao." as desc_ws, '' as autor_ws from ".$esquemaadmin."i3geoadmin_mapas WHERE publicado_mapa = 'sim' AND mapfile != ''"; 725 $sql = "select '' as tipo_ws,'".$url."/ms_criamapa.php?restauramapa='||id_mapa as link_ws, nome_mapa as nome_ws, ".$descricao." as desc_ws, '' as autor_ws from ".$esquemaadmin."i3geoadmin_mapas WHERE publicado_mapa = 'sim' AND mapfile != ''";
726 //echo $sql;exit; 726 //echo $sql;exit;
727 - return geraXmlRSS($locaplic,$sql,"Mapas cadastrados"); 727 + return geraXmlRSS($locaplic,$sql,"Mapas cadastrados",$output);
728 } 728 }
729 729
730 // 730 //
admin/rssmapas.php
@@ -38,6 +38,10 @@ if(!isset($locaplic)){ @@ -38,6 +38,10 @@ if(!isset($locaplic)){
38 } 38 }
39 include_once($locaplic."/classesphp/pega_variaveis.php"); 39 include_once($locaplic."/classesphp/pega_variaveis.php");
40 include_once($locaplic."/admin/php/xml.php"); 40 include_once($locaplic."/admin/php/xml.php");
41 -echo header("Content-type: application/xml");  
42 -echo geraRSSmapas($locaplic); 41 +$output = "xml";
  42 +if(strtolower($_GET["output"]) == "json" || strtolower($_POST["output"]) == "json"){
  43 + $output = "json";
  44 +}
  45 +echo header("Content-type: application/".$output);
  46 +echo geraRSSmapas($locaplic,$output);
43 ?> 47 ?>
44 \ No newline at end of file 48 \ No newline at end of file
admin/xmlgeorss.php
@@ -41,6 +41,10 @@ if(!isset($locaplic)){ @@ -41,6 +41,10 @@ if(!isset($locaplic)){
41 } 41 }
42 include_once($locaplic."/classesphp/pega_variaveis.php"); 42 include_once($locaplic."/classesphp/pega_variaveis.php");
43 include_once($locaplic."/admin/php/xml.php"); 43 include_once($locaplic."/admin/php/xml.php");
44 -echo header("Content-type: application/xml");  
45 -echo geraXmlGeorss($locaplic); 44 +$output = "xml";
  45 +if(strtolower($_GET["output"]) == "json" || strtolower($_POST["output"]) == "json"){
  46 + $output = "json";
  47 +}
  48 +echo header("Content-type: application/".$output);
  49 +echo geraXmlGeorss($locaplic,$output);
46 ?> 50 ?>
admin/xmlservicoswms.php
@@ -41,6 +41,10 @@ if(!isset($locaplic)){ @@ -41,6 +41,10 @@ if(!isset($locaplic)){
41 } 41 }
42 include_once($locaplic."/classesphp/pega_variaveis.php"); 42 include_once($locaplic."/classesphp/pega_variaveis.php");
43 include_once($locaplic."/admin/php/xml.php"); 43 include_once($locaplic."/admin/php/xml.php");
44 -echo header("Content-type: application/xml");  
45 -echo geraXmlWMS($locaplic); 44 +$output = "xml";
  45 +if(strtolower($_GET["output"]) == "json" || strtolower($_POST["output"]) == "json"){
  46 + $output = "json";
  47 +}
  48 +echo header("Content-type: application/".$output);
  49 +echo geraXmlWMS($locaplic,$output);
46 ?> 50 ?>
admin/xmlservicosws.php
@@ -41,6 +41,11 @@ if(!isset($locaplic)){ @@ -41,6 +41,11 @@ if(!isset($locaplic)){
41 } 41 }
42 include_once($locaplic."/classesphp/pega_variaveis.php"); 42 include_once($locaplic."/classesphp/pega_variaveis.php");
43 include_once($locaplic."/admin/php/xml.php"); 43 include_once($locaplic."/admin/php/xml.php");
44 -echo header("Content-type: application/xml");  
45 -echo geraXmlWS($locaplic); 44 +
  45 +$output = "xml";
  46 +if(strtolower($_GET["output"]) == "json" || strtolower($_POST["output"]) == "json"){
  47 + $output = "json";
  48 +}
  49 +echo header("Content-type: application/".$output);
  50 +echo geraXmlWS($locaplic,$output);
46 ?> 51 ?>