<?php
class AppLaporanJmlMhsBaruAsalSekolah extends Database {

   protected $mSqlFile= 'module/laporan_jml_mhs_baru_asal_sekolah/business/applaporanjmlmhsbaruasalsekolah.sql.php';

   function __construct($connectionNumber=0) {
      parent::__construct($connectionNumber);
      #$this->SetDebugOn();
   }
   
   function GetRekapMhsBaru($tahunMasuk,$semsMasuk,$jalur,$jenjang){
      $result =$this->Open($this->mSqlQueries['get_rekap_mhs_baru'], array('%'.$semsMasuk.'%',
                                                                           '%'.$tahunMasuk.'%',
                                                                           '%'.$jalur.'%',
                                                                           '%'.$jenjang.'%',
                                                                           '%'.$semsMasuk.'%'));
      #print_r($this->GetLastError());
      return $result;
   }
   

   function GetJenjangAkademik(){
      $result=$this->Open($this->mSqlQueries['get_jenjang_akademik'],array());
      return $result;
   }
   
   
   function GetJalurMasuk(){
      $result=$this->Open($this->mSqlQueries['get_jalur_masuk'],array());
      return $result;
   }
   
  
   function GetTahunMasuk(){
      $result=$this->Open($this->mSqlQueries['get_tahun_masuk'],array());
      return $result;
   }
   
   function GetSemesterMasuk(){
      $dataSemester[0]['id']="GANJIL";
      $dataSemester[0]['name']="GANJIL";
      $dataSemester[1]['id']="GENAP";
      $dataSemester[1]['name']="GENAP";
      return $dataSemester;
   }
   
   function GetPeriodeAktif(){
      $result=$this->Open($this->mSqlQueries['get_periode_aktif'],array());
      return $result[0]['nama'];
   }
   
   function GetTahunPeriodeAktif(){
      $result=$this->Open($this->mSqlQueries['get_tahun_periode_aktif'],array());
      return $result[0]['tahun'];
   }
   
//===DO===
}
?>
