From ea512bd80a56e5882b3aeb5def870cc3e0bd5b03 Mon Sep 17 00:00:00 2001 From: Rafael Ferreira Date: Wed, 19 Jun 2013 22:40:18 -0300 Subject: [PATCH] Ajustes no metodo de localizacao do usuario no sistema --- ieducar/intranet/educar_aluno_lst.php | 29 +++++++++++++++-------------- ieducar/intranet/educar_biblioteca_lst.php | 15 ++++++++------- ieducar/intranet/include/clsListagem.inc.php | 10 +--------- ieducar/intranet/styles/localizacaoSistema.css | 21 +++++++++++++-------- ieducar/intranet/styles/novo.css | 76 ---------------------------------------------------------------------------- 5 files changed, 37 insertions(+), 114 deletions(-) diff --git a/ieducar/intranet/educar_aluno_lst.php b/ieducar/intranet/educar_aluno_lst.php index 63900ef..d1094b4 100644 --- a/ieducar/intranet/educar_aluno_lst.php +++ b/ieducar/intranet/educar_aluno_lst.php @@ -37,6 +37,7 @@ class clsIndexBase extends clsBase { $this->SetTitulo( "{$this->_instituicao} i-Educar - Aluno" ); $this->processoAp = "578"; + $this->addEstilo( "localizacaoSistema" ); } } @@ -134,7 +135,7 @@ class indice extends clsListagem $this->addCabecalhos( array( "Código Aluno", - "Código INEP", + "Código INEP", "Nome do Aluno", "Nome da Mãe", "Nome do Responsável", @@ -173,7 +174,7 @@ class indice extends clsListagem $this->nome_pai, $this->nome_mae, $this->nome_responsavel, - $this->cod_inep + $this->cod_inep ); $total = $aluno->_total; @@ -212,7 +213,16 @@ class indice extends clsListagem } //** $this->largura = "100%"; - } + + $localizacao = new LocalizacaoSistema(); + $localizacao->entradaCaminhos( array( + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", + "educar_index.php" => "Escola", + "" => "Cadastro de Aluno" + )); + $this->enviaLocalizacao($localizacao->montar()); + + } protected function loadNomeMae($aluno) { $nome = $aluno['nm_mae']; @@ -224,8 +234,8 @@ class indice extends clsListagem $pessoaMae = new clsPessoaFj($pessoaAluno['idpes_mae']); $pessoaMae = $pessoaMae->detalhe(); $nome = $pessoaMae['nome']; - } - + } + return $nome; } @@ -239,15 +249,6 @@ class indice extends clsListagem catch(Exception $e) { $id = ''; } - - $localizacao = new LocalizacaoSistema(); - $localizacao->entradaCaminhos( array( - "localhost" => "i-Educar", - "intranet/educar_index.php" => "Escola", - "" => "Cadastro de Aluno" - )); - - $this->enviaLocalizacao($localizacao->montar()); return $id; diff --git a/ieducar/intranet/educar_biblioteca_lst.php b/ieducar/intranet/educar_biblioteca_lst.php index 58fe8af..b080cae 100644 --- a/ieducar/intranet/educar_biblioteca_lst.php +++ b/ieducar/intranet/educar_biblioteca_lst.php @@ -36,6 +36,7 @@ class clsIndexBase extends clsBase { $this->SetTitulo( "{$this->_instituicao} i-Educar - Biblioteca" ); $this->processoAp = "591"; + $this->addEstilo( "localizacaoSistema" ); } } @@ -197,14 +198,14 @@ class indice extends clsListagem } $this->largura = "100%"; + $localizacao = new LocalizacaoSistema(); - $localizacao->entradaCaminhos( array( - "localhost" => "i-Educar", - "intranet/educar_biblioteca_index.php" => "Biblioteca", - "" => "Cadastro de Biblioteca" - )); - - $this->enviaLocalizacao($localizacao->montar()); + $localizacao->entradaCaminhos( array( + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", + "educar_biblioteca_index.php" => "Biblioteca", + "" => "Cadastro de Biblioteca" + )); + $this->enviaLocalizacao($localizacao->montar()); } } diff --git a/ieducar/intranet/include/clsListagem.inc.php b/ieducar/intranet/include/clsListagem.inc.php index 536d0b0..e087516 100755 --- a/ieducar/intranet/include/clsListagem.inc.php +++ b/ieducar/intranet/include/clsListagem.inc.php @@ -312,10 +312,7 @@ class clsListagem extends clsCampos //$barra = 'Localizacao: http://'.$server.$endereco.'
'; //$barra = 'Localizacao:'. $enderecoPagina .'
'; - $barra = 'Filtros de busca'; - $teste = 'LOCALIZACAO'; - - + $barra = 'Filtros de busca'; if (class_exists('clsPmiajudaPagina')) { $ajudaPagina = new clsPmiajudaPagina(); @@ -400,11 +397,6 @@ class clsListagem extends clsCampos $retorno .= " "; - - /*$retorno .= " - - - ";*/ $retorno .= " diff --git a/ieducar/intranet/styles/localizacaoSistema.css b/ieducar/intranet/styles/localizacaoSistema.css index 8b7f566..d2fde36 100644 --- a/ieducar/intranet/styles/localizacaoSistema.css +++ b/ieducar/intranet/styles/localizacaoSistema.css @@ -9,17 +9,18 @@ } #localizacao a{ - font-family: tahoma,verdana,sans-serif; - font-size: 12px; + font-family: arial, verdana, sans-serif, "Times New Roman"; + font-size: 11px; font-style: normal; font-variant: normal; + font-weight: bold; letter-spacing: 0pt; line-height: normal; - background: #BECCD6; - padding: .7em 1em; + background: #A1B3BD; + padding: .4em 1em; float: left; text-decoration: none; - color: #ffffff; + color: #fff; text-shadow: 0 1px 0 rgba(255,255,255,.5); position: relative; } @@ -31,11 +32,11 @@ #localizacao a::before{ content: ""; position: absolute; - top: 50%; + top: 50%; $this->addEstilo( "localizacaoSistema" ); margin-top: -1.5em; border-width: 1.5em 0 1.5em 1em; border-style: solid; - border-color: #BECCD6 #BECCD6 #BECCD6 transparent; + border-color: #A1B3BD #A1B3BD #A1B3BD transparent; left: -1em; } @@ -50,12 +51,13 @@ margin-top: -1.5em; border-top: 1.5em solid transparent; border-bottom: 1.5em solid transparent; - border-left: 1em solid #BECCD6; + border-left: 1em solid #A1B3BD; right: -1em; } #localizacao a:hover::after{ border-left-color: #184e7f; + content: ""; } #localizacao .current, @@ -67,4 +69,7 @@ #localizacao .current::after, #localizacao .current::before{ content: normal; +} +.fundoLocalizacao { + background-color: #E4E9ED; } \ No newline at end of file diff --git a/ieducar/intranet/styles/novo.css b/ieducar/intranet/styles/novo.css index 9006bf0..a9c2687 100755 --- a/ieducar/intranet/styles/novo.css +++ b/ieducar/intranet/styles/novo.css @@ -637,80 +637,4 @@ color:#ffffff; height:19px; opacity:1; width:19px; -} - -#localizacao{ - overflow: hidden; - width: 100%; -} - -#localizacao li{ - float: left; - margin: 0 .5em 0 1em; -} - -#localizacao a{ - font-family: arial, verdana, sans-serif, "Times New Roman"; - font-size: 11px; - font-style: normal; - font-variant: normal; - font-weight: bold; - letter-spacing: 0pt; - line-height: normal; - background: #A1B3BD; - padding: .4em 1em; - float: left; - text-decoration: none; - color: #fff; - text-shadow: 0 1px 0 rgba(255,255,255,.5); - position: relative; -} - -#localizacao a:hover{ - background: #184e7f; -} - -#localizacao a::before{ - content: ""; - position: absolute; - top: 50%; - margin-top: -1.5em; - border-width: 1.5em 0 1.5em 1em; - border-style: solid; - border-color: #A1B3BD #A1B3BD #A1B3BD transparent; - left: -1em; -} - -#localizacao a:hover::before{ - border-color: #184e7f #184e7f #184e7f transparent; -} - -#localizacao a::after{ - content: ""; - position: absolute; - top: 50%; - margin-top: -1.5em; - border-top: 1.5em solid transparent; - border-bottom: 1.5em solid transparent; - border-left: 1em solid #A1B3BD; - right: -1em; -} - -#localizacao a:hover::after{ - border-left-color: #184e7f; - content: ""; -} - -#localizacao .current, -#localizacao .current:hover{ - font-weight: bold; - background: none; -} - -#localizacao .current::after, -#localizacao .current::before{ - content: normal; -} -.fundoLocalizacao { - background-color: #E4E9ED; } \ No newline at end of file -- libgit2 0.21.2
  • teste