Commit 3484302138a167bceb92ec16a0bf3fd89accfce0

Authored by Lucas Schmoeller da Silva
1 parent 84ea703e
Exists in master

Corrigidos filtros na listagem de alunos

Alterado forma em que código do aluno e código do inep são filtrados para não ter problemas com números grandes

portabilis/ieducar#103
ieducar/intranet/educar_aluno_lst.php
@@ -106,8 +106,8 @@ class indice extends clsListagem @@ -106,8 +106,8 @@ class indice extends clsListagem
106 106
107 $this->addBanner( "imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet" ); 107 $this->addBanner( "imagens/nvp_top_intranet.jpg", "imagens/nvp_vert_intranet.jpg", "Intranet" );
108 108
109 - $this->campoNumero("cod_aluno","Código Aluno",$this->cod_aluno,20,255,false);  
110 - $this->campoNumero("cod_inep","Código INEP",$this->cod_inep,20,255,false); 109 + $this->campoNumero("cod_aluno","Código Aluno",$this->cod_aluno,20,9,false);
  110 + $this->campoNumero("cod_inep","Código INEP",$this->cod_inep,20,12,false);
111 $this->campoTexto("nome_aluno","Nome do aluno", $this->nome_aluno,50,255,false); 111 $this->campoTexto("nome_aluno","Nome do aluno", $this->nome_aluno,50,255,false);
112 $this->campoData("data_nascimento", "Data de Nascimento", $this->data_nascimento); 112 $this->campoData("data_nascimento", "Data de Nascimento", $this->data_nascimento);
113 $this->campoTexto("nome_pai", "Nome do Pai", $this->nome_pai, 50, 255); 113 $this->campoTexto("nome_pai", "Nome do Pai", $this->nome_pai, 50, 255);
ieducar/intranet/include/pmieducar/clsPmieducarAluno.inc.php
@@ -694,7 +694,7 @@ class clsPmieducarAluno @@ -694,7 +694,7 @@ class clsPmieducarAluno
694 $whereAnd = ' WHERE '; 694 $whereAnd = ' WHERE ';
695 695
696 if(is_numeric($int_cod_aluno)) { 696 if(is_numeric($int_cod_aluno)) {
697 - $filtros .= "{$whereAnd} cod_aluno = '{$int_cod_aluno}'"; 697 + $filtros .= "{$whereAnd} cod_aluno = {$int_cod_aluno}";
698 $whereAnd = ' AND '; 698 $whereAnd = ' AND ';
699 } 699 }
700 700
@@ -860,7 +860,7 @@ class clsPmieducarAluno @@ -860,7 +860,7 @@ class clsPmieducarAluno
860 } 860 }
861 861
862 if (!empty($cod_inep) && is_numeric($cod_inep)) { 862 if (!empty($cod_inep) && is_numeric($cod_inep)) {
863 - $filtros .= "{$whereAnd} cod_aluno = ( SELECT cod_aluno FROM modules.educacenso_cod_aluno WHERE cod_aluno_inep = '{$cod_inep}')"; 863 + $filtros .= "{$whereAnd} cod_aluno = ( SELECT cod_aluno FROM modules.educacenso_cod_aluno WHERE cod_aluno_inep = {$cod_inep})";
864 $whereAnd = ' AND '; 864 $whereAnd = ' AND ';
865 } 865 }
866 866