Commit 6bf556d6e5a593acd566feb3ea02f7d5bf6b6459
Exists in
master
Merge pull request #20 from i-educar-unb/master
Primeiro Pull Request do time de desenvolvimento da UnB
Showing
79 changed files
with
1200 additions
and
738 deletions
Show diff stats
.gitignore
ieducar/intranet/agenda_admin_lst.php
@@ -28,6 +28,7 @@ $desvio_diretorio = ""; | @@ -28,6 +28,7 @@ $desvio_diretorio = ""; | ||
28 | require_once ("include/clsBase.inc.php"); | 28 | require_once ("include/clsBase.inc.php"); |
29 | require_once ("include/clsListagem.inc.php"); | 29 | require_once ("include/clsListagem.inc.php"); |
30 | require_once ("include/clsBanco.inc.php"); | 30 | require_once ("include/clsBanco.inc.php"); |
31 | +require_once 'include/localizacaoSistema.php'; | ||
31 | 32 | ||
32 | class clsIndex extends clsBase | 33 | class clsIndex extends clsBase |
33 | { | 34 | { |
@@ -36,6 +37,7 @@ class clsIndex extends clsBase | @@ -36,6 +37,7 @@ class clsIndex extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} Agenda" ); | 38 | $this->SetTitulo( "{$this->_instituicao} Agenda" ); |
38 | $this->processoAp = "343"; | 39 | $this->processoAp = "343"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -86,6 +88,13 @@ class indice extends clsListagem | @@ -86,6 +88,13 @@ class indice extends clsListagem | ||
86 | $this->nome_acao = "Novo"; | 88 | $this->nome_acao = "Novo"; |
87 | 89 | ||
88 | $this->largura = "100%"; | 90 | $this->largura = "100%"; |
91 | + | ||
92 | + $localizacao = new LocalizacaoSistema(); | ||
93 | + $localizacao->entradaCaminhos( array( | ||
94 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
95 | + "" => "Agenda Admin" | ||
96 | + )); | ||
97 | + $this->enviaLocalizacao($localizacao->montar()); | ||
89 | } | 98 | } |
90 | } | 99 | } |
91 | 100 |
ieducar/intranet/agenda_responsavel.php
@@ -28,6 +28,7 @@ $desvio_diretorio = ""; | @@ -28,6 +28,7 @@ $desvio_diretorio = ""; | ||
28 | require_once ("include/clsBase.inc.php"); | 28 | require_once ("include/clsBase.inc.php"); |
29 | require_once ("include/clsListagem.inc.php"); | 29 | require_once ("include/clsListagem.inc.php"); |
30 | require_once ("include/clsBanco.inc.php"); | 30 | require_once ("include/clsBanco.inc.php"); |
31 | +require_once 'include/localizacaoSistema.php'; | ||
31 | 32 | ||
32 | class clsIndex extends clsBase | 33 | class clsIndex extends clsBase |
33 | { | 34 | { |
@@ -36,6 +37,7 @@ class clsIndex extends clsBase | @@ -36,6 +37,7 @@ class clsIndex extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} Agenda" ); | 38 | $this->SetTitulo( "{$this->_instituicao} Agenda" ); |
38 | $this->processoAp = "341"; | 39 | $this->processoAp = "341"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -98,6 +100,13 @@ class indice extends clsListagem | @@ -98,6 +100,13 @@ class indice extends clsListagem | ||
98 | $this->addPaginador2( "agenda_responsavel.php", $total, $_GET, $this->nome, $limite ); | 100 | $this->addPaginador2( "agenda_responsavel.php", $total, $_GET, $this->nome, $limite ); |
99 | 101 | ||
100 | $this->largura = "100%"; | 102 | $this->largura = "100%"; |
103 | + | ||
104 | + $localizacao = new LocalizacaoSistema(); | ||
105 | + $localizacao->entradaCaminhos( array( | ||
106 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
107 | + "" => "Agendas" | ||
108 | + )); | ||
109 | + $this->enviaLocalizacao($localizacao->montar()); | ||
101 | } | 110 | } |
102 | } | 111 | } |
103 | 112 |
ieducar/intranet/atendidos_cad.php
@@ -574,7 +574,7 @@ class indice extends clsCadastro | @@ -574,7 +574,7 @@ class indice extends clsCadastro | ||
574 | 574 | ||
575 | // naturalidade | 575 | // naturalidade |
576 | 576 | ||
577 | - $options = array('label' => 'Naturalidade', 'required' => false); | 577 | + $options = array('label' => 'Naturalidade', 'required' => true); |
578 | 578 | ||
579 | $helperOptions = array('objectName' => 'naturalidade', | 579 | $helperOptions = array('objectName' => 'naturalidade', |
580 | 'hiddenInputOptions' => array('options' => array('value' => $this->naturalidade_id))); | 580 | 'hiddenInputOptions' => array('options' => array('value' => $this->naturalidade_id))); |
ieducar/intranet/diaria_grupo_lst.php
@@ -28,6 +28,7 @@ $desvio_diretorio = ""; | @@ -28,6 +28,7 @@ $desvio_diretorio = ""; | ||
28 | require_once ("include/clsBase.inc.php"); | 28 | require_once ("include/clsBase.inc.php"); |
29 | require_once ("include/clsListagem.inc.php"); | 29 | require_once ("include/clsListagem.inc.php"); |
30 | require_once ("include/clsBanco.inc.php"); | 30 | require_once ("include/clsBanco.inc.php"); |
31 | +require_once 'include/localizacaoSistema.php'; | ||
31 | 32 | ||
32 | class clsIndex extends clsBase | 33 | class clsIndex extends clsBase |
33 | { | 34 | { |
@@ -36,6 +37,7 @@ class clsIndex extends clsBase | @@ -36,6 +37,7 @@ class clsIndex extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} Diária Grupo" ); | 38 | $this->SetTitulo( "{$this->_instituicao} Diária Grupo" ); |
38 | $this->processoAp = "297"; | 39 | $this->processoAp = "297"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -79,6 +81,13 @@ class indice extends clsListagem | @@ -79,6 +81,13 @@ class indice extends clsListagem | ||
79 | $this->nome_acao = "Novo"; | 81 | $this->nome_acao = "Novo"; |
80 | 82 | ||
81 | $this->largura = "100%"; | 83 | $this->largura = "100%"; |
84 | + | ||
85 | + $localizacao = new LocalizacaoSistema(); | ||
86 | + $localizacao->entradaCaminhos( array( | ||
87 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
88 | + "" => "Diárias Grupo" | ||
89 | + )); | ||
90 | + $this->enviaLocalizacao($localizacao->montar()); | ||
82 | } | 91 | } |
83 | } | 92 | } |
84 | 93 | ||
@@ -86,6 +95,7 @@ class indice extends clsListagem | @@ -86,6 +95,7 @@ class indice extends clsListagem | ||
86 | $pagina = new clsIndex(); | 95 | $pagina = new clsIndex(); |
87 | 96 | ||
88 | $miolo = new indice(); | 97 | $miolo = new indice(); |
98 | + | ||
89 | $pagina->addForm( $miolo ); | 99 | $pagina->addForm( $miolo ); |
90 | 100 | ||
91 | $pagina->MakeAll(); | 101 | $pagina->MakeAll(); |
ieducar/intranet/diaria_lst.php
@@ -28,6 +28,7 @@ $desvio_diretorio = ""; | @@ -28,6 +28,7 @@ $desvio_diretorio = ""; | ||
28 | require_once ("include/clsBase.inc.php"); | 28 | require_once ("include/clsBase.inc.php"); |
29 | require_once ("include/clsListagem.inc.php"); | 29 | require_once ("include/clsListagem.inc.php"); |
30 | require_once ("include/clsBanco.inc.php"); | 30 | require_once ("include/clsBanco.inc.php"); |
31 | +require_once 'include/localizacaoSistema.php'; | ||
31 | 32 | ||
32 | class clsIndex extends clsBase | 33 | class clsIndex extends clsBase |
33 | { | 34 | { |
@@ -36,6 +37,7 @@ class clsIndex extends clsBase | @@ -36,6 +37,7 @@ class clsIndex extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} Diaria" ); | 38 | $this->SetTitulo( "{$this->_instituicao} Diaria" ); |
38 | $this->processoAp = "293"; | 39 | $this->processoAp = "293"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -136,6 +138,13 @@ class indice extends clsListagem | @@ -136,6 +138,13 @@ class indice extends clsListagem | ||
136 | $this->nome_acao = "Novo"; | 138 | $this->nome_acao = "Novo"; |
137 | 139 | ||
138 | $this->largura = "100%"; | 140 | $this->largura = "100%"; |
141 | + | ||
142 | + $localizacao = new LocalizacaoSistema(); | ||
143 | + $localizacao->entradaCaminhos( array( | ||
144 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
145 | + "" => "Diárias" | ||
146 | + )); | ||
147 | + $this->enviaLocalizacao($localizacao->montar()); | ||
139 | } | 148 | } |
140 | } | 149 | } |
141 | 150 |
ieducar/intranet/educar_acervo_assunto_det.php
@@ -70,12 +70,75 @@ class indice extends clsDetalhe | @@ -70,12 +70,75 @@ class indice extends clsDetalhe | ||
70 | 70 | ||
71 | $tmp_obj = new clsPmieducarAcervoAssunto( $this->cod_acervo_assunto ); | 71 | $tmp_obj = new clsPmieducarAcervoAssunto( $this->cod_acervo_assunto ); |
72 | $registro = $tmp_obj->detalhe(); | 72 | $registro = $tmp_obj->detalhe(); |
73 | + | ||
74 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
75 | + { | ||
76 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
77 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
78 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
79 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
80 | + { | ||
81 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
82 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
83 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
84 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
85 | + } | ||
86 | + else | ||
87 | + { | ||
88 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
89 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
90 | + } | ||
91 | + } | ||
92 | + | ||
93 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
94 | + { | ||
95 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
96 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
97 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
98 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
99 | + if ($idpes) | ||
100 | + { | ||
101 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
102 | + $obj_escola_det = $obj_escola->detalhe(); | ||
103 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
104 | + } | ||
105 | + else | ||
106 | + { | ||
107 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
108 | + $obj_escola_det = $obj_escola->detalhe(); | ||
109 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
110 | + } | ||
111 | + } | ||
73 | 112 | ||
113 | + $obj_permissoes = new clsPermissoes(); | ||
114 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
115 | + | ||
74 | if( ! $registro ) | 116 | if( ! $registro ) |
75 | { | 117 | { |
76 | header( "location: educar_acervo_assunto_lst.php" ); | 118 | header( "location: educar_acervo_assunto_lst.php" ); |
77 | die(); | 119 | die(); |
78 | } | 120 | } |
121 | + | ||
122 | + if ($nivel_usuario == 1) | ||
123 | + { | ||
124 | + if( $registro["ref_cod_instituicao"] ) | ||
125 | + { | ||
126 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
127 | + } | ||
128 | + } | ||
129 | + | ||
130 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
131 | + { | ||
132 | + if( $registro["ref_cod_escola"] ) | ||
133 | + { | ||
134 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
135 | + } | ||
136 | + } | ||
137 | + | ||
138 | + if( $registro["ref_cod_biblioteca"] ) | ||
139 | + { | ||
140 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
141 | + } | ||
79 | 142 | ||
80 | if( $registro["nm_assunto"] ) | 143 | if( $registro["nm_assunto"] ) |
81 | { | 144 | { |
ieducar/intranet/educar_acervo_assunto_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Acervo Assunto" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Acervo Assunto" ); |
37 | $this->processoAp = "592"; | 38 | $this->processoAp = "592"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -158,6 +160,14 @@ class indice extends clsListagem | @@ -158,6 +160,14 @@ class indice extends clsListagem | ||
158 | } | 160 | } |
159 | 161 | ||
160 | $this->largura = "100%"; | 162 | $this->largura = "100%"; |
163 | + | ||
164 | + $localizacao = new LocalizacaoSistema(); | ||
165 | + $localizacao->entradaCaminhos( array( | ||
166 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
167 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
168 | + "" => "Lista de Assuntos" | ||
169 | + )); | ||
170 | + $this->enviaLocalizacao($localizacao->montar()); | ||
161 | } | 171 | } |
162 | } | 172 | } |
163 | // cria uma extensao da classe base | 173 | // cria uma extensao da classe base |
ieducar/intranet/educar_acervo_autor_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Autor" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Autor" ); |
37 | $this->processoAp = "594"; | 38 | $this->processoAp = "594"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -236,6 +238,14 @@ class indice extends clsListagem | @@ -236,6 +238,14 @@ class indice extends clsListagem | ||
236 | } | 238 | } |
237 | 239 | ||
238 | $this->largura = "100%"; | 240 | $this->largura = "100%"; |
241 | + | ||
242 | + $localizacao = new LocalizacaoSistema(); | ||
243 | + $localizacao->entradaCaminhos( array( | ||
244 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
245 | + "educar_index.php" => "Biblioteca", | ||
246 | + "" => "Lista de Autores" | ||
247 | + )); | ||
248 | + $this->enviaLocalizacao($localizacao->montar()); | ||
239 | } | 249 | } |
240 | } | 250 | } |
241 | // cria uma extensao da classe base | 251 | // cria uma extensao da classe base |
ieducar/intranet/educar_acervo_cad.php
@@ -395,7 +395,7 @@ class indice extends clsCadastro | @@ -395,7 +395,7 @@ class indice extends clsCadastro | ||
395 | $this->campoNumero( "num_edicao", "Número Edicão", $this->num_edicao, 20, 255, true ); | 395 | $this->campoNumero( "num_edicao", "Número Edicão", $this->num_edicao, 20, 255, true ); |
396 | $this->campoNumero( "ano", "Ano", $this->ano, 5, 4, true ); | 396 | $this->campoNumero( "ano", "Ano", $this->ano, 5, 4, true ); |
397 | $this->campoNumero( "num_paginas", "Número Páginas", $this->num_paginas, 5, 255, true ); | 397 | $this->campoNumero( "num_paginas", "Número Páginas", $this->num_paginas, 5, 255, true ); |
398 | - $this->campoNumero( "isbn", "ISBN", $this->isbn, 20, 13, true ); | 398 | + $this->campoNumero( "isbn", "ISBN", $this->isbn, 20, 13, false ); |
399 | } | 399 | } |
400 | 400 | ||
401 | function Novo() | 401 | function Novo() |
ieducar/intranet/educar_acervo_colecao_cad.php
@@ -79,6 +79,16 @@ class indice extends clsCadastro | @@ -79,6 +79,16 @@ class indice extends clsCadastro | ||
79 | foreach( $registro AS $campo => $val ) // passa todos os valores obtidos no registro para atributos do objeto | 79 | foreach( $registro AS $campo => $val ) // passa todos os valores obtidos no registro para atributos do objeto |
80 | $this->$campo = $val; | 80 | $this->$campo = $val; |
81 | 81 | ||
82 | + $obj_obra = new clsPmieducarAcervoColecao($this->cod_acervo_colecao); | ||
83 | + $det_obra = $obj_obra->detalhe(); | ||
84 | + | ||
85 | + $obj_biblioteca = new clsPmieducarBiblioteca($det_obra["ref_cod_biblioteca"]); | ||
86 | + $obj_det = $obj_biblioteca->detalhe(); | ||
87 | + | ||
88 | + $this->ref_cod_instituicao = $obj_det["ref_cod_instituicao"]; | ||
89 | + $this->ref_cod_escola = $obj_det["ref_cod_escola"]; | ||
90 | + $this->ref_cod_biblioteca = $obj_det["cod_biblioteca"]; | ||
91 | + | ||
82 | $obj_permissoes = new clsPermissoes(); | 92 | $obj_permissoes = new clsPermissoes(); |
83 | if( $obj_permissoes->permissao_excluir( 593, $this->pessoa_logada, 11 ) ) | 93 | if( $obj_permissoes->permissao_excluir( 593, $this->pessoa_logada, 11 ) ) |
84 | { | 94 | { |
ieducar/intranet/educar_acervo_colecao_det.php
@@ -69,17 +69,82 @@ class indice extends clsDetalhe | @@ -69,17 +69,82 @@ class indice extends clsDetalhe | ||
69 | 69 | ||
70 | $tmp_obj = new clsPmieducarAcervoColecao( $this->cod_acervo_colecao ); | 70 | $tmp_obj = new clsPmieducarAcervoColecao( $this->cod_acervo_colecao ); |
71 | $registro = $tmp_obj->detalhe(); | 71 | $registro = $tmp_obj->detalhe(); |
72 | + | ||
73 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
74 | + { | ||
75 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
76 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
77 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
78 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
79 | + { | ||
80 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
81 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
82 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
83 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
84 | + } | ||
85 | + else | ||
86 | + { | ||
87 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
88 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
89 | + } | ||
90 | + } | ||
91 | + | ||
92 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
93 | + { | ||
94 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
95 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
96 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
97 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
98 | + if ($idpes) | ||
99 | + { | ||
100 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
101 | + $obj_escola_det = $obj_escola->detalhe(); | ||
102 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
103 | + } | ||
104 | + else | ||
105 | + { | ||
106 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
107 | + $obj_escola_det = $obj_escola->detalhe(); | ||
108 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
109 | + } | ||
110 | + } | ||
111 | + | ||
112 | + $obj_permissoes = new clsPermissoes(); | ||
113 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
114 | + | ||
72 | 115 | ||
73 | if( ! $registro ) | 116 | if( ! $registro ) |
74 | { | 117 | { |
75 | header( "location: educar_acervo_colecao_lst.php" ); | 118 | header( "location: educar_acervo_colecao_lst.php" ); |
76 | die(); | 119 | die(); |
77 | } | 120 | } |
121 | + | ||
122 | + if ($nivel_usuario == 1) | ||
123 | + { | ||
124 | + if( $registro["ref_cod_instituicao"] ) | ||
125 | + { | ||
126 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
127 | + } | ||
128 | + } | ||
129 | + | ||
130 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
131 | + { | ||
132 | + if( $registro["ref_cod_escola"] ) | ||
133 | + { | ||
134 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
135 | + } | ||
136 | + } | ||
78 | 137 | ||
138 | + if( $registro["ref_cod_biblioteca"] ) | ||
139 | + { | ||
140 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
141 | + } | ||
142 | + | ||
79 | if( $registro["cod_acervo_colecao"] ) | 143 | if( $registro["cod_acervo_colecao"] ) |
80 | { | 144 | { |
81 | $this->addDetalhe( array( "Código Coleção", "{$registro["cod_acervo_colecao"]}") ); | 145 | $this->addDetalhe( array( "Código Coleção", "{$registro["cod_acervo_colecao"]}") ); |
82 | } | 146 | } |
147 | + | ||
83 | if( $registro["nm_colecao"] ) | 148 | if( $registro["nm_colecao"] ) |
84 | { | 149 | { |
85 | $this->addDetalhe( array( "Coleção", "{$registro["nm_colecao"]}") ); | 150 | $this->addDetalhe( array( "Coleção", "{$registro["nm_colecao"]}") ); |
@@ -88,6 +153,7 @@ class indice extends clsDetalhe | @@ -88,6 +153,7 @@ class indice extends clsDetalhe | ||
88 | { | 153 | { |
89 | $this->addDetalhe( array( "Descrição", "{$registro["descricao"]}") ); | 154 | $this->addDetalhe( array( "Descrição", "{$registro["descricao"]}") ); |
90 | } | 155 | } |
156 | + | ||
91 | 157 | ||
92 | $obj_permissoes = new clsPermissoes(); | 158 | $obj_permissoes = new clsPermissoes(); |
93 | if( $obj_permissoes->permissao_cadastra( 593, $this->pessoa_logada, 11 ) ) | 159 | if( $obj_permissoes->permissao_cadastra( 593, $this->pessoa_logada, 11 ) ) |
ieducar/intranet/educar_acervo_colecao_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Coleção" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Coleção" ); |
37 | $this->processoAp = "593"; | 38 | $this->processoAp = "593"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -158,6 +160,14 @@ class indice extends clsListagem | @@ -158,6 +160,14 @@ class indice extends clsListagem | ||
158 | } | 160 | } |
159 | 161 | ||
160 | $this->largura = "100%"; | 162 | $this->largura = "100%"; |
163 | + | ||
164 | + $localizacao = new LocalizacaoSistema(); | ||
165 | + $localizacao->entradaCaminhos( array( | ||
166 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
167 | + "educar_bibloteca_index.php" => "Biblioteca", | ||
168 | + "" => "Lista de Coleções" | ||
169 | + )); | ||
170 | + $this->enviaLocalizacao($localizacao->montar()); | ||
161 | } | 171 | } |
162 | } | 172 | } |
163 | // cria uma extensao da classe base | 173 | // cria uma extensao da classe base |
ieducar/intranet/educar_acervo_editora_det.php
@@ -77,6 +77,49 @@ class indice extends clsDetalhe | @@ -77,6 +77,49 @@ class indice extends clsDetalhe | ||
77 | 77 | ||
78 | $tmp_obj = new clsPmieducarAcervoEditora( $this->cod_acervo_editora ); | 78 | $tmp_obj = new clsPmieducarAcervoEditora( $this->cod_acervo_editora ); |
79 | $registro = $tmp_obj->detalhe(); | 79 | $registro = $tmp_obj->detalhe(); |
80 | + | ||
81 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
82 | + { | ||
83 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
84 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
85 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
86 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
87 | + { | ||
88 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
89 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
90 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
91 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
92 | + } | ||
93 | + else | ||
94 | + { | ||
95 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
96 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
97 | + } | ||
98 | + } | ||
99 | + | ||
100 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
101 | + { | ||
102 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
103 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
104 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
105 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
106 | + if ($idpes) | ||
107 | + { | ||
108 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
109 | + $obj_escola_det = $obj_escola->detalhe(); | ||
110 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
111 | + } | ||
112 | + else | ||
113 | + { | ||
114 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
115 | + $obj_escola_det = $obj_escola->detalhe(); | ||
116 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
117 | + } | ||
118 | + } | ||
119 | + | ||
120 | + $obj_permissoes = new clsPermissoes(); | ||
121 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
122 | + | ||
80 | 123 | ||
81 | if( ! $registro ) | 124 | if( ! $registro ) |
82 | { | 125 | { |
@@ -112,6 +155,28 @@ class indice extends clsDetalhe | @@ -112,6 +155,28 @@ class indice extends clsDetalhe | ||
112 | { | 155 | { |
113 | $this->addDetalhe( array( "Editora", "{$registro["nm_editora"]}") ); | 156 | $this->addDetalhe( array( "Editora", "{$registro["nm_editora"]}") ); |
114 | } | 157 | } |
158 | + | ||
159 | + if ($nivel_usuario == 1) | ||
160 | + { | ||
161 | + if( $registro["ref_cod_instituicao"] ) | ||
162 | + { | ||
163 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
164 | + } | ||
165 | + } | ||
166 | + | ||
167 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
168 | + { | ||
169 | + if( $registro["ref_cod_escola"] ) | ||
170 | + { | ||
171 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
172 | + } | ||
173 | + } | ||
174 | + | ||
175 | + if( $registro["ref_cod_biblioteca"] ) | ||
176 | + { | ||
177 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
178 | + } | ||
179 | + | ||
115 | if( $registro["cep"] ) | 180 | if( $registro["cep"] ) |
116 | { | 181 | { |
117 | $registro["cep"] = int2CEP($registro["cep"]); | 182 | $registro["cep"] = int2CEP($registro["cep"]); |
ieducar/intranet/educar_acervo_editora_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Editora" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Editora" ); |
37 | $this->processoAp = "595"; | 38 | $this->processoAp = "595"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -212,6 +214,14 @@ class indice extends clsListagem | @@ -212,6 +214,14 @@ class indice extends clsListagem | ||
212 | } | 214 | } |
213 | 215 | ||
214 | $this->largura = "100%"; | 216 | $this->largura = "100%"; |
217 | + | ||
218 | + $localizacao = new LocalizacaoSistema(); | ||
219 | + $localizacao->entradaCaminhos( array( | ||
220 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
221 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
222 | + "" => "Lista de Editoras" | ||
223 | + )); | ||
224 | + $this->enviaLocalizacao($localizacao->montar()); | ||
215 | } | 225 | } |
216 | } | 226 | } |
217 | // cria uma extensao da classe base | 227 | // cria uma extensao da classe base |
ieducar/intranet/educar_acervo_idioma_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 | { |
@@ -35,6 +36,8 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,8 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Idioma" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Idioma" ); |
37 | $this->processoAp = "590"; | 38 | $this->processoAp = "590"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
40 | + | ||
38 | } | 41 | } |
39 | } | 42 | } |
40 | 43 | ||
@@ -158,6 +161,14 @@ class indice extends clsListagem | @@ -158,6 +161,14 @@ class indice extends clsListagem | ||
158 | } | 161 | } |
159 | 162 | ||
160 | $this->largura = "100%"; | 163 | $this->largura = "100%"; |
164 | + | ||
165 | + $localizacao = new LocalizacaoSistema(); | ||
166 | + $localizacao->entradaCaminhos( array( | ||
167 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
168 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
169 | + "" => "Lista de Idiomas" | ||
170 | + )); | ||
171 | + $this->enviaLocalizacao($localizacao->montar()); | ||
161 | } | 172 | } |
162 | } | 173 | } |
163 | // cria uma extensao da classe base | 174 | // cria uma extensao da classe base |
ieducar/intranet/educar_acervo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Obras" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Obras" ); |
37 | $this->processoAp = "598"; | 38 | $this->processoAp = "598"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -271,6 +273,14 @@ class indice extends clsListagem | @@ -271,6 +273,14 @@ class indice extends clsListagem | ||
271 | } | 273 | } |
272 | 274 | ||
273 | $this->largura = "100%"; | 275 | $this->largura = "100%"; |
276 | + | ||
277 | + $localizacao = new LocalizacaoSistema(); | ||
278 | + $localizacao->entradaCaminhos( array( | ||
279 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
280 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
281 | + "" => "Lista de Obras" | ||
282 | + )); | ||
283 | + $this->enviaLocalizacao($localizacao->montar()); | ||
274 | } | 284 | } |
275 | } | 285 | } |
276 | // cria uma extensao da classe base | 286 | // cria uma extensao da classe base |
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,8 @@ class clsIndexBase extends clsBase | @@ -36,7 +37,8 @@ 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 | + $this->addEstilo( "localizacaoSistema" ); |
41 | + } | ||
40 | } | 42 | } |
41 | 43 | ||
42 | class indice extends clsListagem | 44 | class indice extends clsListagem |
@@ -112,7 +114,9 @@ class indice extends clsListagem | @@ -112,7 +114,9 @@ class indice extends clsListagem | ||
112 | $this->campoTexto("nome_mae", "Nome da Mãe", $this->nome_mae, 50, 255); | 114 | $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); | 115 | $this->campoTexto("nome_responsavel", "Nome do Responsável", $this->nome_responsavel, 50, 255); |
114 | 116 | ||
115 | - $obj_permissoes = new clsPermissoes(); | 117 | + |
118 | + | ||
119 | + $obj_permissoes = new clsPermissoes(); | ||
116 | $cod_escola = $obj_permissoes->getEscola( $this->pessoa_logada ); | 120 | $cod_escola = $obj_permissoes->getEscola( $this->pessoa_logada ); |
117 | if ($cod_escola) | 121 | if ($cod_escola) |
118 | { | 122 | { |
@@ -131,7 +135,7 @@ class indice extends clsListagem | @@ -131,7 +135,7 @@ class indice extends clsListagem | ||
131 | 135 | ||
132 | $this->addCabecalhos( array( | 136 | $this->addCabecalhos( array( |
133 | "Código Aluno", | 137 | "Código Aluno", |
134 | - "Código INEP", | 138 | + "Código INEP", |
135 | "Nome do Aluno", | 139 | "Nome do Aluno", |
136 | "Nome da Mãe", | 140 | "Nome da Mãe", |
137 | "Nome do Responsável", | 141 | "Nome do Responsável", |
@@ -170,7 +174,7 @@ class indice extends clsListagem | @@ -170,7 +174,7 @@ class indice extends clsListagem | ||
170 | $this->nome_pai, | 174 | $this->nome_pai, |
171 | $this->nome_mae, | 175 | $this->nome_mae, |
172 | $this->nome_responsavel, | 176 | $this->nome_responsavel, |
173 | - $this->cod_inep | 177 | + $this->cod_inep |
174 | ); | 178 | ); |
175 | 179 | ||
176 | $total = $aluno->_total; | 180 | $total = $aluno->_total; |
@@ -209,7 +213,16 @@ class indice extends clsListagem | @@ -209,7 +213,16 @@ class indice extends clsListagem | ||
209 | } | 213 | } |
210 | //** | 214 | //** |
211 | $this->largura = "100%"; | 215 | $this->largura = "100%"; |
212 | - } | 216 | + |
217 | + $localizacao = new LocalizacaoSistema(); | ||
218 | + $localizacao->entradaCaminhos( array( | ||
219 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
220 | + "educar_index.php" => "Escola", | ||
221 | + "" => "Lista de Aluno" | ||
222 | + )); | ||
223 | + $this->enviaLocalizacao($localizacao->montar()); | ||
224 | + | ||
225 | + } | ||
213 | 226 | ||
214 | protected function loadNomeMae($aluno) { | 227 | protected function loadNomeMae($aluno) { |
215 | $nome = $aluno['nm_mae']; | 228 | $nome = $aluno['nm_mae']; |
@@ -221,8 +234,8 @@ class indice extends clsListagem | @@ -221,8 +234,8 @@ class indice extends clsListagem | ||
221 | $pessoaMae = new clsPessoaFj($pessoaAluno['idpes_mae']); | 234 | $pessoaMae = new clsPessoaFj($pessoaAluno['idpes_mae']); |
222 | $pessoaMae = $pessoaMae->detalhe(); | 235 | $pessoaMae = $pessoaMae->detalhe(); |
223 | $nome = $pessoaMae['nome']; | 236 | $nome = $pessoaMae['nome']; |
224 | - } | ||
225 | - | 237 | + } |
238 | + | ||
226 | return $nome; | 239 | return $nome; |
227 | } | 240 | } |
228 | 241 | ||
@@ -236,10 +249,14 @@ class indice extends clsListagem | @@ -236,10 +249,14 @@ class indice extends clsListagem | ||
236 | catch(Exception $e) { | 249 | catch(Exception $e) { |
237 | $id = ''; | 250 | $id = ''; |
238 | } | 251 | } |
239 | - | 252 | + |
240 | return $id; | 253 | return $id; |
241 | - } | ||
242 | -} | 254 | + |
255 | + } | ||
256 | + | ||
257 | + | ||
258 | + } | ||
259 | + | ||
243 | // cria uma extensao da classe base | 260 | // cria uma extensao da classe base |
244 | $pagina = new clsIndexBase(); | 261 | $pagina = new clsIndexBase(); |
245 | // cria o conteudo | 262 | // cria o conteudo |
ieducar/intranet/educar_biblioteca_dados_det.php
@@ -75,10 +75,49 @@ class indice extends clsDetalhe | @@ -75,10 +75,49 @@ class indice extends clsDetalhe | ||
75 | 75 | ||
76 | $tmp_obj = new clsPmieducarBiblioteca( $this->cod_biblioteca ); | 76 | $tmp_obj = new clsPmieducarBiblioteca( $this->cod_biblioteca ); |
77 | $registro = $tmp_obj->detalhe(); | 77 | $registro = $tmp_obj->detalhe(); |
78 | + | ||
79 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
80 | + { | ||
81 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
82 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
83 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
84 | + } | ||
85 | + else | ||
86 | + { | ||
87 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
88 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
89 | + } | ||
78 | 90 | ||
91 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
92 | + { | ||
93 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
94 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
95 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
96 | + if ($idpes) | ||
97 | + { | ||
98 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
99 | + $obj_escola_det = $obj_escola->detalhe(); | ||
100 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
101 | + } | ||
102 | + else | ||
103 | + { | ||
104 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
105 | + $obj_escola_det = $obj_escola->detalhe(); | ||
106 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
107 | + } | ||
108 | + } | ||
109 | + else | ||
110 | + { | ||
111 | + $registro["ref_cod_escola"] = "Erro na geracao"; | ||
112 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarEscola\n-->"; | ||
113 | + } | ||
114 | + | ||
79 | $obj_permissoes = new clsPermissoes(); | 115 | $obj_permissoes = new clsPermissoes(); |
80 | $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | 116 | $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); |
81 | - if($nivel_usuario <= 3) | 117 | + |
118 | + | ||
119 | + | ||
120 | + if($nivel_usuario <= 3) | ||
82 | $permitido = true; | 121 | $permitido = true; |
83 | else{ | 122 | else{ |
84 | $obj_usuario_bib = new clsPmieducarBibliotecaUsuario(); | 123 | $obj_usuario_bib = new clsPmieducarBibliotecaUsuario(); |
@@ -100,6 +139,22 @@ class indice extends clsDetalhe | @@ -100,6 +139,22 @@ class indice extends clsDetalhe | ||
100 | header( "location: educar_biblioteca_dados_lst.php" ); | 139 | header( "location: educar_biblioteca_dados_lst.php" ); |
101 | die(); | 140 | die(); |
102 | } | 141 | } |
142 | + | ||
143 | + if ($nivel_usuario == 1) | ||
144 | + { | ||
145 | + if( $registro["ref_cod_instituicao"] ) | ||
146 | + { | ||
147 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
148 | + } | ||
149 | + } | ||
150 | + | ||
151 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
152 | + { | ||
153 | + if( $registro["ref_cod_escola"] ) | ||
154 | + { | ||
155 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
156 | + } | ||
157 | + } | ||
103 | 158 | ||
104 | if( $registro["nm_biblioteca"] ) | 159 | if( $registro["nm_biblioteca"] ) |
105 | { | 160 | { |
ieducar/intranet/educar_biblioteca_dados_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Dados Biblioteca" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Dados Biblioteca" ); |
37 | $this->processoAp = "629"; | 38 | $this->processoAp = "629"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -218,6 +220,14 @@ class indice extends clsListagem | @@ -218,6 +220,14 @@ class indice extends clsListagem | ||
218 | } | 220 | } |
219 | $this->addPaginador2( "educar_biblioteca_dados_lst.php", $total, $_GET, $this->nome, $this->limite ); | 221 | $this->addPaginador2( "educar_biblioteca_dados_lst.php", $total, $_GET, $this->nome, $this->limite ); |
220 | $this->largura = "100%"; | 222 | $this->largura = "100%"; |
223 | + | ||
224 | + $localizacao = new LocalizacaoSistema(); | ||
225 | + $localizacao->entradaCaminhos( array( | ||
226 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
227 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
228 | + "" => "Lista de Dados das bibliotecas" | ||
229 | + )); | ||
230 | + $this->enviaLocalizacao($localizacao->montar()); | ||
221 | } | 231 | } |
222 | } | 232 | } |
223 | // cria uma extensao da classe base | 233 | // cria uma extensao da classe base |
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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Biblioteca" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Biblioteca" ); |
37 | $this->processoAp = "591"; | 38 | $this->processoAp = "591"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -196,7 +198,16 @@ class indice extends clsListagem | @@ -196,7 +198,16 @@ class indice extends clsListagem | ||
196 | } | 198 | } |
197 | 199 | ||
198 | $this->largura = "100%"; | 200 | $this->largura = "100%"; |
201 | + | ||
202 | + $localizacao = new LocalizacaoSistema(); | ||
203 | + $localizacao->entradaCaminhos( array( | ||
204 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
205 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
206 | + "" => "Lista de Biblioteca" | ||
207 | + )); | ||
208 | + $this->enviaLocalizacao($localizacao->montar()); | ||
199 | } | 209 | } |
210 | + | ||
200 | } | 211 | } |
201 | // cria uma extensao da classe base | 212 | // cria uma extensao da classe base |
202 | $pagina = new clsIndexBase(); | 213 | $pagina = new clsIndexBase(); |
ieducar/intranet/educar_cliente_lst.php
@@ -29,6 +29,7 @@ require_once ("include/clsBase.inc.php"); | @@ -29,6 +29,7 @@ require_once ("include/clsBase.inc.php"); | ||
29 | require_once ("include/clsListagem.inc.php"); | 29 | require_once ("include/clsListagem.inc.php"); |
30 | require_once ("include/clsBanco.inc.php"); | 30 | require_once ("include/clsBanco.inc.php"); |
31 | require_once( "include/pmieducar/geral.inc.php" ); | 31 | require_once( "include/pmieducar/geral.inc.php" ); |
32 | +require_once ("include/localizacaoSistema.php"); | ||
32 | 33 | ||
33 | class clsIndexBase extends clsBase | 34 | class clsIndexBase extends clsBase |
34 | { | 35 | { |
@@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | @@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Cliente" ); | 38 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Cliente" ); |
38 | $this->processoAp = "603"; | 39 | $this->processoAp = "603"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -216,6 +218,14 @@ class indice extends clsListagem | @@ -216,6 +218,14 @@ class indice extends clsListagem | ||
216 | } | 218 | } |
217 | 219 | ||
218 | $this->largura = "100%"; | 220 | $this->largura = "100%"; |
221 | + | ||
222 | + $localizacao = new LocalizacaoSistema(); | ||
223 | + $localizacao->entradaCaminhos( array( | ||
224 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
225 | + "educar_biblooteca_index.php" => "Biblioteca", | ||
226 | + "" => "Lista de Clientes" | ||
227 | + )); | ||
228 | + $this->enviaLocalizacao($localizacao->montar()); | ||
219 | } | 229 | } |
220 | } | 230 | } |
221 | // cria uma extensao da classe base | 231 | // cria uma extensao da classe base |
ieducar/intranet/educar_cliente_tipo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Cliente " ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Cliente " ); |
37 | $this->processoAp = "596"; | 38 | $this->processoAp = "596"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -193,6 +195,14 @@ class indice extends clsListagem | @@ -193,6 +195,14 @@ class indice extends clsListagem | ||
193 | } | 195 | } |
194 | 196 | ||
195 | $this->largura = "100%"; | 197 | $this->largura = "100%"; |
198 | + | ||
199 | + $localizacao = new LocalizacaoSistema(); | ||
200 | + $localizacao->entradaCaminhos( array( | ||
201 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
202 | + "educar_biblioteca_index.php" => "Escola", | ||
203 | + "" => "Lista de Tipos de cliente" | ||
204 | + )); | ||
205 | + $this->enviaLocalizacao($localizacao->montar()); | ||
196 | } | 206 | } |
197 | } | 207 | } |
198 | // cria uma extensao da classe base | 208 | // cria uma extensao da classe base |
ieducar/intranet/educar_curso_lst.php
@@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php'; | @@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php'; | ||
32 | require_once 'include/clsListagem.inc.php'; | 32 | require_once 'include/clsListagem.inc.php'; |
33 | require_once 'include/clsBanco.inc.php'; | 33 | require_once 'include/clsBanco.inc.php'; |
34 | require_once 'include/pmieducar/geral.inc.php'; | 34 | require_once 'include/pmieducar/geral.inc.php'; |
35 | +require_once ("include/localizacaoSistema.php"); | ||
35 | 36 | ||
36 | /** | 37 | /** |
37 | * clsIndexBase class. | 38 | * clsIndexBase class. |
@@ -49,6 +50,7 @@ class clsIndexBase extends clsBase | @@ -49,6 +50,7 @@ class clsIndexBase extends clsBase | ||
49 | { | 50 | { |
50 | $this->SetTitulo($this->_instituicao . ' i-Educar - Curso'); | 51 | $this->SetTitulo($this->_instituicao . ' i-Educar - Curso'); |
51 | $this->processoAp = '566'; | 52 | $this->processoAp = '566'; |
53 | + $this->addEstilo( "localizacaoSistema" ); | ||
52 | } | 54 | } |
53 | } | 55 | } |
54 | 56 | ||
@@ -260,6 +262,14 @@ class indice extends clsListagem | @@ -260,6 +262,14 @@ class indice extends clsListagem | ||
260 | $this->nome_acao = "Novo"; | 262 | $this->nome_acao = "Novo"; |
261 | } | 263 | } |
262 | $this->largura = "100%"; | 264 | $this->largura = "100%"; |
265 | + | ||
266 | + $localizacao = new LocalizacaoSistema(); | ||
267 | + $localizacao->entradaCaminhos( array( | ||
268 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
269 | + "educar_index.php" => "Escola", | ||
270 | + "" => "Lista de Curso" | ||
271 | + )); | ||
272 | + $this->enviaLocalizacao($localizacao->montar()); | ||
263 | } | 273 | } |
264 | } | 274 | } |
265 | 275 |
ieducar/intranet/educar_deficiencia_lst.php
@@ -32,6 +32,7 @@ require_once ("include/clsListagem.inc.php"); | @@ -32,6 +32,7 @@ require_once ("include/clsListagem.inc.php"); | ||
32 | require_once ("include/clsBanco.inc.php"); | 32 | require_once ("include/clsBanco.inc.php"); |
33 | require_once( "include/Geral.inc.php" ); | 33 | require_once( "include/Geral.inc.php" ); |
34 | require_once( "include/pmieducar/geral.inc.php" ); | 34 | require_once( "include/pmieducar/geral.inc.php" ); |
35 | +require_once ("include/localizacaoSistema.php"); | ||
35 | 36 | ||
36 | class clsIndexBase extends clsBase | 37 | class clsIndexBase extends clsBase |
37 | { | 38 | { |
@@ -39,6 +40,7 @@ class clsIndexBase extends clsBase | @@ -39,6 +40,7 @@ class clsIndexBase extends clsBase | ||
39 | { | 40 | { |
40 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Deficiência" ); | 41 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Deficiência" ); |
41 | $this->processoAp = "631"; | 42 | $this->processoAp = "631"; |
43 | + $this->addEstilo( "localizacaoSistema" ); | ||
42 | } | 44 | } |
43 | } | 45 | } |
44 | 46 | ||
@@ -136,6 +138,14 @@ class indice extends clsListagem | @@ -136,6 +138,14 @@ class indice extends clsListagem | ||
136 | $this->nome_acao = "Novo"; | 138 | $this->nome_acao = "Novo"; |
137 | } | 139 | } |
138 | $this->largura = "100%"; | 140 | $this->largura = "100%"; |
141 | + | ||
142 | + $localizacao = new LocalizacaoSistema(); | ||
143 | + $localizacao->entradaCaminhos( array( | ||
144 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
145 | + "educar_index.php" => "Escola", | ||
146 | + "" => "Lista de Deficiência" | ||
147 | + )); | ||
148 | + $this->enviaLocalizacao($localizacao->montar()); | ||
139 | } | 149 | } |
140 | } | 150 | } |
141 | // cria uma extensao da classe base | 151 | // cria uma extensao da classe base |
ieducar/intranet/educar_escola_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 | { |
@@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | @@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Escola" ); | 38 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Escola" ); |
38 | $this->processoAp = "561"; | 39 | $this->processoAp = "561"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -181,6 +183,14 @@ class indice extends clsListagem | @@ -181,6 +183,14 @@ class indice extends clsListagem | ||
181 | $this->nome_acao = "Novo"; | 183 | $this->nome_acao = "Novo"; |
182 | } | 184 | } |
183 | $this->largura = "100%"; | 185 | $this->largura = "100%"; |
186 | + | ||
187 | + $localizacao = new LocalizacaoSistema(); | ||
188 | + $localizacao->entradaCaminhos( array( | ||
189 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
190 | + "educar_index.php" => "Escola", | ||
191 | + "" => "Lista de Escola" | ||
192 | + )); | ||
193 | + $this->enviaLocalizacao($localizacao->montar()); | ||
184 | } | 194 | } |
185 | } | 195 | } |
186 | // cria uma extensao da classe base | 196 | // cria uma extensao da classe base |
ieducar/intranet/educar_exemplar_devolucao_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Exemplar Devolução" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Exemplar Devolução" ); |
37 | $this->processoAp = "628"; | 38 | $this->processoAp = "628"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -248,6 +250,14 @@ class indice extends clsListagem | @@ -248,6 +250,14 @@ class indice extends clsListagem | ||
248 | } | 250 | } |
249 | $this->addPaginador2( "educar_exemplar_devolucao_lst.php", $total, $_GET, $this->nome, $this->limite ); | 251 | $this->addPaginador2( "educar_exemplar_devolucao_lst.php", $total, $_GET, $this->nome, $this->limite ); |
250 | $this->largura = "100%"; | 252 | $this->largura = "100%"; |
253 | + | ||
254 | + $localizacao = new LocalizacaoSistema(); | ||
255 | + $localizacao->entradaCaminhos( array( | ||
256 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
257 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
258 | + "" => "Lista de Devoluções" | ||
259 | + )); | ||
260 | + $this->enviaLocalizacao($localizacao->montar()); | ||
251 | } | 261 | } |
252 | } | 262 | } |
253 | // cria uma extensao da classe base | 263 | // cria uma extensao da classe base |
ieducar/intranet/educar_exemplar_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Exemplar" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Exemplar" ); |
37 | $this->processoAp = "606"; | 38 | $this->processoAp = "606"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -381,6 +383,14 @@ class indice extends clsListagem | @@ -381,6 +383,14 @@ class indice extends clsListagem | ||
381 | } | 383 | } |
382 | 384 | ||
383 | $this->largura = "100%"; | 385 | $this->largura = "100%"; |
386 | + | ||
387 | + $localizacao = new LocalizacaoSistema(); | ||
388 | + $localizacao->entradaCaminhos( array( | ||
389 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
390 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
391 | + "" => "Lista de Exemplares" | ||
392 | + )); | ||
393 | + $this->enviaLocalizacao($localizacao->montar()); | ||
384 | } | 394 | } |
385 | } | 395 | } |
386 | // cria uma extensao da classe base | 396 | // cria uma extensao da classe base |
ieducar/intranet/educar_exemplar_tipo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Exemplar" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Exemplar" ); |
37 | $this->processoAp = "597"; | 38 | $this->processoAp = "597"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -192,6 +194,14 @@ class indice extends clsListagem | @@ -192,6 +194,14 @@ class indice extends clsListagem | ||
192 | } | 194 | } |
193 | 195 | ||
194 | $this->largura = "100%"; | 196 | $this->largura = "100%"; |
197 | + | ||
198 | + $localizacao = new LocalizacaoSistema(); | ||
199 | + $localizacao->entradaCaminhos( array( | ||
200 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
201 | + "educar_biblioteca_index.php" => "Bibioteca", | ||
202 | + "" => "Lista de Tios de exemplares" | ||
203 | + )); | ||
204 | + $this->enviaLocalizacao($localizacao->montar()); | ||
195 | } | 205 | } |
196 | } | 206 | } |
197 | // cria uma extensao da classe base | 207 | // cria uma extensao da classe base |
ieducar/intranet/educar_fonte_det.php
@@ -70,17 +70,83 @@ class indice extends clsDetalhe | @@ -70,17 +70,83 @@ class indice extends clsDetalhe | ||
70 | $tmp_obj = new clsPmieducarFonte( $this->cod_fonte ); | 70 | $tmp_obj = new clsPmieducarFonte( $this->cod_fonte ); |
71 | $registro = $tmp_obj->detalhe(); | 71 | $registro = $tmp_obj->detalhe(); |
72 | 72 | ||
73 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
74 | + { | ||
75 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
76 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
77 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
78 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
79 | + { | ||
80 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
81 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
82 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
83 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
84 | + } | ||
85 | + else | ||
86 | + { | ||
87 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
88 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
89 | + } | ||
90 | + } | ||
91 | + | ||
92 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
93 | + { | ||
94 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
95 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
96 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
97 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
98 | + if ($idpes) | ||
99 | + { | ||
100 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
101 | + $obj_escola_det = $obj_escola->detalhe(); | ||
102 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
103 | + } | ||
104 | + else | ||
105 | + { | ||
106 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
107 | + $obj_escola_det = $obj_escola->detalhe(); | ||
108 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
109 | + } | ||
110 | + } | ||
111 | + | ||
112 | + $obj_permissoes = new clsPermissoes(); | ||
113 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
114 | + | ||
115 | + | ||
116 | + if ($nivel_usuario == 1) | ||
117 | + { | ||
118 | + if( $registro["ref_cod_instituicao"] ) | ||
119 | + { | ||
120 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
121 | + } | ||
122 | + } | ||
123 | + | ||
124 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
125 | + { | ||
126 | + if( $registro["ref_cod_escola"] ) | ||
127 | + { | ||
128 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
129 | + } | ||
130 | + } | ||
131 | + | ||
132 | + if( $registro["ref_cod_biblioteca"] ) | ||
133 | + { | ||
134 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
135 | + } | ||
136 | + | ||
73 | if( ! $registro ) | 137 | if( ! $registro ) |
74 | { | 138 | { |
75 | header( "location: educar_fonte_lst.php" ); | 139 | header( "location: educar_fonte_lst.php" ); |
76 | die(); | 140 | die(); |
77 | } | 141 | } |
78 | 142 | ||
79 | - | 143 | + /* |
80 | if( $registro["cod_fonte"] ) | 144 | if( $registro["cod_fonte"] ) |
81 | { | 145 | { |
82 | $this->addDetalhe( array( "Código Fonte", "{$registro["cod_fonte"]}") ); | 146 | $this->addDetalhe( array( "Código Fonte", "{$registro["cod_fonte"]}") ); |
83 | } | 147 | } |
148 | + */ | ||
149 | + | ||
84 | if( $registro["nm_fonte"] ) | 150 | if( $registro["nm_fonte"] ) |
85 | { | 151 | { |
86 | $this->addDetalhe( array( "Fonte", "{$registro["nm_fonte"]}") ); | 152 | $this->addDetalhe( array( "Fonte", "{$registro["nm_fonte"]}") ); |
ieducar/intranet/educar_fonte_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Fonte" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Fonte" ); |
37 | $this->processoAp = "608"; | 38 | $this->processoAp = "608"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -159,6 +161,14 @@ class indice extends clsListagem | @@ -159,6 +161,14 @@ class indice extends clsListagem | ||
159 | } | 161 | } |
160 | 162 | ||
161 | $this->largura = "100%"; | 163 | $this->largura = "100%"; |
164 | + | ||
165 | + $localizacao = new LocalizacaoSistema(); | ||
166 | + $localizacao->entradaCaminhos( array( | ||
167 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
168 | + "educar_biblioteca_index.php" => "Escola", | ||
169 | + "" => "Lista de Fontes" | ||
170 | + )); | ||
171 | + $this->enviaLocalizacao($localizacao->montar()); | ||
162 | } | 172 | } |
163 | } | 173 | } |
164 | // cria uma extensao da classe base | 174 | // cria uma extensao da classe base |
ieducar/intranet/educar_index.php
@@ -44,19 +44,18 @@ class indice | @@ -44,19 +44,18 @@ class indice | ||
44 | function RenderHTML() | 44 | function RenderHTML() |
45 | { | 45 | { |
46 | return " | 46 | return " |
47 | - <table width='100%' style='height: 100%;'> | ||
48 | - <tr align=center valign='top'><td></td></tr> | ||
49 | - </table> | ||
50 | - "; | 47 | + <table width='100%' style='height: 100%;'> |
48 | + <tr align=center valign='top'><td></td></tr> | ||
49 | + </table>"; | ||
51 | } | 50 | } |
52 | } | 51 | } |
53 | 52 | ||
54 | - | ||
55 | $pagina = new clsIndex(); | 53 | $pagina = new clsIndex(); |
56 | 54 | ||
57 | $miolo = new indice(); | 55 | $miolo = new indice(); |
56 | + | ||
58 | $pagina->addForm( $miolo ); | 57 | $pagina->addForm( $miolo ); |
59 | 58 | ||
60 | $pagina->MakeAll(); | 59 | $pagina->MakeAll(); |
61 | 60 | ||
62 | -?> | 61 | -?> |
62 | +?> | ||
63 | \ No newline at end of file | 63 | \ No newline at end of file |
ieducar/intranet/educar_infra_comodo_funcao_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Função Cômodo" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Função Cômodo" ); |
37 | $this->processoAp = "572"; | 38 | $this->processoAp = "572"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -196,6 +198,14 @@ class indice extends clsListagem | @@ -196,6 +198,14 @@ class indice extends clsListagem | ||
196 | } | 198 | } |
197 | 199 | ||
198 | $this->largura = "100%"; | 200 | $this->largura = "100%"; |
201 | + | ||
202 | + $localizacao = new LocalizacaoSistema(); | ||
203 | + $localizacao->entradaCaminhos( array( | ||
204 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
205 | + "educar_index.php" => "Escola", | ||
206 | + "" => "Listagem de Função Cômodo" | ||
207 | + )); | ||
208 | + $this->enviaLocalizacao($localizacao->montar()); | ||
199 | } | 209 | } |
200 | } | 210 | } |
201 | // cria uma extensao da classe base | 211 | // cria uma extensao da classe base |
ieducar/intranet/educar_infra_predio_comodo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Cômodo Prédio " ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Cômodo Prédio " ); |
37 | $this->processoAp = "574"; | 38 | $this->processoAp = "574"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -263,6 +265,14 @@ class indice extends clsListagem | @@ -263,6 +265,14 @@ class indice extends clsListagem | ||
263 | $this->acao = "go(\"educar_infra_predio_comodo_cad.php\")"; | 265 | $this->acao = "go(\"educar_infra_predio_comodo_cad.php\")"; |
264 | $this->nome_acao = "Novo"; | 266 | $this->nome_acao = "Novo"; |
265 | $this->largura = "100%"; | 267 | $this->largura = "100%"; |
268 | + | ||
269 | + $localizacao = new LocalizacaoSistema(); | ||
270 | + $localizacao->entradaCaminhos( array( | ||
271 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
272 | + "educar_index.php" => "Escola", | ||
273 | + "" => "Lista de Cômodos" | ||
274 | + )); | ||
275 | + $this->enviaLocalizacao($localizacao->montar()); | ||
266 | } | 276 | } |
267 | } | 277 | } |
268 | // cria uma extensao da classe base | 278 | // cria uma extensao da classe base |
ieducar/intranet/educar_infra_predio_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Infra Predio" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Infra Predio" ); |
37 | $this->processoAp = "567"; | 38 | $this->processoAp = "567"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -322,6 +324,14 @@ class indice extends clsListagem | @@ -322,6 +324,14 @@ class indice extends clsListagem | ||
322 | } | 324 | } |
323 | //** | 325 | //** |
324 | $this->largura = "100%"; | 326 | $this->largura = "100%"; |
327 | + | ||
328 | + $localizacao = new LocalizacaoSistema(); | ||
329 | + $localizacao->entradaCaminhos( array( | ||
330 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
331 | + "educar_index.php" => "Escola", | ||
332 | + "" => "Lista de Prédios" | ||
333 | + )); | ||
334 | + $this->enviaLocalizacao($localizacao->montar()); | ||
325 | } | 335 | } |
326 | } | 336 | } |
327 | // cria uma extensao da classe base | 337 | // cria uma extensao da classe base |
ieducar/intranet/educar_instituicao_det.php
@@ -113,7 +113,7 @@ class indice extends clsDetalhe | @@ -113,7 +113,7 @@ class indice extends clsDetalhe | ||
113 | $this->url_editar = "educar_instituicao_cad.php?cod_instituicao={$registro["cod_instituicao"]}"; | 113 | $this->url_editar = "educar_instituicao_cad.php?cod_instituicao={$registro["cod_instituicao"]}"; |
114 | } | 114 | } |
115 | $this->url_cancelar = "educar_instituicao_lst.php"; | 115 | $this->url_cancelar = "educar_instituicao_lst.php"; |
116 | - $this->largura = "100%"; | 116 | + $this->largura = "100%"; |
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 |
ieducar/intranet/educar_instituicao_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 | { |
@@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | @@ -36,6 +37,7 @@ class clsIndexBase extends clsBase | ||
36 | { | 37 | { |
37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Instituicao" ); | 38 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Instituicao" ); |
38 | $this->processoAp = "559"; | 39 | $this->processoAp = "559"; |
40 | + $this->addEstilo( "localizacaoSistema" ); | ||
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
@@ -149,6 +151,14 @@ class indice extends clsListagem | @@ -149,6 +151,14 @@ class indice extends clsListagem | ||
149 | $this->nome_acao = "Novo"; | 151 | $this->nome_acao = "Novo"; |
150 | } | 152 | } |
151 | $this->largura = "100%"; | 153 | $this->largura = "100%"; |
154 | + | ||
155 | + $localizacao = new LocalizacaoSistema(); | ||
156 | + $localizacao->entradaCaminhos( array( | ||
157 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
158 | + "educar_index.php" => "Escola", | ||
159 | + "" => "Lista de Instituição" | ||
160 | + )); | ||
161 | + $this->enviaLocalizacao($localizacao->montar()); | ||
152 | } | 162 | } |
153 | } | 163 | } |
154 | // cria uma extensao da classe base | 164 | // cria uma extensao da classe base |
ieducar/intranet/educar_material_didatico_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Material Didático" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Material Didático" ); |
37 | $this->processoAp = "569"; | 38 | $this->processoAp = "569"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -224,6 +226,14 @@ class indice extends clsListagem | @@ -224,6 +226,14 @@ class indice extends clsListagem | ||
224 | $this->nome_acao = "Novo"; | 226 | $this->nome_acao = "Novo"; |
225 | } | 227 | } |
226 | $this->largura = "100%"; | 228 | $this->largura = "100%"; |
229 | + | ||
230 | + $localizacao = new LocalizacaoSistema(); | ||
231 | + $localizacao->entradaCaminhos( array( | ||
232 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
233 | + "educar_index.php" => "Escola", | ||
234 | + "" => "Lista de Material didático" | ||
235 | + )); | ||
236 | + $this->enviaLocalizacao($localizacao->montar()); | ||
227 | } | 237 | } |
228 | } | 238 | } |
229 | // cria uma extensao da classe base | 239 | // cria uma extensao da classe base |
ieducar/intranet/educar_material_tipo_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 | { |
@@ -40,6 +41,7 @@ class clsIndexBase extends clsBase | @@ -40,6 +41,7 @@ class clsIndexBase extends clsBase | ||
40 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Material Didático" ); | 41 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Material Didático" ); |
41 | 42 | ||
42 | $this->processoAp = "563"; | 43 | $this->processoAp = "563"; |
44 | + $this->addEstilo( "localizacaoSistema" ); | ||
43 | } | 45 | } |
44 | } | 46 | } |
45 | 47 | ||
@@ -201,6 +203,14 @@ class indice extends clsListagem | @@ -201,6 +203,14 @@ class indice extends clsListagem | ||
201 | //** | 203 | //** |
202 | 204 | ||
203 | $this->largura = "100%"; | 205 | $this->largura = "100%"; |
206 | + | ||
207 | + $localizacao = new LocalizacaoSistema(); | ||
208 | + $localizacao->entradaCaminhos( array( | ||
209 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
210 | + "educar_index.php" => "Escola", | ||
211 | + "" => "Lista de Tipos de materiais" | ||
212 | + )); | ||
213 | + $this->enviaLocalizacao($localizacao->montar()); | ||
204 | 214 | ||
205 | } | 215 | } |
206 | } | 216 | } |
ieducar/intranet/educar_matricula_cad.php
@@ -82,6 +82,7 @@ class indice extends clsCadastro | @@ -82,6 +82,7 @@ class indice extends clsCadastro | ||
82 | var $ref_cod_instituicao; | 82 | var $ref_cod_instituicao; |
83 | var $ref_cod_curso; | 83 | var $ref_cod_curso; |
84 | var $ref_cod_escola; | 84 | var $ref_cod_escola; |
85 | + var $ref_cod_turma; | ||
85 | 86 | ||
86 | var $matricula_transferencia; | 87 | var $matricula_transferencia; |
87 | var $semestre; | 88 | var $semestre; |
@@ -97,7 +98,7 @@ class indice extends clsCadastro | @@ -97,7 +98,7 @@ class indice extends clsCadastro | ||
97 | 98 | ||
98 | $this->cod_matricula = $_GET['cod_matricula']; | 99 | $this->cod_matricula = $_GET['cod_matricula']; |
99 | $this->ref_cod_aluno = $_GET['ref_cod_aluno']; | 100 | $this->ref_cod_aluno = $_GET['ref_cod_aluno']; |
100 | - | 101 | + |
101 | $obj_aluno = new clsPmieducarAluno($this->ref_cod_aluno); | 102 | $obj_aluno = new clsPmieducarAluno($this->ref_cod_aluno); |
102 | 103 | ||
103 | if (! $obj_aluno->existe()) { | 104 | if (! $obj_aluno->existe()) { |
@@ -158,8 +159,9 @@ class indice extends clsCadastro | @@ -158,8 +159,9 @@ class indice extends clsCadastro | ||
158 | $anoLetivoHelperOptions = array('situacoes' => array('em_andamento', 'nao_iniciado')); | 159 | $anoLetivoHelperOptions = array('situacoes' => array('em_andamento', 'nao_iniciado')); |
159 | 160 | ||
160 | $this->inputsHelper()->dynamic(array('instituicao', 'escola', 'curso', 'serie')); | 161 | $this->inputsHelper()->dynamic(array('instituicao', 'escola', 'curso', 'serie')); |
162 | + $this->inputsHelper()->dynamic('turma', array('required' => false, 'option value' => 'Enturmar depois')); | ||
161 | $this->inputsHelper()->dynamic('anoLetivo', array('label' => 'Ano destino'), $anoLetivoHelperOptions); | 163 | $this->inputsHelper()->dynamic('anoLetivo', array('label' => 'Ano destino'), $anoLetivoHelperOptions); |
162 | - | 164 | + |
163 | 165 | ||
164 | if (is_numeric($this->ref_cod_curso)) { | 166 | if (is_numeric($this->ref_cod_curso)) { |
165 | $obj_curso = new clsPmieducarCurso($this->ref_cod_curso); | 167 | $obj_curso = new clsPmieducarCurso($this->ref_cod_curso); |
@@ -257,7 +259,7 @@ class indice extends clsCadastro | @@ -257,7 +259,7 @@ class indice extends clsCadastro | ||
257 | if (is_array($serie) && count($serie)) | 259 | if (is_array($serie) && count($serie)) |
258 | $serie = $serie['nm_serie']; | 260 | $serie = $serie['nm_serie']; |
259 | else | 261 | else |
260 | - $serie = ''; | 262 | + $serie = ''; |
261 | 263 | ||
262 | $escola = new clsPmieducarEscola($m['ref_ref_cod_escola']); | 264 | $escola = new clsPmieducarEscola($m['ref_ref_cod_escola']); |
263 | $escola = $escola->detalhe(); | 265 | $escola = $escola->detalhe(); |
@@ -284,7 +286,7 @@ class indice extends clsCadastro | @@ -284,7 +286,7 @@ class indice extends clsCadastro | ||
284 | 286 | ||
285 | return false; | 287 | return false; |
286 | } | 288 | } |
287 | - } | 289 | + } |
288 | 290 | ||
289 | $obj_reserva_vaga = new clsPmieducarReservaVaga(); | 291 | $obj_reserva_vaga = new clsPmieducarReservaVaga(); |
290 | $lst_reserva_vaga = $obj_reserva_vaga->lista(NULL, $this->ref_cod_escola, | 292 | $lst_reserva_vaga = $obj_reserva_vaga->lista(NULL, $this->ref_cod_escola, |
@@ -385,7 +387,7 @@ class indice extends clsCadastro | @@ -385,7 +387,7 @@ class indice extends clsCadastro | ||
385 | if (! $this->removerFlagUltimaMatricula($this->ref_cod_aluno)) { | 387 | if (! $this->removerFlagUltimaMatricula($this->ref_cod_aluno)) { |
386 | return false; | 388 | return false; |
387 | } | 389 | } |
388 | - | 390 | + |
389 | $obj = new clsPmieducarMatricula(NULL, $this->ref_cod_reserva_vaga, | 391 | $obj = new clsPmieducarMatricula(NULL, $this->ref_cod_reserva_vaga, |
390 | $this->ref_cod_escola, $this->ref_cod_serie, NULL, | 392 | $this->ref_cod_escola, $this->ref_cod_serie, NULL, |
391 | $this->pessoa_logada, $this->ref_cod_aluno, 3, NULL, NULL, 1, $this->ano, | 393 | $this->pessoa_logada, $this->ref_cod_aluno, 3, NULL, NULL, 1, $this->ano, |
@@ -393,6 +395,11 @@ class indice extends clsCadastro | @@ -393,6 +395,11 @@ class indice extends clsCadastro | ||
393 | $this->matricula_transferencia, $this->semestre); | 395 | $this->matricula_transferencia, $this->semestre); |
394 | 396 | ||
395 | $cadastrou = $obj->cadastra(); | 397 | $cadastrou = $obj->cadastra(); |
398 | + | ||
399 | + // turma | ||
400 | + $cod_matricula = $cadastrou; | ||
401 | + $this->enturmacaoMatricula($cod_matricula, $this->ref_cod_turma); | ||
402 | + | ||
396 | if ($cadastrou) { | 403 | if ($cadastrou) { |
397 | 404 | ||
398 | $obj_transferencia = new clsPmieducarTransferenciaSolicitacao(); | 405 | $obj_transferencia = new clsPmieducarTransferenciaSolicitacao(); |
@@ -527,7 +534,7 @@ class indice extends clsCadastro | @@ -527,7 +534,7 @@ class indice extends clsCadastro | ||
527 | #die(); | 534 | #die(); |
528 | #return true; | 535 | #return true; |
529 | } | 536 | } |
530 | - | 537 | + |
531 | $this->mensagem = 'Cadastro não realizado.<br />'; | 538 | $this->mensagem = 'Cadastro não realizado.<br />'; |
532 | return FALSE; | 539 | return FALSE; |
533 | } | 540 | } |
@@ -652,6 +659,33 @@ class indice extends clsCadastro | @@ -652,6 +659,33 @@ class indice extends clsCadastro | ||
652 | 659 | ||
653 | return true; | 660 | return true; |
654 | } | 661 | } |
662 | + | ||
663 | + function enturmacaoMatricula($matriculaId, $turmaDestinoId) { | ||
664 | + | ||
665 | + $enturmacaoExists = new clsPmieducarMatriculaTurma(); | ||
666 | + $enturmacaoExists = $enturmacaoExists->lista($matriculaId, | ||
667 | + $turmaDestinoId, | ||
668 | + NULL, | ||
669 | + NULL, | ||
670 | + NULL, | ||
671 | + NULL, | ||
672 | + NULL, | ||
673 | + NULL, | ||
674 | + 1); | ||
675 | + | ||
676 | + $enturmacaoExists = is_array($enturmacaoExists) && count($enturmacaoExists) > 0; | ||
677 | + if (! $enturmacaoExists) { | ||
678 | + $enturmacao = new clsPmieducarMatriculaTurma($matriculaId, | ||
679 | + $turmaDestinoId, | ||
680 | + $this->pessoa_logada, | ||
681 | + $this->pessoa_logada, | ||
682 | + NULL, | ||
683 | + NULL, | ||
684 | + 1); | ||
685 | + return $enturmacao->cadastra(); | ||
686 | + } | ||
687 | + return false; | ||
688 | + } | ||
655 | } | 689 | } |
656 | 690 | ||
657 | // Instancia objeto de página | 691 | // Instancia objeto de página |
ieducar/intranet/educar_modulo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Módulo" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Módulo" ); |
37 | $this->processoAp = "584"; | 38 | $this->processoAp = "584"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -206,8 +208,17 @@ class indice extends clsListagem | @@ -206,8 +208,17 @@ class indice extends clsListagem | ||
206 | } | 208 | } |
207 | 209 | ||
208 | $this->largura = "100%"; | 210 | $this->largura = "100%"; |
211 | + | ||
212 | + $localizacao = new LocalizacaoSistema(); | ||
213 | + $localizacao->entradaCaminhos( array( | ||
214 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
215 | + "educar_index.php" => "Escola", | ||
216 | + "" => "Lista de Séries" | ||
217 | + )); | ||
218 | + $this->enviaLocalizacao($localizacao->montar()); | ||
219 | + } | ||
209 | } | 220 | } |
210 | -} | 221 | + |
211 | // cria uma extensao da classe base | 222 | // cria uma extensao da classe base |
212 | $pagina = new clsIndexBase(); | 223 | $pagina = new clsIndexBase(); |
213 | // cria o conteudo | 224 | // cria o conteudo |
ieducar/intranet/educar_motivo_baixa_det.php
@@ -70,11 +70,75 @@ class indice extends clsDetalhe | @@ -70,11 +70,75 @@ class indice extends clsDetalhe | ||
70 | $tmp_obj = new clsPmieducarMotivoBaixa( $this->cod_motivo_baixa ); | 70 | $tmp_obj = new clsPmieducarMotivoBaixa( $this->cod_motivo_baixa ); |
71 | $registro = $tmp_obj->detalhe(); | 71 | $registro = $tmp_obj->detalhe(); |
72 | 72 | ||
73 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
74 | + { | ||
75 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
76 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
77 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
78 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
79 | + { | ||
80 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
81 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
82 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
83 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
84 | + } | ||
85 | + else | ||
86 | + { | ||
87 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
88 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
89 | + } | ||
90 | + } | ||
91 | + | ||
92 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
93 | + { | ||
94 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
95 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
96 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
97 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
98 | + if ($idpes) | ||
99 | + { | ||
100 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
101 | + $obj_escola_det = $obj_escola->detalhe(); | ||
102 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
103 | + } | ||
104 | + else | ||
105 | + { | ||
106 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
107 | + $obj_escola_det = $obj_escola->detalhe(); | ||
108 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
109 | + } | ||
110 | + } | ||
111 | + | ||
112 | + $obj_permissoes = new clsPermissoes(); | ||
113 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
114 | + | ||
115 | + | ||
73 | if( ! $registro ) | 116 | if( ! $registro ) |
74 | { | 117 | { |
75 | header( "location: educar_motivo_baixa_lst.php" ); | 118 | header( "location: educar_motivo_baixa_lst.php" ); |
76 | die(); | 119 | die(); |
77 | } | 120 | } |
121 | + | ||
122 | + if ($nivel_usuario == 1) | ||
123 | + { | ||
124 | + if( $registro["ref_cod_instituicao"] ) | ||
125 | + { | ||
126 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
127 | + } | ||
128 | + } | ||
129 | + | ||
130 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
131 | + { | ||
132 | + if( $registro["ref_cod_escola"] ) | ||
133 | + { | ||
134 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
135 | + } | ||
136 | + } | ||
137 | + | ||
138 | + if( $registro["ref_cod_biblioteca"] ) | ||
139 | + { | ||
140 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
141 | + } | ||
78 | 142 | ||
79 | if( $registro["nm_motivo_baixa"] ) | 143 | if( $registro["nm_motivo_baixa"] ) |
80 | { | 144 | { |
ieducar/intranet/educar_motivo_baixa_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Baixa" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Baixa" ); |
37 | $this->processoAp = "600"; | 38 | $this->processoAp = "600"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -158,6 +160,14 @@ class indice extends clsListagem | @@ -158,6 +160,14 @@ class indice extends clsListagem | ||
158 | } | 160 | } |
159 | 161 | ||
160 | $this->largura = "100%"; | 162 | $this->largura = "100%"; |
163 | + | ||
164 | + $localizacao = new LocalizacaoSistema(); | ||
165 | + $localizacao->entradaCaminhos( array( | ||
166 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
167 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
168 | + "" => "Lista de Motivos da baixa" | ||
169 | + )); | ||
170 | + $this->enviaLocalizacao($localizacao->montar()); | ||
161 | } | 171 | } |
162 | } | 172 | } |
163 | // cria uma extensao da classe base | 173 | // cria uma extensao da classe base |
ieducar/intranet/educar_motivo_suspensao_det.php
@@ -69,6 +69,69 @@ class indice extends clsDetalhe | @@ -69,6 +69,69 @@ class indice extends clsDetalhe | ||
69 | 69 | ||
70 | $tmp_obj = new clsPmieducarMotivoSuspensao( $this->cod_motivo_suspensao ); | 70 | $tmp_obj = new clsPmieducarMotivoSuspensao( $this->cod_motivo_suspensao ); |
71 | $registro = $tmp_obj->detalhe(); | 71 | $registro = $tmp_obj->detalhe(); |
72 | + | ||
73 | + if( class_exists( "clsPmieducarBiblioteca" ) ) | ||
74 | + { | ||
75 | + $obj_ref_cod_biblioteca = new clsPmieducarBiblioteca( $registro["ref_cod_biblioteca"] ); | ||
76 | + $det_ref_cod_biblioteca = $obj_ref_cod_biblioteca->detalhe(); | ||
77 | + $registro["ref_cod_biblioteca"] = $det_ref_cod_biblioteca["nm_biblioteca"]; | ||
78 | + if( class_exists( "clsPmieducarInstituicao" ) ) | ||
79 | + { | ||
80 | + $registro["ref_cod_instituicao"] = $det_ref_cod_biblioteca["ref_cod_instituicao"]; | ||
81 | + $obj_ref_cod_instituicao = new clsPmieducarInstituicao( $registro["ref_cod_instituicao"] ); | ||
82 | + $det_ref_cod_instituicao = $obj_ref_cod_instituicao->detalhe(); | ||
83 | + $registro["ref_cod_instituicao"] = $det_ref_cod_instituicao["nm_instituicao"]; | ||
84 | + } | ||
85 | + else | ||
86 | + { | ||
87 | + $registro["ref_cod_instituicao"] = "Erro na geracao"; | ||
88 | + echo "<!--\nErro\nClasse nao existente: clsPmieducarInstituicao\n-->"; | ||
89 | + } | ||
90 | + } | ||
91 | + | ||
92 | + if( class_exists( "clsPmieducarEscola" ) ) | ||
93 | + { | ||
94 | + $registro["ref_cod_escola"] = $det_ref_cod_biblioteca["ref_cod_escola"]; | ||
95 | + $obj_ref_cod_escola = new clsPmieducarEscola( $registro["ref_cod_escola"] ); | ||
96 | + $det_ref_cod_escola = $obj_ref_cod_escola->detalhe(); | ||
97 | + $idpes = $det_ref_cod_escola["ref_idpes"]; | ||
98 | + if ($idpes) | ||
99 | + { | ||
100 | + $obj_escola = new clsPessoaJuridica( $idpes ); | ||
101 | + $obj_escola_det = $obj_escola->detalhe(); | ||
102 | + $registro["ref_cod_escola"] = $obj_escola_det["fantasia"]; | ||
103 | + } | ||
104 | + else | ||
105 | + { | ||
106 | + $obj_escola = new clsPmieducarEscolaComplemento( $registro["ref_cod_escola"] ); | ||
107 | + $obj_escola_det = $obj_escola->detalhe(); | ||
108 | + $registro["ref_cod_escola"] = $obj_escola_det["nm_escola"]; | ||
109 | + } | ||
110 | + } | ||
111 | + | ||
112 | + $obj_permissoes = new clsPermissoes(); | ||
113 | + $nivel_usuario = $obj_permissoes->nivel_acesso($this->pessoa_logada); | ||
114 | + | ||
115 | + if ($nivel_usuario == 1) | ||
116 | + { | ||
117 | + if( $registro["ref_cod_instituicao"] ) | ||
118 | + { | ||
119 | + $this->addDetalhe( array( "Instituição", "{$registro["ref_cod_instituicao"]}") ); | ||
120 | + } | ||
121 | + } | ||
122 | + | ||
123 | + if ($nivel_usuario == 1 || $nivel_usuario == 2) | ||
124 | + { | ||
125 | + if( $registro["ref_cod_escola"] ) | ||
126 | + { | ||
127 | + $this->addDetalhe( array( "Escola", "{$registro["ref_cod_escola"]}") ); | ||
128 | + } | ||
129 | + } | ||
130 | + | ||
131 | + if( $registro["ref_cod_biblioteca"] ) | ||
132 | + { | ||
133 | + $this->addDetalhe( array( "Biblioteca", "{$registro["ref_cod_biblioteca"]}") ); | ||
134 | + } | ||
72 | 135 | ||
73 | if( ! $registro ) | 136 | if( ! $registro ) |
74 | { | 137 | { |
ieducar/intranet/educar_motivo_suspensao_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Suspensão" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Suspensão" ); |
37 | $this->processoAp = "607"; | 38 | $this->processoAp = "607"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -160,6 +162,14 @@ class indice extends clsListagem | @@ -160,6 +162,14 @@ class indice extends clsListagem | ||
160 | } | 162 | } |
161 | 163 | ||
162 | $this->largura = "100%"; | 164 | $this->largura = "100%"; |
165 | + | ||
166 | + $localizacao = new LocalizacaoSistema(); | ||
167 | + $localizacao->entradaCaminhos( array( | ||
168 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
169 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
170 | + "" => "Lista de Motivos de suspensão" | ||
171 | + )); | ||
172 | + $this->enviaLocalizacao($localizacao->montar()); | ||
163 | } | 173 | } |
164 | } | 174 | } |
165 | // cria uma extensao da classe base | 175 | // cria uma extensao da classe base |
ieducar/intranet/educar_pagamento_multa_lst.php
@@ -31,6 +31,7 @@ require_once ("include/clsBase.inc.php"); | @@ -31,6 +31,7 @@ require_once ("include/clsBase.inc.php"); | ||
31 | require_once ("include/clsListagem.inc.php"); | 31 | require_once ("include/clsListagem.inc.php"); |
32 | require_once ("include/clsBanco.inc.php"); | 32 | require_once ("include/clsBanco.inc.php"); |
33 | require_once( "include/pmieducar/geral.inc.php" ); | 33 | require_once( "include/pmieducar/geral.inc.php" ); |
34 | +require_once ("include/localizacaoSistema.php"); | ||
34 | 35 | ||
35 | class clsIndexBase extends clsBase | 36 | class clsIndexBase extends clsBase |
36 | { | 37 | { |
@@ -38,6 +39,7 @@ class clsIndexBase extends clsBase | @@ -38,6 +39,7 @@ class clsIndexBase extends clsBase | ||
38 | { | 39 | { |
39 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Pagamento Multa" ); | 40 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Pagamento Multa" ); |
40 | $this->processoAp = "622"; | 41 | $this->processoAp = "622"; |
42 | + $this->addEstilo( "localizacaoSistema" ); | ||
41 | } | 43 | } |
42 | } | 44 | } |
43 | 45 | ||
@@ -211,6 +213,14 @@ class indice extends clsListagem | @@ -211,6 +213,14 @@ class indice extends clsListagem | ||
211 | // } | 213 | // } |
212 | 214 | ||
213 | $this->largura = "100%"; | 215 | $this->largura = "100%"; |
216 | + | ||
217 | + $localizacao = new LocalizacaoSistema(); | ||
218 | + $localizacao->entradaCaminhos( array( | ||
219 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
220 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
221 | + "" => "Lista de Dívidas" | ||
222 | + )); | ||
223 | + $this->enviaLocalizacao($localizacao->montar()); | ||
214 | } | 224 | } |
215 | } | 225 | } |
216 | // cria uma extensao da classe base | 226 | // cria uma extensao da classe base |
ieducar/intranet/educar_reservas_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Reservas" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Reservas" ); |
37 | $this->processoAp = "609"; | 38 | $this->processoAp = "609"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -252,6 +254,13 @@ class indice extends clsListagem | @@ -252,6 +254,13 @@ class indice extends clsListagem | ||
252 | } | 254 | } |
253 | 255 | ||
254 | $this->largura = "100%"; | 256 | $this->largura = "100%"; |
257 | + $localizacao = new LocalizacaoSistema(); | ||
258 | + $localizacao->entradaCaminhos( array( | ||
259 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
260 | + "educar_biblioteca_index.php" => "Biblioteca", | ||
261 | + "" => "Lista de Reservas" | ||
262 | + )); | ||
263 | + $this->enviaLocalizacao($localizacao->montar()); | ||
255 | } | 264 | } |
256 | } | 265 | } |
257 | // cria uma extensao da classe base | 266 | // cria uma extensao da classe base |
ieducar/intranet/educar_serie_lst.php
@@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php'; | @@ -32,6 +32,7 @@ require_once 'include/clsBase.inc.php'; | ||
32 | require_once 'include/clsListagem.inc.php'; | 32 | require_once 'include/clsListagem.inc.php'; |
33 | require_once 'include/clsBanco.inc.php'; | 33 | require_once 'include/clsBanco.inc.php'; |
34 | require_once 'include/pmieducar/geral.inc.php'; | 34 | require_once 'include/pmieducar/geral.inc.php'; |
35 | +require_once ("include/localizacaoSistema.php"); | ||
35 | 36 | ||
36 | /** | 37 | /** |
37 | * clsIndexBase class. | 38 | * clsIndexBase class. |
@@ -49,6 +50,7 @@ class clsIndexBase extends clsBase | @@ -49,6 +50,7 @@ class clsIndexBase extends clsBase | ||
49 | { | 50 | { |
50 | $this->SetTitulo($this->_instituicao . ' i-Educar - Série'); | 51 | $this->SetTitulo($this->_instituicao . ' i-Educar - Série'); |
51 | $this->processoAp = '583'; | 52 | $this->processoAp = '583'; |
53 | + $this->addEstilo( "localizacaoSistema" ); | ||
52 | } | 54 | } |
53 | } | 55 | } |
54 | 56 | ||
@@ -183,6 +185,14 @@ class indice extends clsListagem | @@ -183,6 +185,14 @@ class indice extends clsListagem | ||
183 | } | 185 | } |
184 | 186 | ||
185 | $this->largura = "100%"; | 187 | $this->largura = "100%"; |
188 | + | ||
189 | + $localizacao = new LocalizacaoSistema(); | ||
190 | + $localizacao->entradaCaminhos( array( | ||
191 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
192 | + "educar_index.php" => "Escola", | ||
193 | + "" => "Lista de Séries" | ||
194 | + )); | ||
195 | + $this->enviaLocalizacao($localizacao->montar()); | ||
186 | } | 196 | } |
187 | } | 197 | } |
188 | 198 |
ieducar/intranet/educar_situacao_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Situação" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Situação" ); |
37 | $this->processoAp = "602"; | 38 | $this->processoAp = "602"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -208,6 +210,14 @@ class indice extends clsListagem | @@ -208,6 +210,14 @@ class indice extends clsListagem | ||
208 | } | 210 | } |
209 | 211 | ||
210 | $this->largura = "100%"; | 212 | $this->largura = "100%"; |
213 | + | ||
214 | + $localizacao = new LocalizacaoSistema(); | ||
215 | + $localizacao->entradaCaminhos( array( | ||
216 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
217 | + "educar_biblioteca_index.php" => "Bilioteca", | ||
218 | + "" => "Lista de Situações do Exemplares" | ||
219 | + )); | ||
220 | + $this->enviaLocalizacao($localizacao->montar()); | ||
211 | } | 221 | } |
212 | } | 222 | } |
213 | // cria uma extensao da classe base | 223 | // cria uma extensao da classe base |
ieducar/intranet/educar_tipo_ocorrencia_disciplinar_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Ocorrência Disciplinar" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Tipo Ocorrência Disciplinar" ); |
37 | $this->processoAp = "580"; | 38 | $this->processoAp = "580"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -172,6 +174,14 @@ class indice extends clsListagem | @@ -172,6 +174,14 @@ class indice extends clsListagem | ||
172 | $this->nome_acao = "Novo"; | 174 | $this->nome_acao = "Novo"; |
173 | } | 175 | } |
174 | $this->largura = "100%"; | 176 | $this->largura = "100%"; |
177 | + | ||
178 | + $localizacao = new LocalizacaoSistema(); | ||
179 | + $localizacao->entradaCaminhos( array( | ||
180 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
181 | + "educar_index.php" => "Escola", | ||
182 | + "" => "Lista de Tipos de Ocorrências Disciplinares" | ||
183 | + )); | ||
184 | + $this->enviaLocalizacao($localizacao->montar()); | ||
175 | } | 185 | } |
176 | } | 186 | } |
177 | // cria uma extensao da classe base | 187 | // cria uma extensao da classe base |
ieducar/intranet/educar_transferencia_tipo_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 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Transferência" ); | 37 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Motivo Transferência" ); |
37 | $this->processoAp = "575"; | 38 | $this->processoAp = "575"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -194,6 +196,14 @@ class indice extends clsListagem | @@ -194,6 +196,14 @@ class indice extends clsListagem | ||
194 | $this->nome_acao = "Novo"; | 196 | $this->nome_acao = "Novo"; |
195 | } | 197 | } |
196 | $this->largura = "100%"; | 198 | $this->largura = "100%"; |
199 | + | ||
200 | + $localizacao = new LocalizacaoSistema(); | ||
201 | + $localizacao->entradaCaminhos( array( | ||
202 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
203 | + "educar_index.php" => "Escola", | ||
204 | + "" => "Lista de Tipos de Transferência" | ||
205 | + )); | ||
206 | + $this->enviaLocalizacao($localizacao->montar()); | ||
197 | } | 207 | } |
198 | } | 208 | } |
199 | // cria uma extensao da classe base | 209 | // cria uma extensao da classe base |
ieducar/intranet/educar_turma_lst.php
@@ -31,6 +31,7 @@ require_once ("include/clsBase.inc.php"); | @@ -31,6 +31,7 @@ require_once ("include/clsBase.inc.php"); | ||
31 | require_once ("include/clsListagem.inc.php"); | 31 | require_once ("include/clsListagem.inc.php"); |
32 | require_once ("include/clsBanco.inc.php"); | 32 | require_once ("include/clsBanco.inc.php"); |
33 | require_once( "include/pmieducar/geral.inc.php" ); | 33 | require_once( "include/pmieducar/geral.inc.php" ); |
34 | +require_once ("include/localizacaoSistema.php"); | ||
34 | 35 | ||
35 | class clsIndexBase extends clsBase | 36 | class clsIndexBase extends clsBase |
36 | { | 37 | { |
@@ -38,6 +39,7 @@ class clsIndexBase extends clsBase | @@ -38,6 +39,7 @@ class clsIndexBase extends clsBase | ||
38 | { | 39 | { |
39 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Turma" ); | 40 | $this->SetTitulo( "{$this->_instituicao} i-Educar - Turma" ); |
40 | $this->processoAp = "586"; | 41 | $this->processoAp = "586"; |
42 | + $this->addEstilo( "localizacaoSistema" ); | ||
41 | } | 43 | } |
42 | } | 44 | } |
43 | 45 | ||
@@ -310,6 +312,14 @@ class indice extends clsListagem | @@ -310,6 +312,14 @@ class indice extends clsListagem | ||
310 | $this->nome_acao = "Novo"; | 312 | $this->nome_acao = "Novo"; |
311 | } | 313 | } |
312 | $this->largura = "100%"; | 314 | $this->largura = "100%"; |
315 | + | ||
316 | + $localizacao = new LocalizacaoSistema(); | ||
317 | + $localizacao->entradaCaminhos( array( | ||
318 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
319 | + "educar_index.php" => "Escola", | ||
320 | + "" => "Lista de Turmas" | ||
321 | + )); | ||
322 | + $this->enviaLocalizacao($localizacao->montar()); | ||
313 | } | 323 | } |
314 | } | 324 | } |
315 | // cria uma extensao da classe base | 325 | // cria uma extensao da classe base |
ieducar/intranet/funcionario_lst.php
@@ -27,6 +27,7 @@ | @@ -27,6 +27,7 @@ | ||
27 | require_once ("include/clsBase.inc.php"); | 27 | 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/localizacaoSistema.php'; | ||
30 | 31 | ||
31 | class clsIndex extends clsBase | 32 | class clsIndex extends clsBase |
32 | { | 33 | { |
@@ -35,6 +36,7 @@ class clsIndex extends clsBase | @@ -35,6 +36,7 @@ class clsIndex extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} Usuários!" ); | 37 | $this->SetTitulo( "{$this->_instituicao} Usuários!" ); |
37 | $this->processoAp = "36"; | 38 | $this->processoAp = "36"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -75,6 +77,17 @@ class indice extends clsListagem | @@ -75,6 +77,17 @@ class indice extends clsListagem | ||
75 | $this->nome_acao = "Novo"; | 77 | $this->nome_acao = "Novo"; |
76 | 78 | ||
77 | $this->largura = "100%"; | 79 | $this->largura = "100%"; |
80 | + | ||
81 | + $localizacao = new LocalizacaoSistema(); | ||
82 | + $localizacao->entradaCaminhos( array( | ||
83 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
84 | +<<<<<<< HEAD | ||
85 | + "" => "Cadastro de Funcionários" | ||
86 | +======= | ||
87 | + "" => "Lista de Funcionários" | ||
88 | +>>>>>>> 691e3ffa3b5f4c6dd70c0728bccfc00e665bf077 | ||
89 | + )); | ||
90 | + $this->enviaLocalizacao($localizacao->montar()); | ||
78 | } | 91 | } |
79 | } | 92 | } |
80 | 93 |
ieducar/intranet/funcionario_vinculo_lst.php
@@ -29,6 +29,7 @@ $desvio_diretorio = ""; | @@ -29,6 +29,7 @@ $desvio_diretorio = ""; | ||
29 | require_once ("include/clsBase.inc.php"); | 29 | require_once ("include/clsBase.inc.php"); |
30 | require_once ("include/clsListagem.inc.php"); | 30 | require_once ("include/clsListagem.inc.php"); |
31 | require_once ("include/clsBanco.inc.php"); | 31 | require_once ("include/clsBanco.inc.php"); |
32 | +require_once 'include/localizacaoSistema.php'; | ||
32 | 33 | ||
33 | class clsIndex extends clsBase | 34 | class clsIndex extends clsBase |
34 | { | 35 | { |
@@ -37,6 +38,7 @@ class clsIndex extends clsBase | @@ -37,6 +38,7 @@ class clsIndex extends clsBase | ||
37 | { | 38 | { |
38 | $this->SetTitulo( "{$this->_instituicao} Vínculo Funcionários!" ); | 39 | $this->SetTitulo( "{$this->_instituicao} Vínculo Funcionários!" ); |
39 | $this->processoAp = "190"; | 40 | $this->processoAp = "190"; |
41 | + $this->addEstilo( "localizacaoSistema" ); | ||
40 | } | 42 | } |
41 | } | 43 | } |
42 | 44 | ||
@@ -83,6 +85,14 @@ class indice extends clsListagem | @@ -83,6 +85,14 @@ class indice extends clsListagem | ||
83 | $this->addLinhas( array( "<img src='imagens/noticia.jpg' border=0> <a href='funcionario_vinculo_det.php?cod_func=$cod_func_vinculo'>$nome</a>") ); | 85 | $this->addLinhas( array( "<img src='imagens/noticia.jpg' border=0> <a href='funcionario_vinculo_det.php?cod_func=$cod_func_vinculo'>$nome</a>") ); |
84 | } | 86 | } |
85 | $this->largura = "100%"; | 87 | $this->largura = "100%"; |
88 | + | ||
89 | + $localizacao = new LocalizacaoSistema(); | ||
90 | + $localizacao->entradaCaminhos( array( | ||
91 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
92 | + "" => "Vínculos" | ||
93 | + )); | ||
94 | + $this->enviaLocalizacao($localizacao->montar()); | ||
95 | + | ||
86 | // Paginador | 96 | // Paginador |
87 | $this->addPaginador2( "funcionario_vinculo_lst.php", $total, $_GET, $this->nome, $limite ); | 97 | $this->addPaginador2( "funcionario_vinculo_lst.php", $total, $_GET, $this->nome, $limite ); |
88 | $this->acao = "go(\"funcionario_vinculo_cad.php\")"; | 98 | $this->acao = "go(\"funcionario_vinculo_cad.php\")"; |
ieducar/intranet/include/clsBase.inc.php
@@ -29,7 +29,8 @@ | @@ -29,7 +29,8 @@ | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | // Inclui arquivo de bootstrapping | 31 | // Inclui arquivo de bootstrapping |
32 | -require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/bootstrap.php'; | 32 | +//require_once '/home/rafael/ieducar/ieducar/includes/bootstrap.php'; |
33 | +require_once '../includes/bootstrap.php'; | ||
33 | 34 | ||
34 | // redireciona requisições, caso configurado | 35 | // redireciona requisições, caso configurado |
35 | if ($GLOBALS['coreExt']['Config']->app->routes && | 36 | if ($GLOBALS['coreExt']['Config']->app->routes && |
@@ -717,7 +718,6 @@ class clsBase extends clsConfig | @@ -717,7 +718,6 @@ class clsBase extends clsConfig | ||
717 | $this->CadastraAcesso(); | 718 | $this->CadastraAcesso(); |
718 | $saida_geral = $this->MakeHeadHtml(); | 719 | $saida_geral = $this->MakeHeadHtml(); |
719 | 720 | ||
720 | - // @todo else ruim, colocar abre e fecha colchetes ao redor de foreach. | ||
721 | if ($this->renderMenu) { | 721 | if ($this->renderMenu) { |
722 | $saida_geral .= $this->MakeBody(); | 722 | $saida_geral .= $this->MakeBody(); |
723 | } | 723 | } |
ieducar/intranet/include/clsListagem.inc.php
@@ -29,6 +29,7 @@ | @@ -29,6 +29,7 @@ | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | require_once 'include/clsCampos.inc.php'; | 31 | require_once 'include/clsCampos.inc.php'; |
32 | +require_once 'include/localizacaoSistema.php'; | ||
32 | 33 | ||
33 | if (class_exists('clsPmiajudaPagina')) { | 34 | if (class_exists('clsPmiajudaPagina')) { |
34 | require_once 'include/pmiajuda/clsPmiajudaPagina.inc.php'; | 35 | require_once 'include/pmiajuda/clsPmiajudaPagina.inc.php'; |
@@ -80,6 +81,7 @@ class clsListagem extends clsCampos | @@ -80,6 +81,7 @@ class clsListagem extends clsCampos | ||
80 | var $funcAcao = ''; | 81 | var $funcAcao = ''; |
81 | var $funcAcaoNome = ''; | 82 | var $funcAcaoNome = ''; |
82 | var $rotulo_anterior; | 83 | var $rotulo_anterior; |
84 | + var $locale = "<b>=> PAGINA SEM LOCALIZACAO, COLOQUE POR GENTILEZA. <=</b>"; | ||
83 | 85 | ||
84 | var $array_botao; | 86 | var $array_botao; |
85 | var $array_botao_url; | 87 | var $array_botao_url; |
@@ -121,6 +123,11 @@ class clsListagem extends clsCampos | @@ -121,6 +123,11 @@ class clsListagem extends clsCampos | ||
121 | 123 | ||
122 | $this->bannerClose = $boolFechaBanner; | 124 | $this->bannerClose = $boolFechaBanner; |
123 | } | 125 | } |
126 | + | ||
127 | + function enviaLocalizacao($localizao){ | ||
128 | + if($localizao) | ||
129 | + $this->locale = $localizao; | ||
130 | + } | ||
124 | 131 | ||
125 | function addCabecalhos($coluna) | 132 | function addCabecalhos($coluna) |
126 | { | 133 | { |
@@ -252,7 +259,7 @@ class clsListagem extends clsCampos | @@ -252,7 +259,7 @@ class clsListagem extends clsCampos | ||
252 | 'pos_atual', -1, TRUE); | 259 | 'pos_atual', -1, TRUE); |
253 | 260 | ||
254 | return NULL; | 261 | return NULL; |
255 | - } | 262 | + } |
256 | 263 | ||
257 | function RenderHTML() | 264 | function RenderHTML() |
258 | { | 265 | { |
@@ -298,8 +305,14 @@ class clsListagem extends clsCampos | @@ -298,8 +305,14 @@ class clsListagem extends clsCampos | ||
298 | else { | 305 | else { |
299 | $tipo = 'cad'; | 306 | $tipo = 'cad'; |
300 | } | 307 | } |
301 | - | ||
302 | - $barra = '<b>Filtros de busca</b>'; | 308 | + |
309 | + $server = $_SERVER['SERVER_NAME']; | ||
310 | + $endereco = $_SERVER ['REQUEST_URI']; | ||
311 | + $enderecoPagina = $_SERVER['PHP_SELF']; | ||
312 | + | ||
313 | + //$barra = '<b>Localizacao: http://'.$server.$endereco.'</b><br>'; | ||
314 | + //$barra = '<tr><td><b>Localizacao:'. $enderecoPagina .'</b><br></tr></td>'; | ||
315 | + $barra = '<b>Filtros de busca</b>'; | ||
303 | 316 | ||
304 | if (class_exists('clsPmiajudaPagina')) { | 317 | if (class_exists('clsPmiajudaPagina')) { |
305 | $ajudaPagina = new clsPmiajudaPagina(); | 318 | $ajudaPagina = new clsPmiajudaPagina(); |
@@ -332,7 +345,7 @@ class clsListagem extends clsCampos | @@ -332,7 +345,7 @@ class clsListagem extends clsCampos | ||
332 | } | 345 | } |
333 | } | 346 | } |
334 | 347 | ||
335 | - $janela .= "<tr><td class='formdktd' colspan='2' height='24'>{$barra}</td></tr>"; | 348 | + $janela .= "<tr><td class='formdktd' colspan='2' height='24'>{$barra}</td></tr>"; |
336 | 349 | ||
337 | if (empty($this->campos)) { | 350 | if (empty($this->campos)) { |
338 | $janela .= "<tr><td class='formlttd' colspan='2'><span class='form'>Não existem campos definidos para o formulário</span></td></tr>"; | 351 | $janela .= "<tr><td class='formlttd' colspan='2'><span class='form'>Não existem campos definidos para o formulário</span></td></tr>"; |
@@ -384,7 +397,12 @@ class clsListagem extends clsCampos | @@ -384,7 +397,12 @@ class clsListagem extends clsCampos | ||
384 | 397 | ||
385 | $retorno .= " | 398 | $retorno .= " |
386 | <table class='tablelistagem' $width border='0' cellpadding='2' cellspacing='1'>"; | 399 | <table class='tablelistagem' $width border='0' cellpadding='2' cellspacing='1'>"; |
387 | - | 400 | + |
401 | + $retorno .= " | ||
402 | + <tr> | ||
403 | + <td class='fundoLocalizacao' colspan='2' height='24'>{$this->locale}</td> | ||
404 | + </tr>"; | ||
405 | + | ||
388 | $retorno .= " | 406 | $retorno .= " |
389 | <tr> | 407 | <tr> |
390 | <td class='formdktd' colspan='2' height='24'>{$barra}</td> | 408 | <td class='formdktd' colspan='2' height='24'>{$barra}</td> |
@@ -0,0 +1,77 @@ | @@ -0,0 +1,77 @@ | ||
1 | +<?php | ||
2 | +class LocalizacaoSistema { | ||
3 | + | ||
4 | + private $localizacao = array(); | ||
5 | + private $url = ''; | ||
6 | + private $protocolo = ''; | ||
7 | + private $separador = ''; | ||
8 | + private $html = ''; | ||
9 | + | ||
10 | + public function __construct() { | ||
11 | + $this->protocolo = $this->getProtocoloHttp(); | ||
12 | + $this->url = $this->getUrl(); | ||
13 | + $this->localizacao = $this->url( $this->url ); | ||
14 | + $this->montarLocalizacao(); | ||
15 | + } | ||
16 | + | ||
17 | + public function entradaCaminhos( array $localizacao ) { | ||
18 | + $this->localizacao = $localizacao; | ||
19 | + $this->montarLocalizacao(); | ||
20 | + } | ||
21 | + | ||
22 | + public function get() { | ||
23 | + return $this->localizacao; | ||
24 | + } | ||
25 | + | ||
26 | + public function getProtocoloHttp() { | ||
27 | + if( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] === 'on' ) { | ||
28 | + $protocolo = 'https://'; | ||
29 | + } else { | ||
30 | + $protocolo = 'http://'; | ||
31 | + } | ||
32 | + return $protocolo; | ||
33 | + } | ||
34 | + | ||
35 | + public function getUrl() { | ||
36 | + return $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; | ||
37 | + } | ||
38 | + | ||
39 | + public function url( $url ) { | ||
40 | + $fragments = array(); | ||
41 | + $localizacao = array(); | ||
42 | + $_url = preg_replace( array( "/[http]s?:\/\//", "/\/$/" ), array( "", "" ), $url ); | ||
43 | + $fragments = explode( "/", $_url ); | ||
44 | + | ||
45 | + foreach( $fragments as $fragment ) { | ||
46 | + $localizacao[$fragment] = $fragment; | ||
47 | + } | ||
48 | + | ||
49 | + return $localizacao; | ||
50 | + } | ||
51 | + | ||
52 | + private function montarLocalizacao() { | ||
53 | + $href = ''; | ||
54 | + $localizacao_count = sizeof( $this->localizacao ); | ||
55 | + $i = 1; | ||
56 | + $linkVazio="#"; | ||
57 | + | ||
58 | + $this->html = '<ul id="localizacao">'; | ||
59 | + foreach( $this->localizacao as $link => $inner ) { | ||
60 | + $href .= ( $i === 1 ) ? $this->protocolo . $link : "/$link"; | ||
61 | + if( $i === $localizacao_count ) { | ||
62 | + $this->html .= "<li><a href=\"$linkVazio\">$inner</a></li>"; | ||
63 | + } else { | ||
64 | + $this->html .= "<li><a href=\"$href\" title=\"$inner\">$inner</a></li> {$this->separador} "; | ||
65 | + } | ||
66 | + $i++; | ||
67 | + } | ||
68 | + $this->html .= '</ul>'; | ||
69 | + } | ||
70 | + | ||
71 | + | ||
72 | + public function montar() { | ||
73 | + return $this->html; | ||
74 | + } | ||
75 | + | ||
76 | +} | ||
77 | +?> | ||
0 | \ No newline at end of file | 78 | \ No newline at end of file |
ieducar/intranet/include/pmieducar/clsPmieducarAcervo.inc.php
@@ -422,7 +422,7 @@ class clsPmieducarAcervo | @@ -422,7 +422,7 @@ class clsPmieducarAcervo | ||
422 | */ | 422 | */ |
423 | function cadastra() | 423 | function cadastra() |
424 | { | 424 | { |
425 | - if( is_numeric( $this->ref_cod_exemplar_tipo ) && is_numeric( $this->ref_usuario_cad ) && is_numeric( $this->ref_cod_acervo_idioma ) && is_numeric( $this->ref_cod_acervo_editora ) && is_string( $this->titulo ) && is_numeric( $this->volume ) && is_numeric( $this->num_edicao ) && is_numeric( $this->ano ) && is_numeric( $this->num_paginas ) && is_numeric( $this->isbn ) && is_numeric( $this->ref_cod_biblioteca ) ) | 425 | + if( is_numeric( $this->ref_cod_exemplar_tipo ) && is_numeric( $this->ref_usuario_cad ) && is_numeric( $this->ref_cod_acervo_idioma ) && is_numeric( $this->ref_cod_acervo_editora ) && is_string( $this->titulo ) && is_numeric( $this->volume ) && is_numeric( $this->num_edicao ) && is_numeric( $this->ano ) && is_numeric( $this->num_paginas ) && is_numeric( $this->ref_cod_biblioteca ) ) |
426 | { | 426 | { |
427 | $db = new clsBanco(); | 427 | $db = new clsBanco(); |
428 | 428 |
ieducar/intranet/include/pmieducar/clsPmieducarExemplar.inc.php
@@ -395,13 +395,22 @@ class clsPmieducarExemplar | @@ -395,13 +395,22 @@ class clsPmieducarExemplar | ||
395 | $campos .= "{$gruda}ativo"; | 395 | $campos .= "{$gruda}ativo"; |
396 | $valores .= "{$gruda}'1'"; | 396 | $valores .= "{$gruda}'1'"; |
397 | $gruda = ", "; | 397 | $gruda = ", "; |
398 | - if( is_string( $this->data_aquisicao ) ) | 398 | + |
399 | + if( is_string( $this->data_aquisicao ) ) | ||
399 | { | 400 | { |
400 | $campos .= "{$gruda}data_aquisicao"; | 401 | $campos .= "{$gruda}data_aquisicao"; |
401 | $valores .= "{$gruda}'{$this->data_aquisicao}'"; | 402 | $valores .= "{$gruda}'{$this->data_aquisicao}'"; |
402 | $gruda = ", "; | 403 | $gruda = ", "; |
403 | } | 404 | } |
404 | - | 405 | + |
406 | + if($this->tombo != NULL){ | ||
407 | + $sql = "SELECT * FROM pmieducar.exemplar WHERE tombo = {$this->tombo}"; | ||
408 | + $consulta = new clsBanco(); | ||
409 | + $tombo = $consulta->CampoUnico($sql); | ||
410 | + if($tombo != NULL){ | ||
411 | + return false; | ||
412 | + } | ||
413 | + } | ||
405 | 414 | ||
406 | $db->Consulta( "INSERT INTO {$this->_tabela} ( $campos ) VALUES( $valores )" ); | 415 | $db->Consulta( "INSERT INTO {$this->_tabela} ( $campos ) VALUES( $valores )" ); |
407 | return $db->InsertId( "{$this->_tabela}_cod_exemplar_seq"); | 416 | return $db->InsertId( "{$this->_tabela}_cod_exemplar_seq"); |
ieducar/intranet/public_bairro_lst.php
@@ -35,6 +35,7 @@ require_once 'include/public/geral.inc.php'; | @@ -35,6 +35,7 @@ require_once 'include/public/geral.inc.php'; | ||
35 | 35 | ||
36 | require_once 'App/Model/ZonaLocalizacao.php'; | 36 | require_once 'App/Model/ZonaLocalizacao.php'; |
37 | require_once 'CoreExt/View/Helper/UrlHelper.php'; | 37 | require_once 'CoreExt/View/Helper/UrlHelper.php'; |
38 | +require_once 'include/localizacaoSistema.php'; | ||
38 | 39 | ||
39 | /** | 40 | /** |
40 | * clsIndexBase class. | 41 | * clsIndexBase class. |
@@ -52,6 +53,7 @@ class clsIndexBase extends clsBase | @@ -52,6 +53,7 @@ class clsIndexBase extends clsBase | ||
52 | { | 53 | { |
53 | $this->SetTitulo($this->_instituicao . ' Bairro'); | 54 | $this->SetTitulo($this->_instituicao . ' Bairro'); |
54 | $this->processoAp = 756; | 55 | $this->processoAp = 756; |
56 | + $this->addEstilo( "localizacaoSistema" ); | ||
55 | } | 57 | } |
56 | } | 58 | } |
57 | 59 | ||
@@ -240,6 +242,13 @@ class indice extends clsListagem | @@ -240,6 +242,13 @@ class indice extends clsListagem | ||
240 | $this->nome_acao = 'Novo'; | 242 | $this->nome_acao = 'Novo'; |
241 | 243 | ||
242 | $this->largura = '100%'; | 244 | $this->largura = '100%'; |
245 | + | ||
246 | + $localizacao = new LocalizacaoSistema(); | ||
247 | + $localizacao->entradaCaminhos( array( | ||
248 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
249 | + "" => "Bairro" | ||
250 | + )); | ||
251 | + $this->enviaLocalizacao($localizacao->montar()); | ||
243 | } | 252 | } |
244 | } | 253 | } |
245 | 254 |
ieducar/intranet/public_logradouro_lst.php
@@ -291,7 +291,7 @@ document.getElementById('idpais').onchange = function() | @@ -291,7 +291,7 @@ document.getElementById('idpais').onchange = function() | ||
291 | function getUf( xml_uf ) | 291 | function getUf( xml_uf ) |
292 | { | 292 | { |
293 | var campoUf = document.getElementById('sigla_uf'); | 293 | var campoUf = document.getElementById('sigla_uf'); |
294 | - var DOM_array = xml_uf.getElementsByTagName( "uf" ); | 294 | + var DOM_array = xml_uf.getElementsByTagName( "estado" ); |
295 | 295 | ||
296 | if(DOM_array.length) | 296 | if(DOM_array.length) |
297 | { | 297 | { |
ieducar/intranet/public_municipio_lst.php
@@ -229,7 +229,7 @@ document.getElementById('idpais').onchange = function() | @@ -229,7 +229,7 @@ document.getElementById('idpais').onchange = function() | ||
229 | function getUf( xml_uf ) | 229 | function getUf( xml_uf ) |
230 | { | 230 | { |
231 | var campoUf = document.getElementById('sigla_uf'); | 231 | var campoUf = document.getElementById('sigla_uf'); |
232 | - var DOM_array = xml_uf.getElementsByTagName( "uf" ); | 232 | + var DOM_array = xml_uf.getElementsByTagName( "estado" ); |
233 | 233 | ||
234 | if(DOM_array.length) | 234 | if(DOM_array.length) |
235 | { | 235 | { |
@@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
1 | +#localizacao{ | ||
2 | + overflow: hidden; | ||
3 | + width: 100%; | ||
4 | +} | ||
5 | + | ||
6 | +#localizacao li{ | ||
7 | + float: left; | ||
8 | + margin: 0 .5em 0 1em; | ||
9 | +} | ||
10 | + | ||
11 | +#localizacao a{ | ||
12 | + font-family: arial, verdana, sans-serif, "Times New Roman"; | ||
13 | + font-size: 11px; | ||
14 | + font-style: normal; | ||
15 | + font-variant: normal; | ||
16 | + font-weight: bold; | ||
17 | + letter-spacing: 0pt; | ||
18 | + line-height: normal; | ||
19 | + background: #A1B3BD; | ||
20 | + padding: .4em 1em; | ||
21 | + float: left; | ||
22 | + text-decoration: none; | ||
23 | + color: #fff; | ||
24 | + text-shadow: 0 1px 0 rgba(255,255,255,.5); | ||
25 | + position: relative; | ||
26 | +} | ||
27 | + | ||
28 | +#localizacao a:hover{ | ||
29 | + background: #184e7f; | ||
30 | +} | ||
31 | + | ||
32 | +#localizacao a::before{ | ||
33 | + content: ""; | ||
34 | + position: absolute; | ||
35 | + top: 50%; | ||
36 | + margin-top: -1.5em; | ||
37 | + border-width: 1.5em 0 1.5em 1em; | ||
38 | + border-style: solid; | ||
39 | + border-color: #A1B3BD #A1B3BD #A1B3BD transparent; | ||
40 | + left: -1em; | ||
41 | +} | ||
42 | + | ||
43 | +#localizacao a:hover::before{ | ||
44 | + border-color: #184e7f #184e7f #184e7f transparent; | ||
45 | +} | ||
46 | + | ||
47 | +#localizacao a::after{ | ||
48 | + content: ""; | ||
49 | + position: absolute; | ||
50 | + top: 50%; | ||
51 | + margin-top: -1.5em; | ||
52 | + border-top: 1.5em solid transparent; | ||
53 | + border-bottom: 1.5em solid transparent; | ||
54 | + border-left: 1em solid #A1B3BD; | ||
55 | + right: -1em; | ||
56 | +} | ||
57 | + | ||
58 | +#localizacao a:hover::after{ | ||
59 | + border-left-color: #184e7f; | ||
60 | + content: ""; | ||
61 | +} | ||
62 | + | ||
63 | +#localizacao .current, | ||
64 | +#localizacao .current:hover{ | ||
65 | + font-weight: bold; | ||
66 | + background: none; | ||
67 | +} | ||
68 | + | ||
69 | +#localizacao .current::after, | ||
70 | +#localizacao .current::before{ | ||
71 | + content: normal; | ||
72 | +} | ||
73 | +.fundoLocalizacao { | ||
74 | + background-color: #E4E9ED; | ||
75 | +} | ||
0 | \ No newline at end of file | 76 | \ No newline at end of file |
ieducar/intranet/styles/novo.css
ieducar/intranet/urbano_cep_logradouro_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/urbano/geral.inc.php" ); | 30 | require_once( "include/urbano/geral.inc.php" ); |
31 | +require_once 'include/localizacaoSistema.php'; | ||
31 | 32 | ||
32 | class clsIndexBase extends clsBase | 33 | class clsIndexBase extends clsBase |
33 | { | 34 | { |
@@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | @@ -35,6 +36,7 @@ class clsIndexBase extends clsBase | ||
35 | { | 36 | { |
36 | $this->SetTitulo( "{$this->_instituicao} CEP Logradouro" ); | 37 | $this->SetTitulo( "{$this->_instituicao} CEP Logradouro" ); |
37 | $this->processoAp = "758"; | 38 | $this->processoAp = "758"; |
39 | + $this->addEstilo( "localizacaoSistema" ); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||
@@ -245,6 +247,13 @@ class indice extends clsListagem | @@ -245,6 +247,13 @@ class indice extends clsListagem | ||
245 | $this->nome_acao = "Novo"; | 247 | $this->nome_acao = "Novo"; |
246 | 248 | ||
247 | $this->largura = "100%"; | 249 | $this->largura = "100%"; |
250 | + | ||
251 | + $localizacao = new LocalizacaoSistema(); | ||
252 | + $localizacao->entradaCaminhos( array( | ||
253 | + $_SERVER['SERVER_NAME']."/intranet" => "i-Educar", | ||
254 | + "" => "CEP" | ||
255 | + )); | ||
256 | + $this->enviaLocalizacao($localizacao->montar()); | ||
248 | } | 257 | } |
249 | } | 258 | } |
250 | // cria uma extensao da classe base | 259 | // cria uma extensao da classe base |
@@ -275,7 +284,7 @@ document.getElementById('idpais').onchange = function() | @@ -275,7 +284,7 @@ document.getElementById('idpais').onchange = function() | ||
275 | function getUf( xml_uf ) | 284 | function getUf( xml_uf ) |
276 | { | 285 | { |
277 | var campoUf = document.getElementById('sigla_uf'); | 286 | var campoUf = document.getElementById('sigla_uf'); |
278 | - var DOM_array = xml_uf.getElementsByTagName( "uf" ); | 287 | + var DOM_array = xml_uf.getElementsByTagName( "estado" ); |
279 | 288 | ||
280 | if(DOM_array.length) | 289 | if(DOM_array.length) |
281 | { | 290 | { |
ieducar/lib/Portabilis/View/Helper/DynamicInput/Turma.php
@@ -80,7 +80,7 @@ class Portabilis_View_Helper_DynamicInput_Turma extends Portabilis_View_Helper_D | @@ -80,7 +80,7 @@ class Portabilis_View_Helper_DynamicInput_Turma extends Portabilis_View_Helper_D | ||
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | - return $this->insertOption(null, "Selecione uma turma", $resources); | 83 | + return $this->insertOption(null, "Enturmar depois", $resources); |
84 | } | 84 | } |
85 | 85 | ||
86 | protected function turmasPorAno($escolaId, $ano) { | 86 | protected function turmasPorAno($escolaId, $ano) { |
ieducar/modules/DynamicInput/Assets/Javascripts/Turma.js
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | var handleGetTurmas = function(response) { | 12 | var handleGetTurmas = function(response) { |
13 | var selectOptions = jsonResourcesToSelectOptions(response['options']); | 13 | var selectOptions = jsonResourcesToSelectOptions(response['options']); |
14 | - updateSelect($turmaField, selectOptions, "Selecione uma turma"); | 14 | + updateSelect($turmaField, selectOptions, "Enturmar depois"); |
15 | } | 15 | } |
16 | 16 | ||
17 | var updateTurmas = function(){ | 17 | var updateTurmas = function(){ |
@@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
1 | +file.reference.php-PHPUnit=../../../../usr/share/php/PHPUnit | ||
2 | +include.path=\ | ||
3 | + ${file.reference.php-PHPUnit}:\ | ||
4 | + ${php.global.include.path} | ||
5 | +php.version=PHP_53 | ||
6 | +phpunit.bootstrap=includes/bootstrap.php | ||
7 | +phpunit.bootstrap.create.tests=false | ||
8 | +phpunit.configuration=phpunit.xml | ||
9 | +phpunit.run.test.files=true | ||
10 | +phpunit.script= | ||
11 | +phpunit.suite= | ||
12 | +phpunit.test.groups.ask=false | ||
13 | +source.encoding=ISO-8859-1 | ||
14 | +src.dir=. | ||
15 | +tags.asp=false | ||
16 | +tags.short=true | ||
17 | +test.src.dir=tests | ||
18 | +web.root=. |
@@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
3 | + <type>org.netbeans.modules.php.project</type> | ||
4 | + <configuration> | ||
5 | + <data xmlns="http://www.netbeans.org/ns/php-project/1"> | ||
6 | + <name>ieducar</name> | ||
7 | + </data> | ||
8 | + </configuration> | ||
9 | +</project> |
ieducar/tests/unit/App/Model/IedFinderTest.php
@@ -207,10 +207,11 @@ class App_Model_IedFinderTest extends UnitBaseTest | @@ -207,10 +207,11 @@ class App_Model_IedFinderTest extends UnitBaseTest | ||
207 | ); | 207 | ); |
208 | 208 | ||
209 | $mock = $this->getCleanMock('clsPmieducarSerie'); | 209 | $mock = $this->getCleanMock('clsPmieducarSerie'); |
210 | + | ||
210 | $mock->expects($this->exactly(2)) | 211 | $mock->expects($this->exactly(2)) |
211 | ->method('lista') | 212 | ->method('lista') |
212 | ->will($this->onConsecutiveCalls($returnValue, array($returnValue[1]))); | 213 | ->will($this->onConsecutiveCalls($returnValue, array($returnValue[1]))); |
213 | - | 214 | + |
214 | // Registra a instância no repositório de classes de CoreExt_Entity | 215 | // Registra a instância no repositório de classes de CoreExt_Entity |
215 | $instance = CoreExt_Entity::addClassToStorage( | 216 | $instance = CoreExt_Entity::addClassToStorage( |
216 | 'clsPmieducarSerie', $mock, NULL, TRUE); | 217 | 'clsPmieducarSerie', $mock, NULL, TRUE); |
ieducar/tests/unit/CoreExt/DataMapper/IntegrationCompoundPkeyTest.php
@@ -1,155 +0,0 @@ | @@ -1,155 +0,0 @@ | ||
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * i-Educar - Sistema de gestão escolar | ||
5 | - * | ||
6 | - * Copyright (C) 2006 Prefeitura Municipal de Itajaí | ||
7 | - * <ctima@itajai.sc.gov.br> | ||
8 | - * | ||
9 | - * Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo | ||
10 | - * sob os termos da Licença Pública Geral GNU conforme publicada pela Free | ||
11 | - * Software Foundation; tanto a versão 2 da Licença, como (a seu critério) | ||
12 | - * qualquer versão posterior. | ||
13 | - * | ||
14 | - * Este programa é distribuído na expectativa de que seja útil, porém, SEM | ||
15 | - * NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU | ||
16 | - * ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral | ||
17 | - * do GNU para mais detalhes. | ||
18 | - * | ||
19 | - * Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto | ||
20 | - * com este programa; se não, escreva para a Free Software Foundation, Inc., no | ||
21 | - * endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | - * | ||
23 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
24 | - * @category i-Educar | ||
25 | - * @license @@license@@ | ||
26 | - * @package CoreExt_DataMapper | ||
27 | - * @subpackage IntegrationTests | ||
28 | - * @since Arquivo disponível desde a versão 1.1.0 | ||
29 | - * @version $Id$ | ||
30 | - */ | ||
31 | - | ||
32 | -require_once 'CoreExt/_stub/EntityCompoundDataMapper.php'; | ||
33 | - | ||
34 | -/** | ||
35 | - * CoreExt_DataMapper_IntegrationCompoundPkeyTest class. | ||
36 | - * | ||
37 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
38 | - * @category i-Educar | ||
39 | - * @license @@license@@ | ||
40 | - * @package CoreExt_DataMapper | ||
41 | - * @subpackage IntegrationTests | ||
42 | - * @since Classe disponível desde a versão 1.1.0 | ||
43 | - * @version @@package_version@@ | ||
44 | - */ | ||
45 | -class CoreExt_DataMapper_IntegrationCompoundPkeyTest extends IntegrationBaseTest | ||
46 | -{ | ||
47 | - /** | ||
48 | - * Cria a tabela do objeto CoreExt_DataMapper para testes. | ||
49 | - */ | ||
50 | - public function __construct() | ||
51 | - { | ||
52 | - parent::__construct(); | ||
53 | - CoreExt_EntityCompoundDataMapperStub::createTable($this->getDbAdapter()); | ||
54 | - } | ||
55 | - | ||
56 | - protected function setUp() | ||
57 | - { | ||
58 | - parent::setUp(); | ||
59 | - CoreExt_DataMapper::resetDefaultDbAdapter(); | ||
60 | - } | ||
61 | - | ||
62 | - public function getDataSet() | ||
63 | - { | ||
64 | - return $this->createXMLDataSet($this->getFixture('matricula.xml')); | ||
65 | - } | ||
66 | - | ||
67 | - public function testRecuperaRegistroUnico() | ||
68 | - { | ||
69 | - $mapper = new CoreExt_EntityCompoundDataMapperStub($this->getDbAdapter()); | ||
70 | - $found = $mapper->find(array(1, 1)); | ||
71 | - | ||
72 | - $expected = new CoreExt_EntityCompoundStub(array( | ||
73 | - 'pessoa' => 1, | ||
74 | - 'curso' => 1, | ||
75 | - 'confirmado' => TRUE | ||
76 | - )); | ||
77 | - | ||
78 | - // Marca como se tivesse sido carregado, para garantir a comparação | ||
79 | - $expected->markOld(); | ||
80 | - | ||
81 | - $this->assertEquals($expected, $found); | ||
82 | - $this->assertFalse($found->isNew()); | ||
83 | - } | ||
84 | - | ||
85 | - public function testCadastraNovoRegistroComChaveComposta() | ||
86 | - { | ||
87 | - $mapper = new CoreExt_EntityCompoundDataMapperStub($this->getDbAdapter()); | ||
88 | - | ||
89 | - $entity = new CoreExt_EntityCompoundStub(array( | ||
90 | - 'pessoa' => 1, | ||
91 | - 'curso' => 3, | ||
92 | - 'confirmado' => TRUE | ||
93 | - )); | ||
94 | - | ||
95 | - $mapper->save($entity); | ||
96 | - | ||
97 | - $this->assertTablesEqual( | ||
98 | - $this->createXMLDataSet($this->getFixture('matricula-depois-salvo.xml')) | ||
99 | - ->getTable('matricula'), | ||
100 | - $this->getConnection() | ||
101 | - ->createDataSet() | ||
102 | - ->getTable('matricula') | ||
103 | - ); | ||
104 | - } | ||
105 | - | ||
106 | - public function testAtualizaRegistroComChaveComposta() | ||
107 | - { | ||
108 | - $mapper = new CoreExt_EntityCompoundDataMapperStub($this->getDbAdapter()); | ||
109 | - | ||
110 | - $entity = new CoreExt_EntityCompoundStub(array( | ||
111 | - 'pessoa' => 1, | ||
112 | - 'curso' => 2, | ||
113 | - 'confirmado' => TRUE | ||
114 | - )); | ||
115 | - | ||
116 | - // Marca como se tivesse sido carregado, para forçar CoreExt_DataMapper | ||
117 | - // a usar o INSERT. | ||
118 | - $entity->markOld(); | ||
119 | - | ||
120 | - $mapper->save($entity); | ||
121 | - | ||
122 | - $this->assertTablesEqual( | ||
123 | - $this->createXMLDataSet($this->getFixture('matricula-depois-atualizado.xml')) | ||
124 | - ->getTable('matricula'), | ||
125 | - $this->getConnection() | ||
126 | - ->createDataSet() | ||
127 | - ->getTable('matricula') | ||
128 | - ); | ||
129 | - } | ||
130 | - | ||
131 | - public function testApagaRegistroComChaveComposta() | ||
132 | - { | ||
133 | - $mapper = new CoreExt_EntityCompoundDataMapperStub($this->getDbAdapter()); | ||
134 | - | ||
135 | - $entity = new CoreExt_EntityCompoundStub(array( | ||
136 | - 'pessoa' => 1, | ||
137 | - 'curso' => 2 | ||
138 | - )); | ||
139 | - | ||
140 | - $mapper->delete($entity); | ||
141 | - | ||
142 | - $this->assertTablesEqual( | ||
143 | - $this->createXMLDataSet($this->getFixture('matricula-depois-removido.xml')) | ||
144 | - ->getTable('matricula'), | ||
145 | - $this->getConnection() | ||
146 | - ->createDataSet() | ||
147 | - ->getTable('matricula') | ||
148 | - ); | ||
149 | - | ||
150 | - // Apaga usando array com os valores da chave | ||
151 | - $mapper->delete(array('pessoa' => 1, 'curso' => 1)); | ||
152 | - $this->assertEquals(0, $this->getConnection()->createDataSet() | ||
153 | - ->getTable('matricula')->getRowCount()); | ||
154 | - } | ||
155 | -} | ||
156 | \ No newline at end of file | 0 | \ No newline at end of file |
ieducar/tests/unit/CoreExt/DataMapper/IntegrationTest.php
@@ -1,247 +0,0 @@ | @@ -1,247 +0,0 @@ | ||
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * i-Educar - Sistema de gestão escolar | ||
5 | - * | ||
6 | - * Copyright (C) 2006 Prefeitura Municipal de Itajaí | ||
7 | - * <ctima@itajai.sc.gov.br> | ||
8 | - * | ||
9 | - * Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo | ||
10 | - * sob os termos da Licença Pública Geral GNU conforme publicada pela Free | ||
11 | - * Software Foundation; tanto a versão 2 da Licença, como (a seu critério) | ||
12 | - * qualquer versão posterior. | ||
13 | - * | ||
14 | - * Este programa é distribuído na expectativa de que seja útil, porém, SEM | ||
15 | - * NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU | ||
16 | - * ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral | ||
17 | - * do GNU para mais detalhes. | ||
18 | - * | ||
19 | - * Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto | ||
20 | - * com este programa; se não, escreva para a Free Software Foundation, Inc., no | ||
21 | - * endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | - * | ||
23 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
24 | - * @category i-Educar | ||
25 | - * @license @@license@@ | ||
26 | - * @package CoreExt_DataMapper | ||
27 | - * @subpackage IntegrationTests | ||
28 | - * @since Arquivo disponível desde a versão 1.1.0 | ||
29 | - * @version $Id$ | ||
30 | - */ | ||
31 | - | ||
32 | -require_once 'CoreExt/_stub/EntityDataMapper.php'; | ||
33 | - | ||
34 | -/** | ||
35 | - * CoreExt_DataMapper_IntegrationTest class. | ||
36 | - * | ||
37 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
38 | - * @category i-Educar | ||
39 | - * @license @@license@@ | ||
40 | - * @package CoreExt_DataMapper | ||
41 | - * @subpackage IntegrationTests | ||
42 | - * @since Classe disponível desde a versão 1.1.0 | ||
43 | - * @version @@package_version@@ | ||
44 | - */ | ||
45 | -class CoreExt_DataMapper_IntegrationTest extends IntegrationBaseTest | ||
46 | -{ | ||
47 | - /** | ||
48 | - * Cria a tabela do objeto CoreExt_DataMapper para testes. | ||
49 | - */ | ||
50 | - public function __construct() | ||
51 | - { | ||
52 | - parent::__construct(); | ||
53 | - CoreExt_EntityDataMapperStub::createTable($this->getDbAdapter()); | ||
54 | - } | ||
55 | - | ||
56 | - protected function setUp() | ||
57 | - { | ||
58 | - parent::setUp(); | ||
59 | - CoreExt_DataMapper::resetDefaultDbAdapter(); | ||
60 | - } | ||
61 | - | ||
62 | - public function getDataSet() | ||
63 | - { | ||
64 | - return $this->createXMLDataSet($this->getFixture('pessoa.xml')); | ||
65 | - } | ||
66 | - | ||
67 | - public function testInicializaInstanciaDefaultDeClsbanco() | ||
68 | - { | ||
69 | - $mapper = new CoreExt_EntityDataMapperStub(); | ||
70 | - $this->assertType('clsBanco', $mapper->getDbAdapter()); | ||
71 | - } | ||
72 | - | ||
73 | - public function testRecuperaTodosOsRegistros() | ||
74 | - { | ||
75 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
76 | - $found = $mapper->findAll(); | ||
77 | - | ||
78 | - $this->assertTablesEqual( | ||
79 | - $this->getDataSet() | ||
80 | - ->getTable('pessoa'), | ||
81 | - $this->getConnection() | ||
82 | - ->createDataSet() | ||
83 | - ->getTable('pessoa') | ||
84 | - ); | ||
85 | - } | ||
86 | - | ||
87 | - public function testRecuperaTodosOsRegistrosSelecionandoColunasExplicitamente() | ||
88 | - { | ||
89 | - $expected = array( | ||
90 | - new CoreExt_EntityStub(array('id' => 1, 'nome' => 'Arnaldo Antunes')), | ||
91 | - new CoreExt_EntityStub(array('id' => 2, 'nome' => 'Marvin Gaye')) | ||
92 | - ); | ||
93 | - | ||
94 | - // Marca como se tivesse sido carregado, para garantir a comparação | ||
95 | - $expected[0]->markOld(); | ||
96 | - $expected[1]->markOld(); | ||
97 | - | ||
98 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
99 | - $found = $mapper->findAll(array('nome')); | ||
100 | - | ||
101 | - $this->assertEquals($expected, $found); | ||
102 | - } | ||
103 | - | ||
104 | - public function testRecuperaRegistroUnico() | ||
105 | - { | ||
106 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
107 | - $found = $mapper->find(1); | ||
108 | - | ||
109 | - $expected = new CoreExt_EntityStub(array( | ||
110 | - 'id' => 1, | ||
111 | - 'nome' => 'Arnaldo Antunes', | ||
112 | - 'estadoCivil' => 'solteiro', | ||
113 | - 'doador' => TRUE | ||
114 | - )); | ||
115 | - | ||
116 | - // Marca como se tivesse sido carregado, para garantir a comparação | ||
117 | - $expected->markOld(); | ||
118 | - | ||
119 | - $this->assertEquals($expected, $found); | ||
120 | - $this->assertFalse($found->isNew()); | ||
121 | - } | ||
122 | - | ||
123 | - public function testRecuperaRegistroComParametrosWhere() | ||
124 | - { | ||
125 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
126 | - $found = $mapper->findAll(array(), array('estadoCivil' => 'solteiro')); | ||
127 | - | ||
128 | - $expected = new CoreExt_EntityStub(array( | ||
129 | - 'id' => 1, | ||
130 | - 'nome' => 'Arnaldo Antunes', | ||
131 | - 'estadoCivil' => 'solteiro', | ||
132 | - 'doador' => TRUE | ||
133 | - )); | ||
134 | - | ||
135 | - // Marca como se tivesse sido carregado, para garantir a comparação | ||
136 | - $expected->markOld(); | ||
137 | - | ||
138 | - $this->assertEquals($expected, $found[0]); | ||
139 | - } | ||
140 | - | ||
141 | - public function testCadastraNovoRegistro() | ||
142 | - { | ||
143 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
144 | - | ||
145 | - $entity = new CoreExt_EntityStub(array( | ||
146 | - 'nome' => 'Fernando Nascimento', | ||
147 | - 'estadoCivil' => 'solteiro', | ||
148 | - 'doador' => TRUE | ||
149 | - )); | ||
150 | - | ||
151 | - $mapper->save($entity); | ||
152 | - | ||
153 | - $this->assertTablesEqual( | ||
154 | - $this->createXMLDataSet($this->getFixture('pessoa-depois-salvo.xml')) | ||
155 | - ->getTable('pessoa'), | ||
156 | - $this->getConnection() | ||
157 | - ->createDataSet() | ||
158 | - ->getTable('pessoa') | ||
159 | - ); | ||
160 | - } | ||
161 | - | ||
162 | - public function testAtualizaRegistroCasoAChavePrimariaEstejaSetada() | ||
163 | - { | ||
164 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
165 | - | ||
166 | - $entity = new CoreExt_EntityStub(array( | ||
167 | - 'id' => 2, | ||
168 | - 'nome' => 'Marvin Gaye', | ||
169 | - 'estadoCivil' => 'solteiro', | ||
170 | - 'doador' => NULL | ||
171 | - )); | ||
172 | - | ||
173 | - $mapper->save($entity); | ||
174 | - | ||
175 | - $this->assertTablesEqual( | ||
176 | - $this->createXMLDataSet($this->getFixture('pessoa-depois-atualizado.xml')) | ||
177 | - ->getTable('pessoa'), | ||
178 | - $this->getConnection() | ||
179 | - ->createDataSet() | ||
180 | - ->getTable('pessoa') | ||
181 | - ); | ||
182 | - } | ||
183 | - | ||
184 | - /** | ||
185 | - * @expectedException Exception | ||
186 | - */ | ||
187 | - public function testCadastraNovoRegistroLancaExcecaoNaoVerificadaNosErrosDeValidacao() | ||
188 | - { | ||
189 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
190 | - | ||
191 | - $entity = new CoreExt_EntityStub(array( | ||
192 | - 'nome' => '', | ||
193 | - 'estadoCivil' => 'solteiro', | ||
194 | - 'doador' => TRUE | ||
195 | - )); | ||
196 | - | ||
197 | - $mapper->save($entity); | ||
198 | - } | ||
199 | - | ||
200 | - public function testAtualizaRegistro() | ||
201 | - { | ||
202 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
203 | - $entity = $mapper->find(2); | ||
204 | - $entity->estadoCivil = 'solteiro'; | ||
205 | - $entity->doador = ''; | ||
206 | - | ||
207 | - $mapper->save($entity); | ||
208 | - | ||
209 | - $this->assertTablesEqual( | ||
210 | - $this->createXMLDataSet($this->getFixture('pessoa-depois-atualizado.xml')) | ||
211 | - ->getTable('pessoa'), | ||
212 | - $this->getConnection() | ||
213 | - ->createDataSet() | ||
214 | - ->getTable('pessoa') | ||
215 | - ); | ||
216 | - } | ||
217 | - | ||
218 | - public function testApagaRegistroUsandoInstanciaDeEntity() | ||
219 | - { | ||
220 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
221 | - $entity = $mapper->find(1); | ||
222 | - | ||
223 | - $mapper->delete($entity); | ||
224 | - | ||
225 | - $this->assertTablesEqual( | ||
226 | - $this->createXMLDataSet($this->getFixture('pessoa-depois-removido.xml')) | ||
227 | - ->getTable('pessoa'), | ||
228 | - $this->getConnection() | ||
229 | - ->createDataSet() | ||
230 | - ->getTable('pessoa') | ||
231 | - ); | ||
232 | - } | ||
233 | - | ||
234 | - public function testApagaRegistroUsandoValorInteiro() | ||
235 | - { | ||
236 | - $mapper = new CoreExt_EntityDataMapperStub($this->getDbAdapter()); | ||
237 | - $mapper->delete(1); | ||
238 | - | ||
239 | - $this->assertTablesEqual( | ||
240 | - $this->createXMLDataSet($this->getFixture('pessoa-depois-removido.xml')) | ||
241 | - ->getTable('pessoa'), | ||
242 | - $this->getConnection() | ||
243 | - ->createDataSet() | ||
244 | - ->getTable('pessoa') | ||
245 | - ); | ||
246 | - } | ||
247 | -} | ||
248 | \ No newline at end of file | 0 | \ No newline at end of file |
ieducar/tests/unit/CoreExt/DataMapper/LazyLoadIntegrationTest.php
@@ -1,190 +0,0 @@ | @@ -1,190 +0,0 @@ | ||
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * i-Educar - Sistema de gestão escolar | ||
5 | - * | ||
6 | - * Copyright (C) 2006 Prefeitura Municipal de Itajaí | ||
7 | - * <ctima@itajai.sc.gov.br> | ||
8 | - * | ||
9 | - * Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo | ||
10 | - * sob os termos da Licença Pública Geral GNU conforme publicada pela Free | ||
11 | - * Software Foundation; tanto a versão 2 da Licença, como (a seu critério) | ||
12 | - * qualquer versão posterior. | ||
13 | - * | ||
14 | - * Este programa é distribuído na expectativa de que seja útil, porém, SEM | ||
15 | - * NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU | ||
16 | - * ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral | ||
17 | - * do GNU para mais detalhes. | ||
18 | - * | ||
19 | - * Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto | ||
20 | - * com este programa; se não, escreva para a Free Software Foundation, Inc., no | ||
21 | - * endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | - * | ||
23 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
24 | - * @category i-Educar | ||
25 | - * @license @@license@@ | ||
26 | - * @package CoreExt_DataMapper | ||
27 | - * @subpackage IntegrationTests | ||
28 | - * @since Arquivo disponível desde a versão 1.1.0 | ||
29 | - * @version $Id$ | ||
30 | - */ | ||
31 | - | ||
32 | -require_once 'CoreExt/_stub/ParentEntityDataMapper.php'; | ||
33 | -require_once 'CoreExt/_stub/ChildEntityDataMapper.php'; | ||
34 | - | ||
35 | -/** | ||
36 | - * CoreExt_DataMapper_LazyLoadIntegrationTest class. | ||
37 | - * | ||
38 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
39 | - * @category i-Educar | ||
40 | - * @license @@license@@ | ||
41 | - * @package CoreExt_DataMapper | ||
42 | - * @subpackage IntegrationTests | ||
43 | - * @since Classe disponível desde a versão 1.1.0 | ||
44 | - * @version @@package_version@@ | ||
45 | - */ | ||
46 | -class CoreExt_DataMapper_LazyLoadIntegrationTest extends IntegrationBaseTest | ||
47 | -{ | ||
48 | - /** | ||
49 | - * Cria as tabelas parent e child. | ||
50 | - */ | ||
51 | - public function __construct() | ||
52 | - { | ||
53 | - parent::__construct(); | ||
54 | - CoreExt_DataMapper::setDefaultDbAdapter($this->getDbAdapter()); | ||
55 | - CoreExt_ParentEntityDataMapperStub::createTable($this->getDbAdapter()); | ||
56 | - CoreExt_ChildEntityDataMapperStub::createTable($this->getDbAdapter()); | ||
57 | - } | ||
58 | - | ||
59 | - public function setUp() | ||
60 | - { | ||
61 | - parent::setUp(); | ||
62 | - CoreExt_DataMapper::setDefaultDbAdapter($this->getDbAdapter()); | ||
63 | - } | ||
64 | - | ||
65 | - public function getDataSet() | ||
66 | - { | ||
67 | - return $this->createXMLDataSet($this->getFixture('parent-child.xml')); | ||
68 | - } | ||
69 | - | ||
70 | - public function testRecuperaTodosOsRegistros() | ||
71 | - { | ||
72 | - $mapper = new CoreExt_ParentEntityDataMapperStub(); | ||
73 | - $found = $mapper->findAll(); | ||
74 | - | ||
75 | - $this->assertTablesEqual( | ||
76 | - $this->getDataSet() | ||
77 | - ->getTable('parent'), | ||
78 | - $this->getConnection() | ||
79 | - ->createDataSet() | ||
80 | - ->getTable('parent') | ||
81 | - ); | ||
82 | - | ||
83 | - $this->assertTablesEqual( | ||
84 | - $this->getDataSet() | ||
85 | - ->getTable('child'), | ||
86 | - $this->getConnection() | ||
87 | - ->createDataSet() | ||
88 | - ->getTable('child') | ||
89 | - ); | ||
90 | - } | ||
91 | - | ||
92 | - public function testLazyLoadUsandoDefinicaoDeDataMapper() | ||
93 | - { | ||
94 | - $definition = array( | ||
95 | - 'class' => 'CoreExt_ChildEntityDataMapperStub', | ||
96 | - 'file' => 'CoreExt/_stub/ChildEntityDataMapper.php' | ||
97 | - ); | ||
98 | - | ||
99 | - $parentMapper = new CoreExt_ParentEntityDataMapperStub(); | ||
100 | - $parent = $parentMapper->find(1); | ||
101 | - $parent->setReference('filho', $definition); | ||
102 | - | ||
103 | - $this->assertEquals(1, $parent->filho->id); | ||
104 | - $this->assertEquals('Antunes Jr.', $parent->filho->nome); | ||
105 | - } | ||
106 | - | ||
107 | - /** | ||
108 | - * Uma referência NULL para CoreExt_Enum retorna NULL logo no início da | ||
109 | - * lógica de CoreExt_Entity::_loadReference(). | ||
110 | - * @group CoreExt_Entity | ||
111 | - */ | ||
112 | - public function testLazyLoadUsandoDefinicaoDeEnumComReferenciaNula() | ||
113 | - { | ||
114 | - $child = new CoreExt_ChildEntityStub( | ||
115 | - array('id' => 3, 'sexo' => 1, 'tipoSanguineo' => NULL) | ||
116 | - ); | ||
117 | - $this->assertNull($child->tipoSanguineo); | ||
118 | - } | ||
119 | - | ||
120 | - /** | ||
121 | - * Referência 0 é perfeitamente válido para um CoreExt_Enum. Se não existir o | ||
122 | - * offset no Enum, retorna NULL | ||
123 | - * @group CoreExt_Entity | ||
124 | - */ | ||
125 | - public function testLazyLoadUsandoDefinicaoDeEnumComReferenciaZero() | ||
126 | - { | ||
127 | - $child = new CoreExt_ChildEntityStub( | ||
128 | - array('id' => 3, 'sexo' => 1, 'tipoSanguineo' => 0) | ||
129 | - ); | ||
130 | - $this->assertNull($child->tipoSanguineo); | ||
131 | - } | ||
132 | - | ||
133 | - /** | ||
134 | - * Uma referência NULL é válida para as referências que explicitam a chave | ||
135 | - * null = TRUE. | ||
136 | - * @group CoreExt_Entity | ||
137 | - */ | ||
138 | - public function testLazyLoadUsandoDefinicaoDeDataMapperComReferenciaNula() | ||
139 | - { | ||
140 | - $parent = new CoreExt_ParentEntityStub( | ||
141 | - array('id' => 3, 'nome' => 'Paul M.', 'filho' => NULL) | ||
142 | - ); | ||
143 | - $this->assertNull($parent->filho); | ||
144 | - } | ||
145 | - | ||
146 | - /** | ||
147 | - * Referência 0 em DataMapper força o retorno de NULL. Isso é feito em | ||
148 | - * razão do HTML não suportar um valor NULL e por conta dos validadores | ||
149 | - * client-side legados do i-Educar não considerarem "" (string vazia) um | ||
150 | - * valor válido para submit. | ||
151 | - * @group CoreExt_Entity | ||
152 | - */ | ||
153 | - public function testLazyLoadUsandoDefinicaoDeDataMapperComReferenciaZero() | ||
154 | - { | ||
155 | - $parent = new CoreExt_ParentEntityStub( | ||
156 | - array('id' => 3, 'nome' => 'Paul M.', 'filho' => 0) | ||
157 | - ); | ||
158 | - $this->assertNull($parent->filho); | ||
159 | - } | ||
160 | - | ||
161 | - public function testInsereRegistros() | ||
162 | - { | ||
163 | - $child = new CoreExt_ChildEntityStub(array('nome' => 'Nascimento Jr.')); | ||
164 | - $childMapper = new CoreExt_ChildEntityDataMapperStub(); | ||
165 | - $childMapper->save($child); | ||
166 | - | ||
167 | - $parent = new CoreExt_ParentEntityStub(array('nome' => 'Fernando Nascimento', 'filho' => 3)); | ||
168 | - $parentMapper = new CoreExt_ParentEntityDataMapperStub(); | ||
169 | - $parentMapper->save($parent); | ||
170 | - | ||
171 | - $parent = $parentMapper->find(3); | ||
172 | - $child = $childMapper->find(3); | ||
173 | - | ||
174 | - $this->assertEquals($child, $parent->filho); | ||
175 | - } | ||
176 | - | ||
177 | - /** | ||
178 | - * Testa se um CoreExt_Entity retornado por um CoreExt_DataMapper configura | ||
179 | - * a reference e o atributo, com um valor referência e a instância, | ||
180 | - * respectivamente. | ||
181 | - * @group Overload | ||
182 | - */ | ||
183 | - public function testRegistroRecuperadoConfiguraReferenceParaLazyLoadPosterior() | ||
184 | - { | ||
185 | - $parentMapper = new CoreExt_ParentEntityDataMapperStub(); | ||
186 | - $parent = $parentMapper->find(1); | ||
187 | - $this->assertEquals(1, $parent->get('filho')); | ||
188 | - $this->assertType('CoreExt_ChildEntityStub', $parent->filho); | ||
189 | - } | ||
190 | -} | ||
191 | \ No newline at end of file | 0 | \ No newline at end of file |
ieducar/tests/unit/CoreExt/DataMapper/StaticAdapterTest.php
@@ -1,98 +0,0 @@ | @@ -1,98 +0,0 @@ | ||
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * i-Educar - Sistema de gestão escolar | ||
5 | - * | ||
6 | - * Copyright (C) 2006 Prefeitura Municipal de Itajaí | ||
7 | - * <ctima@itajai.sc.gov.br> | ||
8 | - * | ||
9 | - * Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo | ||
10 | - * sob os termos da Licença Pública Geral GNU conforme publicada pela Free | ||
11 | - * Software Foundation; tanto a versão 2 da Licença, como (a seu critério) | ||
12 | - * qualquer versão posterior. | ||
13 | - * | ||
14 | - * Este programa é distribuído na expectativa de que seja útil, porém, SEM | ||
15 | - * NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU | ||
16 | - * ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral | ||
17 | - * do GNU para mais detalhes. | ||
18 | - * | ||
19 | - * Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto | ||
20 | - * com este programa; se não, escreva para a Free Software Foundation, Inc., no | ||
21 | - * endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | - * | ||
23 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
24 | - * @category i-Educar | ||
25 | - * @license @@license@@ | ||
26 | - * @package CoreExt_DataMapper | ||
27 | - * @subpackage IntegrationTests | ||
28 | - * @since Arquivo disponível desde a versão 1.1.0 | ||
29 | - * @version $Id$ | ||
30 | - */ | ||
31 | - | ||
32 | -require_once 'CoreExt/_stub/EntityDataMapper.php'; | ||
33 | - | ||
34 | -/** | ||
35 | - * CoreExt_DataMapper_StaticAdapterTest class. | ||
36 | - * | ||
37 | - * Classe com testes para assegurar que a interface de configuração de adapter | ||
38 | - * de banco de dados estática de CoreExt_DataMapper funciona. | ||
39 | - * | ||
40 | - * @author Eriksen Costa Paixão <eriksen.paixao_bs@cobra.com.br> | ||
41 | - * @category i-Educar | ||
42 | - * @license @@license@@ | ||
43 | - * @package CoreExt_DataMapper | ||
44 | - * @subpackage IntegrationTests | ||
45 | - * @since Classe disponível desde a versão 1.1.0 | ||
46 | - * @version @@package_version@@ | ||
47 | - */ | ||
48 | -class CoreExt_DataMapper_StaticAdapterTest extends IntegrationBaseTest | ||
49 | -{ | ||
50 | - protected function setUp() | ||
51 | - { | ||
52 | - parent::setUp(); | ||
53 | - CoreExt_DataMapper::setDefaultDbAdapter($this->getDbAdapter()); | ||
54 | - } | ||
55 | - | ||
56 | - protected function tearDown() | ||
57 | - { | ||
58 | - parent::tearDown(); | ||
59 | - CoreExt_DataMapper::resetDefaultDbAdapter(); | ||
60 | - } | ||
61 | - | ||
62 | - public function getSetUpOperation() | ||
63 | - { | ||
64 | - return PHPUnit_Extensions_Database_Operation_Factory::NONE(); | ||
65 | - } | ||
66 | - | ||
67 | - /** | ||
68 | - * Esse método precisa ser sobrescrito mas a utilidade dele nesse teste é | ||
69 | - * irrelevante. | ||
70 | - */ | ||
71 | - public function getDataSet() | ||
72 | - { | ||
73 | - return $this->createXMLDataSet($this->getFixture('pessoa.xml')); | ||
74 | - } | ||
75 | - | ||
76 | - public function testAdapterParaNovaInstanciaDeDataMapperEOStatic() | ||
77 | - { | ||
78 | - $entityMapper = new CoreExt_EntityDataMapperStub(); | ||
79 | - $this->assertSame($this->getDbAdapter(), $entityMapper->getDbAdapter()); | ||
80 | - | ||
81 | - $entityMapper = new CoreExt_EntityDataMapperStub(); | ||
82 | - $this->assertSame($this->getDbAdapter(), $entityMapper->getDbAdapter()); | ||
83 | - } | ||
84 | - | ||
85 | - public function testAdapterNoConstrutorSobrescreveOAdapterStaticPadrao() | ||
86 | - { | ||
87 | - $db = new CustomPdo('sqlite::memory:'); | ||
88 | - $entityMapper = new CoreExt_EntityDataMapperStub($db); | ||
89 | - $this->assertSame($db, $entityMapper->getDbAdapter()); | ||
90 | - } | ||
91 | - | ||
92 | - public function testResetarAdapterFazComQueODataMapperInstancieUmNovoAdapter() | ||
93 | - { | ||
94 | - CoreExt_EntityDataMapperStub::resetDefaultDbAdapter(); | ||
95 | - $entityMapper = new CoreExt_EntityDataMapperStub(); | ||
96 | - $this->assertNotSame($this->getDbAdapter(), $entityMapper->getDbAdapter()); | ||
97 | - } | ||
98 | -} | ||
99 | \ No newline at end of file | 0 | \ No newline at end of file |
@@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
1 | +file.reference.php-PHPUnit=../../../usr/share/php/PHPUnit | ||
2 | +include.path=\ | ||
3 | + ${php.global.include.path}:\ | ||
4 | + ${file.reference.php-PHPUnit} | ||
5 | +php.version=PHP_53 | ||
6 | +phpunit.bootstrap=ieducar/tests/bootstrap.php | ||
7 | +phpunit.bootstrap.create.tests=false | ||
8 | +phpunit.configuration=ieducar/phpunit.xml | ||
9 | +phpunit.run.test.files=true | ||
10 | +phpunit.script= | ||
11 | +phpunit.suite= | ||
12 | +phpunit.test.groups.ask=false | ||
13 | +source.encoding=ISO-8859-1 | ||
14 | +src.dir=. | ||
15 | +tags.asp=false | ||
16 | +tags.short=true | ||
17 | +test.src.dir=ieducar/tests | ||
18 | +web.root=. |
@@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
3 | + <type>org.netbeans.modules.php.project</type> | ||
4 | + <configuration> | ||
5 | + <data xmlns="http://www.netbeans.org/ns/php-project/1"> | ||
6 | + <name>ieducar</name> | ||
7 | + </data> | ||
8 | + </configuration> | ||
9 | +</project> |