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 22 </head>
23 23 <body class=" yui-skin-sam">
24 24 <div style="margin:20px">
  25 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  26 +</div>
25 27 <div style=width:80%;text-align:center;>
26 28 <h1>Administração do i3geo - Árvore de temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
27 29 </div>
... ... @@ -101,5 +103,6 @@ Arquivo:
101 103  
102 104 i3geo/admin/html/arvore.html
103 105 */
  106 +cabecalhoGeral("cabecalhoPrincipal","arvore");
104 107 </script>
105 108 </body>
... ...
admin/html/atlas.html
... ... @@ -19,6 +19,8 @@
19 19 </head>
20 20 <body class=" yui-skin-sam">
21 21 <div style="margin:20px">
  22 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  23 +</div>
22 24 <div style=width:80%;text-align:center;>
23 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 83  
82 84 i3geo/admin/html/atlas.html
83 85 */
  86 +cabecalhoGeral("cabecalhoPrincipal","atlas");
84 87 </script>
85 88 </body>
... ...
admin/html/editormapfile.html
... ... @@ -23,9 +23,10 @@
23 23 </head>
24 24 <body class=" yui-skin-sam">
25 25 <div style="margin:20px">
  26 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  27 +</div>
26 28 <div style=width:80%;text-align:center;>
27 29 <h1>Administração do i3geo - mapfiles dos temas <img src="../imagens/04.png" style="cursor:pointer" id=botaoAjuda /></h1>
28   -
29 30 </div>
30 31 <div id="ajuda" style=display:none >
31 32 <div class="hd">Ajuda</div>
... ... @@ -119,6 +120,6 @@ function filtraLetra(letra){
119 120 {letra = "";}
120 121 core_pegaMapfiles("montaArvore()",letra)
121 122 }
122   -
  123 +cabecalhoGeral("cabecalhoPrincipal","editormapfile");
123 124 </script>
124 125 </body>
... ...
admin/html/menus.html
... ... @@ -19,6 +19,8 @@
19 19 </head>
20 20 <body class=" yui-skin-sam">
21 21 <div style="margin:20px">
  22 +<div id=cabecalhoPrincipal style=width:80%;text-align:left;>
  23 +</div>
22 24 <div style=width:80%;text-align:center;>
23 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 98 i3geo/admin/html/menus.html
97 99 */
98 100 initEditorMenu()
  101 +cabecalhoGeral("cabecalhoPrincipal","menus");
99 102 </script>
100 103 </body>
... ...
admin/index.html
... ... @@ -3,9 +3,12 @@
3 3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
4 4 <link rel="stylesheet" type="text/css" href="html/admin.css">
5 5 <script src="../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script>
  6 +<script type="text/javascript" src="js/core.js"></script>
6 7 </head>
7   -<body>
  8 +<body class=" yui-skin-sam">
8 9 <div style=width:80%;text-align:left;>
  10 +<div id=cabecalhoPrincipal style=text-align:left;>
  11 +</div>
9 12 <h1>Administra&ccedil;&atilde;o do i3geo</h1>
10 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 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 327 {window.location.href = url}
325 328 if(navm)
326 329 {$i("mensagemIE").style.display = "block";}
327   -
  330 +cabecalhoGeral("cabecalhoPrincipal","principal");
328 331 </script>
329 332 </html>
330 333 \ No newline at end of file
... ...
admin/js/core.js
... ... @@ -65,6 +65,36 @@ Variable: $perfis
65 65 Armazena o objeto com a lista de perfis
66 66 */
67 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 99 Function: core_movimentaNo
70 100  
... ...