Commit addde04f63cff70fa62f6bbb33f79c7a317edfc5

Authored by Eriksen Costa
1 parent 22bad1ee
Exists in master

Atualiza listagem de servidores para permitir a busca por todos os servidores da

instituição para usuários do nível "escola", mantendo a listagem padrão com os
servidores alocados na mesma escola do usuário.
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
ieducar/intranet/educar_servidor_lst.php
... ... @@ -103,9 +103,9 @@ class indice extends clsListagem
103 103 'Instituição'
104 104 ));
105 105  
106   - $get_escola = TRUE;
107   - $obrigatorio = TRUE;
108   - $exibe_nm_escola = TRUE;
  106 + $get_escola = TRUE;
  107 + $obrigatorio = TRUE;
  108 + $exibe_nm_escola = TRUE;
109 109  
110 110 include 'include/pmieducar/educar_campo_lista.php';
111 111  
... ... @@ -123,7 +123,7 @@ class indice extends clsListagem
123 123 $parametros->setSubmit(0);
124 124 $parametros->adicionaCampoSelect( 'cod_servidor', 'ref_cod_pessoa_fj', 'nome');
125 125  
126   - $this->campoListaPesq( 'cod_servidor', 'Servidor', $opcoes, $this->cod_servidor,
  126 + $this->campoListaPesq('cod_servidor', 'Servidor', $opcoes, $this->cod_servidor,
127 127 'pesquisa_funcionario_lst.php', '', FALSE, '', '', NULL, NULL, '', FALSE,
128 128 $parametros->serializaCampos() . '&com_matricula=false', TRUE);
129 129  
... ... @@ -158,12 +158,12 @@ class indice extends clsListagem
158 158 NULL,
159 159 NULL,
160 160 NULL,
161   - $this->ref_cod_escola,
  161 + ! isset($_GET['busca']) ? $this->ref_cod_escola : NULL,
162 162 NULL,
163 163 NULL,
164 164 NULL,
165 165 NULL,
166   - 1
  166 + ! isset($_GET['busca']) ? 1 : NULL
167 167 );
168 168  
169 169 $total = $obj_servidor->_total;
... ...