fazendo get do ano letivo
This commit is contained in:
@@ -100,6 +100,20 @@ class Controller extends DBA{
|
||||
die('informação incompleta...');
|
||||
}
|
||||
}
|
||||
public function getMostrarBoletim($ANO,$CIDADE){
|
||||
if(!$ANO==''){
|
||||
$this->sql = "SELECT FIRST 1 * FROM SEC_INTERVALO_DATAS WHERE EXTRACT(YEAR FROM DT_INICIAL) = ? ORDER BY DT_INICIAL";
|
||||
$Con = new Controller();
|
||||
$this->stmt = $Con -> getSTMT($CIDADE,$this->sql);
|
||||
$this->stmt->bindValue(1,$ANO);
|
||||
$this->stmt->execute();
|
||||
$this->res = $this->stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
return $this-> res;
|
||||
}else{
|
||||
//caso o id não foi passado recebe essa mensagem
|
||||
die('informação incompleta...');
|
||||
}
|
||||
}
|
||||
public function getPasse($CD_ALUNO,$CIDADE){
|
||||
if(!$CD_ALUNO == ''){
|
||||
$this->sql = "SELECT PC.DT_CADASTRO,PC.NR_CARTEIRA,PC.VALIDADE_CARTEIRINHA, PC.NR_TRANSPORTE, PC.TURNO, A.NR_RA, A.DT_NASCIMENTO,PS.DESC_SERIE, PS.GRAU
|
||||
|
||||
Reference in New Issue
Block a user