Commit 60130afa908a76845f15dc52ea53ae900a74f06a
1 parent
1782a499
Exists in
master
Corrigido bug ao tentar abrir calendario letivo;
portabilis/ieducar#174
Showing
1 changed file
with
17 additions
and
9 deletions
Show diff stats
ieducar/intranet/educar_calendario_ano_letivo_lst.php
... | ... | @@ -36,6 +36,7 @@ require_once 'clsCalendario.inc.php'; |
36 | 36 | |
37 | 37 | require_once 'Calendario/Model/TurmaDataMapper.php'; |
38 | 38 | require_once 'App/Model/IedFinder.php'; |
39 | +require_once 'include/localizacaoSistema.php'; | |
39 | 40 | |
40 | 41 | /** |
41 | 42 | * clsIndexBase class. |
... | ... | @@ -121,6 +122,21 @@ class indice extends clsConfig |
121 | 122 | <table width="100%" cellspacing="1" cellpadding="2" border="0" class="tablelistagem"> |
122 | 123 | <tbody>'; |
123 | 124 | |
125 | + $localizacao = new LocalizacaoSistema(); | |
126 | + $localizacao->entradaCaminhos( array( | |
127 | + $_SERVER['SERVER_NAME']."/intranet" => "Início", | |
128 | + "educar_index.php" => "i-Educar - Escola", | |
129 | + "" => "Calendário do ano letivo" | |
130 | + )); | |
131 | + $this->locale = $localizacao->montar(); | |
132 | + | |
133 | + if ($this->locale){ | |
134 | + | |
135 | + $retorno .= "<tr height='10px'> | |
136 | + <td class='fundoLocalizacao' colspan='5'>{$this->locale}</td> | |
137 | + </tr>"; | |
138 | + } | |
139 | + | |
124 | 140 | if ($_POST) { |
125 | 141 | $this->ref_cod_escola = $_POST['ref_cod_escola'] ? |
126 | 142 | $_POST['ref_cod_escola'] : $_SESSION['calendario']['ref_cod_escola']; |
... | ... | @@ -506,14 +522,6 @@ class indice extends clsConfig |
506 | 522 | </tbody> |
507 | 523 | </table>'; |
508 | 524 | |
509 | - $localizacao = new LocalizacaoSistema(); | |
510 | - $localizacao->entradaCaminhos( array( | |
511 | - $_SERVER['SERVER_NAME']."/intranet" => "Início", | |
512 | - "educar_index.php" => "i-Educar - Escola", | |
513 | - "" => "Calendário do ano letivo" | |
514 | - )); | |
515 | - $this->enviaLocalizacao($localizacao->montar()); | |
516 | - | |
517 | 525 | return $retorno; |
518 | 526 | } |
519 | 527 | } |
... | ... | @@ -528,4 +536,4 @@ $miolo = new indice(); |
528 | 536 | $pagina->addForm($miolo); |
529 | 537 | |
530 | 538 | // Gera o código HTML |
531 | -$pagina->MakeAll(); | |
532 | 539 | \ No newline at end of file |
540 | +$pagina->MakeAll(); | ... | ... |