aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/include/modules
diff options
context:
space:
mode:
authorM.Gergo2020-03-30 14:35:03 +0200
committerM.Gergo2020-03-30 14:35:03 +0200
commitb926ebee10ecb9e6bd128cbacb7be6ee62a8c531 (patch)
tree66ac4e9d27846b2428ef0e7edfb4174b3b26c508 /mayor-orig/mayor-naplo/www/include/modules
parent9424baefa25b375a492acca5e7488fb79e76bbb7 (diff)
downloadmayor-b926ebee10ecb9e6bd128cbacb7be6ee62a8c531.tar.gz
mayor-b926ebee10ecb9e6bd128cbacb7be6ee62a8c531.zip
Rev: 4643rev4643
Diffstat (limited to 'mayor-orig/mayor-naplo/www/include/modules')
-rw-r--r--mayor-orig/mayor-naplo/www/include/modules/naplo/share/oraModifier.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/oraModifier.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/oraModifier.php
index 53b6c763..8c5bd077 100644
--- a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/oraModifier.php
+++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/oraModifier.php
@@ -156,4 +156,20 @@
}
+ function oraHazifeladatDiakLatta($hazifeladatId) {
+ if (__DIAK===true && $hazifeladatId>0) {
+ if (defined('__USERDIAKID') && __USERDIAKID>0) {
+ $diakId=__USERDIAKID;
+ } elseif (defined('__SZULODIAKID') && __SZULODIAKID>0) {
+ $diakId=__SZULODIAKID;
+ }
+ if ($diakId>0) {
+ $q = "INSERT IGNORE INTO oraHazifeladatDiak (hazifeladatId,diakId,diakLattamDt) VALUES (%u,%u,NOW())";
+ $values = array($hazifeladatId, $diakId);
+ db_query($q, array('modul'=>'naplo','result'=>'insert','values'=>$values));
+ }
+ }
+ }
+
+
?> \ No newline at end of file