diff options
author | M.Gergo | 2018-09-10 17:41:41 +0200 |
---|---|---|
committer | M.Gergo | 2018-09-10 17:41:41 +0200 |
commit | 20361aa31c7749c47416ea9b76fde393fa28cec6 (patch) | |
tree | 8279eb2f106612d8e217ef5c900f552c3855d4ee /mayor-orig/www/include/modules/naplo/share | |
parent | c144cdab334ea104187cc80bf730259009e5fe8a (diff) | |
download | mayor-20361aa31c7749c47416ea9b76fde393fa28cec6.tar.gz mayor-20361aa31c7749c47416ea9b76fde393fa28cec6.zip |
Rev: 4365
Diffstat (limited to 'mayor-orig/www/include/modules/naplo/share')
-rw-r--r-- | mayor-orig/www/include/modules/naplo/share/diak.php | 27 | ||||
-rw-r--r-- | mayor-orig/www/include/modules/naplo/share/targy.php | 6 |
2 files changed, 33 insertions, 0 deletions
diff --git a/mayor-orig/www/include/modules/naplo/share/diak.php b/mayor-orig/www/include/modules/naplo/share/diak.php index 1eb746d6..24fade39 100644 --- a/mayor-orig/www/include/modules/naplo/share/diak.php +++ b/mayor-orig/www/include/modules/naplo/share/diak.php @@ -608,4 +608,31 @@ return db_query($q, array('fv'=>'getDiakNaploSorszam', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v)); } + + function getDiakNyelvvizsga($diakId) { + $q = "SELECT * FROM diakNyelvvizsga WHERE diakId=%u"; + $v = array($diakId); + return db_query($q, array('fv'=>'getDiaknyelvvizsga', 'modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v)); + } + + function diakNyelvvizsgaFelvesz($ADAT) { + $q = "INSERT INTO diakNyelvvizsga (diakId,targyId,vizsgaSzint,vizsgaTipus,vizsgaDt,vizsgaIntezmeny,vizsgaBizonyitvanySzam) + VALUES (%u,%u,'%s', '%s', '%s', '%s', '%s')"; + $v = array($ADAT['diakId'],$ADAT['targyId'],$ADAT['vizsgaSzint'],$ADAT['vizsgaTipus'],$ADAT['vizsgaDt'],$ADAT['vizsgaIntezmeny'],$ADAT['vizsgaBizonyitvanySzam']); + return db_query($q, array('fv'=>'diakNyelvvizsgaFelvesz', 'modul'=>'naplo_intezmeny','result'=>'record','values'=>$v)); + } + function diakNyelvvizsgaTorol($ADAT) { + if (count($ADAT)>0) { + $q = "DELETE FROM diakNyelvvizsga WHERE nyelvvizsgaId IN (".implode(',',$ADAT).") "; + return db_query($q, array('fv'=>'diakNyelvvizsgaTorol', 'modul'=>'naplo_intezmeny','values'=>$v)); + } + } + + function getNyelvvizsgak($SET) { + if ($SET['igDt']=='') $SET['igDt'] = date('Y-m-d', strtotime('+365 days',strtotime($SET['tolDt']))); + $q = "SELECT * FROM diakNyelvvizsga WHERE vizsgaDt>='%s' AND vizsgaDt<'%s'"; + $v = array($SET['tolDt'],$SET['igDt']); + return $r = db_query($q, array('fv'=>'getDiaknyelvvizsga', 'modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v)); + } + ?> diff --git a/mayor-orig/www/include/modules/naplo/share/targy.php b/mayor-orig/www/include/modules/naplo/share/targy.php index 7a5280ea..2831e4cc 100644 --- a/mayor-orig/www/include/modules/naplo/share/targy.php +++ b/mayor-orig/www/include/modules/naplo/share/targy.php @@ -423,4 +423,10 @@ return $r = db_query($q, array('fv'=>'getTargyNev','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v)); } + function getTargyByJelleg($targyJelleg) { + $q = "SELECT targyNev,targyId FROM targy WHERE targyJelleg='%s'"; + $v = array($targyJelleg); + return $r = db_query($q, array('fv'=>'getTargyByJelleg','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v)); + } + ?> |