diff options
author | M.Gergo | 2020-02-02 12:55:51 +0100 |
---|---|---|
committer | M.Gergo | 2020-02-02 12:55:51 +0100 |
commit | 35283d60ca832c8c9c351ddd78cf9c5396ff80f6 (patch) | |
tree | 5dad19eb0b8298ec3a593c0383ec2aa603f89425 /mayor-orig/mayor-naplo/www/include | |
parent | 2116314871e4f4bbcb5aea67c455b87595f8e9da (diff) | |
download | mayor-rev4604.tar.gz mayor-rev4604.zip |
Rev: 4604rev4604
Diffstat (limited to 'mayor-orig/mayor-naplo/www/include')
-rw-r--r-- | mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php | 20 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php | 2 |
2 files changed, 19 insertions, 3 deletions
diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php index 64d6496d..9827f1f4 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/intezmeny/munkakozosseg.php @@ -115,8 +115,24 @@ } function targyModosit($ADAT) { - $q = "UPDATE targy SET targyJelleg='%s',zaroKovetelmeny='%s',evkoziKovetelmeny='%s',targyRovidNev='%s'"; - $v = array($ADAT['targyJelleg'],$ADAT['zaroKovetelmeny'],$ADAT['evkoziKovetelmeny'],$ADAT['targyRovidNev']); + $q = "UPDATE targy SET"; $v = array(); + if ($ADAT['targyJelleg'] != '') { + $q .= " targyJelleg='%s',"; $v[] = $ADAT['targyJelleg']; + } else { + $q .= " targyJelleg=NULL,"; + } + if ($ADAT['zaroKovetelmeny'] != '') { + $q .= "zaroKovetelmeny='%s',"; $v[] = $ADAT['zaroKovetelmeny']; + } else { + $q .= "zaroKovetelmeny=NULL,"; + } + if ($ADAT['evkoziKovetelmeny'] != '') { + $q .= "evkoziKovetelmeny='%s',"; $v[] = $ADAT['evkoziKovetelmeny']; + } else { + $q .= "evkoziKovetelmeny=NULL,"; + } + $q .= "targyRovidNev='%s'"; + $v[] = $ADAT['targyRovidNev']; if (is_numeric($ADAT['kirTargyId'])) { $q .= ",kirTargyId=%u"; array_push($v,$ADAT['kirTargyId']); diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php index 9849255d..077a9252 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/osztalyozo/vizsga.php @@ -110,7 +110,7 @@ // eredeti vizsga záradékolása és zárójegyhez kötése $q = "UPDATE vizsga SET zaradekId=%u, zaroJegyId=%u WHERE vizsgaId=%u"; $v = array($zaradekId, $zaroJegyId, $vizsgaId); - db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaHalasztas/záradékolás', 'values' => $v)); + db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaErtekeles/záradékolás', 'values' => $v)); } } |