busca de cpf para cadastro dos pais
This commit is contained in:
@@ -256,6 +256,33 @@ class Controller extends DBA{
|
||||
die('informação incompleta...');
|
||||
}
|
||||
}
|
||||
public function buscarCPF($CPF,$CIDADE){
|
||||
if(!$CPF==''){
|
||||
$this->sql = "SELECT * FROM ALUNO WHERE NR_CPF = ?";
|
||||
$Con = new Controller();
|
||||
$this->stmt = $Con -> getSTMT($CIDADE,$this->sql);
|
||||
$this->stmt->bindValue(1,$CPF);
|
||||
$this->stmt->execute();
|
||||
$this->res = $this->stmt->fetch(PDO::FETCH_OBJ);
|
||||
return $this-> res;
|
||||
}else{
|
||||
//caso o id não foi passado recebe essa mensagem
|
||||
die('informação incompleta...');
|
||||
}
|
||||
}
|
||||
public function buscarCadastroCPF($CPF){
|
||||
if(!$CPF==''){
|
||||
$this->sql = "SELECT * FROM usuarios WHERE CPF = ?";
|
||||
$this->stmt = $this->getMARIA()->prepare($this->sql);
|
||||
$this->stmt->bindValue(1,$CPF);
|
||||
$this->stmt->execute();
|
||||
$this->res = $this->stmt->fetch(PDO::FETCH_OBJ);
|
||||
return $this-> res;
|
||||
}else{
|
||||
//caso o id não foi passado recebe essa mensagem
|
||||
die('informação incompleta...');
|
||||
}
|
||||
}
|
||||
public function getFilhos($NOME,$PARENTESCO,$CIDADE){
|
||||
if($PARENTESCO=='PAI'){
|
||||
$this->sql = "SELECT a.CD_ALUNO,s.CD_MATRICULA,a.NR_RA,a.NO_PAI,a.NO_MAE, a.NO_ALUNO,a.DT_NASCIMENTO,s.ANO_FREQ,s.CD_SALA,ss.TURMA,ss.CD_SERIE,ps.DESC_SERIE,
|
||||
|
||||
Reference in New Issue
Block a user