Commit f644783bce2910a49c74112ef3e099cf3c46bac6

Authored by Edmar Moretti
1 parent 0182d1a6

Inclusão de lista de opções principais nas páginas do sistema de administração

admin/html/arvore.html
@@ -22,6 +22,8 @@ @@ -22,6 +22,8 @@
22 </head> 22 </head>
23 <body class=" yui-skin-sam"> 23 <body class=" yui-skin-sam">
24 <div style="margin:20px"> 24 <div style="margin:20px">
  25 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  26 +</div>
25 <div style=width:80%;text-align:center;> 27 <div style=width:80%;text-align:center;>
26 <h1>Administração do i3geo - Árvore de temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1> 28 <h1>Administração do i3geo - Árvore de temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
27 </div> 29 </div>
@@ -101,5 +103,6 @@ Arquivo: @@ -101,5 +103,6 @@ Arquivo:
101 103
102 i3geo/admin/html/arvore.html 104 i3geo/admin/html/arvore.html
103 */ 105 */
  106 +cabecalhoGeral("cabecalhoPrincipal","arvore");
104 </script> 107 </script>
105 </body> 108 </body>
admin/html/atlas.html
@@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
19 </head> 19 </head>
20 <body class=" yui-skin-sam"> 20 <body class=" yui-skin-sam">
21 <div style="margin:20px"> 21 <div style="margin:20px">
  22 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  23 +</div>
22 <div style=width:80%;text-align:center;> 24 <div style=width:80%;text-align:center;>
23 <h1>Administração do i3geo - Atlas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1> 25 <h1>Administração do i3geo - Atlas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
24 26
@@ -81,5 +83,6 @@ Arquivo: @@ -81,5 +83,6 @@ Arquivo:
81 83
82 i3geo/admin/html/atlas.html 84 i3geo/admin/html/atlas.html
83 */ 85 */
  86 +cabecalhoGeral("cabecalhoPrincipal","atlas");
84 </script> 87 </script>
85 </body> 88 </body>
admin/html/editormapfile.html
@@ -23,9 +23,10 @@ @@ -23,9 +23,10 @@
23 </head> 23 </head>
24 <body class=" yui-skin-sam"> 24 <body class=" yui-skin-sam">
25 <div style="margin:20px"> 25 <div style="margin:20px">
  26 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  27 +</div>
26 <div style=width:80%;text-align:center;> 28 <div style=width:80%;text-align:center;>
27 <h1>Administração do i3geo - mapfiles dos temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1> 29 <h1>Administração do i3geo - mapfiles dos temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
28 -  
29 </div> 30 </div>
30 <div id="ajuda" style=display:none > 31 <div id="ajuda" style=display:none >
31 <div class="hd">Ajuda</div> 32 <div class="hd">Ajuda</div>
@@ -119,6 +120,6 @@ function filtraLetra(letra){ @@ -119,6 +120,6 @@ function filtraLetra(letra){
119 {letra = "";} 120 {letra = "";}
120 core_pegaMapfiles("montaArvore()",letra) 121 core_pegaMapfiles("montaArvore()",letra)
121 } 122 }
122 - 123 +cabecalhoGeral("cabecalhoPrincipal","editormapfile");
123 </script> 124 </script>
124 </body> 125 </body>
admin/html/menus.html
@@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
19 </head> 19 </head>
20 <body class=" yui-skin-sam"> 20 <body class=" yui-skin-sam">
21 <div style="margin:20px"> 21 <div style="margin:20px">
  22 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  23 +</div>
22 <div style=width:80%;text-align:center;> 24 <div style=width:80%;text-align:center;>
23 <h1>Administração do i3geo - Menus <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1> 25 <h1>Administração do i3geo - Menus <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
24 26
@@ -96,5 +98,6 @@ Arquivo: @@ -96,5 +98,6 @@ Arquivo:
96 i3geo/admin/html/menus.html 98 i3geo/admin/html/menus.html
97 */ 99 */
98 initEditorMenu() 100 initEditorMenu()
  101 +cabecalhoGeral("cabecalhoPrincipal","menus");
99 </script> 102 </script>
100 </body> 103 </body>
admin/index.html
@@ -3,9 +3,12 @@ @@ -3,9 +3,12 @@
3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> 3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
4 <link rel="stylesheet" type="text/css" href="html/admin.css"> 4 <link rel="stylesheet" type="text/css" href="html/admin.css">
5 <script src="../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> 5 <script src="../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script>
  6 +<script type="text/javascript" src="js/core.js"></script>
6 </head> 7 </head>
7 -<body> 8 +<body class=" yui-skin-sam">
8 <div style=width:80%;text-align:left;> 9 <div style=width:80%;text-align:left;>
  10 +<div id=cabecalhoPrincipal style=text-align:left;>
  11 +</div>
9 <h1>Administra&ccedil;&atilde;o do i3geo</h1> 12 <h1>Administra&ccedil;&atilde;o do i3geo</h1>
10 <p>Se voc&ecirc; atualizou o Mapserver para a vers&atilde;o 5.2.2, seus mapfiles antigos podem n&atilde;o funcionar. Veja em "Outras op&ccedil;ões" o item "Ajusta mapfiles". 13 <p>Se voc&ecirc; atualizou o Mapserver para a vers&atilde;o 5.2.2, seus mapfiles antigos podem n&atilde;o funcionar. Veja em "Outras op&ccedil;ões" o item "Ajusta mapfiles".
11 <p>Apenas usuários cadastrados como editores podem alterar as configurações do i3Geo disponíveis no sistema de administração.<br> 14 <p>Apenas usuários cadastrados como editores podem alterar as configurações do i3Geo disponíveis no sistema de administração.<br>
@@ -324,6 +327,6 @@ function abre(url) @@ -324,6 +327,6 @@ function abre(url)
324 {window.location.href = url} 327 {window.location.href = url}
325 if(navm) 328 if(navm)
326 {$i("mensagemIE").style.display = "block";} 329 {$i("mensagemIE").style.display = "block";}
327 - 330 +cabecalhoGeral("cabecalhoPrincipal","principal");
328 </script> 331 </script>
329 </html> 332 </html>
330 \ No newline at end of file 333 \ No newline at end of file
admin/js/core.js
@@ -65,6 +65,36 @@ Variable: $perfis @@ -65,6 +65,36 @@ Variable: $perfis
65 Armazena o objeto com a lista de perfis 65 Armazena o objeto com a lista de perfis
66 */ 66 */
67 var $perfis = ""; 67 var $perfis = "";
  68 +function cabecalhoGeral(id,excluir){
  69 + var i,n,temp,
  70 + ins = "<fieldset><legend>Opções principais</legend>",
  71 + botoes = [
  72 + {id:"principal",titulo:"Principal",link:"../index.html"},
  73 + {id:"menus",titulo:"Menus",link:"menus.html"},
  74 + {id:"arvore",titulo:"Árvore de temas",link:"arvore.html"},
  75 + {id:"editormapfile",titulo:"Mapfiles",link:"editormapfile.html"},
  76 + {id:"atlas",titulo:"Atlas",link:"atlas.html"}
  77 + ];
  78 + n = botoes.length;
  79 + for(i=0;i<n;i++){
  80 + if(botoes[i].id !== excluir){
  81 + ins += '<input type=button id="'+botoes[i].id+'" value="'+botoes[i].titulo+'" />';
  82 + }
  83 + }
  84 + ins += "</fieldset>";
  85 + temp = $i(id);
  86 + temp.innerHTML = ins;
  87 + for(i=0;i<n;i++){
  88 + if(excluir === "principal")
  89 + {botoes[i].link = "html/"+botoes[i].link;}
  90 + if(botoes[i].id !== excluir){
  91 + new YAHOO.widget.Button(botoes[i].id);
  92 + eval('$i("'+botoes[i].id+'-button'+'").onclick = function(){window.location = \''+botoes[i].link+'\';}');
  93 + }
  94 + }
  95 + //temp.style.border = "solid 1px gray";
  96 + //temp.style.padding = "10px";
  97 +}
68 /* 98 /*
69 Function: core_movimentaNo 99 Function: core_movimentaNo
70 100