Commit 6d56f8c855c00cd25321eba43e56388b861ecc19

Authored by Lucas D'Avila
1 parent b4cf95a2
Exists in master

Corrigido pesquisa de alunos e cep

ieducar/intranet/educar_pesquisa_aluno.php
@@ -130,8 +130,8 @@ class indice extends clsListagem @@ -130,8 +130,8 @@ class indice extends clsListagem
130 null, 130 null,
131 null, 131 null,
132 null, 132 null,
133 - null  
134 -// $this->ref_cod_escola 133 + null,
  134 + $this->ref_cod_escola
135 ); 135 );
136 136
137 $total = $obj_aluno->_total; 137 $total = $obj_aluno->_total;
@@ -184,4 +184,4 @@ function fecha() @@ -184,4 +184,4 @@ function fecha()
184 window.parent.document.forms[0].submit(); 184 window.parent.document.forms[0].submit();
185 } 185 }
186 } 186 }
187 -</script>  
188 \ No newline at end of file 187 \ No newline at end of file
  188 +</script>
ieducar/intranet/educar_pesquisa_cep_log_bairro.php
@@ -115,14 +115,18 @@ class miolo1 extends clsListagem @@ -115,14 +115,18 @@ class miolo1 extends clsListagem
115 foreach ($lst_uf as $uf) { 115 foreach ($lst_uf as $uf) {
116 $array_uf[$uf['sigla_uf']] = $uf['nome']; 116 $array_uf[$uf['sigla_uf']] = $uf['nome'];
117 } 117 }
118 -  
119 if (! $_GET['ref_sigla_uf']) { 118 if (! $_GET['ref_sigla_uf']) {
120 $_GET['ref_sigla_uf'] = $coreExt['Config']->app->locale->province; 119 $_GET['ref_sigla_uf'] = $coreExt['Config']->app->locale->province;
121 } 120 }
122 -  
123 - $this->campoLista('ref_sigla_uf', 'UF', $array_uf, $_GET['ref_sigla_uf'], 121 + /* Portabilis: Foi comentada a linha abaixo e adicionado 'SC' no lugar de $_GET['ref_sigla_uf'],
  122 + para trazer o estado como defaut */
  123 + /*$this->campoLista('ref_sigla_uf', 'UF', $array_uf, $_GET['ref_sigla_uf'],
  124 + '', FALSE, '');*/
  125 +
  126 + $this->campoLista('ref_sigla_uf', 'UF', $array_uf, 'SC',
124 '', FALSE, ''); 127 '', FALSE, '');
125 128
  129 +
126 $this->addCabecalhos(array('Bairro', 'CEP', 'Logradouro', 'UF', 'Cidade')); 130 $this->addCabecalhos(array('Bairro', 'CEP', 'Logradouro', 'UF', 'Cidade'));
127 131
128 $select = ' 132 $select = '