Commit ea512bd80a56e5882b3aeb5def870cc3e0bd5b03

Authored by Rafael Santos
1 parent 58912615
Exists in master

Ajustes no metodo de localizacao do usuario no sistema

ieducar/intranet/educar_aluno_lst.php
@@ -37,6 +37,7 @@ class clsIndexBase extends clsBase @@ -37,6 +37,7 @@ class clsIndexBase extends clsBase
37 { 37 {
38 $this->SetTitulo( "{$this->_instituicao} i-Educar - Aluno" ); 38 $this->SetTitulo( "{$this->_instituicao} i-Educar - Aluno" );
39 $this->processoAp = "578"; 39 $this->processoAp = "578";
  40 + $this->addEstilo( "localizacaoSistema" );
40 } 41 }
41 } 42 }
42 43
@@ -134,7 +135,7 @@ class indice extends clsListagem @@ -134,7 +135,7 @@ class indice extends clsListagem
134 135
135 $this->addCabecalhos( array( 136 $this->addCabecalhos( array(
136 "Código Aluno", 137 "Código Aluno",
137 - "Código INEP", 138 + "Código INEP",
138 "Nome do Aluno", 139 "Nome do Aluno",
139 "Nome da Mãe", 140 "Nome da Mãe",
140 "Nome do Responsável", 141 "Nome do Responsável",
@@ -173,7 +174,7 @@ class indice extends clsListagem @@ -173,7 +174,7 @@ class indice extends clsListagem
173 $this->nome_pai, 174 $this->nome_pai,
174 $this->nome_mae, 175 $this->nome_mae,
175 $this->nome_responsavel, 176 $this->nome_responsavel,
176 - $this->cod_inep 177 + $this->cod_inep
177 ); 178 );
178 179
179 $total = $aluno->_total; 180 $total = $aluno->_total;
@@ -212,7 +213,16 @@ class indice extends clsListagem @@ -212,7 +213,16 @@ class indice extends clsListagem
212 } 213 }
213 //** 214 //**
214 $this->largura = "100%"; 215 $this->largura = "100%";
215 - } 216 +
  217 + $localizacao = new LocalizacaoSistema();
  218 + $localizacao->entradaCaminhos( array(
  219 + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar",
  220 + "educar_index.php" => "Escola",
  221 + "" => "Cadastro de Aluno"
  222 + ));
  223 + $this->enviaLocalizacao($localizacao->montar());
  224 +
  225 + }
216 226
217 protected function loadNomeMae($aluno) { 227 protected function loadNomeMae($aluno) {
218 $nome = $aluno['nm_mae']; 228 $nome = $aluno['nm_mae'];
@@ -224,8 +234,8 @@ class indice extends clsListagem @@ -224,8 +234,8 @@ class indice extends clsListagem
224 $pessoaMae = new clsPessoaFj($pessoaAluno['idpes_mae']); 234 $pessoaMae = new clsPessoaFj($pessoaAluno['idpes_mae']);
225 $pessoaMae = $pessoaMae->detalhe(); 235 $pessoaMae = $pessoaMae->detalhe();
226 $nome = $pessoaMae['nome']; 236 $nome = $pessoaMae['nome'];
227 - }  
228 - 237 + }
  238 +
229 return $nome; 239 return $nome;
230 } 240 }
231 241
@@ -239,15 +249,6 @@ class indice extends clsListagem @@ -239,15 +249,6 @@ class indice extends clsListagem
239 catch(Exception $e) { 249 catch(Exception $e) {
240 $id = ''; 250 $id = '';
241 } 251 }
242 -  
243 - $localizacao = new LocalizacaoSistema();  
244 - $localizacao->entradaCaminhos( array(  
245 - "localhost" => "i-Educar",  
246 - "intranet/educar_index.php" => "Escola",  
247 - "" => "Cadastro de Aluno"  
248 - ));  
249 -  
250 - $this->enviaLocalizacao($localizacao->montar());  
251 252
252 return $id; 253 return $id;
253 254
ieducar/intranet/educar_biblioteca_lst.php
@@ -36,6 +36,7 @@ class clsIndexBase extends clsBase @@ -36,6 +36,7 @@ class clsIndexBase extends clsBase
36 { 36 {
37 $this->SetTitulo( "{$this->_instituicao} i-Educar - Biblioteca" ); 37 $this->SetTitulo( "{$this->_instituicao} i-Educar - Biblioteca" );
38 $this->processoAp = "591"; 38 $this->processoAp = "591";
  39 + $this->addEstilo( "localizacaoSistema" );
39 } 40 }
40 } 41 }
41 42
@@ -197,14 +198,14 @@ class indice extends clsListagem @@ -197,14 +198,14 @@ class indice extends clsListagem
197 } 198 }
198 199
199 $this->largura = "100%"; 200 $this->largura = "100%";
  201 +
200 $localizacao = new LocalizacaoSistema(); 202 $localizacao = new LocalizacaoSistema();
201 - $localizacao->entradaCaminhos( array(  
202 - "localhost" => "i-Educar",  
203 - "intranet/educar_biblioteca_index.php" => "Biblioteca",  
204 - "" => "Cadastro de Biblioteca"  
205 - ));  
206 -  
207 - $this->enviaLocalizacao($localizacao->montar()); 203 + $localizacao->entradaCaminhos( array(
  204 + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar",
  205 + "educar_biblioteca_index.php" => "Biblioteca",
  206 + "" => "Cadastro de Biblioteca"
  207 + ));
  208 + $this->enviaLocalizacao($localizacao->montar());
208 } 209 }
209 210
210 } 211 }
ieducar/intranet/include/clsListagem.inc.php
@@ -312,10 +312,7 @@ class clsListagem extends clsCampos @@ -312,10 +312,7 @@ class clsListagem extends clsCampos
312 312
313 //$barra = '<b>Localizacao: http://'.$server.$endereco.'</b><br>'; 313 //$barra = '<b>Localizacao: http://'.$server.$endereco.'</b><br>';
314 //$barra = '<tr><td><b>Localizacao:'. $enderecoPagina .'</b><br></tr></td>'; 314 //$barra = '<tr><td><b>Localizacao:'. $enderecoPagina .'</b><br></tr></td>';
315 - $barra = '<b>Filtros de busca</b>';  
316 - $teste = '<b>LOCALIZACAO</b>';  
317 -  
318 - 315 + $barra = '<b>Filtros de busca</b>';
319 316
320 if (class_exists('clsPmiajudaPagina')) { 317 if (class_exists('clsPmiajudaPagina')) {
321 $ajudaPagina = new clsPmiajudaPagina(); 318 $ajudaPagina = new clsPmiajudaPagina();
@@ -400,11 +397,6 @@ class clsListagem extends clsCampos @@ -400,11 +397,6 @@ class clsListagem extends clsCampos
400 397
401 $retorno .= " 398 $retorno .= "
402 <table class='tablelistagem' $width border='0' cellpadding='2' cellspacing='1'>"; 399 <table class='tablelistagem' $width border='0' cellpadding='2' cellspacing='1'>";
403 -  
404 - /*$retorno .= "  
405 - <tr>  
406 - <td class='' colspan='2' height='24'><ul><li>teste</li></ul></td>  
407 - </tr>";*/  
408 400
409 $retorno .= " 401 $retorno .= "
410 <tr> 402 <tr>
ieducar/intranet/styles/localizacaoSistema.css
@@ -9,17 +9,18 @@ @@ -9,17 +9,18 @@
9 } 9 }
10 10
11 #localizacao a{ 11 #localizacao a{
12 - font-family: tahoma,verdana,sans-serif;  
13 - font-size: 12px; 12 + font-family: arial, verdana, sans-serif, "Times New Roman";
  13 + font-size: 11px;
14 font-style: normal; 14 font-style: normal;
15 font-variant: normal; 15 font-variant: normal;
  16 + font-weight: bold;
16 letter-spacing: 0pt; 17 letter-spacing: 0pt;
17 line-height: normal; 18 line-height: normal;
18 - background: #BECCD6;  
19 - padding: .7em 1em; 19 + background: #A1B3BD;
  20 + padding: .4em 1em;
20 float: left; 21 float: left;
21 text-decoration: none; 22 text-decoration: none;
22 - color: #ffffff; 23 + color: #fff;
23 text-shadow: 0 1px 0 rgba(255,255,255,.5); 24 text-shadow: 0 1px 0 rgba(255,255,255,.5);
24 position: relative; 25 position: relative;
25 } 26 }
@@ -31,11 +32,11 @@ @@ -31,11 +32,11 @@
31 #localizacao a::before{ 32 #localizacao a::before{
32 content: ""; 33 content: "";
33 position: absolute; 34 position: absolute;
34 - top: 50%; 35 + top: 50%; $this->addEstilo( "localizacaoSistema" );
35 margin-top: -1.5em; 36 margin-top: -1.5em;
36 border-width: 1.5em 0 1.5em 1em; 37 border-width: 1.5em 0 1.5em 1em;
37 border-style: solid; 38 border-style: solid;
38 - border-color: #BECCD6 #BECCD6 #BECCD6 transparent; 39 + border-color: #A1B3BD #A1B3BD #A1B3BD transparent;
39 left: -1em; 40 left: -1em;
40 } 41 }
41 42
@@ -50,12 +51,13 @@ @@ -50,12 +51,13 @@
50 margin-top: -1.5em; 51 margin-top: -1.5em;
51 border-top: 1.5em solid transparent; 52 border-top: 1.5em solid transparent;
52 border-bottom: 1.5em solid transparent; 53 border-bottom: 1.5em solid transparent;
53 - border-left: 1em solid #BECCD6; 54 + border-left: 1em solid #A1B3BD;
54 right: -1em; 55 right: -1em;
55 } 56 }
56 57
57 #localizacao a:hover::after{ 58 #localizacao a:hover::after{
58 border-left-color: #184e7f; 59 border-left-color: #184e7f;
  60 + content: "";
59 } 61 }
60 62
61 #localizacao .current, 63 #localizacao .current,
@@ -67,4 +69,7 @@ @@ -67,4 +69,7 @@
67 #localizacao .current::after, 69 #localizacao .current::after,
68 #localizacao .current::before{ 70 #localizacao .current::before{
69 content: normal; 71 content: normal;
  72 +}
  73 +.fundoLocalizacao {
  74 + background-color: #E4E9ED;
70 } 75 }
71 \ No newline at end of file 76 \ No newline at end of file
ieducar/intranet/styles/novo.css
@@ -637,80 +637,4 @@ color:#ffffff; @@ -637,80 +637,4 @@ color:#ffffff;
637 height:19px; 637 height:19px;
638 opacity:1; 638 opacity:1;
639 width:19px; 639 width:19px;
640 -}  
641 -  
642 -#localizacao{  
643 - overflow: hidden;  
644 - width: 100%;  
645 -}  
646 -  
647 -#localizacao li{  
648 - float: left;  
649 - margin: 0 .5em 0 1em;  
650 -}  
651 -  
652 -#localizacao a{  
653 - font-family: arial, verdana, sans-serif, "Times New Roman";  
654 - font-size: 11px;  
655 - font-style: normal;  
656 - font-variant: normal;  
657 - font-weight: bold;  
658 - letter-spacing: 0pt;  
659 - line-height: normal;  
660 - background: #A1B3BD;  
661 - padding: .4em 1em;  
662 - float: left;  
663 - text-decoration: none;  
664 - color: #fff;  
665 - text-shadow: 0 1px 0 rgba(255,255,255,.5);  
666 - position: relative;  
667 -}  
668 -  
669 -#localizacao a:hover{  
670 - background: #184e7f;  
671 -}  
672 -  
673 -#localizacao a::before{  
674 - content: "";  
675 - position: absolute;  
676 - top: 50%;  
677 - margin-top: -1.5em;  
678 - border-width: 1.5em 0 1.5em 1em;  
679 - border-style: solid;  
680 - border-color: #A1B3BD #A1B3BD #A1B3BD transparent;  
681 - left: -1em;  
682 -}  
683 -  
684 -#localizacao a:hover::before{  
685 - border-color: #184e7f #184e7f #184e7f transparent;  
686 -}  
687 -  
688 -#localizacao a::after{  
689 - content: "";  
690 - position: absolute;  
691 - top: 50%;  
692 - margin-top: -1.5em;  
693 - border-top: 1.5em solid transparent;  
694 - border-bottom: 1.5em solid transparent;  
695 - border-left: 1em solid #A1B3BD;  
696 - right: -1em;  
697 -}  
698 -  
699 -#localizacao a:hover::after{  
700 - border-left-color: #184e7f;  
701 - content: "";  
702 -}  
703 -  
704 -#localizacao .current,  
705 -#localizacao .current:hover{  
706 - font-weight: bold;  
707 - background: none;  
708 -}  
709 -  
710 -#localizacao .current::after,  
711 -#localizacao .current::before{  
712 - content: normal;  
713 -}  
714 -.fundoLocalizacao {  
715 - background-color: #E4E9ED;  
716 } 640 }
717 \ No newline at end of file 641 \ No newline at end of file