Commit 589126157922e7c9db1ea423edb02c3ea8137301
1 parent
c602b658
Exists in
master
Localizacao do usuario: agora a chamada esta sendo feita local em cada pagina de…
… listagem - Foram feitas para Cadastro de Aluno e Cadastro de Biblioteca
Showing
5 changed files
with
41 additions
and
13 deletions
Show diff stats
ieducar/intranet/educar_aluno_lst.php
@@ -29,6 +29,7 @@ require_once 'include/clsListagem.inc.php'; | @@ -29,6 +29,7 @@ require_once 'include/clsListagem.inc.php'; | ||
29 | require_once 'include/clsBanco.inc.php'; | 29 | require_once 'include/clsBanco.inc.php'; |
30 | require_once 'include/pmieducar/geral.inc.php'; | 30 | require_once 'include/pmieducar/geral.inc.php'; |
31 | require_once 'Educacenso/Model/AlunoDataMapper.php'; | 31 | require_once 'Educacenso/Model/AlunoDataMapper.php'; |
32 | +require_once 'include/localizacaoSistema.php'; | ||
32 | 33 | ||
33 | class clsIndexBase extends clsBase | 34 | class clsIndexBase extends clsBase |
34 | { | 35 | { |
@@ -36,7 +37,7 @@ class clsIndexBase extends clsBase | @@ -36,7 +37,7 @@ class clsIndexBase extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Aluno" ); | 38 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Aluno" ); |
38 | $this->processoAp = "578"; | 39 | $this->processoAp = "578"; |
39 | - } | 40 | + } |
40 | } | 41 | } |
41 | 42 | ||
42 | class indice extends clsListagem | 43 | class indice extends clsListagem |
@@ -112,7 +113,9 @@ class indice extends clsListagem | @@ -112,7 +113,9 @@ class indice extends clsListagem | ||
112 | $this->campoTexto("nome_mae", "Nome da Mãe", $this->nome_mae, 50, 255); | 113 | $this->campoTexto("nome_mae", "Nome da Mãe", $this->nome_mae, 50, 255); |
113 | $this->campoTexto("nome_responsavel", "Nome do Responsável", $this->nome_responsavel, 50, 255); | 114 | $this->campoTexto("nome_responsavel", "Nome do Responsável", $this->nome_responsavel, 50, 255); |
114 | 115 | ||
115 | - $obj_permissoes = new clsPermissoes(); | 116 | + |
117 | + | ||
118 | + $obj_permissoes = new clsPermissoes(); | ||
116 | $cod_escola = $obj_permissoes->getEscola( $this->pessoa_logada ); | 119 | $cod_escola = $obj_permissoes->getEscola( $this->pessoa_logada ); |
117 | if ($cod_escola) | 120 | if ($cod_escola) |
118 | { | 121 | { |
@@ -237,9 +240,22 @@ class indice extends clsListagem | @@ -237,9 +240,22 @@ class indice extends clsListagem | ||
237 | $id = ''; | 240 | $id = ''; |
238 | } | 241 | } |
239 | 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 | + | ||
240 | return $id; | 252 | return $id; |
241 | - } | ||
242 | -} | 253 | + |
254 | + } | ||
255 | + | ||
256 | + | ||
257 | + } | ||
258 | + | ||
243 | // cria uma extensao da classe base | 259 | // cria uma extensao da classe base |
244 | $pagina = new clsIndexBase(); | 260 | $pagina = new clsIndexBase(); |
245 | // cria o conteudo | 261 | // cria o conteudo |
ieducar/intranet/educar_biblioteca_lst.php
@@ -28,6 +28,7 @@ require_once ("include/clsBase.inc.php"); | @@ -28,6 +28,7 @@ require_once ("include/clsBase.inc.php"); | ||
28 | require_once ("include/clsListagem.inc.php"); | 28 | require_once ("include/clsListagem.inc.php"); |
29 | require_once ("include/clsBanco.inc.php"); | 29 | require_once ("include/clsBanco.inc.php"); |
30 | require_once( "include/pmieducar/geral.inc.php" ); | 30 | require_once( "include/pmieducar/geral.inc.php" ); |
31 | +require_once ("include/localizacaoSistema.php"); | ||
31 | 32 | ||
32 | class clsIndexBase extends clsBase | 33 | class clsIndexBase extends clsBase |
33 | { | 34 | { |
@@ -196,7 +197,16 @@ class indice extends clsListagem | @@ -196,7 +197,16 @@ class indice extends clsListagem | ||
196 | } | 197 | } |
197 | 198 | ||
198 | $this->largura = "100%"; | 199 | $this->largura = "100%"; |
200 | + $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()); | ||
199 | } | 208 | } |
209 | + | ||
200 | } | 210 | } |
201 | // cria uma extensao da classe base | 211 | // cria uma extensao da classe base |
202 | $pagina = new clsIndexBase(); | 212 | $pagina = new clsIndexBase(); |
ieducar/intranet/include/clsListagem.inc.php
@@ -81,6 +81,7 @@ class clsListagem extends clsCampos | @@ -81,6 +81,7 @@ class clsListagem extends clsCampos | ||
81 | var $funcAcao = ''; | 81 | var $funcAcao = ''; |
82 | var $funcAcaoNome = ''; | 82 | var $funcAcaoNome = ''; |
83 | var $rotulo_anterior; | 83 | var $rotulo_anterior; |
84 | + var $locale = "<b>=> PAGINA SEM LOCALIZACAO, COLOQUE POR GENTILEZA. <=</b>"; | ||
84 | 85 | ||
85 | var $array_botao; | 86 | var $array_botao; |
86 | var $array_botao_url; | 87 | var $array_botao_url; |
@@ -122,6 +123,11 @@ class clsListagem extends clsCampos | @@ -122,6 +123,11 @@ class clsListagem extends clsCampos | ||
122 | 123 | ||
123 | $this->bannerClose = $boolFechaBanner; | 124 | $this->bannerClose = $boolFechaBanner; |
124 | } | 125 | } |
126 | + | ||
127 | + function enviaLocalizacao($localizao){ | ||
128 | + if($localizao) | ||
129 | + $this->locale = $localizao; | ||
130 | + } | ||
125 | 131 | ||
126 | function addCabecalhos($coluna) | 132 | function addCabecalhos($coluna) |
127 | { | 133 | { |
@@ -309,12 +315,7 @@ class clsListagem extends clsCampos | @@ -309,12 +315,7 @@ class clsListagem extends clsCampos | ||
309 | $barra = '<b>Filtros de busca</b>'; | 315 | $barra = '<b>Filtros de busca</b>'; |
310 | $teste = '<b>LOCALIZACAO</b>'; | 316 | $teste = '<b>LOCALIZACAO</b>'; |
311 | 317 | ||
312 | - $localizacao = new LocalizacaoSistema(); | ||
313 | - $localizacao->entradaCaminhos( array( | ||
314 | - "localhost" => "i-Educar", | ||
315 | - "intranet/educar_index.php" => "Escola", | ||
316 | - "" => "Cadastro de Aluno" | ||
317 | - )); | 318 | + |
318 | 319 | ||
319 | if (class_exists('clsPmiajudaPagina')) { | 320 | if (class_exists('clsPmiajudaPagina')) { |
320 | $ajudaPagina = new clsPmiajudaPagina(); | 321 | $ajudaPagina = new clsPmiajudaPagina(); |
@@ -407,7 +408,7 @@ class clsListagem extends clsCampos | @@ -407,7 +408,7 @@ class clsListagem extends clsCampos | ||
407 | 408 | ||
408 | $retorno .= " | 409 | $retorno .= " |
409 | <tr> | 410 | <tr> |
410 | - <td class='fundoLocalizacao' colspan='2' height='24'>{$localizacao->montar()}</td> | 411 | + <td class='fundoLocalizacao' colspan='2' height='24'>{$this->locale}</td> |
411 | </tr>"; | 412 | </tr>"; |
412 | 413 | ||
413 | $retorno .= " | 414 | $retorno .= " |
ieducar/intranet/include/localizacaoSistema.php
@@ -53,12 +53,13 @@ class LocalizacaoSistema { | @@ -53,12 +53,13 @@ class LocalizacaoSistema { | ||
53 | $href = ''; | 53 | $href = ''; |
54 | $localizacao_count = sizeof( $this->localizacao ); | 54 | $localizacao_count = sizeof( $this->localizacao ); |
55 | $i = 1; | 55 | $i = 1; |
56 | + $linkVazio="#"; | ||
56 | 57 | ||
57 | $this->html = '<ul id="localizacao">'; | 58 | $this->html = '<ul id="localizacao">'; |
58 | foreach( $this->localizacao as $link => $inner ) { | 59 | foreach( $this->localizacao as $link => $inner ) { |
59 | $href .= ( $i === 1 ) ? $this->protocolo . $link : "/$link"; | 60 | $href .= ( $i === 1 ) ? $this->protocolo . $link : "/$link"; |
60 | if( $i === $localizacao_count ) { | 61 | if( $i === $localizacao_count ) { |
61 | - $this->html .= "<li><a>$inner</a></li>"; | 62 | + $this->html .= "<li><a href=\"$linkVazio\">$inner</a></li>"; |
62 | } else { | 63 | } else { |
63 | $this->html .= "<li><a href=\"$href\" title=\"$inner\">$inner</a></li> {$this->separador} "; | 64 | $this->html .= "<li><a href=\"$href\" title=\"$inner\">$inner</a></li> {$this->separador} "; |
64 | } | 65 | } |
ieducar/intranet/styles/novo.css
@@ -658,7 +658,7 @@ width:19px; | @@ -658,7 +658,7 @@ width:19px; | ||
658 | letter-spacing: 0pt; | 658 | letter-spacing: 0pt; |
659 | line-height: normal; | 659 | line-height: normal; |
660 | background: #A1B3BD; | 660 | background: #A1B3BD; |
661 | - padding: .7em 1em; | 661 | + padding: .4em 1em; |
662 | float: left; | 662 | float: left; |
663 | text-decoration: none; | 663 | text-decoration: none; |
664 | color: #fff; | 664 | color: #fff; |