From 6d56f8c855c00cd25321eba43e56388b861ecc19 Mon Sep 17 00:00:00 2001 From: Lucas D'Avila Date: Thu, 31 Jan 2013 21:39:38 -0200 Subject: [PATCH] Corrigido pesquisa de alunos e cep --- ieducar/intranet/educar_pesquisa_aluno.php | 6 +++--- ieducar/intranet/educar_pesquisa_cep_log_bairro.php | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ieducar/intranet/educar_pesquisa_aluno.php b/ieducar/intranet/educar_pesquisa_aluno.php index 1e1438b..e6564e2 100644 --- a/ieducar/intranet/educar_pesquisa_aluno.php +++ b/ieducar/intranet/educar_pesquisa_aluno.php @@ -130,8 +130,8 @@ class indice extends clsListagem null, null, null, - null -// $this->ref_cod_escola + null, + $this->ref_cod_escola ); $total = $obj_aluno->_total; @@ -184,4 +184,4 @@ function fecha() window.parent.document.forms[0].submit(); } } - \ No newline at end of file + diff --git a/ieducar/intranet/educar_pesquisa_cep_log_bairro.php b/ieducar/intranet/educar_pesquisa_cep_log_bairro.php index 29bb706..3d09732 100644 --- a/ieducar/intranet/educar_pesquisa_cep_log_bairro.php +++ b/ieducar/intranet/educar_pesquisa_cep_log_bairro.php @@ -115,14 +115,18 @@ class miolo1 extends clsListagem foreach ($lst_uf as $uf) { $array_uf[$uf['sigla_uf']] = $uf['nome']; } - if (! $_GET['ref_sigla_uf']) { $_GET['ref_sigla_uf'] = $coreExt['Config']->app->locale->province; } - - $this->campoLista('ref_sigla_uf', 'UF', $array_uf, $_GET['ref_sigla_uf'], + /* Portabilis: Foi comentada a linha abaixo e adicionado 'SC' no lugar de $_GET['ref_sigla_uf'], + para trazer o estado como defaut */ + /*$this->campoLista('ref_sigla_uf', 'UF', $array_uf, $_GET['ref_sigla_uf'], + '', FALSE, '');*/ + + $this->campoLista('ref_sigla_uf', 'UF', $array_uf, 'SC', '', FALSE, ''); + $this->addCabecalhos(array('Bairro', 'CEP', 'Logradouro', 'UF', 'Cidade')); $select = ' -- libgit2 0.21.2