aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/include/modules/naplo/share
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/www/include/modules/naplo/share')
-rw-r--r--mayor-orig/www/include/modules/naplo/share/diak.php27
-rw-r--r--mayor-orig/www/include/modules/naplo/share/targy.php6
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));
+ }
+
?>