aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/skin/classic
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/azonositok.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/csoportok.css9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/import.css8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/intezmenyek.css26
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szemeszterek.css6
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tanevek.css17
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tankorok.css8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css34
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/diakValaszto.css4
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css41
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css34
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css27
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css43
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/bizonyitvany.css19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/diakExport.css19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/kreta.css23
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/sulix.css9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css20
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elmaradas.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elszamolas.css32
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css305
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/helyettesites.css162
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hetes.css8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/minuszora.css28
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/osszevonas.css27
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/pluszora.css30
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/specialis.css36
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/stat.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/teremModositas.css17
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diak.css131
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakLista.css50
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/info.css19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/nap.css131
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/oktstat.css22
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/ora.css130
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztaly.css179
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css43
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/admin.css89
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css18
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/cronFutar.css9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/hirnok.css108
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diak.css167
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakExport.css46
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css33
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css14
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css49
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css70
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css126
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/felmentes.css36
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css14
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzes.css25
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css100
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css13
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css47
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/osztaly.css60
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css60
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankor.css83
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css128
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css24
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css39
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css94
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/terem.css15
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css89
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/valtas.css2
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/zaradek.css16
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css39
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/koszi.css39
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css47
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css319
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css4
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css2
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/ascExport.css18
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/helyettesites.css44
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css297
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css6
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css3
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendModosito.css157
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTankor.css29
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/szabadTerem.css118
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css2
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/termez.css13
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css71
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css70
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/diak.css58
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css172
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/jegy.css39
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/stat.css339
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/tankor.css152
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css30
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css2
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css0
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/diakAllapot.css27
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css21
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css15
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css3
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/letszam.css11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css36
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/diakTanarai.css9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/fogadoOra.css46
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/munkaterv.css149
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css16
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyBontas.css121
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyOraszam.css7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css5
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css5
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css23
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css54
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css76
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css139
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/azonositok.phtml95
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/csoportok.phtml87
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/import.phtml5
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml142
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml72
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml61
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml113
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tanevek.phtml165
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tankorok.phtml5
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml1273
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml52
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml97
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml47
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/diakValaszto.phtml22
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml77
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml90
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml102
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml87
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml171
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml47
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/diakExport.phtml153
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/kreta.phtml138
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/sulix.phtml43
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml46
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml41
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml63
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml284
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml676
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml698
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hetes.phtml37
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml55
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/ora.phtml51
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml56
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml51
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml95
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/specialis.phtml181
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/stat.phtml84
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/tankor.phtml54
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml49
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diak.phtml228
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml42
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml50
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/info.phtml96
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/nap.phtml253
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml133
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/ora.phtml280
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml667
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml112
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml150
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml32
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml265
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml320
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml68
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diak.phtml1038
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml93
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml225
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml97
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml300
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml84
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml167
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml261
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml121
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml143
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml271
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml316
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml427
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml419
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml376
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml310
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml83
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml101
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml103
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml147
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/terem.phtml101
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml479
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml85
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml41
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml78
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml246
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/koszi.phtml277
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml331
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/naplo.phtml33
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml31
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml17
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml127
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/ascExport.phtml142
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml90
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml448
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml60
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml88
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml26
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml313
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml88
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml107
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml78
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml38
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/termez.phtml86
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml3
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml427
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml235
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml313
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml164
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml691
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml75
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml70
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml550
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml45
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml145
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml16
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml50
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/email.phtml42
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml71
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/file.phtml92
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/hianyzas.phtml137
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/jegy.phtml92
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/orarend.phtml48
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml165
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml94
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml110
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml59
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/letszam.phtml54
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml414
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml34
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml62
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml317
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml370
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml200
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml122
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml296
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml25
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml32
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml36
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml67
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml61
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml38
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml136
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml65
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml31
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml81
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml434
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/garfield.gifbin0 -> 11847 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/kutya.gifbin0 -> 9506 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/majom.gifbin0 -> 16468 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/nyuszi.gifbin0 -> 11799 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/pingvin.gifbin0 -> 38954 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/smiley.gifbin0 -> 4261 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/tux-hard.gifbin0 -> 33427 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/cr.pngbin0 -> 272 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/fel.gifbin0 -> 294 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/adatok.gifbin0 -> 850 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/nevsor.gifbin0 -> 977 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/csere.gifbin0 -> 143 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/kez.gifbin0 -> 126 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/mozgat.gifbin0 -> 144 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/ora.gifbin0 -> 573 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/change.pngbin0 -> 444 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/felkjel.gifbin0 -> 59 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/green.gifbin0 -> 308 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/h.gifbin0 -> 323 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/i.gifbin0 -> 206 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/pin.gifbin0 -> 883 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red-pin.gifbin0 -> 202 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red.gifbin0 -> 203 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/sum.gifbin0 -> 149 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gifbin0 -> 912 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gifbin0 -> 998 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow.gifbin0 -> 296 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.gifbin0 -> 718 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg51
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/io/kreta.svg21
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/le.gifbin0 -> 296 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/print.pngbin0 -> 423 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gold_box.gifbin0 -> 68 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gifbin0 -> 35 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/close.pngbin0 -> 2189 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/updown.pngbin0 -> 1551 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toggle.pngbin0 -> 601 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toolSubmit.gifbin0 -> 127 bytes
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.js7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js43
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js56
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js101
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js7
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js89
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js177
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.js141
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js42
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js63
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js27
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js42
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js19
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.js13
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js27
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.js13
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js192
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js9
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js31
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js18
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js56
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js64
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js48
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js57
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js41
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js23
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js594
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js210
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js13
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js1249
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js88
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js12
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js80
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/szabadTerem.jquery.min.js17
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js5
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js93
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/dolgozat.jquery.min.js62
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js49
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js132
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js16
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js50
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js15
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js823
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js18
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js126
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js93
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js63
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.js54
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js23
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js33
361 files changed, 35213 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/azonositok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/azonositok.css
new file mode 100644
index 00000000..f2024e98
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/azonositok.css
@@ -0,0 +1,10 @@
+
+ form.azonosito table {
+ margin: 0px auto; background-color: rgb(20,40,80); color: white
+ }
+ form.azonosito table th { background-color: rgb(60,80,100); }
+ form.azonosito table td { background-color: rgb(40,80,120); }
+ form.azonosito table td.azonosNev { background-color: rgb(40,120,80); }
+ form.azonosito table td.tobbszorosOid { background-color: rgb(120,40,40); }
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/csoportok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/csoportok.css
new file mode 100644
index 00000000..0ab895f8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/csoportok.css
@@ -0,0 +1,9 @@
+@CHARSET "UTF-8";
+
+ form.csoport { width: 80%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+ form.csoport label { color: white; padding: 8px; }
+ form.csoport table { margin: 20px auto; background-color: rgb(140,140,180); }
+ form.csoport table td { background-color: rgb(255,255,255); }
+ form.csoport h1 { background-color: rgb(120,120,160); color: white; }
+ form.csoport p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
+ form.csoport select.kiemelt { color: red; font-weight: bold; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/import.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/import.css
new file mode 100644
index 00000000..dbe69451
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/import.css
@@ -0,0 +1,8 @@
+@CHARSET "UTF-8";
+
+form.updateTable { width: 98%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+form.updateTable label { color: white; padding: 8px; }
+form.updateTable table { margin: 10px auto; background-color: rgb(140,140,180); width:100%; overflow:hidden; }
+form.updateTable table td { background-color: rgb(255,255,255); }
+form.updateTable table th { background-color: rgb(120,120,160); }
+form.updateTable p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/intezmenyek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/intezmenyek.css
new file mode 100644
index 00000000..25a0be92
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/intezmenyek.css
@@ -0,0 +1,26 @@
+
+ form.intezmeny { background-color: rgb(40,60,120); color: white; margin: 20px; padding: 5px; }
+ form.intezmeny h2 {
+ background-color: rgb(20,40,80);
+ text-align: center;
+ border: white 1px dotted;
+ border-width: 1px 0px;
+ padding: 3px;
+ }
+
+ form.ujTelephely { background-color: rgb(40,120,120); color: white; margin: 20px; padding: 5px; margin: 0px 30px 10px 30px}
+ form.ujTelephely:hover { background-color: rgb(80,160,200); }
+ form.ujTelephely h2 {
+ color: white; background-color: rgb(20,80,80); text-align: center;
+ border: white 1px dotted; border-width: 1px 0px;
+ padding: 3px;
+ }
+ form.telephely { background-color: rgb(40,120,60); color: white; margin: 20px; padding: 5px; margin: 0px 30px 10px 30px}
+ form.telephely:hover { background-color: rgb(120,180,60); }
+ form.telephely h2 {
+ color: white; background-color: rgb(20,80,40); text-align: center;
+ border: white 1px dotted; border-width: 1px 0px;
+ padding: 3px;
+ }
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css
new file mode 100644
index 00000000..680cfb1c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css
@@ -0,0 +1,12 @@
+
+ form#addNode { background-color: #ceddec; margin: 10px auto; width: 600px; padding: 10px; text-align: center; border: outset 2px; color: #234; }
+ form#addNode p { text-align: left; padding: 1px 4px; }
+ form#addNode p select { width: 100%; color: #234; }
+ form#addNode h3 { border-bottom: 1px solid #a00; }
+ form#addNode label { margin-right: 5px; }
+
+
+ table#privNodes { background-color: white; border: 1px solid #ceddec; border-spacing: 0px; margin: auto; }
+ table#privNodes th, table#requNodes td { border: 1px solid #ddd; padding: 2px 5px; }
+ table#privNodes td label { padding: 2px 5px; border: 1px solid #ddd; border-radius: 4px; margin: 1px 2px; }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szemeszterek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szemeszterek.css
new file mode 100644
index 00000000..2f72dc3a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szemeszterek.css
@@ -0,0 +1,6 @@
+
+ form.szemeszter { color: white; background-color: rgb(80,100,70); padding: 10px; margin: 10px; text-align: center; }
+ form.szemeszter h2 { background-color: rgb(40,50,35); }
+ form.szemeszter table { }
+ form.szemeszter tr td { background-color: rgb(100,50,50); margin: 1px; padding: 4px; text-align: left; }
+ form.szemeszter tr td input { border: solid rgb(100,50,50); }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css
new file mode 100644
index 00000000..ec096326
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css
@@ -0,0 +1,12 @@
+
+ form.azonosito table {
+ margin: 0px auto; background-color: rgb(180,180,180); color: white
+ }
+ form.azonosito table th { background-color: rgb(140,140,140); }
+ form.azonosito table td { background-color: rgb(160,160,160); }
+ form.azonosito table td.azonosNev { background-color: rgb(40,120,80); }
+ form.azonosito table td.tobbszorosOid { background-color: rgb(120,40,40); }
+ form.azonosito table td.anya { background-color: #993333; }
+ form.azonosito table td.apa { background-color: #333399; }
+ form.azonosito table td.apa span.elhunyt,
+ form.azonosito table td.anya span.elhunyt { background-color: black; color: white; font-style: italic; padding: 8px 20px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tanevek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tanevek.css
new file mode 100644
index 00000000..7562ff6f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tanevek.css
@@ -0,0 +1,17 @@
+
+ form.intezmeny { background-color: rgb(40,60,120); color: white; margin: 20px; padding: 0px; }
+ form.intezmeny h2 {
+ background-color: rgb(20,40,80);
+ text-align: center;
+ border: white 1px dotted;
+ border-width: 1px 0px;
+ padding: 3px;
+ }
+ form.intezmeny div.data {
+ padding: 1em;
+ }
+ input.date { width: 100px; }
+
+ form.intezmeny fieldset p { margin-left: 50px; }
+ form.intezmeny fieldset label { background-coor: red; padding: 0px 14px 0px 0px; }
+ form.intezmeny fieldset h3 { color: rgb(255,255,100); } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tankorok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tankorok.css
new file mode 100644
index 00000000..48556e71
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/admin/tankorok.css
@@ -0,0 +1,8 @@
+@CHARSET "UTF-8";
+
+ form.updateTable { width: 80%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+ form.updateTable p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css
new file mode 100644
index 00000000..8f2a4592
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css
@@ -0,0 +1,19 @@
+
+ form.bejegyzes { }
+ form.bejegyzes ul { margin: 0px 20px 20px 30px; list-style-type: none; padding: 0; }
+ form.bejegyzes ul.dicseret { background-color: rgb(82,100,215); }
+ form.bejegyzes ul.fegyelmi { background-color: rgb(180,82,215) }
+ form.bejegyzes ul.uzenet { background-color: rgb(215,215,180) }
+ form.bejegyzes lh { text-align: center; background: rgba(0,0,0,0.5); display: block; margin: 0px; padding: 10px; color: #fff; font-weight: bold; border-bottom: solid 1px white; }
+ form.bejegyzes ul li { padding: 5px; }
+ form.bejegyzes ul li input[type=text] { width: 300px; background: rgba(255,255,255,0.5); }
+ form.bejegyzes span { float: right; }
+ form.bejegyzes label { padding-right: 15px; }
+ form.bejegyzes input { border: solid 1px #eeeeee; }
+ form.bejegyzes ul li:hover { background-color: rgba(255,255,255,0.2); }
+ form.bejegyzes input:hover { border-bottom: solid 1px #aaaaaa; }
+ form.bejegyzes input.ok { width: 500px; }
+ form.bejegyzes input.del { width: 200px; color: red; float: right; }
+ form.bejegyzes input.new { width: 200px; color: green; float: right; }
+ form.bejegyzes input[type=submit] { background-color: rgba(255,255,255,0.5); }
+ form.bejegyzes input[type=submit]:hover { background-color: rgba(255,255,255,1); }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css
new file mode 100644
index 00000000..d90c958f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css
@@ -0,0 +1,34 @@
+
+@media screen {
+
+ div.bejegyzes { margin: 1px 40px; }
+ div.bejegyzes ul { list-style-type: none; padding: 0px; margin: 0px; background-color: #ffffff; }
+ div.bejegyzes ul li { margin: 0px; color: white; padding: 1px;}
+ div.bejegyzes ul li form { text-align: right; }
+ div.bejegyzes ul li form input { background-color: white; font-size: 10px; border: none;}
+
+ div.bejegyzes ul li div.kategoria { text-align: center; padding: 2px; margin: 0px; font-weight: bold; }
+ div.bejegyzes ul li div.megjegyzes { font-style: italic; padding: 10px 20px;}
+ div.bejegyzes ul li.dicséret div.dt { padding: 0px 10px; }
+
+ span.tanar { float: right; font-weight: normal; font-style: italic; }
+ span.dt { float: left; font-weight: normal; font-style: italic; }
+ div.bejegyzes form.nev { margin: 10px 0px 0px 0px; border: dotted black; border-width: 1px 0px 0px 0px; }
+ div.bejegyzes form.nev input { margin: 0px; background-color: white; border: none; cursor: pointer; width: 100%; font-weight: bold; text-align: left; }
+
+ div.bejegyzes ul li.dicséret div.dt, div.bejegyzes ul li.dicséret div.kategoria { background-color: lightgreen; }
+ div.bejegyzes ul li.dicséret div.megjegyzes { background-color: #eee; color:black; }
+ div.bejegyzes ul li.dicséret form { border-bottom: solid 1px #883311; }
+ div.bejegyzes ul li.dicséret form input { color: #883311; }
+
+ div.bejegyzes ul li.fegyelmi div.dt,div.bejegyzes ul li.fegyelmi div.kategoria { background-color: #e91e63; }
+ div.bejegyzes ul li.fegyelmi div.megjegyzes { background-color: #eee; font-style: italic; color: black; }
+ div.bejegyzes ul li.fegyelmi form { border-bottom: solid 1px #224466; }
+ div.bejegyzes ul li.fegyelmi form input { color: #224466; }
+
+ div.bejegyzes ul li.üzenet div.dt, div.bejegyzes ul li.üzenet div.kategoria { background-color: cornflowerblue; }
+ div.bejegyzes ul li.üzenet div.megjegyzes { background-color: ; color: black; }
+ div.bejegyzes ul li.üzenet form { border-bottom: solid 1px #226644; }
+ div.bejegyzes ul li.üzenet form input { color: #226644; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css
new file mode 100644
index 00000000..0f07266a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css
@@ -0,0 +1,10 @@
+
+@media screen {
+
+ form.bejegyzes { margin: 40px; background-color: white; border: dotted 1px #446688; text-align: center; padding: 5px; }
+ form.bejegyzes select { color: #224466; border: dotted 1px #224466; }
+ form.bejegyzes textarea { color: #224466; width: 80%; border: dotted 1px #224466; margin: 2px; background-color: #e7f0ff; }
+ form.bejegyzes label { color: #224466; font-weight: bold; }
+ form.bejegyzes input { margin: 2px; padding: 0px 20px; background-color: white; color: #224466; font-size: 10px; border: dotted 1px #224466;}
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/diakValaszto.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/diakValaszto.css
new file mode 100644
index 00000000..37b12d9e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/diakValaszto.css
@@ -0,0 +1,4 @@
+
+ form.valaszto {
+ text-align: center;
+ } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css
new file mode 100644
index 00000000..560c2418
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css
@@ -0,0 +1,41 @@
+
+ form.kerdoiv { background-color: rgb(210,210,250); margin: 20px; padding: 20px 50px; }
+ form.kerdoiv h1 { background-color: rgb(110,110,150); color: white; font-size: 20px; border: solid white; border-width: 1px 0px; text-align: center; }
+ form.kerdoiv p { font-style: italic; margin: 4pt 20pt; background-color: rgb(255,255,255); padding: 20px; }
+ form.kerdoiv > ol > li { font-weight: bold; border: solid rgba(60,80,100,0.5); border-width: 1px 0 0 0; margin-top: 10px; padding-top: 10px; }
+ form.kerdoiv ol ol { list-style-type: none; box-shadow: 1px 1px 4px rgba(0,0,0,0.5); margin-top: 15px; padding: 10px; }
+ form.kerdoiv ol ol.negativ { background-color: #bbf; }
+ form.kerdoiv ol ol.semleges { background-color: #eee; }
+ form.kerdoiv ol ol.pozitiv { background-color: #fbb; }
+ form.kerdoiv ol ol li { font-weight: normal; }
+ form.kerdoiv input.szabadValasz { width: 100%; }
+ span.gomb { font-weight: bold; padding: 1px 8px; margin: 5px; cursor: pointer; float: right; }
+ span.pozitiv {
+ border: 1px solid maroon;
+ background-color: red;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px pink, inset 0 -5px 12px maroon, 0 2px 1px rgba(0,0,0,0.5);
+ color: white;
+ text-shadow: 0 1px 1px #000;
+ }
+ span.semleges {
+ border: 1px solid #666;
+ background-color: #eee;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px #888, inset 0 -5px 12px #999, 0 2px 1px rgba(0,0,0,0.5);
+ color: #fff;
+ text-shadow: 0px 1px 1px #000;
+ }
+ span.negativ {
+ border: 1px solid #55a;
+ background-color: #008;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px #aaf, inset 0 -5px 12px #55a, 0 2px 1px rgba(0,0,0,0.5);
+ color: white;
+ text-shadow: 0 1px 1px #000;
+ }
+ ol li label { padding: 0px 4px; }
+ ol li label:hover { background-color: purple; color: white; }
+ #ok { width: 100%; }
+ #ok:hover { background-color: orange; }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css
new file mode 100644
index 00000000..a391d32d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css
@@ -0,0 +1,11 @@
+
+ form.kerdoiv { width: 80%; margin: 10px auto; background-color: rgb(20,60,40); color: white; padding: 10px; text-align: center; }
+ form.kerdoiv label { margin: 10px; padding: 2px; }
+ form.kerdoiv #megjegyzes { height: 50px; }
+ form.kerdoiv textarea { width: 80%; height: 400px; }
+
+ form.kerdoivCimzett { width: 800px; margin: 10px auto; background-color: rgb(20,60,40); color: white; padding: 10px; text-align: center; }
+ form.kerdoivCimzett div.bal { float: left; }
+ form.kerdoivCimzett div.jobb { float: right; }
+ form.kerdoivCimzett select { height: 300px; min-width: 100px;}
+ form.kerdoivCimzett input[type=submit] { width: 100%; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css
new file mode 100644
index 00000000..97880624
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css
@@ -0,0 +1,34 @@
+
+ form#nevsorForm { margin-left: 35px; }
+ form#nevsorForm table#kontener td { vertical-align: top; background-color: #ddd; border: solid 1px #abc;}
+ form#nevsorForm table#kontener > tbody > tr > th { padding: 5px; background-color: #eee; cdolor: white; border: solid #aaa; border-width: 0px 1px 1px 0px; }
+ form#nevsorForm table#kontener > tbody > tr > th:nth-child(3) { width: 300px; }
+ form#nevsorForm table#kontener td#osztalyok input[type=button] { width: 100px; text-align: right; }
+ form#nevsorForm table#kontener td#osztalyok input[type=button]:hover { background-color: orange; }
+ form#nevsorForm table#kontener input.add { color: #68a; width: 100%; font-size: 22px; font-weight: bold; text-align: center; margin-top: 20px; }
+ form#nevsorForm table#kontener td.openable select { min-height: 300px; width: 100%; }
+ form#nevsorForm table#kontener input.selected { background-color: #aaccee; }
+
+ form#nevsorForm table#nevsor { min-width: 500px; }
+
+ form#nevsorForm table#nevsor tr th { padding: 5px; background-color: #c8c8c8; vertical-align: middle; }
+ form#nevsorForm table#nevsor tr td { padding: 5px; background-color: #d8d8d8; vertical-align: middle; }
+ form#nevsorForm table#nevsor tr td.sorsz { text-align: right; }
+ form#nevsorForm table#nevsor tr td.osztaly { text-align: right; cursor: pointer;}
+ form#nevsorForm table#nevsor tr:nth-child(odd) td { background-color: #eeeeee; }
+ form#nevsorForm table#nevsor tr.ujDiak td { background-color: #99dd99; }
+
+ form#nevsorForm table#nevsor span.icon-remove-sign {color: red; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-remove-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-remove-sign:hover:before { content: "\e103"; }
+
+ form#nevsorForm table#nevsor span.icon-minus-sign { color: #800; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-minus-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-minus-sign:hover:before { content: "\e06e"; }
+
+ form#nevsorForm table#nevsor span.icon-ok-sign { color: #080; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-ok-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-ok-sign:hover:before { content: "\e075"; }
+
+ form#nevsorForm table#nevsor tr#submitRow input { width: 100%; }
+ form#nevsorForm table#nevsor tr#submitRow input:hover { background-color: orange; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css
new file mode 100644
index 00000000..c1004624
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css
@@ -0,0 +1,27 @@
+
+ form.esemeny table { margin-left:auto; margin-right:auto; border-spacing: 1px; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 10px; }
+ form.esemeny table th { background-color: #a8a8a8; padding: 4px; color: white; }
+ form.esemeny table tr:hover th { background-color: #ff8800; padding: 4px; color: white; cursor: pointer; }
+ form.esemeny table td { background-color: #ececec; padding: 4px; }
+
+ form.esemeny table tr.jelentkezes:nth-child(odd) td { background-color: #d6d6d6; }
+
+/*
+ form.esemeny table tr.valasztott:nth-child(even) td { background-color: #a6e6a6; }
+ form.esemeny table tr.valasztott:nth-child(odd) td { background-color: #86d686; }
+*/
+ form.esemeny table tr.jelentkezes td, form.esemeny table tr.valasztott td { min-width: 60px; }
+ form.esemeny table input.felvesz { font-size: 12px; color: green; }
+ form.esemeny table input.lead { font-size: 12px; color: red; }
+ form.esemeny table input.felvesz:hover, form.esemeny table input.lead:hover { }
+ form.esemeny table input.felvesz:disabled, form.esemeny table input.lead:disabled { color: #666; }
+ form.esemeny table td.letszam { text-align: right; }
+ form.esemeny table td.minmax { text-align: center; }
+ form.esemeny table td.min { border-left: 1px dotted red; }
+ form.esemeny table td.max { border-right: 1px dotted red; }
+ form.esemeny table td span.icon-minus-sign { padding: 3px 20px; color: #800; }
+ form.esemeny table td span.icon-ok-sign { padding: 3px 20px; color: #080; }
+
+ form.esemeny table tr td.gombKontener { text-align:center; }
+ form.esemeny table tr:hover td.gombKontener.lead { background-color: #fee;}
+ form.esemeny table tr:hover td.gombKontener.felvesz { background-color: #efe;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css
new file mode 100644
index 00000000..2dc8381e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css
@@ -0,0 +1,43 @@
+
+ form.esemeny table { margin: 20px 35px 0px 35px; border-spacing: 0; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 10px; position: relative; width: 550px; }
+ form.esemeny table td, form.esemeny table th { background-color: #ececec; padding: 4px; }
+ form.esemeny table th { text-align: right; }
+ form.esemeny table td input.datetime { width: 140px; }
+ form.esemeny table textarea { width: 98%; margin-top: 5px; }
+ form.esemeny table td#submitTd { background-color: #99dd99; text-align: center; padding: 20px 0px; }
+/*
+ form.esemeny table input[type=submit] { width: 500px; color: #080; }
+ form.esemeny table input:focus, form.esemeny table textarea:focus { background-color: #fd2; }
+ form.esemeny table input:disabled, form.esemeny table textarea:disabled, form.esemeny table select:disabled { background-color: #eee; color: #68a; border:solid #ccc 1px;}
+ form.esemeny table input[type=submit]:hover { }
+*/
+ form.esemeny table td hr { background-color: #f8f8f8; border: none; }
+ form.esemeny table select#kategoria { float: right; margin-top: -5px; }
+
+ form.esemeny table td.tanarok { position: relative; }
+ form.esemeny table td.tanarok div.select { margin-left: 3px; display:inline-block; vertical-align:top; overflow:hidden; border:solid #ccc 1px; }
+ form.esemeny table select#esemenyTanar { overflow: hide; min-width: 150px; width: 300px; height: 250px; padding:10px; margin:-5px -20px -5px -5px; background-color: #f8f8f8; }
+ form.esemeny table select#esemenyTanar option.uj { background-color: #99dd99; }
+ form.esemeny table input#plusz { color: red; width: 140px; }
+ form.esemeny table input#minusz { color: green; width: 140px; }
+ form.esemeny table input#add { color: #68a; width: 100%; font-size: 22px; font-weight: bold; }
+
+ form.esemeny table div#tanarLista { padding: 15px 5px 5px 5px; width: 300px; position: absolute; top:0px; right: -330px; background-color: #ace; border: 1px #abc solid; }
+ form.esemeny table span#closeTanarLista { position: absolute; font-weight: bold; color: white; padding: 0px 5px; right: 0px; top: 0px; }
+ form.esemeny table span#closeTanarLista:hover { cursor: pointer; }
+ form.esemeny table select#tanarok { width: 300px; height: 250px; }
+ form.esemeny table div#osztalyLista { background: #f0f0f0; position: absolute; top: 0px; right: -463px; width: 440px; border: 1px solid #aabbcc; padding: 10px; }
+ form.esemeny table div#osztalyLista ul {
+ list-style-type: none; padding: 0px 0px;
+/* -moz-column-count: 2; -moz-column-gap: 0px;
+ -webkit-column-count: 2; -webkit-column-gap: 0px;
+ column-count: 2; column-gap: 0px;
+ width: 740px;
+*/
+ }
+ form.esemeny table div#osztalyLista ul label.oJel { display: inline-block; width: 40px; font-weight: bold; text-align: center; }
+ form.esemeny table div#osztalyLista ul li.uj { background-color: #99dd99; }
+
+ form.esemenyTorles {margin: 0px 35px; border-spacing: 0; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 2px 0px; position: relative; width: 548px; text-align: center; background-color: #f00; }
+ form.esemenyTorles input { color: red; width: 500px; }
+ form.esemenyTorles input:hover { background-color: #eca; border-color: #fdd #dcc #dcc #fdd; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/bizonyitvany.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/bizonyitvany.css
new file mode 100644
index 00000000..bc531fad
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/bizonyitvany.css
@@ -0,0 +1,19 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; font-size:10px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.export input { font-size: 10px; border: solid 1px #777777; margin-left: 3px; padding-left: 2px; }
+ form.export label { font-size:11px; }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { text-align: right; }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/diakExport.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/diakExport.css
new file mode 100644
index 00000000..99997093
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/diakExport.css
@@ -0,0 +1,19 @@
+
+ form.diak { margin: 5px 30px 20px 30px; font-size:10px; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180); color: white;
+ border: solid 1px rgb(40,60,80); padding: 2px 10px; margin-left:20px;
+ }
+ #tableDiv { margin: 10px 50px; }
+ #diakTabla { margin: auto; }
+ #diakTable tr:hover td { background: rgb(50,50,100); }
+ #exportOptions fieldset { background: rgba(150,50,100,0.9); position: absolute; left: 20px; z-index: 10; width: 80%; margin: auto 10%; box-shadow: 5px 5px 5px #999; border: 3px solid orange; color: white; }
+ #exportOptions select { height: 200px; width: 200px; }
+ #exportOptions table { margin: auto; }
+ #submitForm { text-align: center; }
+ table.TF tr:hover td { background: rgb(100,100,200); color: white; }
+ table.TF tr:hover td span { color: black; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/kreta.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/kreta.css
new file mode 100644
index 00000000..a163f7ff
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/kreta.css
@@ -0,0 +1,23 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); text-align: center; }
+ form.export input { border: solid 1px #777777; }
+ form.export label { }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.export:hover fieldset legend { background-color: rgb(140,160,250); }
+
+
+ form.export table { width:100%; }
+ form.export ul { list-style-type: none; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/sulix.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/sulix.css
new file mode 100644
index 00000000..5f68d40e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/sulix.css
@@ -0,0 +1,9 @@
+
+ form.export { width: 60%; float: left; margin: 0px 20%; }
+
+ form.export input[type=submit] { width: 100%; }
+ form.export input[type=submit]:hover { background: rgb(100,100,100); color: white }
+ form.export div.leiras { background: rgba(200,200,200,0.8); margin: 10px; text-align: left; padding: 6px; height: 300px; }
+
+ div.txt { margin: 1%; background: #3496B9; padding: 10px; padding-bottom: 50px; }
+ div.txt div { background: rgba(200,200,200,0.8); padding: 6px; margin-bottom: 10px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css
new file mode 100644
index 00000000..c4671887
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css
@@ -0,0 +1,20 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; font-size:10px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.export input { font-size: 10px; border: solid 1px #777777; margin-left: 3px; padding-left: 2px; }
+ form.export label { font-size:11px; }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { text-align: right; }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.export:hover fieldset legend { background-color: rgb(140,160,250); } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elmaradas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elmaradas.css
new file mode 100644
index 00000000..d6252159
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elmaradas.css
@@ -0,0 +1,12 @@
+
+ table.elmaradas { margin: 0px auto; background-color: rgb(32, 130, 155); color: white; margin-bottom:1em;}
+ table.elmaradas thead th { background-color: rgb(40, 40, 80); padding: 2px 4px;}
+ table.elmaradas tbody th { font-weight: normal; background-color: rgb(120, 140, 180); padding: 2px 4px;}
+ table.elmaradas tbody tr:hover th { outline: solid 1px orange; }
+ table.elmaradas tbody tr:hover td { outline: solid 1px orange; }
+ table.elmaradas tbody td { font-weight: normal; background-color: rgb(52, 150, 185); text-align: right; padding: 2px 4px;}
+ table.elmaradas tr.beirando td { background-color: rgb(40, 80, 60); }
+
+ table.elmaradas tr th.tanarNev { text-align:left; }
+
+ table.elmaradas tfoot tr th, table.elmaradas tfoot tr td { font-size: smaller; text-align: center; background-color: rgb(82,180,205); padding: 2px 4px;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elszamolas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elszamolas.css
new file mode 100644
index 00000000..41c1d07f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/elszamolas.css
@@ -0,0 +1,32 @@
+
+ table.elszamolas { background-color: rgb(220,220,220); margin: 10px auto; }
+
+ table.elszamolas thead tr th { background-color: #F23668; color: white; text-align: center; padding:2px; font-weight:normal;}
+ table.elszamolas thead tr th.eloirt_egyeb { background-color: rgb(170, 170, 204);}
+ table.elszamolas thead tr th.egyeb { background-color: #E8C }
+
+ table.elszamolas tbody tr th { background-color: #f9f9f9; text-align: left; padding-left:1em; padding-right:0.5em;}
+ table.elszamolas tbody tr th a { color: black; display:block; }
+
+ table.elszamolas tbody tr th.sum { text-align:right; font-weight:normal;}
+ table.elszamolas tbody tr th.sum.highlight { background-color: cornflowerblue;color:white; }
+ table.elszamolas tbody tr th.sumsum { text-align:right;}
+
+ table.elszamolas tbody tr td {background-color:#eee; text-align: right ; padding-right:1em;}
+ table.elszamolas tbody tr td.highlight {background-color: cornflowerblue !important; color: white !important;}
+
+ table.elszamolas tr .e1 { background-color: #493E89; color: white; }
+ table.elszamolas tr .e2 { background-color: green; color: white; }
+ table.elszamolas tr .e3 { background-color: orange; color: white; }
+ table.elszamolas tr .e4 { background-color: red; color: white; }
+
+ table.elszamolas tbody tr td.osszevonas { background-color: rgba(0,0,0,0.1); color: #333333; }
+
+ table.elszamolas tbody tr:hover th { background-color: #eeeeee; }
+ table.elszamolas tbody tr:hover td { background-color: #E7FCFE; }
+ table.elszamolas tbody tr:hover td.e1 { background-color: #382d78; }
+ table.elszamolas tbody tr:hover td.e2 { background-color: #007000; }
+ table.elszamolas tbody tr:hover td.e3 { background-color: #ee9400; }
+ table.elszamolas tbody tr:hover td.e4 { background-color: #e00; }
+
+ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css
new file mode 100644
index 00000000..4eae0808
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css
@@ -0,0 +1,305 @@
+@media screen {
+
+ table.haladasiBejegyzesek {
+ background-color: rgb(50,60,80);
+ background: linear-gradient( rgb(50,60,80), white);
+ margin-top: 10px;
+ /* font-size: 11px; */
+ width: 98%;
+ }
+ table.haladasiBejegyzesek thead tr th, table.haladasiBejegyzesek tfoot tr th {height:18px; font-weight: normal;}
+ table.haladasiBejegyzesek thead tr th span.aktiv {
+ position:relative; top:-5px; padding-left:5px;
+ /*color: orange;*/
+ }
+
+ table.haladasiBejegyzesek tbody tr:first-child th { border-top:solid 16px white; }
+ table.haladasiBejegyzesek tbody:hover tr:first-child th { background-color: orange;
+ transition: all ease 0.1s;
+ }
+ table.haladasiBejegyzesek tbody tr td {height:18px;}
+ table.haladasiBejegyzesek tbody tr:hover td { background-color: rgba(255,255,255,0.2); }
+ table.haladasiBejegyzesek tbody tr td input:focus {
+ background-color: white !important;
+ }
+ table.haladasiBejegyzesek tbody tr td input.gomb:focus {
+ background-color: red;
+ }
+ table.haladasiBejegyzesek tbody tr.torolt td {
+ background-color: black;
+ color:#dddddd;
+ text-decoration:line-through;
+ }
+ table.haladasiBejegyzesek tbody tr.torolt input.ajaxRequestDone { display:none; }
+ table.haladasiBejegyzesek tbody tr.torolt span.INFO.ajaxRequestDone { display:none; }
+
+ table.haladasiBejegyzesek tbody.parosNap {
+ background-color: #dddddd;
+ }
+ table.haladasiBejegyzesek tbody.paratlanNap {
+ background-color: #eeeeee;
+ }
+ table.haladasiBejegyzesek tbody td.ora {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tbody td.t {
+ padding-left:4px;
+ }
+ table.haladasiBejegyzesek tbody tr th.nap span.napNev {
+ background-color:white; border-radius: 2px; color: #444;padding: 0px 4px;
+ }
+
+ /* ajax eredménye */
+ table.haladasiBejegyzesek tbody tr.elmarad td {
+ background-color: #999999;color:#dddddd;text-decoration:line-through;
+ }
+
+ table.haladasiBejegyzesek tbody th.nincsOra {
+ background-color: rgb(200,200,200);
+ color: rgb(100,100,100);
+ text-align: center;
+ border: none;
+ font-weight: normal;
+ }
+ table.haladasiBejegyzesek tbody th.nap {
+ text-align: center;
+ background-color: #666688;
+ color: white;
+ border: none;
+ height:1em;
+ font-weight: normal;
+ height:2em;
+ }
+ table.haladasiBejegyzesek tbody th.nap div { color: white; padding-top:4px;}
+ table.haladasiBejegyzesek tbody th.nap div:hover { color: #aaa; }
+ table.haladasiBejegyzesek tbody.szunet th.nap {
+ background-color: #778877;
+ }
+ table.haladasiBejegyzesek tbody.tanitasNelkul th.nap {
+ background-color: #aaaa44;
+ }
+ table.haladasiBejegyzesek tbody.szorgalmiIdoszakonKivul th.nap {
+ background-color: #e91e63;
+ }
+
+ table.haladasiBejegyzesek tbody td.dolgozat {
+ background-color: #ffaa44;
+ padding-left: 20px;
+ }
+ table.haladasiBejegyzesek tbody td.dolgozat a {
+ text-decoration: none;
+ color: black;
+ }
+
+ table.haladasiBejegyzesek tbody td.nincsBeirva {
+ font-style:italic;
+ }
+
+ table.haladasiBejegyzesek th {
+ border-style: none none solid none;
+ border-width: 0 0 2px 0;
+ border-color: #556677;
+ background-color: rgb(50,60,80);
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+ table.haladasiBejegyzesek th.fejlec8 {
+ font-size: 14px;
+ height: 30px;
+ text-align: center
+ }
+ table.haladasiBejegyzesek th.fejlec8 a { color: white }
+
+
+ table.haladasiBejegyzesek td.osztaly { text-align: center; }
+ table.haladasiBejegyzesek select {
+ /* font-size: 10px; */
+ }
+
+ input { color: inherit; outline: none;}
+ input.data { border-style: none none solid none;
+ border-width: 1px;
+ border-color: #dddddd;
+ width:85%;
+ padding-right: 10px;
+ }
+ input.data:hover { border-bottom: solid 1px #556677; background-color: white }
+
+ table.haladasiBejegyzesek tbody tr td.ora {text-align:center;}
+ table.haladasiBejegyzesek tbody tr td div.oraTime {font-size:xx-small; display: block; padding-left:4px; color:#888;}
+
+ table.haladasiBejegyzesek span.INFO { display: none; width:1em; padding:2px 2px; position: relative; left:-12px; border-radius:2px;color: white;}
+ table.haladasiBejegyzesek input.ajaxRequestDone+span.INFO { display: inline; background-color: green; }
+ table.haladasiBejegyzesek input.ajaxRequest+span.INFO { display: inline; background-color: orange; }
+ table.haladasiBejegyzesek input.ajaxRequestError+span.INFO { display: inline; background-color: red; }
+
+ table.haladasiBejegyzesek input.data:focus {
+ border-left: solid 2px blue !important; background-color: white; color:black !important;
+ border-radius:2px;
+ }
+
+ table.haladasiBejegyzesek tbody.parosNap input.data { border-left: solid 2px #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.data { border-left: solid 2px #eeeeee; }
+ table.haladasiBejegyzesek tbody.parosNap input.beirva { background-color: #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.beirva { background-color: #eeeeee; }
+
+ table.haladasiBejegyzesek tbody.parosNap input.data.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.data.ajaxRequest { border-left: solid 2px orange; }
+ table.haladasiBejegyzesek tbody.parosNap input.gomb.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.gomb.ajaxRequest { background-color: orange; }
+ table.haladasiBejegyzesek tbody select option.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.parosNap input.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.paratlanNap input.ajaxRequestDone { border-left: solid 2px green; background-color: lightgreen; }
+
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit td { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit td { background-color: #eeeecc; }
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit input.beirva { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit input.beirva { background-color: #eeeecc; }
+
+ table.haladasiBejegyzesek tbody tr.egyeb { background-color: #ee88cc; }
+ table.haladasiBejegyzesek tbody tr.egyeb.órarend { background-color: #aaaacc; }
+
+ input.gomb {
+ font-size: xx-small;
+ border: solid 1px #777777;
+ padding: 0px 1px; margin: 0px;
+ background-color: #009900;
+ color: white;
+ }
+ input.gomb:hover { background-color: rgba(255,255,255,0.8); color:black;}
+/* input.rejtettGomb { border: solid 1px rgb(50,60,80);; background-color: rgb(50,60,80); }
+ input.rejtettGomb:hover { border: solid 1px orange; background-color: rgb(80,60,50); color: white }
+*/
+ div.rejtMutat { color: rgb(100,80,70);}
+ div.rejtMutat:hover { color: white; }
+
+ table.haladasiBejegyzesek a.gomb {
+ padding: 1px;
+ background-color: #dddddd;
+ /* font-size: 10px; */
+ border: outset 1px #556677;
+ margin: 2px;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a.gomb:hover {
+ padding: 1px;
+ background-color: #556677;
+ /* font-size: 10px; */
+ border: outset 1px #dddddd;
+ margin: 2px;
+ text-decoration: none;
+ color: white;
+ }
+
+ table.haladasiBejegyzesek a {
+ display: block;
+ color: black;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a:hover {
+ color: green;
+ text-decoration: underline;
+ }
+ table.haladasiBejegyzesek a.h {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tr.dolgozat td {
+ padding: 0px 10px;
+ background-color: rgb(160,100,120);
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a:hover {
+ color: rgb(260,200,220);
+ }
+
+ table.haladasiBejegyzesek tbody tr td.mg {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tbody tr td.info, table.haladasiBejegyzesek tbody tr td.halad {
+ cursor: pointer;
+ }
+
+ table.haladasiBejegyzesek tr td.mg span.latogatott {
+ background-color: rgb(100,150,100);
+ color: white;
+ text-decoration: none;
+ padding-left:5px;
+ padding-right:5px;
+ border-bottom: solid 1px green;
+ margin:0px;
+ }
+
+
+ table.haladasiBejegyzesek tr td select.teremvalt { background-color: white ; }
+
+ form.hetes {
+ border: solid 1px #008800;
+ background-color: rgb(100,200,100); text-align: center; color: white; margin: 15px 13px; font-weight: bold;
+ }
+ form.hetes input { color: black; border: none; margin: 4px; border: solid 1px #008800; }
+ form.hetes span { padding-right:2em; }
+ form.hetes select option {
+ /* font-size:small; */
+ background-color:# white;
+ border: solix 1px #00aa00;
+ }
+
+
+ table.haladasiNaplo {
+ background-color: rgb(50,60,80);
+ width: 98%;
+ /* font-size: 11px; */
+ }
+ table.haladasiNaplo thead tr th{
+ background-color: rgb(50,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+ height:1.5em;
+ }
+ table.haladasiNaplo tr td{ padding:0.6em; background-color: #eee; }
+
+ #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }
+ #updateHeader { cursor: pointer; }
+
+ #updateForm { max-height: 95%; overflow: auto; }
+
+ #updateForm fieldset { margin-top:2px; background-color: #eeeeee; border: solid 1px rgb(50,60,70);}
+ #updateForm fieldset legend { text-align: right; background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80); }
+
+ #updateForm fieldset.alapadatok p { text-align: center; font-style: italic; }
+ #updateForm fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #updateForm #temakor { list-style-type: none; }
+ #updateForm #temakor li { margin-top: 10px; }
+ #updateForm #temakor span.oraszam { display: block; float: left; width: 100px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #updateForm #temakor div.megnevezes { display: inline-block; font-style: normal; }
+ #updateForm p.kiemelt { text-align: center; margin-top: 100px; font-size: 20px; }
+
+ table.haladasiBejegyzesek label.on { color: orange; }
+ table.haladasiBejegyzesek label:hover { color: white; text-shadow: 1px 1px 1px orange; }
+
+ table tr.ujOra { background-color: rgb(100, 149, 237); }
+ table tr.ujOra th { background-color: rgba(238, 136, 204,0.5);
+ font-weight:normal;
+ border: none 0px;
+ }
+
+ table.haladasiBejegyzesek button.gomb { /*font-size:8px;*/ padding:4px;}
+
+ table.haladasiBejegyzesek tbody tr td.ora a.tankorStat {display:none;}
+ table.haladasiBejegyzesek tbody tr:hover td.ora a.tankorStat { display:inline;}
+
+}
+@media print {
+ table.haladasiBejegyzesek thead tr th { border-bottom: solid 1px black;}
+ table.haladasiBejegyzesek thead tr th:not(:last-child) { border-right: solid 1px black;}
+ table.haladasiBejegyzesek tbody tr td { border-bottom: solid 1px black;}
+ table.haladasiBejegyzesek div[class*="icon"] { display:none;}
+ table.haladasiBejegyzesek [class*="icon"] { display:none;}
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/helyettesites.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/helyettesites.css
new file mode 100644
index 00000000..298f29f1
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/helyettesites.css
@@ -0,0 +1,162 @@
+/*
+input[type=image]
+{
+background-image: url('/skin/classic/share/javascript/jquery-mobile/images/icons-36-white.png');
+-moz-background-size: 864px 18px;
+-o-background-size: 864px 18px;
+-webkit-background-size: 864px 18px;
+background-size: 810px 18px;
+}
+*/
+
+ span.teremId { font-style: italic; color: gray; }
+
+ table.tanarForm {
+ width:50%;
+ border-style: solid solid solid solid;
+ border-width: 1px 1px 2px 1px;
+ border-color: rgb(100,80,100);
+ margin-bottom: 20px;
+ }
+
+ table.tanarForm th {
+ background-color: rgb(140,20,100);
+ color: white;
+ height: 2em;
+ }
+
+ table.tanarForm td {
+ background-color: #ffffff;
+ text-align: center;
+ }
+
+
+ table.tanarForm select {
+ height: 160px;
+ width: 60%;
+ }
+
+ table.hianyzoTanar {
+ border-style: solid ;
+ border-width: 1px;
+ border-color: purple;
+ background-color: #dddddd;
+ width: 95%;
+ margin-bottom:30px;
+ }
+
+ table.hianyzoTanar thead th {
+ background-color: rgb(100,100,200);
+ color: white;
+ height:2em;
+ }
+ table.hianyzoTanar tfoot th { background-color: #eeeeee; }
+ table.hianyzoTanar tfoot th input {
+ font-size:10px;
+ }
+
+ table.hianyzoTanar td {
+ background-color: white;
+ color: black;
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.hianyzoTanar tr.elmarad td {
+ background-color: rgb(200,200,200);
+ color: rgb(140,140,140);
+ }
+
+ table.hianyzoTanar tbody tr:hover td {
+ background-color: rgba(128,0,128,0.2);
+ }
+ table.hianyzoTanar tbody tr td.info {
+ color:rgba(128,0,128,0.6);
+ }
+ table.hianyzoTanar tr td a.O { color: #aaaaaa; border-radius: 0px; font-size:12px; background-color: rgba(255,255,255,0.9); border: solid 1px #eeeeee; padding:0px 4px;}
+ table.hianyzoTanar tr td a.O:hover { color: white; background-color: rgb(50,60,80); border: solid 1px grey; padding:0px 4px;}
+
+
+/* ----------------------- */
+ table.mozgatas thead th {
+ background-color: purple;
+ color: white;
+ height:2em;
+ }
+ table.mozgatas tfoot th {
+ background-color: rgb(80,100,80);
+ }
+ table.mozgatas tbody th {
+ background-color: rgb(80,20,80);
+ color: white;
+ }
+
+ table.mozgatas td {
+ background-color: rgb(200,200,180);
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.mozgatas td.mozgatando {
+ background-color: rgb(220,200,180);
+ }
+ table.mozgatas td.utkozik {
+ background-color: rgb(160,160,160);
+ }
+ table.mozgatas td.nemMegtartott {
+ background-color: rgb(180,200,220);
+ }
+
+/* ---------------------- */
+
+ table.csere td {
+ background-color: rgb(200,200,190);
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.csere th {
+ background-color: rgb(110,120,110);
+ color: white;
+ height: 2em;
+ }
+
+ table.csere td.mozgatando {
+ background-color: rgb(220,200,180);
+ }
+ table.csere td.orajavan {
+ background-color: rgb(160,200,140);
+ }
+ table.csere td.nemMegtartott {
+ background-color: rgb(180,200,220);
+ }
+
+/* ---------------------- */
+ table.keziBeallitas { background-color: #555550; }
+ table.keziBeallitas td { background-color: rgb(200,200,190); }
+ table.keziBeallitas th { background-color: rgb(140,150,160); color: white; height:2em;}
+/* ---------------------- */
+
+ h2 { text-align: center; border: dotted black; border-width: 1px 0px; margin: 20px 50px;}
+ table.csereAttekintes { background-color: #555550; margin: 10px; text-align: center; margin: auto; }
+ table.csereAttekintes td { background-color: rgb(200,200,190); padding: 2px 20px; }
+ table.csereAttekintes th { background-color: rgb(140,150,160); color: white; }
+
+ #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }
+ #updateHeader { cursor: pointer; }
+
+ #updateForm { max-height: 95%; overflow: auto; }
+
+ table.haladasiNaplo {
+ background-color: rgb(50,60,80);
+ width: 98%;
+ font-size: 11px;
+ }
+ table.haladasiNaplo thead tr th{
+ background-color: rgb(50,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+ height:1.5em;
+ }
+ table.haladasiNaplo tfoot tr th{
+ font-size: 10px;
+ color: white;
+ }
+ table.haladasiNaplo tr td{ padding:0.6em; background-color: #eee; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hetes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hetes.css
new file mode 100644
index 00000000..78809cd3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hetes.css
@@ -0,0 +1,8 @@
+@media screen {
+
+ table.hetes { background-color: #fefefe;}
+ table.hetes tr th { background-color: #64C864; border-bottom: solid 1px lightgreen; }
+ table.hetes tr td { padding: 1px 8px; }
+ table.hetes tr:nth-child(odd) td { background-color: #e0e0e0 }
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/minuszora.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/minuszora.css
new file mode 100644
index 00000000..1637e333
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/minuszora.css
@@ -0,0 +1,28 @@
+
+ form.minuszora { margin: 20px auto; width: 500px; text-align: center; }
+ form.minuszora ul { text-align: left; list-style-type: none; padding: 1px; background-color: rgb(20,40,60);}
+ form.minuszora ul li { margin: 1px; padding: 2px; background-color: rgb(20,80,40); color: white; font-weight: bold; }
+ form.minuszora ul ul { list-style-type: none; background-color: rgb(200,200,200); }
+ form.minuszora ul ul li { padding: 4px 4px; margin: 1px 20px; background-color: rgb(255,240,220); color: black; font-weight: normal; }
+ form.minuszora input { color: rgb(200,0,0); font-weight: bold; }
+
+ span.latogatott {
+ background-color: #649664;
+ color: #FFF;
+ text-decoration: none;
+ padding-left: 5px;
+ padding-right: 5px;
+ border-bottom: solid 1px #008000;
+ margin: 0px 2px 0px 2px;
+ }
+
+ form.minuszora ul li.egyéb { background-color: #ee88cc; }
+ form.minuszora ul li.egyéb.órarend { background-color: #aaaacc; }
+
+ form.minuszora ul li.egyéb:after { content: "\25B5"; color: cornflowerblue; }
+ form.minuszora ul li.egyéb.órarend:after { content: "\25B2"; }
+
+ form.minuszora ul li { border-left: solid 2px darkgreen; }
+ form.minuszora ul li ul li { border-left: solid 0px darkgreen; }
+ form.minuszora ul li:hover { border-left: solid 2px cornflowerblue; }
+ form.minuszora ul li:hover ul li { border-left: solid 0px cornflowerblue; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css
new file mode 100644
index 00000000..df459f0e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css
@@ -0,0 +1,12 @@
+
+ ul.ora { list-style-type: none; color: white; margin: 20px; padding: 0px; }
+ ul.ora li { background-color: rgb(130,100,130); margin: 1px 0px; padding: 0px; }
+ ul.ora li p { background-color: rgb(60,0,60); border: 1px solid white; border-width: 0px 0px 1px 0px; padding: 10px; text-align: center; }
+ ul.ora li p span.ora { float: left; color: yellow; }
+ ul.ora li p input { margin: 0px; float: right; }
+ ul.ora li select { height: 100px; }
+ ul.ora li textarea { width: 80%; height: 100px; }
+ ul.ora li div { padding: 4px; }
+ ul.ora li div.jobb { float: right; }
+
+ ul.ora li form.latogatva { background-color: rgb(100,130,100); }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/osszevonas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/osszevonas.css
new file mode 100644
index 00000000..edbde3bb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/osszevonas.css
@@ -0,0 +1,27 @@
+
+ form.pluszora {
+ background-color: rgb(200,200,180);
+ margin-left: 180px;
+ margin-right: 180px;
+ text-align: center;
+ }
+ form.pluszora h2 {
+ margin-bottom: 2em;
+ font-size:larger;
+ }
+ form.pluszora ul {
+ text-align: left;
+ }
+
+ ul.pluszora {
+ background-color: rgb(20,40,80);
+ list-style-type: none;
+ margin: 20px;
+ padding: 10px 0px;
+ }
+
+ ul.pluszora li { background-color: rgb(160,160,250); margin: 2px 100px; padding: 2px 20px;}
+ ul.pluszora li span { color: rgb(20,40,80); padding: 0px 5px; margin: 1px 5px;}
+ ul.pluszora li span.oraszam { color: red; padding: 0px 20px;}
+
+ h2 { text-align: center; border: 1px dotted rgb(20,40,80); border-width: 1px 0px; margin: 20px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/pluszora.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/pluszora.css
new file mode 100644
index 00000000..4aaa1dfe
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/pluszora.css
@@ -0,0 +1,30 @@
+
+ form.pluszora {
+// background-color: rgb(200,200,180);
+ text-align: center;
+ margin: 20px;
+ }
+
+ ul.pluszora {
+// background-color: rgb(20,40,80);
+ list-style-type: none;
+ margin: 20px;
+ padding: 10px 0px;
+ }
+
+ ul.pluszora li { background-color: rgb(160,160,250); margin: 1px 100px; padding: 1px 20px;}
+ ul.pluszora li span { color: rgb(20,40,80); padding: 0px 5px; margin: 1px 5px;}
+ ul.pluszora li span.oraszam { color: rgb(128,0,128); padding: 0px 4px;}
+
+ h2 { text-align: center; border: 1px dotted rgb(20,40,80); border-width: 1px 0px; margin: 20px; }
+
+ h1 { margin:20px; }
+ form.pluszLila {margin:20px; padding-left:10px;}
+ form.pluszLila { margin:20px;}
+ form.pluszLila label { display:block; margin-top:2em; margin-bottom:1em; border-bottom: solid 1px #ddd; width:100px; }
+
+ form.pluszLila button.selectorButton { font-size:14px; padding:2px; display:inline-block; cursor: pointer}
+ form.pluszLila button.selectorButton span.icon-plus-sign { color: #009688;}
+ form.pluszLila button.selectorButton span.icon-minus-sign { color: #607D8B}
+
+ form.pluszLila button.selectorButton:active span { text-shadow: 0px 0px 1px cornflowerblue;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/specialis.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/specialis.css
new file mode 100644
index 00000000..68bad63b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/specialis.css
@@ -0,0 +1,36 @@
+
+ form.specialis {
+ background-color: rgb(230,230,230);
+ margin: 40px;
+ text-align: center;
+ padding: 10px;
+ border: 1px solid rgb(20, 40, 80);
+ border-style: solid dotted;
+ }
+
+ form.specialis table {
+ color: white;
+ margin: 10px 20% 10px 20%;
+ width: 60%;
+ background-color: rgb(200,100,180);
+ }
+
+ form.specialis table thead th, form.specialis table tfoot th {
+ background-color: rgb(140,40,120);
+ }
+
+ form.specialis table th {
+ background-color: rgb(160,60,140);
+ }
+
+ form.specialis table td {
+ background-color: rgb(180,80,160);
+ }
+
+ table.napinfo { background: #999999; margin: 0px auto; }
+ table.napinfo th { background: #6688aa; color: white; text-align: center; }
+ table.napinfo td { padding: 5px 15px; width: 300px; }
+ table.napinfo td:nth-child(odd) { background: #aaeecc; }
+ table.napinfo td:nth-child(even) { background: #aaccee; }
+ table.napinfo td h3 { font-size: 12px; }
+ table.napinfo td strong { font-weight: normal; font-style: italic; color: #aa66aa; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/stat.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/stat.css
new file mode 100644
index 00000000..d0cf780a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/stat.css
@@ -0,0 +1,12 @@
+
+ table.stat { background-color: rgb(120,160,140); margin: 0px auto; }
+ table.stat thead tr th { background-color: rgb(60,100,80); padding-left: 8px; padding-right:8px; color: white;
+ border-bottom: solid 1px #00ff00;
+ height:2.5em;
+ }
+ table.stat tbody tr th { text-align: left; background-color: #dddddd; padding:0px 8px; font-weight:normal;}
+ table.stat tbody tr:hover th { color: white; background-color: rgba(255,255,255,0.1);}
+ table.stat tbody tr td { background-color: #eeeeee; text-align: right; padding: 0px 8px}
+ table.stat tbody tr:hover td { background-color: rgba(255,255,255,0.8); }
+
+ table.stat tr td.ertesitendo { background-color: #880000; color: white; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/teremModositas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/teremModositas.css
new file mode 100644
index 00000000..fb360e8c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/teremModositas.css
@@ -0,0 +1,17 @@
+
+ table.terem {
+ background-color: #eeeeee;
+ }
+ table.terem tr th {
+ background-color: #666666;
+ color: white;
+ padding: 1px 3px;
+ }
+ table.terem tr td {
+ background-color: #cdcddc;
+ }
+ table.terem.oraAdat {
+ width:100%;
+ }
+
+ table.terem select option.nemferbe { color: red; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diak.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diak.css
new file mode 100644
index 00000000..8e8d982d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diak.css
@@ -0,0 +1,131 @@
+
+ table.naptar { background-color: #eeeeee; border-spacing: 0px; }
+ table.naptar thead { background-color: #770088; font-size: medium; height:3em; color: white; }
+ table.naptar thead a { color: white; text-decoration: none }
+ table.naptar thead a:hover { color: white; text-decoration: underline }
+
+ table.naptar thead tr th { padding: 0.4em 0.1em; border-bottom: solid 1px #aa00bb; }
+
+ table.naptar tfoot th { padding:0.3em; text-align: center; background-color: #440055; color: white }
+ table.naptar tfoot td { text-align: center; background-color: #770088; border-top: solid 1px #aa00bb; }
+ table.naptar tfoot td select { background-color: #770088; color: white; font-size:11px; font-family: Verdana;
+ border: solid 1px none; }
+ table.naptar tfoot td select option { color: white; background: #fff; color: #000;}
+
+
+ table.naptar tbody th.fejlec { background-color: #440055; color: white; font-style:italic; padding: 0.3em; border-bottom: solid 1px #777777; border-right: solid 0px #999999; }
+ table.naptar tbody th.fej2 {
+ background-color: #440055; color: white; font-style:italic; border-bottom: solid 1px #770088; border-right: solid 1px #999999;
+ }
+ table.naptar tbody th.fej2:last-child { border-right: solid 0px #999999; }
+ table.naptar tbody td.egynap {
+ height: 40px; width:100px;
+ background-color: #dddddd;
+ border-width: 0px 0px;
+ border-style: solid;
+ border-color: #999999;
+ }
+ table.naptar tbody td.uresnap { background-color: #dddddd; height: 40px; }
+
+
+
+
+ table.naptar table.tanuloEgyNapja { height:100%; background-color: #667766; width:110px;}
+
+ table.naptar table.tanuloEgyNapja:hover { background-color: #778877; outline-offset: 0px; outline: solid 2px orange;}
+
+
+ table.tanuloEgyNapja th.datum { color: #ffffff; width: 40px; height: 10px; }
+ table.tanuloEgyNapja th.balgomb { width:15px; }
+ table.tanuloEgyNapja th.balgombokhelye { min-width:30px; width:30px; max-width:30px; }
+ table.tanuloEgyNapja th.jobbgomb { min-width:30px; width:30px; text-align: right; background-color: #889988; }
+
+ table.tanuloEgyNapja td { }
+
+ table.tanuloEgyNapja form { margin:0px; }
+ table.tanuloEgyNapja input { border: solid 1px #666660; font-size:8px; width:14px; padding:0px; }
+ table.tanuloEgyNapja input.I { color: green; }
+ table.tanuloEgyNapja input.I:hover { background-color: green; color: white; outline: solid 1px lightgreen; }
+ table.tanuloEgyNapja input.H { color: red; }
+ table.tanuloEgyNapja input.H:hover { background-color: red; color: white; outline: solid 1px #ff5500; }
+
+ table.tanuloEgyNapja table.orak {background-color: #889988; }
+ table.tanuloEgyNapja table.orak a { color: #eeeee0; text-decoration: none }
+ table.tanuloEgyNapja table.orak a:hover { background-color: #667766; }
+
+ div.spec {
+ /* background-color: rgb(245,123,12); */
+ background-color: #556699;
+ color: white; width:100%; height: 100%;
+ font-size: 10px;
+ text-align: center;
+ margin-bottom:0px;
+
+ }
+ table.szunet {
+ /* background-color: rgb(245,123,12); */
+ background-color: #667777;
+ color: white; width:100%; height: 100%;
+ font-size: 10px;
+ }
+
+
+
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color:orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+ table.hianyzasNaptar {background-color: #778877; font-size:10px; width:100%;}
+ table.hianyzasNaptar th {background-color: #889988; font-weight: normal; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: red; }
+ table.hianyzasNaptar a.igazolatlan:hover { background-color: lightgreen; }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
+
+ table.hianyzasNaptar.kreta {background-color: #3facc7;}
+ table.hianyzasNaptar.kreta tr th {background-color: cornflowerblue;}
+
+ table.naptar tr th span.kepzes {
+ padding: 1px 3px 1px 3px; font-size:10px; background-color: #776690;
+ border-radius: 2px 2px 2px 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css
new file mode 100644
index 00000000..6c83c5d6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css
@@ -0,0 +1,12 @@
+
+ table.igazolatlan { margin: 3em auto; background-color: rgb(20,40,60); width: 50%; }
+
+ table.igazolatlan tr th { background-color: rgb(120,140,160); color: white; height: 1.5em;}
+ table.igazolatlan tr.fej th { border-bottom: solid 1px white; }
+ table.igazolatlan tr.lab th { background-color: rgb(160,180,140); text-align: right; padding-right: 1em; }
+
+ table.igazolatlan tr td { color: black; background-color: #eeeeee; }
+
+ table.igazolatlan tr:hover:nth-child(even) td { background-color: rgb(220,240,160); }
+ table.igazolatlan tr:hover:nth-child(odd) td { background-color: rgb(200,240,240); }
+ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakLista.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakLista.css
new file mode 100644
index 00000000..cceccd64
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/diakLista.css
@@ -0,0 +1,50 @@
+
+ table.hianyzasLista { background-color: #eeeeee; empty-cells:show; }
+ table.hianyzasLista tr th { border-bottom: solid 1px #878787; background-color:#cccccc; }
+ table.hianyzasLista tr td { background-color: #ffffff; }
+
+ table.hianyzasLista form { margin:0px; display: inline;}
+ table.hianyzasLista input { border: solid 1px #666660; font-size:8px; width:14px; }
+
+ table.hianyzasLista caption { background-color: rgb(100,0,100); color: white; padding: 5px; font-size: 12px; font-weight: bold; }
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ table.hianyzasLista tr td.igazolt { background-color: lightgreen; }
+ table.hianyzasLista tr td.igazolatlan { background-color: #cc0000; }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/info.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/info.css
new file mode 100644
index 00000000..d3ac53f8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/info.css
@@ -0,0 +1,19 @@
+
+
+ table.info { background-color: #eeeeee; }
+ table.info thead tr th {
+ background-color: purple; color: white;
+ height: 2em;
+ border-bottom: solid 1px #777777;
+ padding-left:1em;
+ padding-right:1em;
+ }
+ table.info tfoot tr th {
+ background-color: #667760; color: white;
+ }
+ table.info tbody tr th { background-color: #aaaabb; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr td { background-color: white; text-align: center; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr th.up { background-color: red; }
+ table.info tbody tr th.down { background-color: green; }
+
+ table.info tbody tr.nap0 th,table.info tbody tr.nap0 td { border-top: solid 2px #ffaab0; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/nap.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/nap.css
new file mode 100644
index 00000000..c091bc02
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/nap.css
@@ -0,0 +1,131 @@
+@charset "utf-8";
+
+ table.csoportNevsorHianyzok {
+ background-color: #eeeeee;
+ color: white;
+ }
+ table.csoportNevsorHianyzok thead { background-color: #440055; }
+ table.csoportNevsorHianyzok thead a { color: white; text-decoration: none }
+ table.csoportNevsorHianyzok thead a:hover { color: white; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok thead th.neve {
+ background-color: purple;
+ font-size: 12px;
+ height: 2em;
+ }
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat td { font-weight: normal; }
+
+ table.csoportNevsorHianyzok tfoot { background-color: #440055; }
+ table.csoportNevsorHianyzok tfoot input { background-color: #eeeeee; font-size:11px; }
+
+ table.csoportNevsorHianyzok tbody {
+ color: black
+ }
+ table.csoportNevsorHianyzok tbody a { color: black; text-decoration: none }
+ table.csoportNevsorHianyzok tbody a:hover { color: black; text-decoration: underline; }
+
+
+
+ table.csoportNevsorHianyzok tbody th {
+ /* background-color: rgb(80,100,120); */
+ }
+
+ table.csoportNevsorHianyzok td { text-align: left; }
+ table.csoportNevsorHianyzok td.késés { text-align: center; }
+
+ table.csoportNevsorHianyzok tbody tr.delutani td,
+ table.csoportNevsorHianyzok tbody tr.tanoran_kivuli td,
+ table.csoportNevsorHianyzok tbody tr.egyeni_foglalkozas td
+ { background-color: #aaaaaa; }
+
+ table.csoportNevsorHianyzok tbody tr:hover { background-color: #ffffff;}
+ table.csoportNevsorHianyzok td a { color: inherit; }
+
+ table.csoportNevsorHianyzok select { border: solid 1px #888888; background-color: #eeeeee; }
+ table.csoportNevsorHianyzok select.igazolatlan { color: red }
+ table.csoportNevsorHianyzok select.igazolt { color: green }
+ table.csoportNevsorHianyzok td.igazolatlan { color: red }
+ table.csoportNevsorHianyzok td.igazolt { color: green }
+ table.csoportNevsorHianyzok th.radio { width: 28px; }
+ table.csoportNevsorHianyzok tr.magantanulo > td.nemkot { background-color: purple; color: white; }
+
+ table.csoportNevsorHianyzok td.nemkot { text-align: center; color: #888888; font-style: italic; }
+
+ table.csoportNevsorHianyzok tr td input.perc {
+ font-size:10px;
+ vertical-align: top;
+ border: solid 1px #aabb99;
+ text-align: right;
+ width:1.5em;
+ }
+
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas, .hiányzás {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ .hianyzas.checked, .hiányzás.checked {
+ background-color: darkred;
+ }
+
+ .keses, .késés {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ span.perc {
+ border-color: rgb(200,200,100);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ background-color: rgb(230,210,130);
+ color: rgb(100,80,0);
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+ .fbetus {
+ /* border-color: rgb(100,100,200); */
+ border-color: rgb(120,120,220) rgb(190,190,230);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ background-color: rgb(210,210,255);
+ min-width: 18px;
+
+ }
+
+ .kesett {background-color: orange;}
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ table.hianyzasNaptar {background-color: #778877; font-size:10px}
+ table.hianyzasNaptar th {background-color: #889988; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: #667766; }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
+ table.hianyzasNaptar.kreta {background-color: #3facc7;}
+ table.hianyzasNaptar.kreta tr th {background-color: cornflowerblue;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/oktstat.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/oktstat.css
new file mode 100644
index 00000000..4f2ff500
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/oktstat.css
@@ -0,0 +1,22 @@
+
+
+ table.info { background-color: #eeeeee; }
+ table.info thead tr th {
+ background-color: purple; color: white;
+ height: 2em;
+ border-bottom: solid 1px #777777;
+ padding-left:1em;
+ padding-right:1em;
+ }
+ table.info tfoot tr th {
+ background-color: #667760; color: white;
+ }
+ table.info tbody tr th { background-color: #aaaabb; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr td { background-color: white; text-align: center; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr th.up { background-color: red; }
+ table.info tbody tr th.down { background-color: green; }
+
+ table.info tbody tr.nap0 th,table.info tbody tr.nap0 td { border-top: solid 2px #ffaab0; }
+
+
+ div.oktstatszam { border: solid 2px #aaaaaa; display:table-cell; padding:4px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/ora.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/ora.css
new file mode 100644
index 00000000..b94b9421
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/ora.css
@@ -0,0 +1,130 @@
+@charset "utf-8";
+
+ table.csoportNevsorHianyzok { background-color: #eeeeee; color: white; }
+
+ form.delutani table.csoportNevsorHianyzok { background-color: rgb(150,150,150); }
+
+ form.delutani table.csoportNevsorHianyzok thead { background-color: rgb(200,100,100); }
+ form.delutani table.csoportNevsorHianyzok tfoot { background-color: rgb(200,100,100); }
+
+ table.csoportNevsorHianyzok thead { background-color: #440055; }
+ table.csoportNevsorHianyzok thead a { color: white; text-decoration: none }
+ table.csoportNevsorHianyzok thead a:hover { color: white; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat {
+ width:100%;
+ background-color: #eeeeee;
+ font-size: normal;
+ }
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat td { font-weight: normal; }
+
+ table.csoportNevsorHianyzok thead.fejlec tr th { font-weight: normal; height:1.8em; border-bottom: solid 2px rgb(170, 0, 187) }
+
+ table.csoportNevsorHianyzok tfoot { background-color: #440055; }
+ table.csoportNevsorHianyzok tfoot input { background-color: #eeeeee; font-size:11px; }
+
+ table.csoportNevsorHianyzok tbody { color: black ;}
+ table.csoportNevsorHianyzok tbody a { color: black; text-decoration: none }
+ table.csoportNevsorHianyzok tbody a:hover { color: black; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok tbody tr.ujTag th { background-color: lightgreen; }
+ table.csoportNevsorHianyzok tbody tr.ujTag td { background-color: #ffffaa; text-align: center; }
+ table.csoportNevsorHianyzok td { text-align: left; }
+ table.csoportNevsorHianyzok td.késés { text-align: center; }
+ table.csoportNevsorHianyzok tbody tr:hover { background-color: #ffffff;}
+ table.csoportNevsorHianyzok td a { color: inherit; }
+
+ table.csoportNevsorHianyzok select { border: solid 1px #888888; background-color: #eeeeee; }
+ table.csoportNevsorHianyzok select.igazolatlan { color: red }
+ table.csoportNevsorHianyzok select.igazolt { color: green }
+ table.csoportNevsorHianyzok td.igazolatlan { color: red }
+ table.csoportNevsorHianyzok td.igazolt { color: green }
+ table.csoportNevsorHianyzok th.radio { width: 28px; }
+
+ table.csoportNevsorHianyzok td.nemkot { text-align: center; color: #888888; font-style: italic; }
+
+ table.csoportNevsorHianyzok tr td input.perc {
+ font-size:10px;
+ vertical-align: top;
+ border: solid 1px #aabb99;
+ text-align: right;
+ width:1.5em;
+ }
+
+ table.csoportNevsorHianyzok tbody tr.magantanulo > td { background-color: purple; color: white; }
+
+ .jelen {
+ width:12px;
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas, .hiányzás {
+/* width:12px;*/
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ .hianyzas.checked, .hiányzás.checked {
+ background-color: darkred;
+ }
+ .keses, .késés {
+/* width:12px;*/
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ span.perc {
+ border-color: rgb(200,200,100);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ background-color: rgb(230,210,130);
+ color: rgb(100,80,0);
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+ .fbetus {
+ /* border-color: rgb(100,100,200); */
+ border-color: rgb(120,120,220) rgb(190,190,230);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ background-color: rgb(210,210,255);
+ min-width: 18px;
+ }
+
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+
+ .kesett {background-color: orange;}
+
+ table.hianyzasNaptar { background-color: #778877; font-size:10px;}
+ table.hianyzasNaptar th {background-color: #889988; font-weight: normal; text-align:center; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: #667766; }
+ table.hianyzasNaptar td:nth-child(even) { }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
+ table.hianyzasNaptar.kreta {background-color: #3facc7;}
+ table.hianyzasNaptar.kreta tr th {background-color: cornflowerblue;}
+
+ form.vissza { background-color: white; width: 570px; margin: 0px auto; }
+ form.vissza input { border: none; background-color: white; cursor: pointer; }
+
+ table.csoportNevsorHianyzok tbody tr th.c { font-weight: normal }
+ table.csoportNevsorHianyzok tbody tr th.c:hover span { display: none; }
+ table.csoportNevsorHianyzok tbody tr th.c:hover:after { content: "\e0ca"; font-family: "Elusive-Icons";}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztaly.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztaly.css
new file mode 100644
index 00000000..cf0665a2
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztaly.css
@@ -0,0 +1,179 @@
+
+ table.hianyzas {
+ background-color: rgb(180,180,200);
+ color: white;
+ max-width:95%;
+ }
+
+ table.hianyzas thead th {
+ background-color: rgb(40,80,120);
+ }
+
+ table.hianyzas thead th.alcim {
+ background-color: rgb(255,255,255);
+ color: rgb(40,80,120);
+ font-style: italic;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.hianyzas thead th.alcim img { hight: 16px; }
+
+ table.hianyzas tfoot th { background-color: rgb(80,20,80); }
+ table.hianyzas tfoot td { background-color: rgb(95,75,95); text-align: center; }
+
+ table.hianyzas tbody td { text-align: center; }
+ table.hianyzas tbody td.nev {
+ background-color: rgb(90,90,110);
+ font-style: italic;
+ padding: 4px 10px 4px 10px;
+ text-align:left;
+ }
+
+ table.hianyzas tbody tr.jogviszonyalezarva td.nev {
+ background-color: rgb(40,40,90);
+ }
+
+ table.hianyzas tbody tr.magantanulo td.nev {
+ background-color: rgb(140,40,90);
+ }
+
+ table.hianyzas tbody td.nev a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.hianyzas tbody td.nev a:hover {
+ color: white;
+ /* background-color: rgb(180,180,220); */
+ text-decoration: underline;
+ }
+
+ table.hianyzas tbody td.ulezart {
+ width: 18px;
+ background-color: rgb(200,200,220);
+ }
+
+ table.hianyzas tbody td.lezart {
+ width: 18px;
+ background-color: rgb(100,100,120);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uigazolhato {
+ width: 18px;
+ background-color: rgb(240,240,260);
+ }
+
+ table.hianyzas tbody td.igazolhato {
+ width: 18px;
+ background-color: rgb(140,140,160);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uosszes {
+ width: 18px;
+ background-color: rgb(220,240,230);
+ }
+
+ table.hianyzas tbody td.osszes {
+ width: 18px;
+ background-color: rgb(120,140,130);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.kreta {
+ width: 18px;
+ background-color:cornflowerblue;
+ text-align: center;
+ }
+ table.hianyzas tbody td.kreta.keses {
+ background-color: ;
+ }
+
+ table.hianyzas tbody td.ufegyelmi {
+ width: 18px;
+ background-color: rgb(220,230,240);
+ }
+
+ table.hianyzas tbody td.fegyelmi {
+ width: 18px;
+ background-color: rgb(130,150,150);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.ufokozat {
+ width: 18px;
+ background-color: rgb(220,210,200);
+ }
+
+ table.hianyzas tbody td.fokozat { background-color: rgb(120,110,100); }
+ table.hianyzas tbody td.fokozat form { display: inline; }
+ table.hianyzas tbody td.fokozat form input,select { font-size:11px; }
+ table.hianyzas tbody td.fokozat form select option.megerdemelt { background-color: rgb(100,100,100); color: rgb(220,255,220); }
+ table.hianyzas tbody td.fokozat form select option.tiltott { background-color: rgb(100,100,100); color: rgb(250,100,100); font-family: italic }
+
+ table.hianyzas tbody td.oi { text-align: center; }
+
+ /* table.hianyzas tbody */
+ td.hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.felszereles {
+ border-color: rgb(100,100,200);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ td.egyenruha {
+ border-color: orange;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.felmentes {
+ border-color: rgb(100,200,100);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.igazolt { color: rgb(55,255,55); }
+ /* table.hianyzas tbody */
+ td.igazolatlan { color: rgb(255,55,55); }
+ /* table.hianyzas tbody */
+ td.mind { color: white; }
+
+ /* navi */
+
+ table.navi {
+ width:95%;
+ background-color: #666699;
+ color: #eeeee0;
+ }
+ table.navi th, table.navi td {
+ text-align: center;
+ border-style: solid none solid none;
+ border-width: 1px 0px 2px 0px;
+ border-color: #aabbc0;
+ }
+ table.navi input {
+ margin-left: 16px;
+ background-color: #778890;
+ border: solid 1px #aabbc0;
+ }
+ table.navi input.aktiv {
+ color: #aabbc0;
+ background-color: rgb(90,50,90);
+ }
+ table.navi select { border: 1px solid #eeeee0; background-color: #aabbc0; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css
new file mode 100644
index 00000000..6664faa5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css
@@ -0,0 +1,43 @@
+
+ table.hianyzas { margin: auto; border-spacing: 1px; background-color:#aaaaaa; }
+ table.hianyzas thead th { background-color: #440055; padding: 4px 8px; color: white;
+ }
+ table.hianyzas tbody th { background-color: rgb(150,140,150); padding: 4px 2px; color: white; }
+ table.hianyzas tbody th.tk { background-color: #ffffff; color: black; font-weight:normal;font-style: italic; padding-left:10px; padding-right:10px; }
+
+ table.hianyzas tfoot th { background-color: #440055; padding: 1px; color: white; border-bottom: solid 1px white; text-align: right; font-size:xx-small; }
+ table.hianyzas tbody td { background-color: #ffffff; padding: 4px 8px; }
+
+
+ table.hianyzas tbody tr td.d { width:5px; padding:0px;
+ border-width: 0px 4px 0px 4px;
+ border-style: solid;
+ text-align: center;
+ color: white;
+ font-weight: bold;
+ }
+
+ table.hianyzas tbody tr td.d.igazolatlan {
+ background-color: #cc0000;
+ }
+ table.hianyzas tbody tr td.d.igazolt {
+ background-color: #00cc00;
+ }
+ table.hianyzas tbody tr td.d.hianyzas {
+ border-color: rgb(200,100,100);
+ }
+ table.hianyzas tbody tr td.d.keses {
+ border-color: rgb(200,200,100);
+ }
+ table.hianyzas tbody tr td.d.felszereles {
+ border-color: rgb(100,100,200);
+ }
+ table.hianyzas tbody tr td.d.egyenruha {
+ border-color: orange;
+ }
+
+ table.hianyzas tbody th a { color: white; text-decoration: none; }
+ table.hianyzas tbody th.tk a { color: black; text-decoration: none; }
+ table.hianyzas tbody td a { color: black; text-decoration: none; }
+ table.hianyzas tbody th a:hover,
+ table.hianyzas tbody td a:hover { text-decoration: underline; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/admin.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/admin.css
new file mode 100644
index 00000000..89eefd3d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/admin.css
@@ -0,0 +1,89 @@
+
+ ol.kerelem { list-style-type: none; margin: 0px; padding:10px;}
+ ol.kerelem li { background-color: #ddd; margin: 10px 0px 10px 0px; padding: 10px; text-align: left; }
+ ol.kerelem li div.szoveg { background-color:; padding: 10px; margin: 0px auto; color: white; font-size: 14px;}
+ ol.kerelem li div.valasz { background-color: rgb(220,200,180); width: 80%; padding: 10px; margin: 5px auto 10px auto; font-style: italic; }
+
+ ol.kerelem fieldset { background-color: #3F51B5;#3c3c64;#2196f3; border-style:hidden; }
+ ol.kerelem legend { border: 1px solid white; padding: 6px; font-weight: normal; color: white;background-color: #aaa; ; }
+ ol.kerelem li textarea { width: 90%; margin: 10px auto; border: solid 1px #888888; font-size:14px; height:5em; padding:0.8em; }
+
+ ol.kerelem span.dt { padding: 5px 10px; margin: 5px 20px; border: 1px solid white; font-weight: bold; color: white; background-color: rgb(60,100,60); }
+ ol.kerelem input { padding: 5px 10px; margin: 5px 20px; border: 1px solid white; font-weight: bold; color: white; background-color: rgb(100,100,60); }
+
+ span.mg { background-color: orange; color: white; padding:7px 20px; margin:20px; border: solid 1px white; }
+ span.mg2 { background-color: rgb(200,100,100); color: white; padding:7px 20px; margin:20px; border: solid 1px white; }
+ ol.kerelem select.mg { background-color: orange; color: white; font-weight: bold; border: solid 1px orange; }
+ ol.kerelem select.telephely { background-color: rgb(200,100,100); color: white; font-weight: bold; border: solid 1px rgb(200,100,100); }
+
+ ol.kerelem input.mg { background-color: rgb(100,100,100); }
+
+ ol.kerelem li.jovahagyott,
+ ol.kerelem input.jh { background-color: rgb(100,160,100); }
+ ol.kerelem input.njh { background-color: rgb(200,100,60); }
+ ol.kerelem input.done { background-color: rgb(100,100,160); }
+
+ ol.kerelem li.jovahagyott { border: solid 1px green; }
+
+ table.kerelemValasz { width:99%; background-color: #efefef; margin:auto;}
+ table.kerelemValasz tr th { width:80px; font-weight:normal; text-align:right; vertical-align:top; padding:2px 4px;}
+ table.kerelemValasz tr td.userAccount { border-left: solid 2px white;}
+ table.kerelemValasz tr.c0 td.userAccount { border-color: #ffeb3b;}
+ table.kerelemValasz tr.c1 td.userAccount { border-color: #ffc107;}
+ table.kerelemValasz tr.c2 td.userAccount { border-color: #ff9800;}
+ table.kerelemValasz tr.c3 td.userAccount { border-color: #ff5722;}
+ table.kerelemValasz tr.c4 td.userAccount { border-color: #03a9f4;}
+
+ table.kerelemValasz tr td { background-color: white; padding:2px 4px; vertical-align:top;}
+ table.kerelemValasz tr td.userAccount { width:80px;}
+
+ table.kerelemValasz span.diakNev { height:10px; width:10px; font-size:10px; color:white; background-color: #6495ed; border-radius:50%; padding:2px; border: solid 2px #eee;}
+ table.kerelemValasz span.diakNev:hover { border: solid 2px #15477b;}
+
+ table.kerelemValasz span.tanarNev { height:10px; width:10px; font-size:10px; color:white; background-color: #db0601; border-radius:50%; padding:2px; border: solid 2px #eee;}
+ table.kerelemValasz span.tanarNev:hover { border: solid 2px #e91e63;}
+
+ form.hiba {
+ background-color: cornflowerblue;
+ margin:10px;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 0.5em;
+ color: white;
+ margin-bottom: 2em;
+ text-align: center;
+ border-bottom: solid 1px rgb(20,40,60);
+ }
+
+ form.hiba h1 { font-size: 14pt; border-bottom: solid 1px #eee; background-color: rgb(20,40,60); margin: 4px 0px; padding: 3px}
+/*
+ form.hiba textarea { font-size: 14px; background-color: rgb(250,250,250); width: 99%; height: 100px; border: solid 1px black; padding:2px;}
+*/
+form.hiba textarea {
+ font-size:14px;
+ margin-top: 10px;
+ margin-left: 0px;
+ width: 90%;
+ height: 100px;
+ -moz-border-bottom-colors: none;
+ -moz-border-left-colors: none;
+ -moz-border-right-colors: none;
+ -moz-border-top-colors: none;
+ background: none repeat scroll 0 0 rgba(255, 255, 255, 0.9);
+ border-color: -moz-use-text-color #FFFFFF #FFFFFF -moz-use-text-color;
+ border-image: none;
+ border-radius: 0px;
+ border-style: none solid solid none;
+ border-width: medium 1px 1px medium;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
+ color: #555555;
+ line-height: 1.4em;
+ padding: 5px 8px;
+ transition: background-color 0.1s ease 0s;
+}
+
+textarea:focus {
+ background-color: #fff !important;
+ background: none repeat scroll 0 0 #FFFFFF;
+ outline-width: 0;
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css
new file mode 100644
index 00000000..833b24b6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css
@@ -0,0 +1,18 @@
+
+ form.hiba {
+ background-color: cornflowerblue;
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 0.5em;
+ color: white;
+ margin-bottom: 2em;
+ text-align: center;
+ border-bottom: solid 2px rgb(20,40,60);
+ }
+
+ form.hiba h1 { font-size: 14pt; border-bottom: solid 2px rgb(100,200,160); border-width: 2px 0px; background-color: rgb(20,40,60); margin: 4px 0px; padding: 3px}
+ form.hiba textarea { font-size: 14px; background-color: white; width: 99%; height: 100px; border: solid 1px black; padding:2px;}
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/cronFutar.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/cronFutar.css
new file mode 100644
index 00000000..9ddb9010
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/cronFutar.css
@@ -0,0 +1,9 @@
+
+ div.emailFejlec {
+ text-align: center; border-bottom: solid 1px cornflowerblue ;
+ font-size:18px; line-height:30px; margin-bottom:20px; padding:4px;
+ margin-right:auto; margin-left: auto;
+ width:200px;
+ /* background: linear-gradient(90deg, #336, #0aa); */
+ color: cornflowerblue;
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/hirnok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/hirnok.css
new file mode 100644
index 00000000..20b9861f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/hirnok/hirnok.css
@@ -0,0 +1,108 @@
+
+ /* flex container */
+ div.hirnokDoboz {
+ width:90%;
+ max-width: 800px;
+ background-color: #f8f8f8;
+ padding:2px;
+ border: solid 1px #ddd;
+ border-radius: 2px;
+ margin-left: auto; margin-right:auto;
+ margin-bottom:1em;
+ display:flex;
+ align-items: center;
+ }
+ /* special */
+ div.hirnokDoboz.uzeno {
+ align-items: flex-start;
+ }
+
+ /* flex item */
+ div.hirnokBadgeHolder {
+ /*height: 30px;*/
+ padding: 2px;
+ margin: 4px;
+ }
+ div.hirnokBadgeHolder span {
+ height:30px;
+ width:30px;
+ font-size:30px;
+ padding:4px;
+ margin:0px;
+ color: white;
+ background-color: cornflowerblue;
+ border-radius: 2px;
+ }
+ div.hirnokBadgeHolder a:hover span { background-color: rgba(255,0,100,0.5); }
+ div.hirnokBadgeHolder.jegy span { background-color: lightgreen; }
+ div.hirnokBadgeHolder.haladasiBeiratlan span { background-color: orange; }
+ div.hirnokBadgeHolder.zaroJegy span { background-color: gold; }
+ div.hirnokBadgeHolder.uzeno span { background-color: #3f51b5; }
+ div.hirnokBadgeHolder.bejegyzes span { background-color: #9c27b0; }
+ div.hirnokBadgeHolder.bejegyzes.bejegyzes_dicseret { background-color: red; }
+ div.hirnokBadgeHolder.haladasiOra span { background-color: #9c27b0; }
+
+ div.hirnokDoboz.uzeno div.hirnokBadgeHolder, div.hirnokDoboz.uzeno div.hirnokDt {
+ padding-top:8px;
+ }
+
+ div.hirnokDt {
+ font-size:smaller;
+ padding-right: 2px;
+ }
+ div.hirnokDt a { color: black; }
+ div.hirnokDt a:hover { text-decoration: underline; }
+ div.hirnokDt span { color: #aaa; }
+ div.hirnokDt span a { color: #aaa; }
+ div.hirnokDt span a:hover { text-decoration: underline; }
+ div.hirnokText {
+ padding-left:6px;
+ padding-right:6px;
+ padding-top: 6px;
+ padding-bottom:6px;
+ border-left: solid 1px #aaa;
+ margin-left:2px;
+ margin:auto;
+ flex: 0 1 90%;
+ }
+
+ div.hirnokRight {
+ /*border-left: solid 1px #aaa;*/
+ }
+
+ div.hirnokFooter {flex-break: after; width:500px; background-color:#ddd; border-top:solid 1px black;}
+
+
+ div.hirnokSeparator {
+ color: #888;
+ max-width:150px;
+ margin:auto;
+ text-align:center;
+ padding:10px;
+/* border-bottom: solid 1px #eee; */
+ }
+ div.hirnokSeparator {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ }
+ div.hirnokSeparator:before, div.hirnokSeparator:after{
+ content: "";
+ flex: 1 1;
+ border-bottom: 1px solid #ddd;
+ margin: auto;
+ }
+ div.hirnokSeparator a { color:inherit; display:block;}
+ div.hirnokSeparator:hover { background-color: cornflowerblue; color:white; }
+
+
+/* teszt */
+ div.hirnokDoboz div.hirnokIkonKontener{ display:inline-flex; padding-left:1em; opacity: 0.2; visibility: hidden}
+ div.hirnokDoboz div.hirnokIkonKontener span { padding-left:4px; padding-right:4px;}
+ div.hirnokDoboz:hover div.hirnokIkonKontener{ display:inline-flex; padding-left:1em; opacity: 1;
+ transition: visibility 0s, opacity 0.5s linear;
+visibility: visible;
+}
+ div.hirnokText a { color: #aaa; }
+ div.hirnokText a:hover { color:#111; cursor: hand }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diak.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diak.css
new file mode 100644
index 00000000..6475a4f4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diak.css
@@ -0,0 +1,167 @@
+
+ div.diakStatusz {
+ position:absolute;
+ right:28px;
+ background-color: #dddddd; border: solid 1px black; padding:10px;
+ font-size:13px;
+ border-radius:2px;
+ }
+
+ form.diak #felfuggesztesOk { width: 500px; margin-top: 10px; }
+ form.diak #lezarasIgazolatlan { width: 50px; }
+ form.diak #lezaras { margin-top: 10px; }
+ form.diak label { font-weight: bold; }
+
+ form.diak table tr th label { font-weight: normal; }
+
+ div form.diak fieldset { background-color: #efefef; box-shadow: 1px 1px 1px #cccccc; padding-top:1.5em;}
+ fieldset.bizonyitvanyTorzslap { background-color: #DD1458 !important; box-shadow: 1px 1px 1px #cccccc; padding-top:1.5em; color: white;}
+
+ form.diak { margin: 5px 30px 50px 20px; font-size:13px; }
+ form.diak h1 { border: solid rgb(40,60,80); border-width: 0px 0px 1px 0px; background-color: rgb(80,100,120); text-align: center; color: white; margin:0px 0px; font-size:13px; padding:2px;}
+
+ form.diak input, form.diak select {
+ font-size:13px;
+ border: solid 1px #777777;
+ margin-left: 3px;
+ padding-left: 2px;
+ }
+
+ form.diak input.diakSubmit { float:right; padding:2px 30px; width:100px; }
+
+/* lásd alul */
+ form.diak:hover input.diakSubmit { border: solid 1px lightgreen; }
+ form.diak:hover input.diakSubmit:hover { background-color: lightgreen; }
+
+ form.diak input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.diak label { font-size:13px; }
+ form.diak label.kotelezo { color:rgb(100,20,20); }
+
+ form.diak input:read-only { background-color: #aaa; }
+ form.diak input:focus, form.diak select:focus { background-color: orange; }
+
+/* form.diak input[type="checkbox"] { -moz-appearance: none; }*/
+ from.diak input.ajaxRequest { color: black; background-color: red; }
+ form.diak input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak input.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+ form.diak select.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+
+ form.diak input:hover { outline: solid 1px lightblue; }
+
+ form.diak fieldset { border: solid 1px rgb(140,160,180); }
+ form.diak fieldset th { text-align: right; }
+ form.diak fieldset legend {
+ background-color: rgb(100,120,140);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak fieldset:hover legend { box-shadow: 0px 0px 1px rgb(21, 174, 236); }
+ form.diak fieldset fieldset:hover legend { box-shadow: 0px 0px 1px orange; }
+
+ form.diak #megjegyzes { width: 90%; }
+ div.magantanulo form.diak fieldset { background-color: rgb(180,180,100); }
+ div.magantanulo form.diak fieldset legend { background-color: rgb(80,80,10); }
+ div.vendegtanulo form.diak fieldset { background-color: rgb(180,180,180); }
+ div.vendegtanulo form.diak fieldset legend { background-color: rgb(80,80,10); }
+
+ div.jogviszonyLezarva form.diak fieldset { background-color: rgb(210,140,130); }
+ div.jogviszonyLezarva form.diak fieldset legend { background-color: rgb(110,40,30); }
+ div.jogviszonyFelfuggesztve form.diak fieldset { background-color: rgb(130,140,210); }
+ div.jogviszonyFelfuggesztve form.diak fieldset legend { background-color: rgb(30,40,110); }
+ div.felveteltNyert form.diak fieldset { background-color: lightgreen }
+ div.felveteltNyert form.diak fieldset legend { background-color: rgb(40,110,30); }
+/*
+ div.magantanulo form.diak fieldset { background-color: rgb(180,180,100); }
+ div.jogviszonyLezarva form.diak fieldset { background-color: rgb(210,140,130); }
+ div.jogviszonyFelfuggesztve form.diak fieldset { background-color: rgb(130,140,210); }
+ div.felveteltNyert form.diak fieldset { background-color: rgb(140,210,130); }
+*/
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+
+ form.diak table.fiu { border-left: solid 4px cornflowerblue;}
+ form.diak table.lany { border-left: solid 4px deeppink;}
+
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; font-weight: normal; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 13px;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+ form.diak td.top { vertical-align: top; }
+ form.diak fieldset fieldset legend { background-color: white; color: black; }
+
+ form.diak ul li { font-size:13px; list-style-type: square; }
+ form.diak ul li.volt { background: #aaaaaa; list-style-type: circle; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+ form.megnyitas input { border: 2px solid red; background-color: rgb(120,50,10); color: white; font-size: 13px; font-weight: bold; padding: 4px; }
+ form.statusz { border: 1px solid rgb(40,60,80); padding: 2px; text-align: center; }
+
+ form.diak span.naploSorszam { background-color: rgb(120,120,160); color: white; padding:0px 10px; font-size:normal; }
+
+ #createAccount { background-color: green; color: white; float: left; margin-left: 200px; }
+ #deleteAccount { background-color: red; color: white; float: right; margin-right: 200px; }
+
+
+form.diak input.diakSubmit
+{
+ border:1px solid #15aeec; -webkit-border-radius: 3px; -moz-border-radius: 3px;border-radius: 3px;
+ text-decoration:none; display:inline-block;
+ text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
+ font-weight:bold; color: #FFFFFF;
+ background-color: #49c0f0; background-image: -webkit-gradient(linear, left top, left bottom, from(#49c0f0), to(#2CAFE3));
+ background-image: -webkit-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -moz-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -ms-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -o-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: linear-gradient(to bottom, #49c0f0, #2CAFE3);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#49c0f0, endColorstr=#2CAFE3);
+}
+
+
+button:hover, .toolBarTool table.flipper input:hover,form.diak input.diakSubmit:hover
+, table.toolBar tr td.szemely:hover
+ {
+ border:1px solid #1090c3;
+ background-color: #1ab0ec; background-image: -webkit-gradient(linear, left top, left bottom, from(#1ab0ec), to(#1a92c2));
+ background-image: -webkit-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -moz-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -ms-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -o-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: linear-gradient(to bottom, #1ab0ec, #1a92c2);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#1ab0ec, endColorstr=#1a92c2);
+}
+
+
+table.diakNyelvvizsgak {
+ background-color: white;
+ padding:10px;
+ margin:auto;
+ margin-bottom: 2em;
+}
+table.diakNyelvvizsgak tr th {
+ background-color: #e91e63;
+ color:white;
+ text-align:center;
+ padding: 2px 4px;
+ border-bottom: solid 1px #aaa;
+}
+table.diakNyelvvizsgak tr td {
+ border: solid 1px black; border-collapse: collapse;
+ padding: 4px;
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakExport.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakExport.css
new file mode 100644
index 00000000..b07bf0db
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakExport.css
@@ -0,0 +1,46 @@
+
+ form.diak { background-color: white; }
+
+ form.diak { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.diak h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.diak input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.diak label { font-size:11px; }
+ form.diak label.kotelezo { color:rgb(100,20,20); }
+ form.diak input:focus { background-color: orange; }
+
+ form.diak fieldset { border: solid 1px rgb(40,60,80); }
+ form.diak fieldset th { text-align: right; }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 12pt;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css
new file mode 100644
index 00000000..e7630da3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css
@@ -0,0 +1,33 @@
+div.FM {
+ margin:10px auto;
+ width: 90%;
+ padding-bottom:2em;
+ border-bottom: solid 1px rgb(100,120,140);
+}
+
+div.FM h2 {
+ background-color: rgb(200,240,200);
+ border-bottom: solid 1px white;
+}
+
+div.FM div { padding: 1em; }
+div.FM label { padding:0px 10px 0px 20px; font-weight: bold; font-size:13px; line-height:2em;}
+
+div.FM.FM1 {background-color:rgb(200,210,220);}
+div.FM.FM2 {background-color:rgb(200,210,220);}
+div.FM.FM3 {background-color:rgb(200,210,220);}
+div.FM.FMZAR, div.FM.FMTAN {background-color:rgb(210,250,210); }
+
+div.FM div.submit { text-align: center; }
+
+div.FM div.rejtett { }
+
+div.FM table {
+ width:100%; border: solid 1px #787878;
+ background-color: lightgreen;
+}
+div.FM table th { background-color: #56765f; color: white; border-bottom: solid 1px white;}
+div.FM table td { }
+
+div.FM input[readonly] { background-color: #dddddd; }
+div.FM input { background-color: #ffffff; border: solid 1px #787878;} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css
new file mode 100644
index 00000000..c824ece3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css
@@ -0,0 +1,14 @@
+
+ div.dj { margin: 2px 10px; background-color: rgb(200,220,240); padding: 20px; }
+ div.dj form { background-color: rgb(240,245,250); padding: 10px; }
+ div.dj ul { list-style-type: none; margin: 0px; padding: 5px 0px; background-color: rgb(20,40,60); }
+ div.dj ul li { margin: 5px; padding: 2px 0px; background-color: rgb(140,160,180); }
+ div.dj ul li form { margin: 4px; }
+ div.dj ul li span.dt { font-weight: bold; color: red; }
+ div.dj ul li form.statusz p { padding: 3px; margin: 0px; }
+ div.dj ul li form.zaradek p { font-style: italic; }
+ div.dj ul li form.zaradek p span { color: red; }
+ div.dj ul li h2 { font-size: 12px; border: solid rgb(140,160,180); border-width: 1px 0px; padding: 3px; }
+ div.dj ul li form input[type=submit] { font-size: 12px; margin: 3px 20px; float:right;}
+ div.dj ul li form select { font-size: 12px; padding: 5px; }
+ div.dj ul li table th { text-align: right; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css
new file mode 100644
index 00000000..bd007b93
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css
@@ -0,0 +1,49 @@
+
+# form.diak { background-color: rgb(40,60,80); color: white; margin: 5px 20px; padding: 4px 10px; }
+
+ form.diak { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.diak h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ margin: 2px;
+ }
+ form.diak label { font-size:11px; padding: 10px;}
+ form.diak input:focus, form.diak select:focus { background-color: orange; }
+ form.diak input[type="checkbox"] { /* -moz-appearance: none; */ }
+ from.diak input.ajaxRequest { color: black; background-color: red; }
+ form.diak input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+
+ form.diak fieldset { border: solid 1px rgb(40,60,80); }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 12pt;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css
new file mode 100644
index 00000000..49310124
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css
@@ -0,0 +1,70 @@
+
+table.tankor {
+ background-color: rgb(100,100,150);
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 0px;
+}
+
+table.tankor tr th {
+ background-color: rgb(50, 50, 110);
+ border-bottom: solid 1px white;
+}
+table.tankor tr.benne td {
+ background-color: rgb(100,150,100);
+}
+
+table.tankor tfoot tr td {
+ background-color: rgb(150,100,150);
+ text-align: center;
+}
+
+
+h2.tankorTablazat {
+ width:80%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css
new file mode 100644
index 00000000..36ce800f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css
@@ -0,0 +1,126 @@
+
+table.tankor {
+ background-color: rgb(100,100,150);
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 0px;
+ empty-cells:show;
+}
+
+table.tankor thead tr th {
+ background-color: rgb(50, 50, 110);
+ border-bottom: solid 1px white;
+ padding-top:0.8em;
+ padding-bottom:0.8em;
+}
+table.tankor thead tr.small th { padding:0.2em; }
+table.tankor tbody tr th {
+ text-align: center; background-color: rgb(150,100,150);
+ border-bottom: solid 1px white;
+ border-top: solid 1px;
+ padding:2px;
+ font-weight: normal;
+}
+table.tankor tbody tr td.k { text-align: center; background-color: rgb(160,140,180); }
+
+
+table.tankor tr.benne td {
+ background-color: rgb(100,150,100);
+}
+
+table.tankor tr.ez td {
+ border-top: solid rgb(0,0,0); border-width: 1px 0px;
+ color: black ;
+ background-color: orange;
+}
+table.tankor tr.ez td input.felvesz { background-color: green; color:white;}
+table.tankor tr.ez td input.lead { background-color: red; color:white;}
+
+table.tankor tr.utkozik td {
+ border-top: solid rgb(0,0,0); border-width: 1px 0px;
+ color: #444444;
+ background-color: rgb(100,100,100); text-decoration: line-through;
+}
+table.tankor tr.utkozik td input {
+ background-color:#555555;
+ color: #777777;
+ text-decoration: underline !important;
+}
+
+table.tankor tr td {
+ border: solid white;
+ border-width: 1px 0px;
+ color: #ffffff;
+ padding-left:0.5em;
+ padding-right:0.5em;
+}
+table.tankor tr td.szam { text-align: right; }
+table.tankor tr td.lok { background-color: rgb(150,200,100); }
+table.tankor tr td.lsok { background-color: rgb(150,100,100); }
+table.tankor tr td.lkeves { background-color: rgb(150,150,100); }
+table.tankor tr td.loktop { border-right:dotted 2px red; }
+table.tankor tr td.lokbottom { border-left:dotted 2px yellow; }
+
+table.tankor tfoot tr td {
+ background-color: rgb(150,100,150);
+ text-align: center;
+ border-top: solid 1px white;
+ padding-top:0.5em;
+ padding-bottom:0.5em;
+ border-bottom: solid 1px rgb(50,50,110);
+}
+
+
+h2.tankorTablazat {
+ width:80%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px #444444;
+}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+table.tankor input { font-size:11px; }
+input.felvesz { border: solid 1px #777777;}
+input.lead { border: solid 1px #777777;}
+input[disabled] { border: none; background-color: #cccccc; color: #aaaaaa; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/felmentes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/felmentes.css
new file mode 100644
index 00000000..d47fad84
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/felmentes.css
@@ -0,0 +1,36 @@
+div.FM {
+ margin:10px auto;
+ width: 90%;
+ padding-bottom:2em;
+ border-bottom: solid 1px rgb(100,120,140);
+}
+
+div.FM a { color: #4682B4}
+div.FM a:hover { color: #1E90FF}
+
+div.FM h2 {
+ background-color: rgb(200,240,200);
+ border-bottom: solid 1px white;
+}
+
+div.FM div { padding: 1em; }
+div.FM label { padding:0px 10px 0px 20px; font-weight: bold; font-size:13px; line-height:2em;}
+
+div.FM.FM1 {background-color:rgb(200,210,220);}
+div.FM.FM2 {background-color:rgb(200,210,220);}
+div.FM.FM3 {background-color:rgb(200,210,220);}
+div.FM.FMZAR, div.FM.FMTAN {background-color:rgb(210,250,210); }
+
+div.FM div.submit { text-align: center; }
+
+div.FM table {
+ width:100%; border: solid 1px #787878;
+ background-color: #eee;
+}
+div.FM table th { background-color: #56765f; color: white; border-bottom: solid 1px white;}
+div.FM table td { background-color: #e0e0e0;}
+
+div.FM table tr:hover td { background-color: #f0f0f0;}
+
+div.FM input[readonly] { background-color: #dddddd; }
+div.FM input { background-color: #ffffff; border: solid 1px #787878;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css
new file mode 100644
index 00000000..735d7c9c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css
@@ -0,0 +1,14 @@
+
+ form.kepesites { margin: 20px 30px; background-color: #ddd; padding: 30px; }
+ form.kepesites input[type=text] { width: 800px; padding: 10px; }
+ form.kepesites label { margin-left: 20px; margin-right: 10px; }
+ form.kepesites ul {}
+ form.kepesites span.delTargy,
+ form.kepesites span.delTanar { color: #aaa; margin: 0px 4px; cursor: pointer; display:none; }
+ form.kepesites ul li:hover span.delTargy,
+ form.kepesites ul li:hover span.delTanar { display: inline;}
+
+ form.kepesites ul li:hover span.delTargy:hover,
+ form.kepesites ul li:hover span.delTanar:hover { color: #f00;}
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzes.css
new file mode 100644
index 00000000..44cfe3fd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzes.css
@@ -0,0 +1,25 @@
+
+ form.kepzes { background-color: rgb(70,70,120); color: white; margin: 30px; text-align: left; padding: 0px 0px 10px 0px; }
+ form.kepzes h1 { background-color: rgb(0,0,80); text-align: center; border: white solid; border-width: 1px 0px; font-size: 16px; padding: 4px 2px; }
+
+ form.kepzes.eles { background-color: rgb(70,120,70); }
+ form.kepzes.eles h1 { background-color: rgb(0,80,0); }
+
+ form.kepzes.hibernalt { background-color: rgba(0,0,0,0.6); }
+
+ form.kepzes select.osztalySel { height: 400px; min-width: 200px; }
+
+ form.kepzes div { display:table-cell; padding:20px 0px 10px 120px;}
+ form.kepzes p { text-align: center; }
+
+ form.kepzes span.minih {
+ display:block;padding: 2px 15px; background-color: rgb(100, 200, 100); border-top:solid 1px white;
+ }
+
+ form.kepzes option.jellegUgyanaz { color: green; }
+
+ .hidden { display: none; }
+
+ form.kepzes label { display: inline-block; padding: 10px; width: 100px; text-align: right; }
+ form.kepzes input[type=text] { width: 500px; }
+ form.kepzes input[type=submit] { width: 500px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css
new file mode 100644
index 00000000..21fb65e4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css
@@ -0,0 +1,100 @@
+
+ form.kepzesOraterv table { background-color: rgb(20,40,60); color: white; width:98%;}
+ form.kepzesOraterv table th { background-color: rgb(40,60,80); }
+ form.kepzesOraterv table th.lezart { background-color: black; font-style:italic; }
+ form.kepzesOraterv table th.aktiv { background-color: rgb(80,130,80); }
+
+
+ form.kepzesOraterv table tbody tr th.nm { background-color: rgb(80,100,140); }
+ form.kepzesOraterv table tbody tr td.nn { background-color: rgb(140,170,140); }
+
+ form.kepzesOraterv table tbody tr:hover th { background-color: rgb(80,130,80); }
+ form.kepzesOraterv table tbody tr:hover td { background-color: rgb(80,130,80); }
+
+ form.kepzesOraterv table thead tr th { height:2.5em; }
+ form.kepzesOraterv table tfoot tr th { height:2.5em; }
+/* form.kepzesOraterv table thead tr.evfolyamJel th { height:3em; }*/
+ form.kepzesOraterv table thead td:hover { background-color: orange; }
+ form.kepzesOraterv table tbody tr td:hover { background-color: lightgreen; }
+
+ form.kepzesOraterv table tfoot tr td.alert { background-color: #880000; color:white }
+ form.kepzesOraterv table tfoot tr td.ok { background-color: #008800; color:white }
+
+ form.kepzesOraterv table th.bigleft { font-size: larger; border-bottom: solid 1px #667788; }
+
+ form.kepzesOraterv table td { background-color: rgb(60,70,80); text-align: center;}
+ form.kepzesOraterv table td.lezart { background-color: black;}
+ form.kepzesOraterv table td.aktiv { background-color: rgb(80,130,80); }
+/*
+ form.kepzesOraterv table td { max-width:100px; font-size:10px; }
+ form.kepzesOraterv table td div { display: none;}
+ form.kepzesOraterv table td div { display: none;}
+ form.kepzesOraterv table td:hover span { display: none;}
+ form.kepzesOraterv table td:hover div { display: block; background-color: rgba(100,100,100,0.5); }
+*/
+
+/*
+ form.kepzesOraterv table td.nn select, form.kepzesOraterv table td.nn input {
+ border-bottom: solid 1px white;
+ background-color: rgb(140,170,140); color: white;
+ }
+*/
+ form.kepzesOraterv table tbody td { background-color: #222222; }
+
+ form.kepzesOraterv table tfoot tr.ures th,
+ form.kepzesOraterv table tfoot tr.ures td { background-color: #888888; color:black; padding: 0 8px;}
+
+ form.kepzesOraterv table tbody th { text-align:left; font-weight:normal; padding: 0px 8px; }
+
+ form.kepzesOraterv table td input {
+/* background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+*/ text-align: right;
+
+ }
+ form.kepzesOraterv table td select{
+/* background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+*/ font-size:10px;
+ padding:2px;
+ width:70px;
+
+ }
+ form.kepzesOraterv table td input:focus,
+ form.kepzesOraterv table td select:focus {
+ background-color: rgb(140,160,180); color:white; }
+
+
+ form.kepzesOraterv table td select option { font-size:smaller;}
+ form.kepzesOraterv table td.lezart input { background-color: black }
+
+ form.kepzesOraterv table th a { text-decoration: none; color: white; border: none; }
+ form.kepzesOraterv table th a:hover { text-decoration: underline; }
+
+ form.kepzesOraterv table th span.tan { color: #aaaaaa; font-weight:normal; font-size:smaller; }
+
+ form.kepzesOraterv table input.torol { background-color: #880000; border: solid 1px red; color: white;}
+ form.kepzesOraterv table input.felvesz { background-color: #008800; border: solid 1px lightgreen; color: white;}
+
+ form.kepzesOraterv table input:hover,form.kepzesOraterv table select:hover { outline:orange 1px solid; }
+ form.kepzesOraterv table input.torol:hover { background-color: #FF0000; border: solid 1px lightred; color: white;}
+
+ form.kepzesOraterv tr.rogzitett td select,
+ form.kepzesOraterv tr.rogzitett td input { display: none; }
+ form.kepzesOraterv tr span.kovetelmeny { display: none; }
+ form.kepzesOraterv tr.rogzitett td div.felev1 { ddisplay: none; }
+ form.kepzesOraterv tr .felev2 { display: none; }
+
+ form.kepzesOraterv thead th > span { padding: 10px 5px; }
+ form.kepzesOraterv thead span.icon-refresh { color: darkorange; }
+ form.kepzesOraterv thead span:hover span.icon-refresh { color: yellow; }
+ form.kepzesOraterv thead span:hover { cursor: pointer; background-color: #88a; }
+/*
+ form.kepzesOraterv tr.rogzitett td div.felev1 { background: red }
+ form.kepzesOraterv tr.rogzitett td div.felev2 { background: blue; }
+ form.kepzesOraterv tr.rogzitett td span.oraszam { color: yellow; }
+ form.kepzesOraterv tr.rogzitett td span.kovetelmeny { color: orange; }
+*/
+
+ form#oratervMasolas { background-color: darkorange; width: 98%; margin: auto; text-align: center; padding-bottom: 5px; }
+ form#oratervMasolas h1 { border-bottom: 2px yellow solid; font-size: 14px; font-weight: bold; background-color: #a40; color: white; padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css
new file mode 100644
index 00000000..b1987009
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css
@@ -0,0 +1,13 @@
+
+
+span.valaszthato {
+ background-color: #eeeeee;
+ font-style:italic;
+}
+
+/*
+
+ form.kepzes { background-color: rgb(100,70,120); color: white; margin: 30px; text-align: center; padding-bottom: 10px; }
+ form.kepzes h1 { background-color: rgb(60,0,80); border: white solid; border-width: 1px 0px; font-size: 16px; padding: 2px; }
+
+*/ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css
new file mode 100644
index 00000000..5ae89b85
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css
@@ -0,0 +1,47 @@
+form.mk {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+ border-bottom: solid 1px black;
+}
+
+form.mk h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 10px solid white; border-width: 0px 0px 1px 0px;
+ margin-bottom: 10px;
+}
+form.mk h2 span { color: yellow; font-style: italic; font-weight: normal; }
+
+form.mk div.leiras { margin: -10px 0 10px 0; padding: 10px; background: rgba(255,255,255,0.5); color: black; }
+form.mk label {padding-left:2em;}
+
+form.mk input {}
+
+form.mk input#targytorolg, form.mk input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form.mk.uj h2 { border-left: solid 2px #00ff00; }
+form.mk.uj:hover h2 { background-color: #005500;}
+form.mk.torol h2 { border-left: solid 2px #ff0000; }
+form.mk.torol:hover h2 { background-color: #550000;}
+
+div.tagok { display: inline-block; margin-left:2em; }
+div.tagok div.header { background-color: rgba(0,0,0,0.4); margin-top:10px; padding:2px 4px; border-bottom: solid 1px white; }
+div.tagok:hover div.header {background-color: rgba(0,255,0,0.4);}
+div.tagok div.header label {padding:0px;}
+div.submit {display: inline-block; padding-left:2em; vartical-align: middle;}
+
+div.arckepContainer,div.arckep--container {display: inline-block; margin:2px;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/osztaly.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/osztaly.css
new file mode 100644
index 00000000..c13d310c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/osztaly.css
@@ -0,0 +1,60 @@
+
+ form.osztalyForm { padding: 0px; background-color: rgb(100,100,150); margin: 40px auto 10px auto; width: 90%; color: white; }
+ form.osztalyForm h1 { text-align: left; padding:4px; border-bottom: 1px solid white; border-width: 1px 0px; background-color: rgb(60,60,80); margin-top:0px; margin-bottom:20px; }
+ form.osztalyForm:hover h1 {border-bottom: solid 1px #6464C8;}
+ form.osztalyForm li { background-color: rgb(60,60,100); margin-top: 2px; padding: 5px 2px 5px 2px; }
+ form.osztalyForm table { width: 100%; background-color: #aaaaaa;}
+ form.osztalyForm table th { background-color: rgb(20,40,60); padding: 4px 8px; }
+ form.osztalyForm table td { background-color: rgb(60,130,120); width: 33%; padding:0px 4px; height:1.8em; }
+
+ form.osztalyForm hr { background-color: #eeeeee; margin-top: 22px; margin-bottom: 22px; padding: 0px; }
+
+ form.osztalyForm ol li:hover { background-color: rgb(100,100,200); }
+ form.osztalyForm input[type=submit] { width: 100px; margin:4px; }
+ form.osztalyForm input[type=submit]:hover { outline: solid 2px cornflowerblue; }
+
+ form.osztalyForm ol li div.kepzes { float: right; background-color: rgb(60,100,60); position: relative; top: -5px; padding: 4px 5px 1px 1px; height: 19px;}
+ form.osztalyForm ol li:hover div.kepzes { background-color: rgb(200,100,200); }
+ form.osztalyForm ol li div.hideShowContainer { float: right; background-color: rgb(160,0,0); position: relative; top: -4px; padding: 5px 5px 2px 5px; margin-left: 10px; }
+ form.osztalyForm ol li div.kepzes input[type=text] { margin: 0; padding: 0; border: none; position: relative; top: -2px; }
+ form.osztalyForm ol li div.kepzes span.onClickHideShow { font-size: 14px; cursor: pointer; padding: 0; }
+ form.osztalyForm ol li div.kepzes ul.openable {
+ background: #ddaaee; list-style-type: none; position: absolute; z-index: 20; width: 600px; right: 0px; top: 25px; padding: 0px 10px 10px 10px;
+ border: rgb(200,100,200) 2px solid; border-radius: 4px;
+ }
+ form.osztalyForm ol li div.kepzes ul.openable li { background: rgb(100,50,100); }
+ form.osztalyForm ol li div.kepzes ul.openable li:hover { background: rgb(150,75,150); }
+ form.osztalyForm ol li div.kepzes ul.openable li.uj { background: rgb(100,75,150); padding-right: 175px; }
+ form.osztalyForm ol li div.kepzes ul.openable li.close { background: transparent; color: red; cursor: pointer; }
+ form.osztalyForm ol li div.kepzes ul.openable li.close:hover { color: white; }
+ form.osztalyForm ol li div.kepzes ul.openable span.datum { float: right; }
+
+/* form.osztalyForm ol li div.kepzes label.chk { background-color: rgb(250,140,60);}*/
+ form.osztalyForm ol li div.kepzes span { padding: 2px 4px; position: relative; top: 0px; margin-right: 1px; margin-left:1px; }
+ form.osztalyForm ol li div.kepzes span.chk { background-color: rgb(250,140,60); }
+ form.osztalyForm ol li div.kepzes span.mas { background-color: rgb(160,100,60); }
+ form.osztalyForm div.datum { background: rgb(160,0,0); text-align: center; border: 1px dotted white; }
+
+ form.updateTable { padding: 0px; background-color: rgb(150,100,150); margin: 120px auto 20px auto; width: 90%; color: white; }
+ form.updateTable h1 { text-align: center; padding:4px; border-bottom: 1px solid white; border-width: 1px 0px; background-color: rgb(60,60,80); margin-top:0px; margin-bottom:20px; }
+ form.updateTable li { background-color: rgb(60,60,100); margin-top: 2px; padding: 5px 2px 5px 2px; }
+ form.updateTable table { width: 100%; background-color: #aaaaaa;}
+ form.updateTable table th { background-color: rgb(20,40,60); padding: 4px 8px; }
+ form.updateTable table td { background-color: rgb(60,130,120); width: 33%; padding:0px 4px; height:1.8em; }
+
+ form.uj div { padding: 5px 10px; display: none; }
+ form.uj div#divOsztalyJelleg { display: block; }
+ form.uj div#divKezdoTanev, form.uj div#divVegzoTanev, form.uj div#divJel { display: inline-block; width: 300px; }
+ form.uj ul#evfolyamJelek { list-style-type: none; margin: 0; padding: 0; }
+ form.uj ul#evfolyamJelek li { display: inline-block; height: 40px; vertical-align: top; border-right: 1px solid white; padding: 10px; }
+ form.uj ul#evfolyamJelek li.kivalasztott { background-color: #2aa; }
+
+ form.uj label { margin-right: 20px; }
+ form.uj input[type="submit"] { height:2em; margin: 10px 80px; }
+
+ form.osztalyForm span.data { margin: 20px; background-color: white; color: black; padding: 5px; font-size: 12px; font-weight: bold; }
+ form.osztalyForm ol li span.diakNev { padding-left:0.5em; cursor:pointer; }
+ form.osztalyForm ol li span.datumok { color: #888; padding-left:1em; }
+
+ span.diakNaploSorszam { padding-left:4px; padding-right:4px; background-color: cornflowerblue; color:white; border-radius: 2px; margin: 0px 4px;}
+ span.diakJogviszony { padding-left:4px; padding-right:4px; background-color: orange; color:white; border-radius: 2px; margin: 0px 4px;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css
new file mode 100644
index 00000000..2f80f013
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css
@@ -0,0 +1,60 @@
+
+
+ form.tanar { background-color: white; }
+
+ form.tanar { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.tanar h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.tanar input, form.tanar select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.tanar input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.tanar label { font-size:11px; }
+ form.tanar label.kotelezo { color:rgb(100,20,20); }
+ form.tanar input:focus { background-color: orange; }
+
+ form.tanar fieldset { border: solid 1px rgb(40,60,80); }
+ form.tanar fieldset th { text-align: right; }
+ form.tanar fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.tanar fieldset:hover legend { background-color: navy; }
+
+ form.tanar input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+
+ form.tanar table#kepesites { border-spacing: 0; margin: 10px 0; width: 800px; }
+ form.tanar table#kepesites th,
+ form.tanar table#kepesites td { text-align: left; border-left: 1px dotted black; padding: 0 10px; }
+ form.tanar table#kepesites th { padding-bottom: 5px; }
+ form.tanar table#kepesites tbody tr:last-child td { padding-bottom: 10px; }
+ form.tanar table#kepesites tr#ujKepesites { display: none; }
+ form.tanar table#kepesites tr#ujKepesites td { padding-top: 10px; }
+ form.tanar table#kepesites tr#uj td { padding: 6px 10px; cursor: pointer; border-top: 1px none #888; border-bottom: 1px dotted black; }
+ form.tanar table#kepesites td#kepesitesNev { width: 300px; }
+ form.tanar table#kepesites tr#ujKepesites input[type=text] { width: 260px; }
+ form.tanar table#kepesites tr#hozzarendel th { padding: 15px 10px 10px 10px; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+
+ from.tanar input.ajaxRequest { color: black; background-color: red; }
+ form.tanar input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.tanar select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.tanar input.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+ form.tanar select.ajaxRequestError { color: white; background-color: rgb(130,0,0); } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankor.css
new file mode 100644
index 00000000..f81c35f1
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankor.css
@@ -0,0 +1,83 @@
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 5%;
+ margin-right: 5%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+form.tankor:hover { background-color: rgb(120,120,170); }
+form.meglevo { background-color: rgb(100,150,100); }
+form.meglevo:hover { background-color: rgb(110,160,110); }
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-bottom: 1px solid white;
+ border-left: 0.4em solid lightgreen;
+ margin-bottom: 0em;
+}
+form.tankor:hover h2 { border-left: solid 0.4em rgb(242,0,86); }
+
+form.meglevo h2 {
+ background-color: lightgreen;
+ color: rgb(60,60,80);
+}
+
+form.tankor label {
+ padding-left:0.4em;
+}
+
+
+form.tankor input:hover,
+form.tankor label:hover {
+ text-decoration: underline;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor input.lezart { background-color: #aaaaaa; border: solid 1px black; }
+
+form.tankor input#torolg {
+ background-color: #880000;
+ color: white;
+ padding:0px 1em;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form.tankor table tr th.sz0 { background-color: green; }
+form.tankor table tr th.sz1 { background-color: darkgreen; }
+form.tankor table tr td.sz0 { background-color: green; text-align: center;}
+form.tankor table tr td.sz1 { background-color: darkgreen; text-align:center; }
+form.tankor table tr td:hover { outline: solid 1px orange; }
+
+form.tankor table td.tankorCsoportok div.header{ background-color: #1E90FF; color:white; border-bottom: solid 1px white; width:180px; text-align: center;}
+
+form.tankor table td.tankorCsoportok {
+ border: solid 1px white;
+ background-color: rgba(0,0,0,0.2);
+ vertical-align: top;
+}
+form.tankor table td.tankorCsoportok a { color: lightblue; text-decoration:none;}
+form.tankor table td.tankorCsoportok a:hover { color: white; text-decoration:underline; }
+form.tankor table td.tankorCsoportok ul { list-style-type: circle; margin-left:14px; padding:4px;}
+
+form.meglevo table tbody tr.vanTag th, form.meglevo table tbody tr.vanTag td { background-color: rgb(60,120,80); }
+
+span.dob {
+ background-color: #2799bb !important;
+ margin-right:5px;
+}
+
+form.tankor div.sel { background-color: lightgreen; color:black; }
+form.tankor div:hover { background-color: #2799bb; }
+
+form.tankor p { padding: 0em 1em; }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css
new file mode 100644
index 00000000..a70a4b7f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css
@@ -0,0 +1,128 @@
+@media screen,handheld {
+table.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ color: white;
+}
+
+table.bentlevo thead tr th { background-color: lightgreen; border-bottom: solid 2px green; color: black;}
+
+
+h2.tankorTablazat {
+ width:90%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: #eeeeee;
+ margin-left: 3%;
+ margin-right: 3%;
+ padding-left: 0px;
+ padding-top: 0em;
+ margin-bottom:4em;
+}
+form.tankor table th {
+ height:1.8em;
+ font-weight:normal;
+ padding:0px 4px;
+ background-color: rgb(100,120,100);
+ border-bottom: solid 1px rgb(200,220,200);
+ color:white;
+}
+form.tankor table td {
+/* background-color: rgb(100,100,110);*/
+ padding:1px 4px;
+}
+form.tankor table tr:nth-child(even) td { background-color: #dddddd; }
+
+form.tankor table tr.magantanulo td {
+ background-color: rgb(150,100,150);
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-color: white;
+ border-width: 1px 0px;
+ border-style: none none solid none;
+ margin-bottom: 0px;
+ margin-top: 10px;
+}
+form.tankor:hover h2 { border-right: solid 3px lightgreen; }
+
+form.tankor label {
+ padding-left:1em;
+}
+
+
+form.tankor input[type=checkbox]:checked:after { display:block; content: ""; display:block;height:14px; width:4px; background-color: lightgreen; border-radius:2px; top:-2px; left:-6px; position:relative; border: solid 1px green; }
+form.tankor input[type=checkbox].lany:checked:after { background-color: magenta; border: solid 1px #ff3366;}
+form.tankor input[type=checkbox].fiu:checked:after { background-color: #1e90ff; border: solid 1px lightblue;}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form#tankorDiak table tbody tr td input {
+ background-color: green;
+}
+
+table.egyosztaly {
+ background-color: #eeeeee;
+}
+
+/* neme */
+td.fiu { color:blue; cursor: pointer}
+td.lany { color:magenta; cursor:pointer }
+/* ---- */
+
+
+form.tankor span {
+ font-size: 10px;
+}
+
+form.tankor span.kepzes0 {
+ color:white;
+ background-color: #778877;
+ padding-left: 3px; padding-right:3px;
+ margin-left:2px;
+ -moz-border-radius: 1px;
+ border-radius: 1px;
+ white-space: nowrap;
+}
+
+form.tankor span.kepzes1 {
+ color: white;
+ background-color: #777788;
+ padding-left: 3px; padding-right:3px;
+ margin-left:2px;
+ -moz-border-radius: 1px;
+ border-radius: 1px;
+ white-space: nowrap;
+
+}
+
+}
+
+@media print {
+
+ form.tankor { width: 100%; }
+ form.tankor table { width:100%; }
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css
new file mode 100644
index 00000000..981ac34d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css
@@ -0,0 +1,7 @@
+
+ table.tankorLetszam { background-color: #aaaaff; }
+ table.tankorLetszam tr th { background-color: #aa7788; color: white; border-bottom: solid 1px white; height:2em;}
+ table.tankorLetszam tr td { background-color: #eeeeee; }
+ table.tankorLetszam tr td.letszam { text-align:right; padding-right:4px; }
+ table.tankorLetszam tr:hover td { background-color: #ffffff; }
+ table.tankorLetszam tr td a { display: block; color:black; text-decoration: none;} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css
new file mode 100644
index 00000000..ef113b38
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css
@@ -0,0 +1,24 @@
+
+ form.tankorSzemeszter table { background-color: rgb(20,40,60); color: white; width:90%;}
+ form.tankorSzemeszter table th { background-color: rgb(40,60,80); }
+ form.tankorSzemeszter table th.aktualis { background-color: rgb(80,60,40); }
+ form.tankorSzemeszter table th.lezart { background-color: black; font-style:italic; }
+ form.tankorSzemeszter table th.aktiv { background-color: rgb(80,130,80); }
+
+ form.tankorSzemeszter table th.bigleft { font-size: larger; border-bottom: solid 1px #667788; }
+
+ form.tankorSzemeszter table td { background-color: rgb(60,70,80); text-align: center;}
+ form.tankorSzemeszter table td.aktualis { background-color: rgb(80,70,60); }
+ form.tankorSzemeszter table td.lezart { background-color: black;}
+ form.tankorSzemeszter table td.aktiv { background-color: rgb(80,130,80); }
+
+ form.tankorSzemeszter table td input {
+ background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+ }
+ form.tankorSzemeszter table td.lezart input { background-color: black }
+
+ form.tankorSzemeszter table th a { text-decoration: none; color: white; border: none; }
+ form.tankorSzemeszter table th a:hover { text-decoration: underline; }
+
+ form.tankorSzemeszter table th span.tan { color: #aaaaaa; font-weight:normal; font-size:smaller; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css
new file mode 100644
index 00000000..50a9c3e9
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css
@@ -0,0 +1,39 @@
+form.tankor {
+ margin-left: 20px;
+ margin-right: 20px;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ margin-bottom: 2em;
+}
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor select, form.tankor option {
+
+}
+
+form.tankor a { color: rgb(100, 149, 237); }
+form.tankor a:hover { color: rgb(110, 159, 247); }
+form.tankor a span { color: #555555; margin:1px; padding-left:2px; padding-right: 2px; text-decoration: none;}
+form.tankor a:hover span { color:red; }
+
+form.tankor table.felosztas { width:100%; background-color: #eeeeee; border-spacing: 0px; }
+form.tankor table.felosztas th { background-color: rgb(100, 149, 237); padding: 5px 2px; border-bottom: solid 2px violet; color:white; }
+form.tankor table.felosztas td { background-color: ; padding: 2px 2px 2px 10px; }
+form.tankor table.felosztas tr:nth-child(odd) td { background-color: #fafafa; }
+form.tankor table.felosztas tr:hover td { }
+
+select.vantanara { border: solid 1px lime;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css
new file mode 100644
index 00000000..a346f49c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css
@@ -0,0 +1,94 @@
+
+
+ div#statusz { border-radius: 0 0 10px 10px; width:850px; background: rgba(170,170,170); color: white; margin: 0 auto; position:relative; top: -12px; left:-34px; z-index: auto; padding: 0 5px;}
+ div#statusz #filter { cursor: pointer; background-color: rgba(100,100,100,0.7); padding: 5px; display: inline-block; margin: 0 0 0 10px; height:16px;}
+ div#statusz #filter:hover { background-color: #4285F4; }
+ div#statusz #filter:hover span.icon-chevron-right { color: white; }
+ div#statusz #limit { display: inline-block; background-color: rgba(100,100,100,0.7); padding: 3px 5px; margin: 0 1px; }
+ div#statusz #limit:hover { background-color: rgba(100,100,100,1); }
+ div#statusz #limit span#minusz { background-color: rgba(130,160,255,0.7); padding: 4px 5px; margin: 0; cursor: pointer; display: inline-block; position: relative; }
+ div#statusz #limit span#plusz { background-color: rgba(255,160,130,0.7); padding: 4px 5px; margin: 0; cursor: pointer; display: inline-block; position: relative; }
+ div#statusz #limit i { background-color: rgba(200,200,200,0.9); color: rgb(100,100,100); padding: 2px 5px; }
+ div#statusz #limit ul.limit { display: none; position: absolute; top: 22px; left: 0; right: 0; list-style-type: none; margin: 0; padding: 5px 0; text-align: center; background-color: rgba(100,100,100,1); }
+ div#statusz #limit ul.limit li { margin: 0; padding: 4px; }
+ div#statusz #limit ul.limit li:hover { background-color: rgb(200,200,200); color: rgb(80,80,80); }
+ div#statusz #limit ul.limit li.selected { background-color: rgba(250,100,100,0.5); }
+ div#statusz #stat { background-color: rgba(100,100,100,0.7); display: inline-block; margin: 0 0 0 10px; height: 16px; padding: 5px; }
+
+ #updateWindowSideContent div.slideContainer { border-bottom: 1px dotted #aaa; cursor: pointer; padding: 3px 10px; }
+ #updateWindowSideContent div.slideContainer span.icon-chevron-up,
+ #updateWindowSideContent div.slideContainer span.icon-chevron-down { float: right; }
+ #updateWindowSideContent div.slideContainer ul { display: none; list-style-type: none; margin: 10px 0; cursor: default; padding: 0 10px; }
+ #updateWindowSideContent div.slideContainer ul li { display: inline-block; }
+ #updateWindowSideContent div.slideContainer ul li.tanarNelkuli { margin-bottom: 10px; }
+ #updateWindowSideContent input[type=submit] { width: 100%; }
+
+ #updateWindowSideContent div.slideContainer ul li { width: 98%; }
+ #updateWindowSideContent div#szOsztaly.slideContainer ul li { width: 100px; }
+
+ #updateWindowSide p.tankorNev { text-align: center; border-bottom: solid 1px #ddd; padding: 8px 0; margin: 0; }
+ #updateWindowSide div.slideToggleContainer ul { list-style-type: none; margin: 10px 0px; display: none; cursor: default; padding: 0 10px; }
+ #updateWindowSide div.slideToggleContainer ul li { display: inline-block; width: 100px; }
+ #updateWindowSide div.slideToggleContainer { cursor: pointer; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; }
+ #updateWindowSide div.slideToggleContainer span.icon-chevron-down { float: right; z-index: 0; }
+ #updateWindowSide div.slideToggleContainer span.changed { color: yellow; }
+ #updateWindowSide ul#tankorSzemeszter li { width: 120px; }
+ #updateWindowSide ul#tankorSzemeszter input { width: 40px; text-align: right;}
+
+ #updateWindowSide p.tankorModosit { cursor: pointer; color: yellow; text-align: right; margin: 0; padding: 0 10px 0 0; display: none; background-color: rgba(240,240,220,0.5); border-bottom: 2px solid yellow; color: rgb(70,70,70); color: white; }
+ #updateWindowSide span.tankorNevExtra { cursor: pointer;}
+ #updateWindowSide span.tankorNevExtra.changed { color: yellow; }
+ #updateWindowSide input#tankorNevExtra { width: 50px; display: none; }
+
+
+
+ /* table-layout:fixed; */
+ div.tanarTankor { margin: 40px auto auto 2px;}
+ div.tanarTankor table { font-size:x-small; background-color: #ababab; }
+ div.tanarTankor table thead tr th { background-color: white; cursor: pointer; }
+ div.tanarTankor table thead tr td { border-bottom: solid 1px white; cursor:pointer;}
+ div.tanarTankor table thead tr td.slctd { border-bottom: solid 1px cornflowerblue; }
+ div.tanarTankor table thead tr th.targy { height: 30px; }
+ div.tanarTankor table thead tr td.tankor { text-align: center; height: 30px; border-bottom: red 4px solid; }
+ div.tanarTankor table thead tr td.tankor.kesz { border-bottom: green 4px solid; }
+ div.tanarTankor table thead tr td.tankor.tobb { border-bottom: yellow 4px solid; }
+ div.tanarTankor table thead tr td.tankor.bontasHiba { border-top: red 4px solid; }
+ div.tanarTankor table thead tr th span#keszTanarDb,
+ div.tanarTankor table thead tr th span#osszTanarDb,
+ div.tanarTankor table thead tr th span#keszTankorDb,
+ div.tanarTankor table thead tr th span#osszTankorDb { color: red; }
+
+ div.tanarTankor table tbody tr.szurt { display: none; }
+ div.tanarTankor table tbody tr.csukott { display: none; }
+ div.tanarTankor table tbody tr th { height:20px; background-color: white; }
+ div.tanarTankor table tbody tr td.lekotott { padding: 0 4px; }
+ div.tanarTankor table tbody tr.ok td.lekotott { border-right: 4px solid green; border-left: 4px solid green; background-color: #88ffaa; }
+ div.tanarTankor table tbody tr.plusz td.lekotott { border-right: 4px solid red; border-left: 4px solid #cdcdcd; }
+ div.tanarTankor table tbody tr.minusz td.lekotott { border-right: 4px solid #cdcdcd; border-left: 4px solid blue; }
+ div.tanarTankor table tbody tr:hover th { background-color:orange }
+
+ div.tanarTankor table tbody tr td { min-width:20px; text-align:center; background-color: #efefef;}
+
+ div.tanarTankor input[type="checkbox"] { display:none; }
+ div.tanarTankor input[type="checkbox"]:checked { display:table-cell; }
+ div.tanarTankor table tbody tr th.slctd { background-color: rgba(0,200,0,0.7); }
+ div.tanarTankor table tbody tr td:hover input[type="checkbox"] { display:table-cell; }
+
+pre { text-align: left; }
+ div.tankorTanar table#tt thead tr th.szurt { display: none; }
+ div.tankorTanar table#tt thead tr td.szurt { display: none; }
+ div.tankorTanar table#tt tbody tr td.szurt { display: none; }
+
+ div.tanarTankor table tbody td.disable { background-color: #888; }
+
+ div.rot {
+ background-color: #eeeeee;
+ -webkit-transform: rotate(-90deg);
+ -moz-transform: rotate(-90deg);
+ -ms-transform: rotate(-90deg);
+ -o-transform: rotate(-90deg);
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
+ }
+
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/terem.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/terem.css
new file mode 100644
index 00000000..cb91e123
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/terem.css
@@ -0,0 +1,15 @@
+
+ div.terem { text-align: center; background-color: #ffffff; }
+ div.terem table { margin: auto; background-color: #555555; }
+ div.terem table th { background-color: white; padding: 2px 4px; font-size:large; background-color: #555555; color:white; border-bottom:solid 2px white; padding:1px 10px;}
+ div.terem table td { background-color: rgb(240,240,240); text-align: left; padding: 2px 4px; }
+ div.terem table tr:hover td { background-color: #826373; color: white; }
+ div.terem table tr td a { color: black; }
+ div.terem table tr:hover td a { color: white; }
+
+ form.terem h1 { background-color: #555555; color:white; margin:0px; padding:0.4em 0.2em; border-bottom: solid 2px lightgreen;}
+
+ form.terem { background-color: ; width: 80%; margin: auto; padding: 20px; text-align: center; }
+ form.terem label { margin-left: 10px; margin-right:1em; }
+ form.terem div.tipus { width: 200px; float: right; background-color: #dddddd; border-width: 0px 1px 1px 1px; border-style: solid; border-color: #555555;}
+/* form.terem label, form.terem input, form.terem select { vertical-align: top; }*/
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css
new file mode 100644
index 00000000..1769eb87
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css
@@ -0,0 +1,89 @@
+@charset "utf-8";
+
+ h1 { margin-left:30px;}
+ h2 { margin-left:30px;}
+
+ table.tovabbkepzes {background-color: white; width:90%;}
+
+ table.tovabbkepzes thead tr th {background-color: #eeeeee; border-bottom: solid 1px #555555; padding: 5px; }
+
+ table.tovabbkepzes tbody tr th { border-left: solid 2px white; }
+ table.tovabbkepzes tbody tr:nth-child(even) td { background-color: #F8F8F9;}
+ table.tovabbkepzes tbody tr:hover th:nth-child(1) { border-left: solid 2px cornflowerblue; }
+ table.tovabbkepzes tbody tr:hover td { background-color: rgba(230,230,230,0.8); }
+
+ table.tovabbkepzes tbody tr td { padding: 0px 3px; background-color: white; border-bottom: solid 1px #eeeeee;}
+ table.tovabbkepzes tbody tr th span { color: cornflowerblue;}
+
+ table.tovabbkepzes tbody tr.megszűnt td input.currency,
+ table.tovabbkepzes tbody tr.elutasított td input.currency { background-color: #aaa; color:white;}
+ table.tovabbkepzes tbody tr.elutasított td { background-color: red; color:white;}
+ table.tovabbkepzes tbody tr.jóváhagyott td { background-color: #49A74C; color:white;}
+ table.tovabbkepzes tbody tr.teljesített td { background-color: #2F6A31; color:white;}
+ table.tovabbkepzes tbody tr.megszűnt td { text-decoration: line-through;}
+ table.tovabbkepzes tbody tr.terv td { }
+
+ table.tovabbkepzes tbody tr td select.tovabbkepzesNev { width:220px; }
+
+ table.tovabbkepzes tbody tr td.osszeg, table.tovabbkepzes tbody tr th.osszeg { white-space: nowrap; }
+
+ table.tovabbkepzes input.currency { text-align:right; width:60px;}
+ table.tovabbkepzes input.sumCurrency { text-align:right; width:60px;}
+ table.tovabbkepzes input.hiba { outline: solid 1px red; }
+ table.tovabbkepzes td.oraszam { text-align:right; white-space: nowrap; }
+ table.tovabbkepzes td.oraszam input { width:50px; text-align:right;}
+
+ table.tovabbkepzes input.date { width:70px; text-align:center;}
+
+ table.tovabbkepzes tfoot tr td,table.tovabbkepzes tfoot tr th
+ { padding: 3px 3px; background-color: #eeeeee;
+ border-top: solid 1px #888888;
+ }
+
+ #ujTovabbkepzes form { margin:30px 50px; padding:30px; border: solid 1px #ddd;
+background: rgb(255,255,255);
+background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
+background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1)));
+background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: -o-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: -ms-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+
+ }
+ form#ujTovabbkepzes span.ujIntezmeny { color: #eeeeee; }
+ form#ujTovabbkepzes span.ujIntezmeny:hover { color: cornflowerblue; }
+
+ form#ujTovabbkepzes table tbody tr th { text-align: right; }
+ form#ujTovabbkepzes table tbody tr th:after { content: ":" }
+
+ div.separator {
+ height:1px; width: 80%;
+ margin:40px auto;
+ background-color: #eeeeee;
+ }
+
+ #tanarAdatok input.ajaxDone { background-color:lightgreen; }
+ #tanarAdatok input.ajaxError { background-color:red; }
+
+ th.tovabbkepzesCiklus div { margin:0px auto; border: solid 1px #888; height:10px; display:block; width:120px; background-color:#ddd; color:white; font-weight:normal; font-size:7px;}
+ th.tovabbkepzesCiklus div span { display:table-cell;height:8px; color: white !important;}
+ th.tovabbkepzesCiklus div span.terv { background-color: #03A9F4;}
+ th.tovabbkepzesCiklus div span.teljesitett { background-color: green; }
+ th.tovabbkepzesCiklus div span.jovahagyott {background-color: #49A74C;}
+
+ th.tovabbkepzesCiklus span.forduloEv { font-size:6px; color: cornflowerblue; }
+ th.tovabbkepzesCiklus span.forduloEv.left { float:left; margin-left:8px; }
+ th.tovabbkepzesCiklus span.forduloEv.right { float:right; margin-right:8px; }
+
+ th.tovabbkepzesCiklus.alert span.forduloEv { color:#E91E63; }
+
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert2 { color: #FFEB3B;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert1 { color: orange;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert0 { color: red;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert { color: #e91E63;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].kesz { color: green;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].folyamatban { color: lightgreen;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].varakozik { color: #888;}
+
+ #tovabbkepzesNavi { text-align:center; width:;}
+ input.datum {width:70px;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/valtas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/valtas.css
new file mode 100644
index 00000000..ed56aa1e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/valtas.css
@@ -0,0 +1,2 @@
+table.tanarLista {}
+table.tanarLista div.titulus { font-size:smaller; color:#aaa;} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/zaradek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/zaradek.css
new file mode 100644
index 00000000..2e3b0fc0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/zaradek.css
@@ -0,0 +1,16 @@
+
+ form.zaradek { margin: 10px 40px; padding: 10px; border: rgb(100,125,150) solid; border-width: 3px 1px; background-color: rgb(200,220,240); }
+ form.zaradek p { border: rgb(20,40,80) solid 1px; padding: 8px; text-align: center; background-color: white; }
+ form.zaradek p span { color: red; }
+ form.zaradek table { margin-left: 100px; }
+ form.zaradek th { padding: 4px; background-color: rgb(20,40,80); color: white; }
+ form.zaradek div { text-align: center; }
+ form.zaradek div input { padding: 4px; background-color: rgb(20,40,80); color: white; }
+
+ form.diakZaradek { margin: 10px; }
+ form.diakZaradek table { background-color: rgb(20,40,80); }
+ form.diakZaradek table th { background-color: rgb(100,100,200); color: white; }
+ form.diakZaradek table td { background-color: rgb(230,230,255); }
+ form.diakZaradek table td.jobbra { text-align: right; }
+
+ form.diakZaradek input.delZaradek { background-color: red; border: none; color: white; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css
new file mode 100644
index 00000000..abd310c3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css
@@ -0,0 +1,39 @@
+/*
+$color1="#CAE0F7";
+$color2="#9FBFD6";
+$color3="#2E5282";
+$color4="#434037";
+$color="#929493";
+*/
+
+h2 { margin:30pt 60pt 0pt 60pt;
+ background-color: #2e5282;
+ color: white;
+ border-bottom: solid 1px #9FBFD6;
+}
+div.kosziline {
+ height:1pt;
+ margin: 0em 60pt;
+ border-bottom: solid 1px #434037;
+}
+
+fieldset.koszi { margin: 1em 60pt; border: solid 1px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+ outline:
+}
+
+fieldset.koszi:hover legend { background-color: #9FBFD6; }
+
+fieldset.koszi input[type="submit"] { outline: 1px solid #2E5282; background-color: #2E5282; padding:1px 1em; margin: 1px; border: solid 1px white; color: white; }
+fieldset.koszi input[type="submit"]:hover { outline: 1px solid #CAE0F7; background-color: #9FBFD6; padding:1px 1em; margin: 1px; border: solid 1px white; color: white; }
+
+fieldset.koszi select option { outline: 1px solid #CAE0F7; }
+
+fieldset.koszi table {background-color: #dddddd;}
+fieldset.koszi table tr th {background-color: #eeeeee; padding: 1px 8px; border-bottom: solid 1px #2e5282;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/koszi.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/koszi.css
new file mode 100644
index 00000000..8636b27e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/koszi.css
@@ -0,0 +1,39 @@
+
+fieldset.koszi { margin: 4em 10em; border: solid 0px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+}
+
+fieldset.koszi:hover legend { background-color: #9fbfd6; }
+
+fieldset.koszi table { width: 100%; background-color: #eee; }
+fieldset.koszi table tr.head th { background-color: #2e5282; color: white; border-bottom: solid 2px #434037; height:2em; }
+
+fieldset.koszi table tr.foot th { background-color: #aa0066; color: white;border-bottom: solid 1px black; border-top: solid 1px #434037; height:2em; }
+fieldset.koszi table tr.foot th.r { text-align: right ; padding-right:2em;}
+
+fieldset.koszi table tr td { }
+fieldset.koszi table tr td.r { text-align: right; padding-right: 2em; }
+fieldset.koszi table tr:nth-child(even) td { background-color: white; }
+fieldset.koszi table tr.jovahagyva td { background-color: #92ff93; }
+
+fieldset.koszi table tr td span.tag { padding: 0.1em 2em; border-radius:5px; }
+fieldset.koszi table tr td:hover span.tag { opacity: 0.9; }
+fieldset.koszi table tr td span.tag1 { background-color: #CAE0F7; }
+fieldset.koszi table tr td span.tag2 { background-color: #9FBFD6; }
+fieldset.koszi table tr td span.tag0 { background-color: #2E5282; color: white; }
+fieldset.koszi table tr td span.tag4 { background-color: #434037; color: white; }
+fieldset.koszi table tr td span.tag5 { background-color: #929493; }
+fieldset.koszi table tr td span.tag3 { background-color: #EEEEEE; }
+
+div.koszi { padding-top: 1em; width:80%; padding-bottom: 1em; margin-left:auto; margin-right:auto; text-align: center; }
+
+div.koszi form select { font-size: normal; height:2.3em; }
+div.koszi form select option { color: black; }
+div.koszi form select option.placeholder:selected { background-color: red; }
+div.koszi form input { height:2.3em; padding: 0.1em 3em;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css
new file mode 100644
index 00000000..0a36cd66
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css
@@ -0,0 +1,47 @@
+
+
+form input.accept { outline: solid 1px #009900; background-color: green; border: solid 1px white; color: white; padding: 0.1em 1em; }
+form input.accept:hover { outline: solid 1px #00aa00; background-color: lightgreen; border: solid 1px white; color: white; padding: 0.1em 1em; }
+
+form input.decline { outline: solid 1px #990000; background-color: red; border: solid 1px white; color: white; padding: 0.1em 1em; }
+form input.decline:hover { outline: solid 1px #aa0000; background-color: #aa0000; border: solid 1px white; color: white; padding: 0.1em 1em; }
+
+
+fieldset.koszi { margin: 4em 10em; border: solid 0px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+}
+
+fieldset.koszi:hover legend { background-color: #55ff55; }
+
+fieldset.koszi table { width: 100%; background-color: #eee; }
+fieldset.koszi table tr.head th { background-color: #2e5282; color: white; border-bottom: solid 2px #9fbfd6; height:2em; }
+
+fieldset.koszi table tr.foot th { background-color: #aaa; border-bottom: solid 1px black; border-top: solid 1px #9fbfd6; height:2em; }
+fieldset.koszi table tr.foot th.r { text-align: right ; padding-right:2em;}
+
+fieldset.koszi table tr td { }
+fieldset.koszi table tr td.r { text-align: right; padding-right: 2em; }
+fieldset.koszi table tr:nth-child(even) td { background-color: white; }
+fieldset.koszi table tr.jovahagyva td { background-color: lightgreen; }
+
+fieldset.koszi table tr td span.tag { padding: 0.1em 2em; border-radius:5px; }
+fieldset.koszi table tr td:hover span.tag { opacity: 0.9; }
+fieldset.koszi table tr td span.tag1 { background-color: #CAE0F7; }
+fieldset.koszi table tr td span.tag2 { background-color: #9FBFD6; }
+fieldset.koszi table tr td span.tag0 { background-color: #2E5282; color: white; }
+fieldset.koszi table tr td span.tag4 { background-color: #434037; }
+fieldset.koszi table tr td span.tag5 { background-color: #929493; }
+fieldset.koszi table tr td span.tag3 { background-color: #EEEEEE; }
+
+div.koszi { padding-top: 1em; width:80%; padding-bottom: 1em; margin-left:auto; margin-right:auto; text-align: center; }
+
+div.koszi form select { font-size: normal; height:2.3em; }
+div.koszi form select option { color: black; }
+div.koszi form select option.placeholder:selected { background-color: red; }
+div.koszi form input { height:2.3em; padding: 0.1em 3em;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css
new file mode 100644
index 00000000..ddf0da7d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css
@@ -0,0 +1,319 @@
+@charset "UTF-8";
+
+ #toolBarIntezmeny {
+ color: #1E90FF;
+ border: solid #eeeeee;
+ border-width: 0px 0px 0px 0px;
+ font-size: 10px;
+ }
+ #toolBarHelpButton { margin-left:5px;font-size:8px; border-radius: 50%; border: solid 1px #dddddd; padding:0px 3px; color: #aaaaaa; font-weight:normal;}
+ #toolBarHelpButton:hover { background-color:#1e90ff; color: white; border-color: navy;}
+ img#mayorBuggie { height:34px; }
+ img#mayorBuggie:hover { animation-name: spin;
+ animation-duration: 1000ms;
+ animation-iteration-count: 1;
+ animation-timing-function: ease;
+ }
+ #diakSelectIcon {
+ vertical-align: middle;
+ color: #aaaaaa;
+ padding: 0px 2px;
+ cursor: pointer;
+ margin-right:2px;
+ border: solid 0px #eeeeee;
+ }
+ #diakSelectIcon:hover {color:white;}
+
+
+ table.toolBar { width: 95%; max-width: 95%; border-spacing: 0px; margin: 1em auto; overflow: auto; border-collapse: collapse;}
+ table.toolBar tr.first td.toolBarTitle { border-bottom: solid 1px #333; padding-left:4px; }
+ table.toolBar tr.first td.toolBarTool { border-style: solid; border-width: 1px 1px 1px 1px; border-color: #333333; }
+
+ table.toolBar form { margin: 0px; padding: 0px;}
+
+/* TH */
+
+ table.toolBar th {
+ background-color: rgb(90,133,184);
+ text-align: center;
+ color: white;
+ font-size:10px;
+ padding: 0px 4px 0px 4px;
+ font-weight: 600;
+ letter-spacing: 0.2px;
+ border-color: rgb(21,71,123);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ }
+ table.toolBar th button.toolBarClear { float:right; border: none; background-color: #5A85B8; height:10px;font-size:9px; color:inherit; padding:0px 2px; color: rgba(255,255,255,0.5);}
+ table.toolBar th button.toolBarClear:hover { color: rgba(255,255,255,1);}
+
+ table.toolBar th button.toolBarLeft {height: 100%;
+ line-height: 2em;background-color: rgba(100,100,100,0);
+ color: #fff; border: solid 0px #fff;
+ border-radius: 2px;padding: 4px 10px; }
+ table.toolBar th button.toolBarLeft:hover { color: rgba(255,255,255,0.5);}
+
+ table.toolBar tr td.szemely { background-color: #5A85B8; color:white; border: solid 1px #558; padding:2px 10px; color: rgba(255,255,255,0.5);}
+ table.toolBar tr td.szemely:hover { color: rgba(255,255,255,1);}
+
+
+/* TD */
+ table.toolBar td {padding: 0px;}
+ table.toolBar td form td {padding: 1px;}
+ table.toolBar td.gap { width: 50%; border-spacing: 0px; }
+ table.toolBar td.help {
+ background-color: rgb(11,51,103);
+ color: white;
+ border-width: 0px 1px 1px 1px;
+ border-color: black;
+ border-style: none solid solid solid;
+ font-size:smaller;
+ }
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ font-size: 18px;
+ font-weight: bold;
+ width: 100%;
+ }
+ table.toolBar td.toolBarTool {
+ border: solid 1px #666699;
+ background-color: #666699;
+ margin: 0px;
+ padding: 0px;
+ }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; width: 100%; }
+ table.toolBar td.toolBarTool table th {
+ background-color: rgb(90,133,184);
+ text-align: left;
+ color: white;
+ font-size:10px;
+ padding: 0px 0px 0px 4px;
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px;
+ border-style: solid;
+ }
+
+/* Submit */
+
+ table.toolBar input.toolSubmit,
+ table.toolBar button.toolSubmit {
+ vertical-align: middle; border: 0px none;
+ padding:0px;
+ margin:0px;
+ color: #aaaaaa;
+ background-color: inherit;
+ font-size:8px;
+ }
+ table.toolBar form:hover input.toolSubmit,
+ table.toolBar form:hover button.toolSubmit {
+ outline: solid 0px;
+ color:#dddddd;
+ }
+
+ table.toolBar form input.toolSubmit:hover {
+ outline: solid 0px;
+ color: lightgreen;
+ }
+ table.toolBar td.toolBarTool.cella select { max-width:180px; min-width:60px;}
+ table.toolBar td.toolBarTool.sor select { max-width:320px; min-width:60px;}
+
+ table.toolBar img { border: none; }
+
+/* spec */
+
+ table.toolBar table.hianyzasOsszegzo { width:100%; font-size:10px; }
+ table.toolBar table.hianyzasOsszegzo th {
+ text-align: center !important;
+ border-style: none none solid none;
+ border-color: #888888;
+ border-width: 0px 0px 1px 0px;
+ }
+ table.toolBar table.hianyzasOsszegzo td { width: 18%; border-bottom: solid 1px rgb(60,80,100); background-color: #dddddd; text-align: center; }
+
+ form.lapozo input { font-size: 10px; border: solid 1px #555555; }
+ form button.lapozo { font-size:10px; }
+ form span.lapozo { color:white; background-color: rgb(90,133,184); padding:1px 5px; border: solid 1px rgb(21,71,123);}
+
+ table.flipper input {height: 30px; color: white;
+ border-right: solid 1px #15477B;
+ border-bottom: solid 1px #15477B;
+ border-top: solid 1px #37699D;
+ border-left: solid 1px #37699D;
+ background-color: rgb(90,133,184);
+ padding:0px 10px;
+ }
+ table.flipper input:hover {background-color: rgba(90,133,184,0.6);border: solid 1px #15477B;}
+ table.flipper input.step { background-color: rgb(100,100,60); }
+ table.gomb button { height:30px; background-color: rgb(90,133,184);
+ border-right: solid 1px rgb(21, 71, 123);
+ border-bottom: solid 1px rgb(21, 71, 123);
+ border-top: solid 1px rgb(55, 105, 157);
+ border-left: solid 1px rgb(55, 105, 157);
+ }
+ table.gomb button:hover { background-color: rgba(21, 71, 123,0.7); }
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 20pt; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
+ table.toolBar input { font-size: 10px; }
+
+ table.toolBar #toolBarHamburgerVezerlo { color:rgb(170, 170, 170); }
+ table.toolBar #toolBarHamburgerVezerlo:hover { color:white; }
+
+ #toolBarHamburgerLista ul { list-style-type:none; }
+ #toolBarHamburgerLista li { text-align:right; }
+ #toolBarHamburgerLista button.hamburgerIkon {
+ height: 30px;
+ color: rgb(255, 255, 255);
+ border-radius: 2px 0px 0px 2px;
+ border-right: solid 0px rgb(21, 71, 123);
+ border-bottom: solid 1px rgb(21, 71, 123);
+ border-top: solid 1px rgb(55, 105, 157);
+ border-left: solid 1px rgb(55, 105, 157);
+ background-color: rgb(90, 133, 184);
+ padding: 0px 10px;
+ margin-bottom:4px;
+ }
+ #toolBarHamburgerLista button.hamburgerIkon:hover {background-color: rgba(90,133,184,0.6);border: solid 1px #15477B;}
+
+ .diakNev:hover, .szuloNev:hover, .tankorAdat:hover, .tanarNev:hover, .zaroJegyAdat:hover, .jegyAdat:hover, .oraAdat:hover, .jegyzetAdat:hover, .dolgozatAdat:hover { cursor: pointer; }
+ .activeElement { outline: solid 2px orange; background-color: rgba(255,255,255,0.9); }
+
+ #mayorSearch a.diakNev:before, #mayorSearch a.diakNev:hover:before { content:'\e0ca'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(100,149,237,0.4);}
+ #mayorSearch a.diakNev.aktiv:before, #mayorSearch a.diakNev:hover:before { content:'\e0ca'; font-family: 'Elusive-Icons'; color: rgba(100,149,237,1);}
+
+ #mayorSearch a.tanarNev{ color: rgb(219,6,161); }
+ #mayorSearch a.tanarNev:before, #mayorSearch a.tanarNev:hover:before { content:'\e0da'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(219,6,161,0.4);}
+ #mayorSearch a.tanarNev.aktiv:before, #mayorSearch a.tanarNev:hover:before { content:'\e0da'; font-family: 'Elusive-Icons'; color: rgb(219,6,161)}
+
+ #mayorSearch a.szuloNev { color: rgb(76,175,80); }
+ #mayorSearch a.szuloNev:before, #mayorSearch a.szuloNev:hover:before { content:'\e091'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(76,175,80,0.4);}
+ #mayorSearch a.szuloNev.aktiv:before, #mayorSearch a.szuloNev:hover:before { content:'\e091'; font-family: 'Elusive-Icons'; color: rgb(76,175,80)}
+
+ #updateWindowSide div.ora { }
+
+ #updateWindowSideContent .diakNev:after { font-family: 'Elusive-Icons'; content: "\e0f3"; color:cornflowerblue !important; }
+ #updateWindowSideContent .diakNev:hover:after { font-family: 'Elusive-Icons'; content: "\e0f4"; color:cornflowerblue !important; }
+ #updateWindowSideContent .diakNev:hover { color:#999 }
+
+ #updateWindowSide ul li,#updateWindowSideSub ul li { padding-top:2px; }
+ #updateWindowSideContent h3, #updateWindowSideSubContent h3 { border-bottom: solid 0px #aaa; margin: 18px 16px 8px 16px;}
+ #updateWindowSideContent h3 a:hover,#updateWindowSideSubContent h3 a:hover { color:#999 }
+ #updateWindowSideContent ul li a:hover,#updateWindowSideSubContent ul li a:hover { color:#999 }
+ #updateWindowSideTitle a:hover, #updateWindowSideSubTitle a:hover { color:#999 }
+
+/* #updateWindowSide h3:before { font-family: 'Elusive-Icons'; font-size:10px; content: "\e0a4"; padding-right:8px;font-weight:100; }*/
+
+ .updateWindowSide button.mentes, .updateWindowSide button.torles { margin: 4px 18px; height:2em; border-radius:2px; border: solid 1px white; color:white; background-color: #ddd;}
+ .updateWindowSide button.mentes:hover { background-color: lightgreen; }
+ .updateWindowSide button.torles:hover { background-color: red; }
+
+ .updateWindowSide i {line-height:1.5em; background-color: rgba(255,255,255,0.4); padding-left:2px; padding-right:4px; }
+
+ span.diakEletkor {font-size:; border: solid 1px white; border-radius: 4px; padding:2px;background-color:white; color:black;}
+ span.diakEletkor:hover:after { content: " éves"; }
+
+ table.toolBar button.toolBarBtn {
+ background: inherit;
+ border: none;
+ color: white;
+ padding: 2px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 14px;
+ margin: 0px 0px;
+ cursor: pointer;
+ color: rgba(255,255,255,0.5);
+ }
+ table.toolBar button.toolBarBtn:hover { color:white; }
+ table.toolBar button.toolBarBtn:active { color:#f06 ; background-color: cornflowerblue;}
+ table.toolBar button.toolBarBtn.loved { color: #f06; }
+ table.toolBar button.toolBarBtn.loved:active { color:red ; background-color: cornflowerblue;}
+
+ table.toolBar button.toolBarBtn.mobileOnly { display: none;}
+
+ div.arckepContainer.tanar span {background-color: #db06a1; }
+ div.arckepContainer.szulo span {background-color: #40e0d0; }
+ div.arckepContainer.diak span {background-color: #6495ed; }
+
+@media (max-width: 764px) {
+
+ #toolBarTitle {display:;}
+ #toolBarKerelem { display:none; }
+ .toolBarClear {display:none;}
+ table.toolBar table,
+ table.toolBar thead,
+ table.toolBar tbody,
+ table.toolBar th,
+ table.toolBar td,
+ table.toolBar tr {
+ display: block;
+ text-align:left;
+ }
+
+ table.toolBar table tbody { background-color: white; }
+ table.toolBar thead tr {
+ position: absolute;
+ top: -9999px;
+ left: -9999px;
+ }
+ table.toolBar tr { border: 0px solid #fff; margin-bottom:0px; }
+ table.toolBar td {
+ border: none;
+ border-bottom: 0px solid #eee;
+ position: relative;
+ padding-left: 0px;
+ background-color: #eee; color:black;
+ }
+ table.toolBar td.toolBarTitle { width: inherit; }
+ table.toolBar td.sbmt { display:none }
+
+ table.toolBar button.toolBarBtn {
+ border: none;
+ color: white;
+ padding: 2px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 20px;
+ margin: 0px 0px;
+ cursor: pointer;
+ color: cornflowerblue;
+ }
+ table.toolBar button.toolBarBtn:hover { color: lightgreen ; }
+ table.toolBar button.toolBarBtn:active { color: lightgreen ; }
+ table.toolBar td.szemely { font-size: 24px; }
+
+ table.toolBar button.toolBarBtn.mobileOnly { display:inline-block;}
+ table.toolBar th button.toolBarLeft { background-color: #5a85b8;border: solid 0px white; }
+
+ .updateWindowSide {font-size:16px;}
+ .updateWindowSide button.mentes, .updateWindowSide button.torles {
+ font-size: 16px;
+ }
+ .updateWindowSide button.mentes { background-color: lightgreen; }
+ .updateWindowSide button.torles { background-color: red; }
+
+}
+
+@media print {
+ table.toolBar tr th { border: none;}
+ table.toolBar tr td { border: none;}
+ input[type=submit] {display:none;}
+ input[type=button] {display:none;}
+ button[type=submit] {display:none;}
+ a {text-decoration: none; color:black;}
+}
+
+@keyframes spin {
+ from {
+ transform: rotate(0deg);
+ } to {
+ transform: rotate(360deg);
+ }
+}
+
+/* Tipso Bubble Styles */
+.tipso_bubble,.tipso_bubble > .tipso_arrow{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tipso_bubble{position:absolute;text-align:center;border-radius:6px;z-index:9999}.tipso_style{cursor:help;border-bottom:1px dotted}.tipso_title{border-radius:6px 6px 0 0}.tipso_content{word-wrap:break-word;padding:0.5em}.tipso_bubble.tiny{font-size:0.6rem}.tipso_bubble.small{font-size:0.8rem}.tipso_bubble.default{font-size:1rem}.tipso_bubble.large{font-size:1.2rem;width:100%}.tipso_bubble > .tipso_arrow{position:absolute;width:0;height:0;border:8px solid;pointer-events:none}.tipso_bubble.top > .tipso_arrow{border-top-color:#000;border-right-color:transparent;border-left-color:transparent;border-bottom-color:transparent;top:100%;left:50%;margin-left:-8px}.tipso_bubble.bottom > .tipso_arrow{border-bottom-color:#000;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;bottom:100%;left:50%;margin-left:-8px}.tipso_bubble.left > .tipso_arrow{border-left-color:#000;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;top:50%;left:100%;margin-top:-8px}.tipso_bubble.right > .tipso_arrow{border-right-color:#000;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;top:50%;right:100%;margin-top:-8px}.tipso_bubble .top_right_corner,.tipso_bubble.top_right_corner{border-bottom-left-radius:0}.tipso_bubble .bottom_right_corner,.tipso_bubble.bottom_right_corner{border-top-left-radius:0}.tipso_bubble .top_left_corner,.tipso_bubble.top_left_corner{border-bottom-right-radius:0}.tipso_bubble .bottom_left_corner,.tipso_bubble.bottom_left_corner{border-top-right-radius:0}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css
new file mode 100644
index 00000000..4c5ba967
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css
@@ -0,0 +1,4 @@
+
+ form.nyomtat { text-align: center; border: 1px black; border-style: solid none; padding: 10px; margin: 10px 80px;}
+ form.nyomtat h3 { border: 1px black; border-style: solid none; background-color: rgb(200,200,200); }
+ form.nyomtat label { margin: 10px 10px 2px 2px; background-color: rgb(255,255,255); }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css
new file mode 100644
index 00000000..035db08d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css
@@ -0,0 +1,7 @@
+
+ form.letolt {
+ text-align: center;
+ background-color: white;
+
+
+ } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css
new file mode 100644
index 00000000..6c3b52ec
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css
@@ -0,0 +1,2 @@
+
+ a.letoltes { display: block; border: solid green 1px; color: green; padding: 5px; text-align: center; width: 200px; margin: auto; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css
new file mode 100644
index 00000000..adf96ba5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css
@@ -0,0 +1,9 @@
+
+ table.tankorBealliras { background-color: rgb(220,220,220); margin-top: 20px; }
+ table.tankorBealliras th { padding: 2px 10px; }
+ table.tankorBealliras thead th { background-color: rgb(20,40,80); color: white; }
+ table.tankorBealliras tfoot th { background-color: rgb(20,40,80); color: white; }
+ table.tankorBealliras tfoot td { background-color: rgb(20,40,80); color: white; text-align: center; }
+ table.tankorBealliras tbody th { background-color: rgb(120,140,180); color: white; }
+ table.tankorBealliras tbody td { background-color: rgb(230,240,250); color: black; text-align: center; }
+ div.torlesForm { text-align: center; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/ascExport.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/ascExport.css
new file mode 100644
index 00000000..86f90082
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/ascExport.css
@@ -0,0 +1,18 @@
+
+ form.export { text-align: center; margin: 1px; background-color: rgb(140,140,220); float-left; }
+ form.export h1 { text-align: center; border: solid rgb(140,160,180); border-width: 1px 0px; font-size: 12px; margin: 0px 0px 5px 0px; background-color: rgb(60,80,100); color: rgb(220,250,250); }
+ fieldset { width: 300px; margin: 0px auto; }
+
+ form.blokk { margin: 0px 5px; float: left; width: 310px; }
+ form.blokk ul { background-color: rgb(140,160,180); width: 300px; list-style-type: none; padding: 0px; margin: 0px; }
+ form.blokk ul li { background-color: rgb(180,200,220); padding: 6px; margin: 1px; height: 16px; font-size: 10px; text-align: left; }
+ form.blokk ul li select { height: 16px; font-size: 10px; }
+
+ form.tobbszoros { width: 400px; float: left; }
+ form.ok { width: 400px; float: left; }
+
+ form.export img { border: none; position: relative; top: 10px; }
+ form.export a { text-decoration: none; display: block; padding-bottom: 14px; background-color: rgb(20,40,60); color: white; margin-top: 40px; }
+ form.export a:hover { color: rgb(255,200,100); }
+
+ a#loadUrl { background: green; color: white; padding: 20px; fonr-weight: bold; margin: 30px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/helyettesites.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/helyettesites.css
new file mode 100644
index 00000000..33132c5c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/helyettesites.css
@@ -0,0 +1,44 @@
+@media screen {
+
+ table.helyettesitesek {
+ background-color: #555555; width:95%
+ }
+ table.helyettesitesek tr {
+ background-color: #dddddd;
+ }
+ table.helyettesitesek tbody tr td {
+ background-color: white;
+ }
+ table.helyettesitesek tr.plusz td {
+ background-color: #334450; color: white;
+ font-style: italic;
+ }
+ table.helyettesitesek tfoot tr th {
+ background-color: white;
+ font-size: 8px;
+ text-align: right;
+ }
+
+
+}
+@media print {
+ table.helyettesitesek {
+ width: 100%;
+ }
+ table.helyettesitesek thead tr th {
+ border: solid 1px black;
+ }
+ table.helyettesitesek tbody tr td {
+ border-style: solid;
+ border-width: 0px 1px 1px 0px;
+ }
+ table.helyettesitesek tr.plusz td {
+ font-style: italic;
+ font-weight: bold;
+ }
+ table.helyettesitesek tfoot tr th {
+ background-color: white;
+ font-size: 8px;
+ text-align: right;
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css
new file mode 100644
index 00000000..0cfda59b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css
@@ -0,0 +1,297 @@
+@media screen {
+
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+ font-size:11px;
+}
+
+table.orarend {
+ width: 95%;
+ background-color: #333333;
+ max-width: 1000px;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+/* border-width: 0px 1px 2px 0px !important; */
+ width:2%;
+ height:30px;
+}
+
+table.orarend tbody tr th {
+ border-right: solid 2px #889988;
+ border-left: solid 2px #889988;
+}
+table.orarend tbody tr th.most { background-color: #99aa99; border-right: solid 2px #1e90ff;
+
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+
+}
+
+/* THEAD */
+
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ border-bottom: solid 1px white;
+ font-weight: 100;
+ letter-spacing:0.2px;
+}
+table.orarend thead tr th.ma { border-bottom: solid 1px #1E90FF; background-color: #9aa; }
+table.orarend thead tr th.het { background-color: #6495ED}
+
+table.orarend thead tr th.spec { background-color: #f06; }
+table.orarend thead tr th.spec.roviditett { background-color: lightgreen; }
+
+table.orarend thead tr th.hover { background-color: rgba(200,150,200,0.5); }
+table.orarend tbody tr th.hover { background-color: rgba(100,150,200,0.5); border-color: rgb(100,150,200); }
+table.orarend tbody tr th.most.hover { background-color: rgba(200,150,200,0.5); border-color: rgb(100,150,200); }
+
+/* TFOOT */
+
+table.orarend tfoot.publikus tr th {
+ background-color: lightgreen;
+ color: white;
+}
+table.orarend tfoot.nempublikus tr th {
+ background-color: #f06;
+ color: white;
+}
+table.orarend tfoot:hover tr th {
+ background-color: #8f8;
+}
+
+table.orarend tbody tr td div.oraMostVan {
+ border-style: solid;
+ border-color: lightgreen; border-width: 0px 4px 0px 4px; border-radius:2px;
+}
+
+table.orarend tbody tr td div.dolgozat {
+ background-color: orange; color:white;
+ border-radius:2px; padding:2px;
+ border: solid 1px white;
+ margin:2px;
+ font-size: x-small;
+}
+table.orarend tbody tr td div.jegyzet {
+ background-color: lightgreen; color:white;
+ border-radius:2px; padding:2px;
+ border: solid 1px white;
+ margin:2px;
+ font-size: x-small;
+}
+table.orarend tbody tr td div.jegyzet.publikus0 { }
+table.orarend tbody tr td div.jegyzet.publikus1 { border: dashed 1px white; }
+table.orarend tbody tr td div.jegyzet.publikus2 { border: dotted 1px white; }
+table.orarend tbody tr td div.jegyzet.mase.publikus1 { background-color: #4caf50;}
+table.orarend tbody tr td div.jegyzet.mase.publikus2 { background-color: #4caf50;}
+
+table.orarend tbody tr.orarendJegyzetSor th { background-color: orange; border-color: orange; font-weight:normal; font-size: x-small; cursor: pointer}
+table.orarend tbody tr.orarendJegyzetSor td.jegyzetContainer { background-color: cornflowerblue; }
+table.orarend tbody tr.orarendJegyzetSor td.jegyzetContainer div:hover { border-color: #bbb; transition : border 50ms ease-out;}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #efefef;
+/* border-width: 0px 1px 2px 0px;*/
+ width:18%;
+}
+
+table.orarend tbody tr td.eppTart {
+ outline: solid 2px #1e90ff;
+ background-color: rgba(255,255,255,1);
+}
+
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.plusz {
+ background-color: #eeccee;
+ }
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.elmarad_máskor {
+ color: white;
+ background-color: #555555;
+ }
+ div.normál_máskor {
+ color: white;
+ background-color: #776699;
+ }
+ div.felügyelet {
+ background-color: #FF69B4; /* #bbaac0 */
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #B0C4DE /*#aabbc0;*/
+ }
+ div.friss { }
+
+ div.nemVoltBent { color: #bbb; }
+
+ span.hianyzasTicker {
+ float:left;
+ width: 12px;
+ line-height: 12px;
+ border-radius: 50%;
+ text-align: center;
+ border: 2px solid #aaa;
+ font-size:12px;
+ margin-left:2px;
+ padding:2px;
+ background-color: white;
+ color:#333;
+ font-weight: bold;
+ }
+ span.hianyzasTicker.igazolatlan { border-color: #e91e63; }
+ span.hianyzasTicker.igazolt { border-color: green; }
+ span.hianyzasTicker.hianyzas { }
+ span.hianyzasTicker.keses { border-color: orange; font-size:8px;}
+ span.hianyzasTicker.felszereles { color:cornflowerblue; font-size:8px; }
+ span.hianyzasTicker.felmentes { color:cornflowerblue; font-size:8px; }
+
+ div.osztályfüggetlen { color: #eeeeee; background-color: rgba(52, 150, 185, 1); }
+ table.osztalyOrarend div.osztályfüggetlen { display:none; }
+ table.diakOrarend div.osztályfüggetlen { display:none; }
+
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+ table.orarend tr td span.t0 {
+ padding:0px 2px;
+ background-color: mediumvioletred; color:white;
+ }
+ table.orarend tr td span.t1 {
+ }
+
+ table.orarend tbody tr th div {
+ color: #dddddd;
+ white-space:nowrap;font-size:xx-small; font-weight:normal; width:100%; text-align: center;
+ /* text-shadow: 0px 1px black;*/
+ }
+
+ table.orarend thead tr th:hover span.napLeiras { display:none; }
+
+ table.orarend div.orarendTools { display:none; padding: 0px; }
+ table.orarend thead tr th:hover div.orarendTools { display: block; }
+ table.orarend div.orarendTools span { padding: 4px; font-size:20px; }
+ table.orarend div.orarendTools a span { color:white; }
+ table.orarend div.orarendTools span:hover { text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;}
+ table.orarend div.orarendTools span.icon-info-sign:hover { color: cornflowerblue;}
+ table.orarend div.orarendTools span.jegyzet:hover { color: lightgreen;}
+ table.orarend div.orarendTools span.dolgozat:hover { color: orange;}
+ table.orarend div.orarendTools span.bezar:hover { color: #f06; }
+
+ h2.mayorSocialEdition {
+ text-align: center;
+ background-color: #f06;
+ width: 220px;
+ margin: auto;
+ color: #fff;
+ margin-bottom: 8px;
+ border-radius: 4px;
+ padding: 2px;
+ }
+
+ .animated {
+ -webkit-animation-duration: 1.5s;
+ animation-duration: 1.5s;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both;
+ }
+
+ @-webkit-keyframes shake {
+ 0%, 100% {-webkit-transform: translateX(0);}
+ 10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-2px);}
+ 20%, 40%, 60%, 80% {-webkit-transform: translateX(2px);}
+ }
+ @keyframes shake {
+ 0%, 100% {transform: translateX(0);}
+ 10%, 30%, 50%, 70%, 90% {transform: translateX(-2px);}
+ 20%, 40%, 60%, 80% {transform: translateX(2px);}
+ }
+ .shake {
+ -webkit-animation-name: shake;
+ animation-name: shake;
+ }
+}
+@media (max-width: 764px) {
+
+/*
+ table.orarend thead tr th div.orarendTools { display: block; border-top: solid 1px white; padding-top:4px; background-color: cornflowerblue;}
+ table.orarend thead tr th div.orarendTools span { color: #eee;}
+ table.orarend thead tr th span.napLeiras { display:block; }
+ table.orarend thead tr th:hover span.napLeiras { display:block; }
+*/
+}
+@media print {
+ table.toolBar, #nav, #nav1, #nav2, #poz, #head {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+
+ table.orarend tbody tr th div {
+ color: #dddddd; text-shadow: 0px 1px black;white-space:nowrap;font-size:xx-small; font-weight:normal; width:100%; text-align: center;
+ }
+
+ table.orarend div.orarendTools { display:none; }
+ h2.mayorSocialEdition { display:none; }
+
+}
+
+sup, sub {
+ vertical-align: baseline;
+ position: relative;
+ top: -0.4em;
+ padding-left: 1px;
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css
new file mode 100644
index 00000000..9dd7e321
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css
@@ -0,0 +1,6 @@
+
+ form.file { background-color: rgb(200,200,240); margin: 10px auto; padding: 20px 5px 5px 5px; width: 500px; text-align: center; border: rgb(40,80,120) solid; border-width: 3px 0px; }
+ form.file img { border: none; position: relative; top: 10px; }
+ form.file a { text-decoration: none; display: block; padding-bottom: 14px; background-color: rgb(20,40,60); color: white; margin-top: 40px; }
+ form.file a:hover { color: rgb(255,200,100); }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css
new file mode 100644
index 00000000..3a72f844
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css
@@ -0,0 +1,3 @@
+
+ form.orarend { background-color: rgb(140,160,180); }
+ form.orarend ol.kritikus li { background: red; margin-right: 20px; padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendModosito.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendModosito.css
new file mode 100644
index 00000000..1d9f527b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendModosito.css
@@ -0,0 +1,157 @@
+@media screen {
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+font-size:10px;
+}
+
+table.orarend {
+ width: 85%;
+ background-color: #888;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:30px;
+}
+table.orarend thead tr th {
+ background-color: rgba(52, 150, 185, 1);
+ color: white;
+ border-bottom: solid 1px white;
+ width:2%;
+ height:2em;
+ font-weight: normal;
+}
+table.orarend thead tr th.spec {
+ background-color: #2196F3;
+}
+
+table.orarend tbody tr th { font-weight: normal; padding:0px 1em; }
+
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #efefef;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+}
+
+table.orarend tr td:hover { outline: solid 1px orange; }
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white;
+ max-width:140px;
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál { background-color: lightgreen !important;}
+ div.plusz { background-color: #eeccee !important;}
+ div.elmarad { background-color: black !important;}
+ div.elmarad_máskor { background-color: #555555 !important; }
+ div.normál_máskor { background-color: #776699 !important; }
+ div.felügyelet { background-color: #FF69B4 !important; }
+ div.helyettesítés { background-color: #ccffcc !important; }
+ div.összevonás { background-color: #B0C4DE !important; }
+
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+ table.orarend tr td span.t0 {
+ background-color: #880000; color:white;
+ }
+ table.orarend tr td span.t1 {
+ }
+
+ table.orarend tr td select, table.orarend tr td select option { background-color: black; color: white; }
+ table.orarend tr td select.terem ,
+ table.orarend tr td select.terem option { background-color: white; color: black; }
+ table.orarend tr td select.nincs option { background-color: orange; color: black; }
+
+ table.orarend tr td select.terem option.orig { font-style: italic; color: #aaaaaa;}
+
+ table.orarend tbody tr td { background-color: #cccccc; }
+ table.orarend tbody tr td div { background-color: rgb(130,200,130); }
+ table.orarend tbody tr td div.nincsTerem { background-color: rgb(200,130,130); }
+ table.orarend tbody tr td div.moved { background-color: rgb(200,130,230) !important; }
+
+ table.orarend tbody tr:hover th { background-color: #aabbcd; }
+
+ table.orarend tbody tr td input { background-color: red; }
+
+ div#hibasOrak {
+ width:100%;
+ margin: 0px auto;
+ border-top: #F3F3F3 solid 4px;
+ border-bottom: #F3F3F3 solid 4px;
+ }
+ div.hibas { overflow: hidden; margin:1px;height:100px; width:189px; border: solid 1px black; display:inline-block; background-color: orange; }
+ div.details { font-size: x-small; padding-left:1em; }
+
+ div.button {
+ width:200px;
+ margin:20px auto;
+ }
+ div.button input {
+ width:100%;
+ background-color: #82C882; color: white;
+ padding:0.4em 0.4em;
+ border: solid 1px rgb(52, 150, 185);
+ border-radius: 2px;
+ }
+ div.button input:hover {
+ background-color:#3496B9;
+ border: solid 1px rgb(52, 150, 185);
+ color: white;
+ }
+ div.haladasi { background-color: #F44336; border: solid 1px #ccc; padding:0.5em; color:white; }
+ div.haladasi.haladasiModositando { background-color: #4CAF50; }
+ table.orarend tbody tr td div.haladasiOra { color:white; cursor: pointer; }
+ div.torlesreJelolve { background-color: #888 !important; text-decoration: line-through; outline: solid 1px red; }
+}
+@media print {
+ table.toolBar {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+}
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTankor.css
new file mode 100644
index 00000000..ed5bb002
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTankor.css
@@ -0,0 +1,29 @@
+h2 { text-align: center; }
+
+table.orarend {
+ width: 85%;
+ background-color: black;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #eeeeff;
+ border-width: 0px 1px 2px 0px;
+}
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white;
+}
+table.orarend tr td select option { background: #000011; }
+form input.sub {
+ color: white;
+ background-color: blue;
+ border: solid 1px #000088;
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css
new file mode 100644
index 00000000..fb0172cc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css
@@ -0,0 +1,8 @@
+
+ form.terem { background-color: rgb(100,50,100); color: white; margin: 5px auto; text-align: center; width: 640px; }
+ form.terem h1 { text-align: center; font-size: 16px; background-color: rgb(80,40,80); padding: 2px; }
+ form.terem select { margin: 2px; }
+ form.terem select option.foglalt { color: red; }
+ form.terem select option.szabad { color: green; }
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/szabadTerem.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/szabadTerem.css
new file mode 100644
index 00000000..f6652b54
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/szabadTerem.css
@@ -0,0 +1,118 @@
+@media screen {
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+form.teremKereso { width:100%; margin-left: auto; margin-right:auto; text-align: center; margin-bottom:10px;}
+table.orarend tr td { }
+table.orarend span, form.teremKereso span { padding: 2px; border-radius: 4px; border: #ddd 1px solid; line-height:1.8em; white-space: nowrap; background-color:white; }
+
+table.orarend span.xlarge, form.teremKereso span.xlarge { background-color: #4caf50;}
+table.orarend span.large, form.teremKereso span.large { background-color: lightgreen;}
+table.orarend span.normal, form.teremKereso span.normal { background-color: lightblue;}
+table.orarend span.small, form.teremKereso span.small { background-color: yellow;}
+table.orarend span.xsmall, form.teremKereso span.xsmall { background-color: #ff5722;}
+
+table.orarend span:hover, form.teremKereso span:hover { border-color: white; cursor:pointer;}
+
+form.teremKereso span.clk {
+ color: #aaa;
+ -webkit-filter: grayscale(90%);
+ filter: grayscale(90%);
+}
+
+table.orarend {
+ width: 90%;
+ background-color: black;
+}
+table.orarend tr th {
+ background-color: #bbb;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:30px;
+ font-weight:normal;
+}
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:1em;
+}
+table.orarend thead tr th.spec {
+ background-color: red;
+}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #eeeeff;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+}
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.felügyelet {
+ background-color: #bbaac0;
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #aabbc0;
+ }
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+}
+@media print {
+ table.toolBar {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css
new file mode 100644
index 00000000..b17b3fce
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css
@@ -0,0 +1,2 @@
+
+ form.orarend { text-align: center; margin: 40px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/termez.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/termez.css
new file mode 100644
index 00000000..bc3197c4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/termez.css
@@ -0,0 +1,13 @@
+
+ table.teremPreferencia { background-color: #eeeeee; margin: 4px 8px; width:95%; max-width:95%;}
+ table.teremPreferencia tr th { ; border-bottom: solid 1px white;}
+ table.teremPreferencia tr td { background-color: white;}
+
+
+ table.teremPreferencia tr td.terem { font-size:smaller; }
+ table.teremPreferencia tr td a { color: #dddddd;}
+ table.teremPreferencia tr td a.del:hover { color: #880000;}
+
+ table.teremPreferencia tr td a.run:hover { color: green;}
+
+ table.teremPreferencia tr:hover td { outline: solid 1px orange;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css
new file mode 100644
index 00000000..001470fc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css
@@ -0,0 +1,71 @@
+@media screen {
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #555555; margin-bottom: 5px;}
+ table.tanuloBizonyitvany thead th { background-color: rgb(100,140,130);
+ color: white; text-align: center; padding: 5px 8px 5px 8px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead tr th.cim { }
+ table.tanuloBizonyitvany thead tr th.nev { }
+ table.tanuloBizonyitvany thead a { color: white; text-decoration: none; }
+ table.tanuloBizonyitvany thead a:hover { text-decoration: underline; }
+ table.tanuloBizonyitvany textarea { width: 100%; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 16px; font-size: 10px; background-color: rgb(200,200,200); }
+ table.tanuloBizonyitvany thead tr.evf th { height:25px; width:50px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(100,110,120); color: white; font-weight: normal;
+ border-right: solid 1px #eeeeee;
+ }
+ table.tanuloBizonyitvany tbody th { height:25px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150); color: white; font-weight: normal;
+ }
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220); border-style: solid; border-width: 1px 1px 0px 0px;
+ }
+ table.tanuloBizonyitvany tbody tr.fejlec th { background-color: rgb(100,110,120); font-weight: bold; }
+ table.tanuloBizonyitvany tbody td.vanjegy { color: white; text-align: center; }
+ table.tanuloBizonyitvany tbody td.nbiz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(100,180,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.oraszam { text-align: center; }
+ table.tanuloBizonyitvany tfoot tr th { background-color: rgb(120,100,100); color: white; height:1.5em; }
+ table.tanuloBizonyitvany span.megj { font-size: 8px; font-style: italic; }
+
+ table.tanuloBizonyitvany tbody tr td span.szem1 { background-color: rgb(220,140,255); display: block; padding-left: 2px; }
+
+ table.tanuloBizonyitvany tbody tr th input { background-color: rgb(160,170,180); border: solid 1px rgb(180,100,140); }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+}
+@media print {
+
+ .mayorhead, .toolBar, form.modosit, .nemNyomtatando { display: none; }
+
+ table.tanuloBizonyitvany { border-width: 2px 2px 3px 3px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany a { color: black; text-decoration: none; }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th { padding: 0px 10px 0px 10px; }
+ table.tanuloBizonyitvany thead th { border-width: 0px 1px 1px 0px; border-style: solid; border-color: black;
+ padding: 4px 10px 3px 10px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.nev { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; font-size: 16px; }
+ table.tanuloBizonyitvany thead th.cim { border-width: 0px 1px 0px 0px; font-size: 20px; }
+ table.tanuloBizonyitvany tfoot > tr > td { border-width: 0px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th { text-align: left; font-weight: normal; }
+ table.tanuloBizonyitvany > tbody tr.fejlec th { border-width: 2px 1px 1px 0px; text-align: center; font-weight: bold; padding: 3px 10px 3px 10px; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 10px; }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal { width: 40%; border-color: black; border-width: 0px 0px 1px 0px; border-style: dotted; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css
new file mode 100644
index 00000000..c44bd632
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css
@@ -0,0 +1,70 @@
+@media screen {
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #ffffff; }
+ table.tanuloBizonyitvany thead th { background-color: rgb(100,140,130);
+ color: white; text-align: center; padding: 5px 8px 5px 8px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.cim { font-size: 20px; font-weight: bold; }
+ table.tanuloBizonyitvany thead th.nev { font-size: 16px; font-weight: bold;}
+ table.tanuloBizonyitvany thead a { color: white; text-decoration: none; }
+ table.tanuloBizonyitvany thead a:hover { text-decoration: underline; }
+ table.tanuloBizonyitvany textarea { width: 100%; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 16px; font-size: 10px; background-color: rgb(200,200,200); }
+ table.tanuloBizonyitvany tbody th { height:25px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150); color: white; font-weight: normal;
+ }
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220); border-style: solid; border-width: 1px 1px 0px 0px;
+ }
+ table.tanuloBizonyitvany tbody tr.fejlec th { background-color: rgb(100,110,120); font-weight: bold; }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.oraszam { text-align: center; }
+ table.tanuloBizonyitvany tfoot td { border-style: none; }
+ table.tanuloBizonyitvany span.megj { font-size: 8px; font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ form.modosit { margin: 50px auto 0px auto; padding: 0px; width: 500px; background-color: rgb(180,100,140); }
+ form.modosit h1 { text-align: center; color: white; font-size: 14px; background-color: rgb(100,110,120);
+ padding: 3px; margin:1px;
+ border-bottom: solid 1px white;
+ }
+ form.modosit table.jegy { width:100%; background-color: #eeeeee; }
+ form.modosit table.jegy tbody tr th { background-color: #888888; color: white; font-weight: normal; }
+ form.modosit table.jegy tbody tr td { background-color: rgb(180,100,140); color: white; font-weight: normal; }
+ form.modosit table.jegy tfoot tr th { background-color: #554455; color: white; font-weight: normal; }
+}
+@media print {
+
+ .mayorhead, .toolBar, form.modosit, .nemNyomtatando { display: none; }
+
+ table.tanuloBizonyitvany { border-width: 2px 2px 3px 3px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany a { color: black; text-decoration: none; }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th { padding: 0px 10px 0px 10px; }
+ table.tanuloBizonyitvany thead th { border-width: 0px 1px 1px 0px; border-style: solid; border-color: black;
+ padding: 4px 10px 3px 10px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.nev { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; font-size: 16px; }
+ table.tanuloBizonyitvany thead th.cim { border-width: 0px 1px 0px 0px; font-size: 20px; }
+ table.tanuloBizonyitvany tfoot > tr > td { border-width: 0px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th { text-align: left; font-weight: normal; }
+ table.tanuloBizonyitvany > tbody tr.fejlec th { border-width: 2px 1px 1px 0px; text-align: center; font-weight: bold; padding: 3px 10px 3px 10px; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 10px; }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal { width: 40%; border-color: black; border-width: 0px 0px 1px 0px; border-style: dotted; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/diak.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/diak.css
new file mode 100644
index 00000000..ea8f30e5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/diak.css
@@ -0,0 +1,58 @@
+@media screen {
+ table.osztalyozo { background-color: rgb(220,220,220); color: white; }
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+ table.osztalyozo thead th { background-color: #660077; padding: 2px 4px 2px 4px; }
+ table.osztalyozo thead th.nev { background-color: #660077; height:30px; font-size: 16px; }
+ table.osztalyozo thead td { background-color: #440055; text-align: center; padding: 0px 4px 0px 4px; }
+ table.osztalyozo thead th.biz { background-color: #224433; }
+ table.osztalyozo thead th.defaultSulyozas { background-color: lightgreen; }
+
+ table.osztalyozo tfoot th { background-color: rgb(100,120,120); padding: 2px; vertical-align: center; }
+ table.osztalyozo tfoot th span { padding: 1px 10px; font-weight: normal; background-color: rgb(220,220,220); }
+
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; padding: 4px 4px 4px 4px; }
+ table.osztalyozo tbody th a { color: white; text-decoration: none; }
+ table.osztalyozo tbody th.atlag { background-color: rgb(100,100,130); padding: 0px 4px 0px 4px; }
+ table.osztalyozo tbody th.t { text-align: left; padding-left: 0.5em; padding-right:0.5em; }
+ table.osztalyozo tbody td { background-color: #eeeeee; }
+ table.osztalyozo tbody td.biz { background-color: #446655; text-align: center; padding-right:3px; padding-left:3px; }
+ table.osztalyozo tbody td a { text-decoration: none; }
+
+ table.osztalyozo tbody td a.jegy0, table.osztalyozo tfoot th span.jegy0 { color: grey; }
+ table.osztalyozo tbody td a.jegy1, table.osztalyozo tfoot th span.jegy1 { color: blue; }
+ table.osztalyozo tbody td a.jegy2, table.osztalyozo tfoot th span.jegy2 { color: black; }
+ table.osztalyozo tbody td a.jegy3, table.osztalyozo tfoot th span.jegy3 { color: green; }
+ table.osztalyozo tbody td a.jegy4, table.osztalyozo tfoot th span.jegy4 { color: red; }
+ table.osztalyozo tbody td a.jegy5, table.osztalyozo tfoot th span.jegy5 { color: purple; background-color: gold; }
+
+ table.osztalyozo tbody td.biz span.sikertelen {background-color:black; padding:0px 4px;}
+
+ table.osztalyozo tfoot th span {cursor: pointer}
+
+ .jegyKiemel { outline: solid 1px orange; }
+
+ table.osztalyozo thead td.ho span.literal {display: table-cell}
+ table.osztalyozo thead td.ho span.roman {display: none;}
+
+ table.osztalyozo tbody tr:hover th { background-color: rgba(100,100,100,0.5);}
+ span.addVirtualJegy {cursor: pointer; padding-left:4px;}
+ a.virtual { border: dotted 1px lightgreen; }
+}
+@media (max-width: 764px) {
+ table.osztalyozo { width:95%;}
+ table.osztalyozo thead td.ho span.literal {display: none;}
+ table.osztalyozo thead td.ho span.roman {display: table-cell;}
+}
+
+@media print {
+ input, select, .toolBar { display: none; }
+ .biz select { display: inline; }
+ a { text-decoration: none; color: black; }
+ table { background-color: rgb(200,200,200); border-spacing: 0px; border: 1px black solid; font-size: 10px; border-collapse:collapse; }
+ td { border: solid 1px black; padding: 4px 4px; }
+ th { border: solid 1px black; padding: 6px 4px 2px 4px; vertical-align: middle; }
+ table.osztalyozo tbody td { text-align: right; }
+ table.osztalyozo tfoot {display:none;}
+ table.osztalyozo tbody th.t { text-align: left; padding-left: 0.5em; padding-right:0.5em; }
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css
new file mode 100644
index 00000000..957f833c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css
@@ -0,0 +1,172 @@
+
+ table.dolgozatLista {
+ background-color: rgb(220,220,250);
+ margin-top: 20px;
+ width: 90%;
+ empty-cells: show;
+ margin-bottom:4em;
+ border-bottom: solid 1px rgb(40,40,100) ;
+ }
+
+ table.dolgozatLista th {
+ background-color: rgb(40,40,100);
+ color: white;
+ padding: 3px;
+ }
+
+ table.dolgozatLista th.kuszob {
+ background-color: rgb(0,100,100);
+ height:3px;
+ max-height:3px;
+ }
+
+ table.dolgozatLista td {
+ background-color: rgb(100,100,140);
+ color: white;
+ padding: 3px 10px;
+ }
+
+ table.dolgozatLista td a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ }
+
+ table.dolgozatLista td a:hover {
+ color: rgb(155,155,255);
+ }
+ table.dolgozatLista td.nincsdolgozat {background-color: rgb(100,100,100); text-align:center; }
+ table.dolgozatLista tbody tr:hover th {background-color: rgb(80,180,120); }
+ table.dolgozatLista tbody tr:hover td {background-color: rgb(80,80,120); }
+
+ /* ------- Adatok ------- */
+
+ table.dolgozatAdatok {
+ min-width:300px;
+ background-color: rgb(220,220,250);
+ margin-top: 10px;
+ }
+
+ table.dolgozatAdatok thead th {
+ background-color: rgb(60,60,110);
+ color: white;
+ padding: 4px 0px;
+ }
+
+ table.dolgozatAdatok tfoot th {
+ background-color: rgb(100,100,140);
+ padding: 4px;
+ }
+
+ table.dolgozatAdatok tfoot input {
+/* border-color: rgb(220,220,250);
+ border-width: 1px;
+ border-style: solid;
+ background-color: rgb(40,40,100);
+ color: rgb(255,255,255);
+*/
+ }
+
+ table.dolgozatAdatok tbody th {
+ background-color: rgb(140,140,200);
+ color: white;
+ padding: 2px 6px;
+ }
+
+ table.dolgozatAdatok tbody td {
+ background-color: rgb(100,100,160);
+ color: white;
+ padding: 2px 6px;
+ }
+
+ table.dolgozatAdatok tbody td select.multiple {
+ height: 150px;
+ width: 100%;
+ }
+
+ table.dolgozatAdatok td input.hosszu {
+ width: 95%;
+ }
+
+ table.dolgozatAdatok tbody td span.onClickHideShow {
+ background-color: rgb(70,70,100);
+ color: white;
+ padding: 2px 4px;
+ border: 1px solid rgb(140,140,200);
+ cursor: pointer;
+ }
+
+ table.dolgozatAdatok tbody td span.openable {
+ background-color: rgb(70,70,100);
+ color: white;
+ padding: 2px 4px;
+ border: 1px solid rgb(140,140,200);
+ }
+
+ table.dolgozatAdatok tbody td ul { padding: 0px; margin: 0px; }
+ table.dolgozatAdatok tbody td ul li { list-style-type: none; background-color: rgb(70,70,100); margin: 1px 0px; padding: 4px 12px; }
+ table.dolgozatAdatok tbody td ul li a { color: white; text-decoration: none; }
+
+ /* ------- jegyek -------- */
+
+ table.dolgozatJegyek {
+ min-width:300px;
+ background-color: rgb(220,220,250);
+ margin-top: 10px;
+ }
+
+ table.dolgozatJegyek th {
+ background-color: rgb(60,60,110);
+ color: white;
+ padding: 2px 10px;
+ }
+
+ table.dolgozatJegyek tbody th {
+ background-color: rgb(100,100,160);
+ font-weight: normal;
+ text-align:left;
+ }
+
+ table.dolgozatJegyek th a {
+ text-decoration: none;
+ color: white;
+ }
+
+ table.dolgozatJegyek th a:hover {
+ text-decoration: underline;
+ }
+
+ table.dolgozatJegyek thead td {
+ background-color: rgb(100,100,140);
+ color: white;
+ text-align: center;
+ }
+
+ table.dolgozatJegyek td {
+ background-color: rgb(200,200,240);
+ color: rgb(60,60,110);
+ text-align: center;
+ }
+
+ table.dolgozatJegyek td a {
+ text-decoration: none;
+ }
+
+ table.dolgozatJegyek td a:hover {
+ text-decoration: underline;
+ }
+
+ table.dolgozatJegyek td a.jegy3 {
+ color: green;
+ }
+
+ table.dolgozatJegyek td a.jegy4 {
+ color: red;
+ }
+
+ form.dolgozat { margin-left:5%; margin-right:5%; width:90%; color: white; text-align: center; }
+ form.dolgozat input {
+ margin: 10px; background-color: rgb(0,100,100); border: 2px solid rgb(40,40,100); color: white; font-size: large; padding:2px 4px 2px 4px;
+ }
+
+ table.dolgozatJegyek tr.atlag th { text-align:right; background-color: #9C64A0; }
+ table.dolgozatJegyek tr.atlag th:after { padding-left:4px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/jegy.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/jegy.css
new file mode 100644
index 00000000..20ccb4c4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/jegy.css
@@ -0,0 +1,39 @@
+@media screen {
+ table.jegyInfo {
+ background-color: rgb(200,200,200);
+ color: white;
+ }
+
+ table.jegyInfo thead th {
+ background-color: rgb(100,120,100);
+ height:30px;
+ }
+
+ table.jegyInfo tfoot th {
+ background-color: rgb(100,120,100);
+ padding:5px;
+ }
+
+ table.jegyInfo tbody select { max-width:300px; }
+ table.jegyInfo tbody th {
+ background-color: rgb(140,160,150);
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.jegyInfo tbody td {
+ background-color: rgb(140,160,150);
+ padding: 2px 4px 2px 4px;
+ }
+
+ table.jegyInfo tr td a {color: white;text-decoration: none;}
+ table.jegyInfo tr td a:hover {color: white;text-decoration: underline;}
+ table.jegyInfo tr th a {color: white;text-decoration: none;}
+ table.jegyInfo tr th a:hover {color: white;text-decoration: underline;}
+ table.jegyInfo tr th a:visited {color: white;text-decoration: underline;}
+
+ table.jegyInfo tbody td input {
+ width: 99%;
+ }
+
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/stat.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/stat.css
new file mode 100644
index 00000000..725adee6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/stat.css
@@ -0,0 +1,339 @@
+@media screen {
+
+ table.osztalyozo thead tr td { cursor: pointer; }
+ table.osztalyozo thead tr td.szuk { overflow:hidden; width:5px; max-width:5px;}
+ table.osztalyozo thead tr td.szuk { background-color: rgba(0,100,0,0.5);}
+ table.osztalyozo thead tr td.foTargy { background-color: #3F51B5;}
+ table.osztalyozo thead tr td.alTargy { border-bottom: solid 2px #3F51b5; background-color:#03A9F4;}
+
+ table.osztalyozo tbody tr td.szuk { background-color: rgba(100,100,100,0.75);}
+
+ table.osztalyozo {
+ background-color: rgb(220,220,220);
+ color: white;
+ width:98%;
+ }
+
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+
+ table.osztalyozo thead th {
+ background-color: rgb(100,120,120);
+ }
+ table.osztalyozo thead th.nev { height:30px; }
+ table.osztalyozo thead th.beallitasok { text-align:left; font-weight:normal; font-size:x-small; color: rgba(255,255,255,0.7); }
+ table.osztalyozo thead th.beallitasok span { color: rgba(255,255,255,0.1); }
+ table.osztalyozo thead th.beallitasok label:hover { color: #ffffff;}
+ table.osztalyozo thead th.beallitasok span:hover { color: rgba(255,255,255,1); }
+ table.osztalyozo thead td {
+ background-color: rgb(100,140,130);
+ text-align: center;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tfoot th {
+ background-color: rgb(100,120,120);
+ padding: 0px;
+ vertical-align: center;
+ }
+
+ table.osztalyozo tfoot th select {
+ width: 200px;
+ }
+ table.osztalyozo tfoot th input {
+ width: 100px;
+ }
+
+ table.osztalyozo tfoot th input.jegy1 {
+ color: blue;
+ }
+
+ table.osztalyozo tfoot th input.jegy2 {
+ color: black;
+ }
+
+ table.osztalyozo tfoot th input.jegy3 {
+ color: green;
+ }
+
+ table.osztalyozo tfoot th input.jegy4 {
+ color: red;
+ }
+
+ table.osztalyozo tfoot td {
+ font-size:10px;
+ background-color: rgb(100,140,130);
+ text-align: center;
+
+ }
+
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; }
+ table.osztalyozo tbody tr.elment th { background-color: rgb(65,70,75); }
+ table.osztalyozo tbody tr.elment th.jogviszonyafelfuggesztve { background-color: rgb(30,140,150); }
+ table.osztalyozo tbody tr.elment td.jegyek { background-color: #aaaaaa; }
+ table.osztalyozo tbody td span.masikFelev { font-style: italic; color: #555}
+ table.osztalyozo tbody td span.masikFelev:after { font-size: 6pt; position: relative; top: -2pt; content: "*"; }
+
+ table.osztalyozo tbody th.jogviszonyalezarva { background-color: rgb(30,40,50); }
+ table.osztalyozo tbody th.jogviszonyafelfuggesztve { background-color: rgb(30,140,150); }
+ table.osztalyozo tbody th.magantanulo { background-color: rgb(130,40,150); }
+ table.osztalyozo tbody th.vendegtanulo { background-color: rgb(130,140,50); }
+ table.osztalyozo tbody th a { display: block; }
+
+ table.osztalyozo tbody th.atlag {
+ background-color: rgb(100,100,130);
+ padding: 0px 4px 0px 4px;
+ }
+ table.osztalyozo tbody th.kituno { background-color: #ff0000; }
+ table.osztalyozo tbody th.jeles { background-color: #883333; }
+ table.osztalyozo tbody th.bukott { background-color: black; }
+ table.osztalyozo tbody th.i { background-color: #f1f1f1; color: green; }
+ table.osztalyozo tbody th.ni {background-color: #f1f1f1; color: red; }
+
+ table.osztalyozo tbody th div.naploSorszam {background-color: #777777; border-right: solid 1px white; vertical-align: middle; display:table-cell; min-width:20px;}
+
+
+ table.osztalyozo tbody td.jegyek {
+ background-color: #eeeeee;
+ color: black;
+ text-align: center;
+ }
+
+ table.osztalyozo tbody td.biz {
+ background-color: rgb(180,100,140);
+ text-align: center;
+ }
+ table.osztalyozo tbody td.bizZaradek select {
+ width:400px;
+ }
+ table.osztalyozo thead td.bizZaradek span { color: rgba(255,255,255,0.1); }
+ table.osztalyozo thead td.bizZaradek span:hover { color: white; }
+
+ table.osztalyozo tbody td.biz select { background-color: rgb(180,100,140);}
+ table.osztalyozo tbody td.biz select:hover {background-color: rgb(250,250,250); }
+
+ table.osztalyozo tbody tr td.targyEloszlas { background-color: #ccddcc; text-align: center; color: black; }
+
+ table.osztalyozo tbody tr td div.osz { display:none; font-size:smaller; color:#666666;}
+
+ table.bizstat { margin-left:60px; border: solid 1px orange; margin-right:20px; }
+ table.bizstat th { background-color: #eeeeee; font-weight: normal; text-align: right; }
+ table.bizstat td { background-color: #f7f7f7; text-align: right; padding-right:5px; padding-left: 5px;}
+ table.bizstat tr.ossz th { background-color: #dddddd; font-weight:bold; }
+ table.bizstat tr.ossz td { background-color: #dddddd; font-weight:bold; }
+ table.bizstat caption {
+ margin-left: 0px;
+ margin-top: 2em;
+ caption-side: top;
+ font-size:12px;
+ background-color: #778877;
+ color: white;
+ padding:2px;
+ }
+
+ table.floatleft { float:left }
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #ffffff; }
+ table.tanuloBizonyitvany thead th {
+ background-color: rgb(100,140,130);
+ color: white;
+ text-align: center;
+ padding: 5px 8px 5px 8px;
+ font-weight: normal;
+ font-family: Times;
+ }
+ table.tanuloBizonyitvany thead th.cim { font-size: 20px; font-weight: bold; }
+ table.tanuloBizonyitvany thead th.nev { font-size: 16px; font-weight: bold; }
+
+
+
+ table.tanuloBizonyitvany thead a {
+ color: white;
+ text-decoration: none;
+ }
+ table.tanuloBizonyitvany thead a:hover {
+ text-decoration: underline;
+ }
+
+ table.tanuloBizonyitvany textarea {
+ width: 100%;
+ }
+
+ table.tanuloBizonyitvany tbody.jegyzet td {
+ padding: 16px;
+ font-size: 10px;
+ background-color: rgb(200,200,200);
+ }
+
+ table.tanuloBizonyitvany tbody th {
+ height:25px;
+ padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150);
+ color: white;
+ font-weight: normal;
+ }
+
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220);
+ border-style: solid;
+ border-width: 1px 1px 0px 0px;
+ }
+
+
+ table.tanuloBizonyitvany tbody tr.fejlec th {
+ background-color: rgb(100,110,120);
+ font-weight: bold;
+ }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+
+ table.tanuloBizonyitvany tfoot td {
+ border-style: none;
+ }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ /* iskolaStatisztika */
+ table.iskolaStatisztika { background-color: #eeeeee; empty-cells: show;}
+ table.iskolaStatisztika thead th {
+ background-color: rgb(100,140,130);
+ color: white;
+ text-align: center;
+ padding: 2px;
+ font-weight: normal;
+ }
+ table.iskolaStatisztika tfoot { }
+ table.iskolaStatisztika tbody td { text-align: right; }
+ table.iskolaStatisztika tbody th { background-color: rgb(190,210,200); }
+ table.iskolaStatisztika tbody td { background-color: rgb(210,230,220); }
+ table.iskolaStatisztika tbody.hianyzas th { background-color: rgb(180,180,150); }
+ table.iskolaStatisztika tbody.hianyzas td { background-color: #ccccc0; }
+ table.iskolaStatisztika tbody.atlag th { background-color: rgb(220,220,220); text-align: left; padding: 0px 6px 0px 6px; font-weight: normal;}
+ table.iskolaStatisztika tbody.atlag th.ossz { background-color: rgb(220,220,220); text-align: center; }
+ table.iskolaStatisztika tbody.atlag td { background-color: white; }
+ table.iskolaStatisztika tbody.atlag tr:hover td, table.iskolaStatisztika tbody.atlag tr:hover th { background-color: #cccccc; }
+ table.iskolaStatisztika tbody.atlag tr.ossz th { background-color: rgb(200,200,210); text-align: center; font-weight: bold;}
+ table.iskolaStatisztika tbody.atlag tr.ossz td { background-color: rgb(220,220,230); }
+
+}
+@media print {
+
+ .mayorhead, .toolBar, img { display: none; }
+
+ table.osztalyozo { border: solid 1px black; width:100%}
+ table.osztalyozo td { border-style: none solid solid none; border-width: 1px; text-align: center }
+ table.osztalyozo th { border: solid 1px black; }
+ table.osztalyozo a { text-decoration: none; color: black }
+ table.osztalyozo tbody th div.naploSorszam { display:none; }
+
+ table.tanuloBizonyitvany {
+ border-width: 2px 2px 3px 3px;
+ border-style: solid;
+ border-color: black;
+ }
+ table.tanuloBizonyitvany a {
+ color: black;
+ text-decoration: none;
+ }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th {
+ padding: 0px 10px 0px 10px;
+
+ }
+ table.tanuloBizonyitvany thead th {
+ border-width: 0px 1px 1px 0px;
+ border-style: solid;
+ border-color: black;
+ padding: 4px 10px 3px 10px;
+ font-weight: normal;
+ font-family: Times;
+ }
+ table.tanuloBizonyitvany thead th.nev {
+ border-width: 1px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ font-size: 16px;
+ }
+ table.tanuloBizonyitvany thead th.cim {
+ border-width: 0px 1px 0px 0px;
+ font-size: 20px;
+ }
+ table.tanuloBizonyitvany tfoot > tr > td {
+ border-width: 0px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ }
+
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td {
+ border-width: 1px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ }
+ table.tanuloBizonyitvany > tbody th {
+ text-align: left;
+ font-weight: normal;
+ }
+ table.tanuloBizonyitvany > tbody tr.fejlec th {
+ border-width: 2px 1px 1px 0px;
+ text-align: center;
+ font-weight: bold;
+ padding: 3px 10px 3px 10px;
+ }
+ table.tanuloBizonyitvany tbody.jegyzet td {
+ padding: 10px;
+ }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ /* ------- */
+ table.iskolaStatisztika { empty-cells: show;}
+ table.iskolaStatisztika thead th {
+ font-size: 12px;
+ text-align: center;
+ padding: 2px;
+ font-weight: bold;
+ border-style: none none solid none; border-color: #777777; border-width:2px;
+ }
+ table.iskolaStatisztika th { border-style: none solid solid solid; border-color: #777777; border-width:1px; }
+ table.iskolaStatisztika td { border-style: none solid solid none; border-color: #777777; border-width:1px; }
+ table.iskolaStatisztika th.ossz { border-style: none solid solid none; border-color: #777777; border-width:1px; }
+
+ table.iskolaStatisztika tbody td { text-align: right; }
+
+ table.iskolaStatisztika tbody.atlag th { text-align: left; padding-left: 6px; padding-right: 6px; font-weight: normal;}
+ table.iskolaStatisztika tbody.atlag th.ossz { text-align: center; }
+ table.iskolaStatisztika tbody.atlag tr.ossz th { height:25px; border-width: 0px 1px 2px 1px;text-align: center; font-weight: bold;}
+ table.iskolaStatisztika tbody.atlag tr.ossz td { border-width: 1px 1px 2px 1px; font-weight: bold}
+
+ table.bizstat { margin-left:60px; border: solid 1px black; margin-right:20px; }
+ table.bizstat th { font-weight: normal; text-align: right; }
+ table.bizstat td { text-align: right; padding-right:5px; padding-left: 5px;}
+ table.bizstat tr.ossz th { background-color: #dddddd; font-weight:bold; }
+ table.bizstat tr.ossz td { background-color: #dddddd; font-weight:bold; }
+ table.bizstat caption {
+ margin-left: 0px;
+ margin-top: 2em;
+ caption-side: top;
+ font-size:12px;
+ color: white;
+ padding:2px;
+ }
+
+ table.floatleft { float:left }
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css
new file mode 100644
index 00000000..3b44ffb0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css
@@ -0,0 +1,10 @@
+
+ form.szr { background-color: rgb(200,200,240); margin: 20px; text-align: center; padding: 20px; }
+ form.szr textarea { width: 80%; height: 300px; margin: auto; }
+ form.szr ol { text-align: left; font-weight: bold; margin: 0px 20px; }
+ form.szr ol ul { font-weight: normal; font-style: italic; margin-bottom: 10px; }
+
+ table.lista { background-color: rgb(20,40,60); margin: auto; border-spacing: 1px; }
+ table.lista th { background-color: rgb(200,200,200); }
+ table.lista td { background-color: rgb(230,230,230); }
+ table.lista th, table.lista td { padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css
new file mode 100644
index 00000000..1cf46b55
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css
@@ -0,0 +1,10 @@
+
+ form.ertekeles { background-color: rgb(255,255,255); margin: 4px 20px; padding: 10px 20px; border: solid black; border-width: 2px 0px 0px 0px; }
+ form.ertekeles h1 { font-size: 16px; text-align: center; color: white; background-color: rgb(40,60,80); margin: 0px 0px 2px 0px; padding: 2px; }
+ form.zaro h1 { background-color: rgb(120,60,40); }
+ form.ertekeles h2 { font-size: 14px; text-align: center; border: black solid; border-width: 1px 0px; margin: 0px; padding: 0px; }
+ form.ertekeles span.egyediMinosites { font-style: italic; }
+ form.ertekeles ol li { margin-top: 26px; }
+ form.ertekeles ol ul li { margin-top: 4px; }
+ form.ertekeles ol ul li input[type=text] { width: 95%; background-color: rgb(220,220,200); }
+ form.ertekeles input[type=submit] { width: 100%; background-color: #4a8; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/tankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/tankor.css
new file mode 100644
index 00000000..ad0d51a0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/tankor.css
@@ -0,0 +1,152 @@
+@media screen {
+ table.osztalyozo {
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+
+ table.osztalyozo thead th { background-color: rgb(100,120,120); }
+ table.osztalyozo thead th select { background-color: rgb(100,120,120); color: white; border: 1px solid rgb(120,140,140); }
+ table.osztalyozo thead th.nev { height:30px }
+ table.osztalyozo thead th.defaultSulyozas { background-color:lightgreen; }
+ table.osztalyozo thead th select.sulyozas { width:44px; }
+
+ table.osztalyozo thead td {
+ background-color: rgb(100,140,130);
+ text-align: center;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tfoot th {
+ background-color: rgb(100,120,120);
+ padding: 0px;
+ vertical-align: middle;
+ }
+
+ table.osztalyozo tfoot th select {
+ width: 200px;
+ }
+ table.osztalyozo tfoot th input {
+ width: 100px;
+ }
+
+ table.osztalyozo tfoot th input.jegy1 { color: blue; }
+ table.osztalyozo tfoot th input.jegy2 { color: black; }
+ table.osztalyozo tfoot th input.jegy3 { color: green; }
+ table.osztalyozo tfoot th input.jegy4 { color: red; }
+ table.osztalyozo tfoot th input.jegy5 { color: purple; /*background-color: gold; font-weight: bold;*/ }
+
+ table.osztalyozo tbody th {
+ background-color: rgb(130,140,150);
+ font-weight: normal;
+ }
+ table.osztalyozo tbody tr.magantanulo th { background-color: purple; }
+
+ table.osztalyozo tbody th.diakNev { text-align:left; padding-left:4px; }
+ table.osztalyozo tbody th.diakNevTxt { width:120px;}
+ table.osztalyozo tbody th.face { }
+/*
+ table.osztalyozo tbody th.diakNev.c { text-align:center; padding-left:2px; padding-right:2px; }
+*/
+ table.osztalyozo tbody th.atlag {
+ background-color: rgb(100,100,130);
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tbody th.dolgozat {
+ background-color: rgb(100,120,120);
+ }
+
+ table.osztalyozo tbody td.jegyek { background-color: #eeeeee; white-space: nowraps; }
+ .ujSzemeszter { border: rgb(220,220,220) solid; border-width: 0px 0px 0px 6px; }
+ table.osztalyozo tbody tr:hover th { background-color: #44a; }
+ table.osztalyozo tbody tr:hover td,
+ table.osztalyozo tbody tr:hover td a { background-color: #aaf; }
+ table.osztalyozo tbody tr:hover td.dolgozat,
+ table.osztalyozo tbody tr:hover td.dolgozat a { background-color: #aca; }
+ table.osztalyozo tbody tr:hover td.biz { background-color: rgb(100,40,45); }
+
+ table.osztalyozo tbody td { text-align: right; }
+ table.osztalyozo tbody td.dolgozat { background-color: rgb(160,180,160); }
+ table.osztalyozo tbody td.dolgozatMase { background-color: rgb(200,200,160); }
+
+ table.osztalyozo tbody td a {
+ text-decoration: none;
+ }
+
+ table.osztalyozo tbody td a.jegy1 { color: blue; }
+ table.osztalyozo tbody td a.jegy2 { color: black; }
+ table.osztalyozo tbody td a.jegy3 { color: green; }
+ table.osztalyozo tbody td a.jegy4 { color: red; }
+ table.osztalyozo tbody td a.jegy5 { color:purple; /*background-color: gold; font-weight: bold;*/ }
+
+ table.osztalyozo tbody td a.jegy1mase { color: rgb(55,55,160); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy2mase { color: rgb(80,80,80); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy3mase { color: rgb(55,160,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy4mase { color: rgb(160,55,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy5mase { color: rgb(160,160,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+
+ table.osztalyozo #megjegyzes { width: 50%; min-width: 200px; background: #eee; border: solid 1px rgb(100,120,120); margin: 1px 0px;}
+ table.osztalyozo #megjegyzes:focus { background: #ffa; color: black; border: 1px outset #eee; }
+
+/* table.osztalyozo tbody td a.masodikFelev { background-color: rgb(200, 250, 200); padding: 2px; } */
+
+ table.osztalyozo tbody td.biz {
+ background-color: rgb(180,120,140);
+ text-align: center;
+ }
+ table.osztalyozo tbody td.biz select { width:95px; }
+
+ table.osztalyozo tbody tr th.c:hover span { display: none; }
+ table.osztalyozo tbody tr th.c:hover:after { content: "\e0ca"; font-family: "Elusive-Icons";}
+
+ table.osztalyozo tbody td.biz select { background-color: rgb(180,120,140); }
+ table.osztalyozo tbody td.biz select option { color: black; }
+
+
+ /* jegyInfo */
+ table.jegyInfo a { color: black; text-decoration: none; width: 800px; }
+ table.jegyInfo thead th { font-size:large; margin-bottom:2px; padding-bottom: 2px; border-bottom: solid 1px #eeeeee; }
+ table.jegyInfo tbody input { width: 99%; border: solid 1px #eeeeee;}
+ table.jegyInfo tbody th { padding-right:1em; text-align: left;}
+ table.jegyInfo tbody select { width: 99%; }
+ table.jegyInfo tfoot input { width: 50px;
+ color: white;
+ padding: 0.4em 0.4em;
+ border: solid 1px #3496B9;
+ border-radius: 2px;
+ }
+ table.jegyInfo tfoot input.modosit { background-color: #82C882; }
+ table.jegyInfo tfoot input.modosit:hover { background-color: #82fa82; }
+ table.jegyInfo tfoot input.torol { background-color: #f06; }
+ table.jegyInfo tfoot input.torol:hover { background-color: #a06; }
+
+ #updateWindow { width: 800px; top: 200px; left: 50%; margin-left: -400px; min-height: 100px; height: 800px; mmax-height: 90%; }
+ #updateWindow form { padding: 20px; }
+ #updateWindow form h1 { text-align: center; margin-bottom: 0px; }
+ #updateWindow form h2 { text-align: center; }
+ #updateForm { max-height: 80%; overflow: auto; }
+
+ #updateWindow form input.szoveges[type=submit] { width: 100%; background-color: #82c882; color: white; padding: 0.4em; border: solid 1px #3496B9; border-radius: 2px; }
+ #updateWindow form input.szoveges[type=submit]:hover { background-color: #82fa82; }
+
+ table.osztalyozo thead td.ho span.literal {display:;}
+ table.osztalyozo thead td.ho span.roman {display: none;}
+
+}
+@media (max-width: 764px) {
+ table.osztalyozo { width:95%;}
+ table.osztalyozo thead td.ho span.literal {display: none;}
+ table.osztalyozo thead td.ho span.roman {display: inline-block;}
+}
+@media print {
+ input, select, .toolBar { display: none; }
+ .biz select { display: inline; width: 80px; }
+ a { text-decoration: none; color: black; }
+ table { background-color: rgb(200,200,200); border-spacing: 0px; border: 0px black solid; font-size: 10px; }
+ td { border: 1px #888 solid; padding: 4px 4px; }
+ th { border: 1px #888 solid; padding: 6px 4px 2px 4px; vertical-align: middle; }
+ table.osztalyozo tbody th.diakNev { text-align:left; }
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css
new file mode 100644
index 00000000..611a544d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css
@@ -0,0 +1,10 @@
+
+ form.sorrend { width: 300px; margin: 10px auto; padding: 5px; text-align: center; background-color: rgb(100,120,140); }
+ form.sorrend h1 { font-size: 14px; padding: 2px; margin: 0px; background-color: rgb(160,100,100); color: white; }
+ form.sorrend select { margin: 5px; }
+
+ #targyUl { list-style-image:none; list-style-type:none; margin-top:5px; margin:0px; padding:0px; text-align: left;}
+ #targyUl li { padding: 2px; margin:0px; background-color: white; margin-top: 1px; }
+ #targyUl li span.handle { padding: 2px; margin: 0px 10px 0px 2px; background-color: #E8A400; color: white; cursor: move; }
+
+ #submit { margin: 2px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css
new file mode 100644
index 00000000..80c452a0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css
@@ -0,0 +1,30 @@
+
+ form.jelentkezes { margin: 10px 30px; padding: 10px; background-color: rgb(40,80,80); color: white; text-align: center; border: solid rgb(20,60,60); border-width: 3px 0px; }
+ form.jelentkezes h1 { border: solid white; border-width: 1px 0px; margin-top: 0px; font-size: 12pt; background-color: rgb(20,60,60); }
+
+ form.lista { margin: 0px 30px; padding: 0px; background-color: rgb(40,80,90); color: white; text-align: center; border: solid rgb(20,60,70); border-width: 3px 0px; }
+ form.lista h1 { border: solid white; border-width: 1px 0px; margin-top: 0px; font-size: 12pt; background-color: rgb(20,60,70);}
+ form.lista table { margin: 0px auto; background-color: rgb(40,50,60); }
+ form.lista th { background-color: rgb(10,30,50); padding: 2px 4px; }
+ form.lista td { background-color: rgb(20,30,30); padding: 2px 4px; }
+ form.lista table tbody tr td { text-align:left; padding-left:4px; }
+ form.lista table tbody tr:hover td { outline: solid 1px #888;}
+
+ form.lista table tbody tr.javitovizsga td { background-color: rgb(60,70,80);}
+ form.lista table tbody tr.beszamoltatovizsga td { background-color: rgb(80,70,60);}
+
+ form.lista td.kiemelt { background-color: rgb(240,150,0); }
+ form.lista td.hideShowContainer label { color: black; font-weight: bold; padding: 0px 10px 0px 4px; }
+ form.lista td.szoveg { text-align: left; width: 400px; font-style: italic; }
+ form.lista td.jegy { text-align: left; }
+ form.lista td.jegy span { float: left; }
+ form.lista td.jegy span.jegy { float: right; color: yellow; padding-left: 10px;}
+ form.lista input[type="text"] { width: 100px; }
+ form.lista span.onClickHideShow {
+ color: red; float: right; font-size: 12px; font-weight: bold;
+ border: red 1px dotted;
+ padding: 2px 10px;
+ }
+ form.lista td a { color: white; text-decoration: none; display: block; background-color: red; padding: 2px 4px; font-weight: bold; }
+ form.lista td a:hover { color: red; background-color: white; }
+ form.lista span.onClickHideShow:hover { background-color: rgb(20,60,60); cursor: pointer; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css
new file mode 100644
index 00000000..b0dac656
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css
@@ -0,0 +1,2 @@
+
+ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/diakAllapot.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/diakAllapot.css
new file mode 100644
index 00000000..3c6e15fb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/diakAllapot.css
@@ -0,0 +1,27 @@
+
+ div.sni { padding: 10px; }
+
+/*
+ div.mentor form.sniAdat { }
+ div.mentor form.sni { }
+ div.mentor form.sni:hover, div.mentor form.sniAdat:hover { }
+*/
+ form.sni:hover, form.sniAdat:hover { }
+
+ form.sniAdat { margin: 1px auto; padding: 10px; }
+
+ form.sniAdat table { margin: auto; }
+ form.sniAdat td { text-align: left; padding: 20px; vertical-align: top; }
+
+ form.sni { padding: 10px; margin: 1px; }
+ form.sni fieldset { border: solid 1px #aaaaaa; margin-bottom:4em;}
+ form.sni fieldset.utolso { }
+ form.sni fieldset legend { background-color: lightgreen; border: solid 1px lime; padding:2px 4px; }
+
+ form.sni h2 { text-align: center; border: solid black; border-width: 1px 0px; padding:10px; }
+ form.sni input { font-size: 12px; }
+ form.sni ul { margin-top: 0px; list-style-type: none; }
+ form.sni li { background-color: rgb(150,200,150); margin-top: 1px; }
+ form.sni:hover li { background-color: rgb(150,250,150); }
+
+ form.sni label { font-weight:bold;} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css
new file mode 100644
index 00000000..13d04475
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css
@@ -0,0 +1,21 @@
+
+
+
+ div.sni { text-align: center; padding: 2px; }
+ div.sni h1 { text-align: center; }
+
+ div.sni form { text-align: center; background-color: ; padding: 10px; margin: 2px auto; }
+ div.sni form:hover { background-color: ; }
+ div.mentor form { background-color: ; }
+ div.mentor form:hover { background-color:; }
+ div.sni form table { margin: auto; }
+ div.sni form td { text-align: left; padding: 20px; vertical-align: top; }
+ div.sni form h2 { text-align: center; border: solid black; border-width: 1px 0px; }
+ div.sni form label { }
+ div.sni form input { font-size: 12px; }
+ div.sni form option { font-size: 12px; padding: 2px; text-align: right; }
+ div.sni form select.multi option { text-align: left; }
+
+ div.sni form fieldset { }
+ div.sni form fieldset.utolso { }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css
new file mode 100644
index 00000000..a881aede
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css
@@ -0,0 +1,15 @@
+
+ h2.sni { text-align: center; border: solid black; border-width: 1px 0px; font-size: 14px; font-weight: bold; width: 800px; margin: auto;}
+ ul.sni { text-align: center; padding: 2px; list-style-type: none; width: 800px; margin: 0px auto; }
+
+ ul.sni form { text-align: center; background-color: rgb(220,200,200); width: 97%; padding: 10px; margin: 2px auto; }
+ ul.sni form:hover { background-color: rgb(250,200,200); }
+ ul.sni li.mod form { background-color: rgb(200,220,200); }
+ ul.sni li.mod form:hover { background-color: rgb(200,250,200); }
+ ul.sni input[type=submit] { vertical-align: top; padding: 34px 5px; }
+ ul.sni li p { width: 700px; height: 80px; background-color: rgb(225,210,210); margin: 5px auto; border: 1px solid rgb(200,200,200); text-align: left; }
+
+
+
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css
new file mode 100644
index 00000000..71919e09
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css
@@ -0,0 +1,3 @@
+
+ div.mayorbody {padding:20px;}
+ table.lemorzsolodas { background-color: #f9f9f9; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/letszam.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/letszam.css
new file mode 100644
index 00000000..c5d01202
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/letszam.css
@@ -0,0 +1,11 @@
+
+
+ table.letszamStat {
+ background-color: #eeeeee;
+ }
+ table.letszamStat thead tr th { background-color: #555555; color: white; }
+ table.letszamStat tfoot tr th { background-color: #555555; color: white; font-size:smaller;}
+
+ table.letszamStat tbody tr th { background-color: #888888; color: white; }
+ table.letszamStat tbody tr td { background-color: #dddddd; color: black; text-align: center; width:2em; }
+ table.letszamStat tbody tr td.l { color: #555555; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css
new file mode 100644
index 00000000..f1b65851
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css
@@ -0,0 +1,36 @@
+@media screen {
+
+ table#tfStat tr.hide { display: none; }
+
+ table#tfStat th { background-color: #ddd; padding: 2px 6px; }
+ table#tfStat td { background-color: #eee; padding: 2px 6px; }
+ table#tfStat td.gap { background-color: #fff; }
+ table#tfStat td.number { text-align: right; min-width: 30px; }
+ table#tfStat td.alert,
+ table#tfStat td span.alert { color: red; }
+
+ table#tfStat th.slide { cursor: pointer; min-width: 180px; }
+
+ table#tfStat span.icon-chevron-up,
+ table#tfStat span.icon-chevron-down { float: right; margin: 4px 0 0 10px; }
+}
+@media print {
+
+ table.toolBar, span.icon-lock, span.icon-remove-circle, div.icon-lock { display: none; }
+ table#tfStat span.icon-chevron-up,
+ table#tfStat span.icon-chevron-down { display: none; }
+
+ table#tfStat { border-spacing: 0; border-collapse: collapse; line-height: 24px; }
+ table#tfStat, table#tfStat td, table#tfStat th { border: 1px solid black; }
+
+ table#tfStat th { background-color: #fff; padding: 2px 6px; }
+ table#tfStat td { background-color: #fff; padding: 2px 6px; }
+ table#tfStat td.gap { background-color: #fff; }
+ table#tfStat td.number { text-align: right; min-width: 30px; }
+ table#tfStat td.alert,
+ table#tfStat td span.alert { color: red; }
+
+ table#tfStat th.slide { min-width: 180px; }
+
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/diakTanarai.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/diakTanarai.css
new file mode 100644
index 00000000..b92fccf6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/diakTanarai.css
@@ -0,0 +1,9 @@
+
+ table.lista { background-color: rgb(160,0,0); margin: 0px auto; padding: 4px; width: 500px; }
+ table.lista td.nev { text-align: left; background-color: rgb(240,240,100); margin: 1px 0px; padding: 4px; }
+ table.lista td.osztaly { text-align: left; background-color: rgb(240,240,100); margin: 1px 0px; text-align: center; padding: 4px; }
+ table.lista td.tanar { text-align: right; background-color: rgb(240,240,100); margin: 1px 0px; font-style: italic; padding: 4px; }
+ table.lista th { background-color: rgb(170,170,60); font-weight: bold; font-style: normal; padding: 4px; }
+
+ form.osztaly { text-align: center; border: 1px dotted rgb(20,60,100); margin: 10px; }
+ form.osztaly label { background-color: rgb(200,220,240); padding: 4px; margin: 0px 4px 0px 0px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/fogadoOra.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/fogadoOra.css
new file mode 100644
index 00000000..786ffc78
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/fogadoOra.css
@@ -0,0 +1,46 @@
+
+@media screen {
+ form.fogado { margin: 10px 20px; }
+ form.fogado table { background-color: rgb(130,160,130); margin: 0px auto; }
+ form.fogado table td { background-color: rgb(250,250,200); }
+ form.fogado table th { background-color: rgb(150,20,20); color: white; padding: 4px; }
+ form.fogado table thead td { background-color: rgb(180,30,30); color: white; text-align: center; }
+ form.fogado table thead th { }
+ form.fogado table thead th.cim { border-bottom: solid 1px white; height:3em; }
+ form.fogado table tfoot th { }
+ form.fogado table tbody td { text-align: center; }
+ form.fogado table tbody td.ok { background-color: lightgreen; }
+ form.fogado table tbody td.foglalt { background-color: #666666; }
+ form.fogado table tbody td.torol { background-color: rgb(130,180,130); }
+ form.fogado table tbody th { text-align: left; background-color: rgb(180,30,30); color: white; }
+ form.fogado h1 { text-align: center; border: dotted white; border-width: 1px 0px; font-size: 12pt; background-color: rgb(150,20,20); color: white; margin: 0px; }
+ form.fogado div { text-align: center; background-color: rgb(250,250,200); }
+ form.fogado a { text-decoration: none; color: rgb(250,250,200); display: block; }
+ form.fogado a:hover { text-decoration: underlined; color: rgb(250,250,100); }
+ form.fogado div.diak {
+ display: table-cell; border: solid 1px white; padding-right:20px; padding-left:20px; vertical-align:baseline;">';
+ }
+ form.fogado div.diak span.diakNev { background-color: #eeeee0; padding-left:1em; padding-right:1em; }
+}
+
+@media print {
+
+ .mayorhead, .toolBar { display: none; }
+
+ form.fogado { margin: 0px 20px; }
+ form.fogado table { width: 600px; background-color: white; margin: 20px auto; border: 1px black solid; border-spacing: 0px; page-break-after: always; page-break-inside: avoid; }
+ form.fogado table td { background-color: white; border: 1px black solid; padding: 10px; }
+ form.fogado table th { background-color: white; color: black; padding: 4px; border: 1px black solid; padding: 10px; }
+ form.fogado table thead td { background-color: white; color: blck; text-align: center; }
+ form.fogado table thead th { }
+ form.fogado table tbody td { text-align: center; }
+ form.fogado table tbody th { text-align: left; background-color: white; color: black; }
+ form.fogado h1 { text-align: center; border: dotted white; border-width: 1px 0px; font-size: 12pt; background-color: white; color: black; margin: 0px; }
+ form.fogado div { text-align: center; background-color: white; }
+ form.fogado a { text-decoration: none; color: black; display: block; }
+ form.fogado a:hover { text-decoration: underlined; color: black; }
+ form.fogado table tfoot { display: none; }
+ form.fogado div.diak img { display:none; }
+ form.fogado div.diak span.diakNev { background-color: white; padding-left:1em; padding-right:1em;}
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/munkaterv.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/munkaterv.css
new file mode 100644
index 00000000..3cbd9748
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/munkaterv.css
@@ -0,0 +1,149 @@
+@media screen {
+ /* összesités */
+
+ table.osszesites {
+ margin: 20px auto;
+ background-color: rgb(200,200,200);
+ }
+ table.osszesites td {
+ padding: 2px 10px;
+ background-color: rgb(210,210,240);
+ font-style: italic;
+ }
+ table.osszesites td.osszesMunkanap {
+ background-color: rgb(240,210,210);
+ color: red;
+ }
+ table.osszesites th {
+ padding: 2px 10px;
+ background-color: rgb(100,100,120);
+ color: white;
+ }
+
+ /* munkaterv - naptár */
+
+ form.munkaterv h2 { width: 60%; margin: 10px auto; text-align: center; border: 1px dotted; border-width: 1px 0px; font-size: 12px; }
+
+ table.munkaterv {
+ background-color: rgb(220,230,240);
+ color: white;
+ width: 70%;
+ font-size: 12px;
+ }
+
+ table.munkaterv tfoot th {background-color: rgb(120,130,140);}
+ table.munkaterv tfoot th input {border: none;}
+
+ table.munkaterv thead th {
+ background-color: rgb(120,140,130);
+ vertical-align: center;
+ }
+ table.munkaterv thead th input {
+ background-color: rgb(120,140,130);
+ border-style: none;
+ padding: 0px;
+ margin: 0px;
+ float: right;
+ color: white;
+ font-size: 10px;
+ }
+
+ table.munkaterv td {
+ width: 12%;
+ vertical-align: top;
+ text-align: center;
+ background-color: rgb(160,160,160);
+ }
+ table.munkaterv td input { width: 100%; }
+ table.munkaterv td.tanitasinap { background-color: rgb(200,100,100); border: none; }
+ table.munkaterv td.tanitasinap input { background-color: rgb(250,150,150); border: none; }
+ table.munkaterv td.tanitasinap select { background-color: rgb(250,150,150); border: 1px solid rgb(200,100,100); }
+
+ table.munkaterv td.specialistanitasinap { background-color: rgb(180,130,70); }
+ table.munkaterv td.specialistanitasinap input { background-color: rgb(220,180,120); border: none; }
+ table.munkaterv td.specialistanitasinap select { background-color: rgb(220,180,120); border: 1px solid rgb(180,130,70); }
+
+ table.munkaterv td.tanitasnelkulimunkanap { background-color: rgb(200,200,100); }
+ table.munkaterv td.tanitasnelkulimunkanap input { background-color: rgb(250,250,150); border: none; }
+ table.munkaterv td.tanitasnelkulimunkanap select { background-color: rgb(250,250,150); border: 1px solid rgb(200,200,100); }
+
+ table.munkaterv td.tanitasiszunet { background-color: rgb(70,140,70); }
+ table.munkaterv td.tanitasiszunet input { background-color: rgb(120,190,120); border: none; }
+ table.munkaterv td.tanitasiszunet select { background-color: rgb(120,190,120); border: 1px solid rgb(70,140,70); }
+
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap { background-color: rgb(240,130,60); }
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap input { background-color: rgb(250,175,100); border: none; }
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap select { background-color: rgb(250,175,100); border: 1px solid rgb(240,130,60); }
+
+ table.munkaterv td.felevZarasDt { border: red solid; border-width: 4px 0px 0px 4px; }
+ table.munkaterv td.felevZaras { border: red solid; border-width: 4px 0px 0px 0px; }
+
+ table.munkaterv td span { color:#ddd; margin:2px; font-size: 10px; }
+
+ table.munkaterv td span.orarendiHet1 { background-color: rgba(0,0,0,0.2); }
+ table.munkaterv td span.orarendiHet2 { background-color: rgba(255,0,0,0.2); }
+ table.munkaterv td span.orarendiHet3 { background-color: rgba(255,255,0,0.2); }
+ table.munkaterv td span.orarendiHet4 { background-color: rgba(255,255,255,0.2); }
+
+ table.munkaterv td select {
+ width: 100pt;
+ }
+
+ table.munkaterv a {
+ color: white;
+ text-decoration: none;
+ }
+
+ /* ------------------- */
+
+ form.init { background: #d6e0e6; margin: 0; padding: 20px; text-align: center; }
+ form.init h2, #napokSzama h2 { text-align: center; margin: 10px; border: 1px dotted; border-width: 1px 0px; font-size: 12px; }
+ form.init p { background-color: rgb(180,180,210); padding: 10px; }
+ form.init label { background-color: rgb(200,200,250); padding: 10px; }
+ form.init input[type=submit] { background-color: rgb(200,200,200); margin: 10px 5px; }
+
+ /* admin form */
+ div.admin { width: 95%;max-width: 95%;margin: 2em auto 0px auto; }
+ div.admin .onClickShow { float: left; text-align: center; min-width: 100px; margin: 0 2px 0 0; color: white;
+ background: rgba(52, 150, 185, 0.6); padding: 4px 10px; cursor: pointer;
+ border-radius: 4px 4px 0 0;
+ border-bottom: solid 1px rgb(52, 150, 185);
+ }
+ div.admin .onClickShow:hover {
+ background: rgba(52, 150, 185, 1);
+ border-bottom: solid 1px orange;
+ }
+ div.admin .openable { clear: both; }
+ div.admin .selected { background: #d6e0e6; color: black; border-bottom: solid 1px orange; }
+ div.admin #napokSzama { background: #d6e0e6; margin: 0; padding: 20px; }
+
+ div.admin ul { list-style: none; text-align: left; margin: 0; padding: 0; }
+ div.admin ul li { margin: 0px auto 1px auto; background: #abcdef; padding: 10px; width: 500px; }
+ div.admin ul li:hover { background: rgb(100,100,200); color: white; }
+ div.admin ul li select { float: right; margin-top: -3px; }
+ div.admin ul li input[type=submit] { float: right; margin-top: -3px; }
+
+}
+@media print {
+
+ table.osszesites { width:100%; font-size:10px;
+ background-color: #eeeeee;
+ }
+ table.osszesites th { text-align: center; background-color: #ffffff; }
+ table.osszesites td { text-align: center; background-color: #ffffff; }
+ a { font-size:10px; text-decoration: none; color: black }
+ select { font-size:10px; border: none; }
+
+ table.munkaterv td.specialisTanitasiNap {
+ border: dotted 1px black;
+ }
+
+ table.munkaterv td.tanitasiSzunet {
+ background-color: #eeeeee;
+ }
+
+ table.munkaterv td.tanitasNelkuliMunkanap {
+ border: dotted 1px black;
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css
new file mode 100644
index 00000000..205296b3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css
@@ -0,0 +1,11 @@
+
+ table.modosit { margin: 20px auto; }
+ table.modosit th { padding: 2px; color: white; border: 1px solid #223340; background-color: #445560; }
+
+ form.csoport table { margin: 2px auto; color: white; background-color: #aabbc0; }
+ form.csoport table th { background-color: #445560; padding: 2px 14px; }
+ form.csoport table td { text-align: center; }
+ form.csoport table td input { background-color: #ccdde0; margin: 2px 0px; border: 1px solid #667780; }
+ form.csoport table td select { background-color: #ccdde0; font-size:10px; }
+
+ form.szuro { width: 200px; background-color: white; float: right; margin-right: 20px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css
new file mode 100644
index 00000000..4ac3bcac
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css
@@ -0,0 +1,16 @@
+
+ table.modosit { margin: 20px auto; }
+ table.modosit th { padding: 4px; color: white; border: 3px solid rgb(20,80,40); background-color: rgb(30,120,60); }
+
+ form.csoport table { margin: 0px auto; color: white; background-color: rgb(20,80,40); }
+ form.csoport table th { background-color: rgb(30,120,60); }
+ form.csoport table td { text-align: center; }
+ form.csoport table td input { background-color: rgb(160,250,160); margin: 2px 0px; border: 1px solid rgb(30,120,60); }
+ form.csoport table td select { background-color: rgb(160,250,160); }
+ form.csoport input.torol { border: solid 1px red; background-color: rgb(120,50,10); color: white; float: right; margin: -3px; padding: 0px;}
+
+ form.csoportKereses table { margin: 10px auto; color: white; background-color: rgb(20,40,80); }
+ form.csoportKereses table th { background-color: rgb(30,60,120); }
+ form.csoportKereses table td { text-align: center; }
+ form.csoportKereses table td input { background-color: rgb(160,160,250); margin: 2px 0px; border: 1px solid rgb(30,60,120); }
+ form.csoportKereses table td select { background-color: rgb(160,160,250); } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyBontas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyBontas.css
new file mode 100644
index 00000000..dc02bb8d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyBontas.css
@@ -0,0 +1,121 @@
+
+ #mayorbody { position: relative; }
+
+ table.bontas { border-spacing: 0 15px; margin: 70px 20px;}
+
+
+ table.bontas tbody tr th { -moz-box-shadow: 0px -15px #3ca; -webkit-box-shadow: 0px -15px #3ca; box-shadow: 0px -15px #3ca; }
+ table.bontas tbody tr th.targyTipus { background-color: #ddd; color: #a55; }
+ table.bontas tbody:nth-child(odd) tr th { -moz-box-shadow: 0px -15px #3ac; -webkit-box-shadow: 0px -15px #3ac; box-shadow: 0px -15px #3ac; }
+ table.bontas tbody tr:first-child th { -moz-box-shadow: 0px 0px; -webkit-box-shadow: 0px 0px; box-shadow: 0px 0px; }
+ table.bontas tbody tr.kesz:first-child th { -moz-box-shadow: 0px 3px #0f0 inset; -webkit-box-shadow: 0px 3px #0f0 inset; box-shadow: 0px 3px #0f0 inset; }
+
+ table.bontas td, table.bontas th { position: relative; background: #cba; background: #0a7; padding: 5px 8px; height: 50px; border: solid white; border-width: 2px 1px; color: white; }
+ table.bontas th { text-align: left; }
+ table.bontas tbody:nth-child(odd) td, table.bontas tbody:nth-child(odd) th { background: #abc; background: #3facc7; background: #07a; }
+
+ table.bontas tr.shadow1 td { -moz-box-shadow: 5px 5px #888; -webkit-box-shadow: 5px 5px #888; box-shadow: 5px 5px #888; }
+ table.bontas tr.shadow2 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999; -webkit-box-shadow: 5px 5px #888, 10px 10px #999; box-shadow: 5px 5px #888, 10px 10px #999; }
+ table.bontas tr.shadow3 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; }
+ table.bontas tr.shadow4 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; }
+ table.bontas tr.shadow5 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; }
+
+ table.bontas tr.aktiv td { opacity: 1; } /* ha <1-re állítom, akkor olyan, mintha z-index-e a targyak div fölé nőne... */
+
+ table.bontas div.bontas { background: white; color: #333; padding: 2px 4px; margin: 2px 0px; cursor: pointer; }
+ table.bontas div.bontas ul.tankor-oraszam { list-style-type: none; margin: 0 0 0 6px; padding: 0; display: inline-block; float: right; color: #fff; }
+ table.bontas div.bontas ul.tankor-oraszam li { margin: 0 1px 0 0; padding: 0px 4px; display: inline-block; background-color: #f60; }
+ table.bontas div.bontas ul.tankor-oraszam li:nth-child(even) { background-color: #fa0; }
+ table.bontas div.bontas ul.tankor-oraszam li.marad { margin: 0; padding: 0px 4px; display: inline-block; background-color: #888; }
+ table.bontas div.bontas.ok ul.tankor-oraszam li.marad { background-color: green; }
+ table.bontas div.bontas.fail ul.tankor-oraszam li.marad { background-color: red; }
+
+ table.bontas td span.felev1, table.bontas td span.felev2 {
+ background-color: yellow; color: black; margin:0; padding:0; position: absolute; border: solid yellow; font-size: 8pt;
+ }
+ table.bontas td span.felev1 { top: 0; left: 0; border-width: 0px 10px 2px 0px; border-radius: 0 0 10px 0; }
+ table.bontas td span.felev2 { bottom: 0; right: 0; border-width: 2px 0px 0px 10px; border-radius: 10px 0 0 0;}
+ table.bontas span { cursor: pointer; padding: 5px; }
+ table.bontas span:hover { color: orange; }
+ table.bontas span.delBontas { float: right; color: #800; margin-right: -5px; margin-top: -2px;}
+ table.bontas span.addBontas, table.bontas span.addBontasTargy { padding: 20px 10px; }
+ table.bontas tr.aktiv span.addBontasTargy { color: orange; }
+ table.bontas span.slideDown { padding: 20px 5px; }
+ table.bontas span.slideUp { padding: 20px 5px; }
+ table.bontas span.slideUpAll { padding: 20px 5px; }
+
+
+ div#targyak { z-index: 79; position: fixed; top: 200px; overflow: auto; height: 60%; background-color: rgba(73,71,71,0.92); border: black 1px solid; color: white; padding: 0px 2px; display: none; }
+/*
+ div#targyak { overflow: auto; padding: 0px 2px; display: none; }
+*/
+ div#targyak h1 { font-size: 16px; text-align: center; border-bottom: 1px solid #ddd; padding: 4px 8px; margin: 2px; }
+ div#targyak h1 span { position:relative; z-index: 100; }
+ div#targyak span.icon-remove-circle { float: left; font-size: 18px; cursor: pointer; }
+ ul#targyakUl { list-style-type: none; padding: 0px 6px 20px 6px; }
+ ul#targyakUl li { padding: 3px; }
+ ul#targyakUl li:hover { background-color: rgba(255,255,255,0.9); color: rgb(71,71,71); cursor: pointer; }
+ div#targyakUp, div#targyakDown { z-index: 80; position: fixed; text-align: center; background-color: rgba(170,70,70,0.6); height: 21px; padding-top: 10px; width: auto; display: none; }
+
+ #updateWindowSide p.bontasAdat,
+ #updateWindowSide p.tankorNev { text-align: center; border-bottom: solid 1px #ddd; padding: 8px 0; margin: 0; }
+ #updateWindowSide ul.tankorLista { list-style-type: none; color: rgba(255,255,255,1); margin:30px 10px; padding:0; }
+ #updateWindowSide ul.tankorLista li { padding:0; cursor: pointer; margin-right: 40px; }
+ #updateWindowSide ul.tankorLista li:hover { background-color: rgba(200,200,200,1); color: #000; }
+ #updateWindowSide ul.tankorLista li.hozzarendelt { border-right: 0px orange solid; }
+ #updateWindowSide ul.tankorLista li.tiltott { color: rgba(255,255,255,0.5); cursor: not-allowed; }
+ #updateWindowSide ul.tankorLista li.osszevonasTilt { color: rgba(255,255,255,0.5); }
+ #updateWindowSide ul.tankorLista li.tiltott:hover { background-color: rgba(200,200,200,1); color: #fff; }
+ #updateWindowSide ul.tankorLista li div.jobbra { float: right; margin-right: -40px; color: white; min-width: 40px; text-align: right; }
+ #updateWindowSide ul.tankorLista li:hover div.jobbra { background-color: rgb(200,150,150); }
+ #updateWindowSide ul.tankorLista li div.jobbra span.plusz { display: none; position: absolute; margin-top: -18px; margin-left: -3px; border-bottom: 1px solid white}
+ #updateWindowSide ul.tankorLista li div.jobbra span.minusz { display: none; position: absolute; margin-top: 26px; margin-left: -3px; padding-top: 1px; border-top: 1px solid white}
+ #updateWindowSide ul.tankorLista li div.jobbra:hover strong { position: absolute; display: inline-block; padding: 20px 20px 23px 20px; right: 5px; font-size: 20px; background: rgb(200,150,150); color: yellow; }
+ #updateWindowSide ul.tankorLista li div.jobbra:hover span.plusz,
+ #updateWindowSide ul.tankorLista li div.jobbra:hover span.minusz { display: inline-block; color: white; }
+ #updateWindowSide ul.tankorLista li strong { color: white; }
+ #updateWindowSide ul.tankorLista li.tiltott strong { color: #eee; }
+ #updateWindowSide ul.tankorLista li.tiltott.hozzarendelt div.jobbra::before { content: "✔"; float:right; color: #4f4; width: 10px; margin-right: -11px; text-align: center; } /* ✕ ☑ ☒ ⊗ ×✖ ❌ ☠" */
+ #updateWindowSide ul.tankorLista li.tiltott div.jobbra::before { content: "❌"; float: right; color: red; width: 10px; margin-right: -11px; text-align: center; }
+ #updateWindowSide ul.tankorLista li.osszevonasTilt div.jobbra::before { content: "▚"; float: right; color: darkorange; width: 10px; margin-right: -11px; text-align: center; font-weigth: bold; }
+ #updateWindowSide ul.tankorLista li.osszevonasEnged div.jobbra::before { content: "▐"; float: right; color: yellow; width: 10px; margin-right: -11px; text-align: center; font-weigth: bold; }
+
+ #updateWindowSide div#addTankor { background: rgba(70,70,70,0.9); position: absolute; width: 330px; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; text-align: right; }
+ #updateWindowSide div#addTankor, #updateWindowSide div#addTankor span { cursor: pointer; }
+ #updateWindowSide div#disableAddTankor, #updateWindowSide div#disableAddTankor span { cursor: not-allowed; }
+ #updateWindowSide div#disableAddTankor { color: #888; background: rgba(70,70,70,0.9); position: absolute; width: 330px; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; text-align: right; }
+
+ #updateWindowSide div.slideToggleContainer ul { list-style-type: none; margin: 10px 0px; display: none; cursor: default; padding: 0 10px; }
+ #updateWindowSide div.slideToggleContainer ul li { display: inline-block; width: 100px; }
+ #updateWindowSide div.slideToggleContainer { cursor: pointer; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; }
+ #updateWindowSide div.slideToggleContainer span.icon-chevron-down { float: right; z-index: 0; }
+ #updateWindowSide div.slideToggleContainer span.changed { color: yellow; }
+ #updateWindowSide ul#tankorSzemeszter li { width: 120px; }
+ #updateWindowSide ul#tankorSzemeszter input { width: 40px; text-align: right;}
+
+ #updateWindowSide p.tankorModosit { cursor: pointer; color: yellow; text-align: right; margin: 0; padding: 0 10px 0 0; display: none; background-color: rgba(240,240,220,0.5); border-bottom: 2px solid yellow; color: rgb(70,70,70); color: white;}
+ #updateWindowSide span.tankorNevExtra { cursor: pointer;}
+ #updateWindowSide span.tankorNevExtra.changed { color: yellow; }
+ #updateWindowSide input#tankorNevExtra { width: 50px; display: none; }
+
+ form#szures { border-radius: 0 0 10px 10px; background: rgba(170,170,170,0.9); color: white; margin: 0px auto; position: absolute; left: 35px; top: 63px; right: 240px; z-index: 1; }
+ form#szures div#osztaly div.evfolyamJel { display: inline-block; cursor: pointer; background-color: rgb(70,70,70); width: 50px; height; text-align: center; padding: 5px 0; margin-bottom: 1px;}
+ form#szures div#osztaly div.evfolyamJel.checked { background-color: #820; }
+ form#szures div#osztaly span.selectOsztaly { display: inline-block; cursor: pointer; background-color: #888; margin: 0px 0px 1px 1px; border: none #888; border-width: 0px 1px 1px 0px; padding: 5px; }
+ form#szures div#osztaly span.selectOsztaly.checked { background-color: orange; }
+ form#szures div#osztaly span.selectOsztaly.checked.bontasOk { background-color: darkorange; }
+ form#szures div#osztaly span.selectOsztaly.bontasOk { background-color: green; }
+ form#szures div.kSelect { float: left; }
+ form#szures input#filterOk { float: right; padding: 10px; margin-right: 15px; margin-top: 1px; }
+
+ div#stat { background: black; position: absolute; top: 63px; right: 20px; z-index: 2; border-radius: 0 0 0px 0px; }
+ div#stat table { width: 230px; }
+ div#stat table td { background-color: #ddd; text-align: center; }
+ div#stat table #oratervenKivuli { cursor: pointer; }
+ div#stat table #oratervenKivuli span { cursor: pointer; margin-left: 8px; color: #666; }
+ div#stat table #oratervenKivuli ul { display: none; list-style-type: none; margin: 0; padding: 4px 0 0 0; text-align: left; font-weight: normal; position: absolute; left: -50px; right: 0px; background-color: #888; }
+ div#stat table #oratervenKivuli ul li { margin: 1px 0; padding: 4px; background: #ddd; }
+ div#stat table #oratervenKivuli ul li span.diff { float: right; }
+
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyOraszam.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyOraszam.css
new file mode 100644
index 00000000..14d9bd0c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/targyOraszam.css
@@ -0,0 +1,7 @@
+
+ table.targyOraszam {
+ background-color:#eeeeee;
+ }
+
+ table.targyOraszam tr th { background-color: rgb(100,100,150); color: white; border-bottom: solid 2px white; padding:3px; }
+ table.targyOraszam tr td.oraszam { text-align: right }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css
new file mode 100644
index 00000000..717a9b66
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css
@@ -0,0 +1,5 @@
+
+ form.vegzos { background-color: rgb(200,200,100); margin: 20px 15%; text-align: center; padding: 10px; }
+ form.vegzos h1 { font-size: 12px; color: white; background-color: rgb(60,20,10); border: dotted white; border-width: 1px 0px; }
+ form.vegzos ul { list-style-type: none; margin: auto; padding: 10px 0%; width: 40%; text-align: left; background-color: rgb(100,40,10); }
+ form ul li { background-color: rgb(150,150,100); margin: 1px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css
new file mode 100644
index 00000000..1e377952
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css
@@ -0,0 +1,5 @@
+
+ form.vegzos { background-color: rgb(200,200,100); margin: 20px 15%; text-align: center; padding: 10px; border: solid 1px black; }
+ form.vegzos h1 { font-size: 12px; color: white; background-color: rgb(60,20,10); border: dotted white; border-width: 1px 0px; }
+ form.vegzos ul { list-style-type: none; margin: auto; padding: 10px 0%; width: 40%; text-align: left; background-color: rgb(100,40,10); }
+ form ul li { background-color: rgb(150,150,100); margin: 1px; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css
new file mode 100644
index 00000000..ca1dc18b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css
@@ -0,0 +1,11 @@
+
+ fieldset { margin: 20px; }
+ fieldset.alapadatok p { text-align: center; font-style: italic; }
+ fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #temakor { list-style-type: none; }
+ #temakor li { margin-top: 10px; }
+ #temakor span.oraszam { display: block; float: left; width: 120px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #temakor div.megnevezes { display: inline-block; color: #000; font-weight: normal; font-style: normal; }
+
+ fieldset.tankor ul li span { color: rgb(100,50,25); font-weight: bold; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css
new file mode 100644
index 00000000..1a7814d1
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css
@@ -0,0 +1,23 @@
+
+ #tanmenet { margin: auto; border-spacing: 0px; border: #888888 solid 3px; border-collapse: collapse; }
+ #tanmenet th { text-align: left; }
+ #tanmenet td, #tanmenet th { height: 34px; vertical-align: middle; padding: 0px 10px; border: #888888 solid 1px; }
+ #tanmenet tr { background-color: #eeeeee; }
+ #tanmenet tr.uj { background-color: orange; }
+ #tanmenet tr.kesz { background-color: yellow; }
+ #tanmenet tr.jovahagyott { background-color: lightgreen; }
+ #tanmenet tr.publikus { background-color: cornflowerblue; }
+ #tanmenet tr.uj:hover { background-color: #eeaaaa; }
+ #tanmenet tr.kesz:hover { background-color: #eeeeaa; }
+ #tanmenet tr.jovahagyott:hover { background-color: #aaeeaa; }
+ #tanmenet tr.publikus:hover { background-color: #aaaaee; }
+ #tanmenet a { color: black; text-decoration: none; display: block; padding: 10px; }
+
+ #tanmenet tr.aktiv td, #tanmenet tr.aktiv th { border-top: 10px red solid; border-bottom: 10px red solid; }
+ #tanmenet tr.aktiv th { border-left: 10px red solid; }
+ #tanmenet tr.aktiv td:last-child { border-right: 10px red solid; }
+/* #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }*/
+ #updateWindow { width: 40%; top: 10px; margin-top: auto; margin-bottom: auto; height: 100%; left: 0%; margin-left: 0%; }
+ #updateForm { max-height: 95%; overflow: auto; }
+ #updateHeader { cursor: pointer; }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css
new file mode 100644
index 00000000..d98cf5ac
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css
@@ -0,0 +1,11 @@
+
+ table.tanmenet { margin: auto; background-color: black; border-spacing: 1px; }
+ table.tanmenet th { background-color: rgb(40, 70, 100); color: white; padding: 4px 10px; }
+ table.tanmenet th.tanarNev { padding: 0px; }
+ table.tanmenet th.tanarNev a { background-color: rgb(140,170,200); color: white; display: block; text-decoration: none; padding: 4px 10px; margin: 0px; }
+ table.tanmenet th.tanarNev a:hover { background-color: rgb(100,130,170); }
+ table.tanmenet td { padding: 4px; text-align: right; background-color: rgb(200,200,200); }
+ table.tanmenet td.jovahagyott { background-color: rgb(200,250,200); }
+ table.tanmenet td.nincsJovahagyva { background-color: rgb(255,255,200); }
+ table.tanmenet td.felkesz { background-color: rgb(255, 225, 175); }
+ table.tanmenet td.hianyzik { background-color: rgb(255,200,200); } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css
new file mode 100644
index 00000000..93e8e3f7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css
@@ -0,0 +1,54 @@
+
+
+ fieldset.alapadatokfieldset {
+ margin:auto;
+ border: solid 1px darkblue;
+ border-bottom: solid 5px;
+ width:500px;
+ }
+ fieldset.alapadatokfieldset.uj { background: orange; border-color: #afa; }
+ fieldset.alapadatokfieldset.kesz { background: yellow; border-color: #aaf; }
+ fieldset.alapadatokfieldset.jovahagyott { background: lightgreen; border-color: #faa; }
+ fieldset.alapadatokfieldset.publikus { background: cornflowerblue; border-color: #ffa; }
+ fieldset.alapadatokfieldset.elavult { background: gray; border-color: #ccc; }
+
+ fieldset.alapadatokfieldset legend { background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80);}
+
+ fieldset.temakorokfieldset legend {
+ background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80);
+ }
+
+ form.alapadatok { padding: 20px 20px; text-align: center; }
+ form.alapadatok label { }
+ form.alapadatok input[type=text] { width: 400px; }
+
+
+ #temakor { list-style-type: none;
+ padding: 5px;
+ margin: 20px; }
+ #temakor li { background-color: #ddddaa; margin: 15px 0px; padding: 4px 10px; border: 1px solid;}
+ #temakor li textarea { width: 80%; }
+ #temakor li select { width: 50px; text-align: right; vertical-align: top; margin-top: 6px; }
+ #temakor li:nth-child(even) select.temakorOraszam { background-color: #eee;}
+ #temakor li:nth-child(odd) select.temakorOraszam { background-color: #aaa;}
+ #temakor li.sortable:nth-child(even) { background-color: #aaaaaa; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) { background-color: #eeeeee; border-color: #227722; }
+ #temakor li img.close { float: right; width: 25px; cursor: pointer; display: none; }
+ #temakor li.sortable img.close { display: inline; }
+ #temakor li span.handle { border: 1px solid; height: 32px; cursor: move;
+ width: 40px; display: block; float: left; text-align: center; padding: 4px 8px;
+ position: relative; top: 5px; margin-right: 2px; background-color: #ddddaa;
+ }
+ #temakor li span.oraszam { border: solid 1px;
+ height: 28px; width: 50px; display: block; float: left; text-align: center; padding: 12px 6px 0px 6px;
+ position: relative; top: 5px; background-color: red; margin-right: 2px;
+ }
+ #temakor li.sortable:nth-child(even) span.handle { background-color: #eee; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) span.handle { background-color: #aaa; border-color: #227722; }
+ #temakor li.sortable:nth-child(even) span.oraszam { background-color: #eee; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) span.oraszam { background-color: #aaa; border-color: #227722; }
+ #temakor li.sortable:nth-child(even) span.nagy { background-color: red; }
+ #temakor li.sortable:nth-child(odd) span.nagy { background-color: red; }
+
+ form.tanmenet input[type=submit] { width: 80%; margin: 10px 10%; text-align: center; }
+ form.tanmenet input[type=submit]:hover { background-color: rgb(20,40,60); color: white; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css
new file mode 100644
index 00000000..77d2c031
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css
@@ -0,0 +1,76 @@
+
+
+
+ table.tanmenet { margin: 10px auto; background-color: rgb(25,50,100); border-spacing: 1px; }
+ table.tanmenet td, table.tanmenet th { padding: 4px; }
+ table.tanmenet th { background-color: #336; color: white; }
+ table.tanmenet tr td { background-color: rgb(210,220,230); }
+ table.tanmenet tr:nth-child(even) td { background: #eee; }
+ table.tanmenet tr:nth-child(odd) td { background: white; }
+ table.tanmenet td.nev { font-weight: bold; }
+ table.tanmenet td.tanmenet { text-align: left; }
+ table.tanmenet td.tanmenet div { text-align: right; padding:4px; }
+
+ table.tanmenet td.tanmenet select { max-width:800px; }
+
+ table.tanmenet tr.uj td { background-color: orange; }
+ table.tanmenet tr.kesz td.tanmenet { background-color: yellow; }
+ table.tanmenet tr.jovahagyott td { background-color: lightgreen; }
+ table.tanmenet tr.publikus td.tanmenet { background-color: cornflowerblue; }
+ table.tanmenet tr.elavult td.tanmenet { background-color: lightgray; }
+
+/*
+ table.tanmenet td.tanmenet select.uj { background-color: #8f8; }
+ table.tanmenet td.tanmenet select.kesz { background-color: #88f; }
+ table.tanmenet td.tanmenet select.jovahagyott { background-color: #f88; }
+ table.tanmenet td.tanmenet select.publikus { background-color: #ff8; }
+ table.tanmenet td.tanmenet select.elavult { background-color: lightgray; }
+
+ table.tanmenet td.tanmenet select option { background-color: white; }
+ table.tanmenet td.tanmenet select option.uj { color: green; }
+ table.tanmenet td.tanmenet select option.kesz { color: blue; }
+ table.tanmenet td.tanmenet select option.jovahagyott { color: red; }
+ table.tanmenet td.tanmenet select option.publikus { color: yellow; }
+ table.tanmenet td.tanmenet select option.elavult { color: gray; }
+*/
+ table.tanmenet td.tanmenet input.info { }
+ table.tanmenet td.tanmenet input { }
+ table.tanmenet td.tanmenet input:hover { }
+
+ #infodiv {
+ padding: 0px; margin: 0px 10%; width: 80%; height: 500px; position: absolute; top: 80px;
+ opacity: 1; background-color: #eeeeee;
+ z-index: 200;
+ border: solid 1px #999999;
+ background-color: #eeeeee;
+ }
+
+ #infodivheader {
+
+ padding:5px;
+ margin-bottom:4px;
+ background-color: #5a85b8;
+ border-bottom: solid 1px #15477B ;
+ color: white;
+ font-weight: bold;
+ cursor: pointer;
+ }
+ #infodivclose {
+ margin-right: 10px;
+ cursor: pointer; border: #822 solid 1px; padding: 2px 5px; background: #822; color: white; font-weight: bold;
+ box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25); border-radius: 3px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+ }
+ #infodiv fieldset { margin-top:2px; background-color: #eeeeee; border: solid 1px rgb(50,60,70);}
+ #infodiv fieldset legend { text-align: right; background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80); }
+
+ #inform { overflow: scroll; height: 460px;}
+/* border-color: rgb(130,30,20) rgb(110,20,15) rgb(90,10,10) rgb(150,40,25); outset*/
+ #inform fieldset.alapadatok p { text-align: center; font-style: italic; }
+ #inform fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #inform #temakor { list-style-type: none; }
+ #inform #temakor li { margin-top: 10px; }
+ #inform #temakor span.oraszam { display: block; float: left; width: 120px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #inform #temakor div.megnevezes { display: inline-block; font-style: normal; }
+
+ #inform p.kiemelt { text-align: center; margin-top: 100px; font-size: 20px; }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css
new file mode 100644
index 00000000..c8a4f5dc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css
@@ -0,0 +1,19 @@
+
+
+ div#ujTanmenet {
+ width:90%;
+ margin:auto;
+ }
+
+ div.tanmenetHeader {
+padding:5px;
+margin-bottom:0px;
+background-color: #5a85b8;
+border-bottom: solid 1px #15477B ;
+color: white;
+font-weight: bold;
+ }
+
+ form.tanmenet { background: #ddd; padding: 10px;margin:0px; border-width: 0px 1px 1px 1px; border-style: solid ; border-color:#366; }
+ form.tanmenet input[type=text] { width: 100%; }
+ form.tanmenet input[type=submit] { width: 80%; margin: 5px 10%; } \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css
new file mode 100644
index 00000000..04d5ea37
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css
@@ -0,0 +1,139 @@
+
+ table.uzeno, table.ujUzenet, table.egyUzenet {
+ width:90%;
+ background-color: #fff;
+ margin-top:1em;
+ margin-bottom:1em;
+ }
+ table.uzeno thead tr th, table.ujUzenet tr th {
+ color: white; border-bottom: solid 0px white;
+ background-color: #3f51b5;
+ padding:0.5em; font-weight: normal;
+ }
+ table.uzeno thead tr th a, table.ujUzenet tr th a { color:white; }
+
+ table.uzeno a { text-decoration: none; font-style:normal;}
+ table.uzeno a:hover { }
+
+ table.ujUzenet select { }
+ table.ujUzenet tr td { text-align: center }
+ table.ujUzenet textarea { width:98%; height: 100px; border: solid 1px rgb(100,100,90); background-color:#eeeeee; margin-bottom:10px;}
+ table.ujUzenet tr.admin td textarea { background-color: green; color: white; }
+
+ table.uzeno thead tr th.dt { width:30em; }
+ table.uzeno thead tr th.cimzett { width:30em; }
+
+ table.uzeno tfoot tr th, table.uzeno tfoot tr th a { color:white; }
+ table.uzeno tbody tr td { padding:0px 4px; background-color: #eee;}
+ table.uzeno tbody tr td div.nev--container { display:table-cell; vertical-align:middle; padding-left:2px; }
+
+ table.uzeno tbody tr td.felado { min-width:120px;}
+ table.uzeno tbody tr td.cimzett { min-width:120px;}
+ table.uzeno tbody tr td.uzenet { width:70%; padding:10px; }
+
+ table.uzeno tbody tr th { padding:0px 4px; text-align:left; font-weight: normal; }
+ table.uzeno tbody tr td.content { padding:10px; background-color:#eeeeee; }
+ table.uzeno tbody tr.uj td { background-color: #eeeeee; }
+ table.uzeno tbody tr.olvasott td { background-color: #dddddd;}
+ table.uzeno tbody tr td a { color: black; }
+ table.uzeno tbody tr td a:hover { color: rgb(100, 149, 237); }
+ table.uzeno tbody tr td.uzenet a { color: black; }
+ table.uzeno tbody tr td.uzenet:hover a { color: rgb(100,149,237); }
+
+ tr.diak th, select optgroup.diak { background-color: rgb(255, 140, 0);}
+ tr.tanar th, select optgroup.tanar { background-color: #88ccff;}
+ tr.szulo th, select optgroup.szulo { background-color: rgb(64, 224, 208);}
+
+ tr.diak.asterix th { background-color: #aaaaff;}
+ tr.tanar.asterix th { background-color: #aaaaff;}
+ tr.szulo.asterix th { background-color: #aaaaff;}
+
+ tr.munkakozosseg th, select optgroup.munkakozosseg { background-color: #99aacc;}
+ tr.tankor th, select optgroup.tankor { background-color: #aaccaa; }
+ tr.tankorSzulo th, select optgroup.tankorSzulo { background-color: #aacccc; }
+
+ tr.osztaly th, select optgroup.osztaly { background-color: #bbcc99; }
+ tr.osztalySzulo th, select optgroup.osztalySzulo { background-color: #bbcccc; }
+ tr.osztalyTanar th, select optgroup.osztalyTanar { background-color: rgb(140,200,100); }
+
+ span.dt { font-size: smaller; color: #888888; white-space:nowrap; }
+ a.more {
+ text-decoration: none;
+ margin:1px;
+ padding:1px;
+ }
+ a.more:hover { color:rgb(170, 204, 170); }
+
+/*
+ a.more.uj { background-color: #ffeeaa; }
+ a.more.olvasott { background-color: #bbcc99; }
+*/
+
+ table.uzeno tbody tr td.uzenoEszkozok { min-width: 40px; text-align:center; font-size:16px}
+ table.uzeno tbody tr td.uzenoEszkozok a { color:#aaa; text-decoration: none;}
+ table.uzeno tbody tr td.uzenoEszkozok a:hover { color: cornflowerblue; }
+ table.uzeno tbody tr td.uzenoEszkozok a.del:hover {color: red !important;}
+
+ table.lapozo { width: 80%; }
+ table.lapozo table { background-color: #cccccc; border: solid 1px #778890; font-size:14px;}
+ table.lapozo table th.title { background-color: navy; color: white; padding-left: 4px; padding-right:4px;}
+ table.lapozo table td { text-align: center; background-color: #eeeeee; }
+ table.lapozo table td.aktiv { background-color: #ffffff; font-weight: bold; }
+ table.lapozo table td.nav { background-color: #aaaaaa; }
+ table.lapozo a {color:black; text-decoration: none; }
+
+ form#uzenoKereso {
+ margin-bottom:100px;
+ }
+
+
+ form#uzenoKereso table tr td { color:;}
+ table.uzenetSzal { width:90%; background-color: rgb(50, 50, 100);}
+ table.uzenetSzal thead tr th { background-color: rgb(100, 149, 237); color:white; height:2em; border-bottom: solid 1px white; }
+
+ table.uzenetSzal tbody tr td { background-color: #eeeeee;}
+ table.uzenetSzal tbody tr td.uzenetDt { width:150px; font-weight:normal; text-align:center; }
+ table.uzenetSzal tbody tr td.uzenetSzerep { width:150px; font-weight: normal; text-align:left;}
+ table.uzenetSzal tbody tr td.uzenetSzerep a { color: black; }
+ table.uzenetSzal tbody tr td.uzenetSzerep a:hover { color: rgb(100,149,237); }
+ table.uzenetSzal tbody tr th.uzenet { width:80%; font-weight: normal;}
+
+ table.uzenetSzal tbody tr.uzenetSajat th { border-left:solid 2px rgb(100,149,237); border-right:solid 2px #dddddd;}
+ table.uzenetSzal tbody tr.uzenetPartner th { border-left: solid 2px #dddddd; border-right:solid 2px rgb(100,149,237);}
+
+ table.uzenetSzal tbody tr td.uzenet div {display: table-cell; padding:4px; border: solid 1px #aaaaaa;border-radius:2px; background-color: #f9f9f9; }
+ table.uzenetSzal tbody tr td.uzenet div:hover { background-color: #ffffff;}
+ table.uzenetSzal tbody tr td.uzenet div a { color: black; }
+ table.uzenetSzal tbody tr td.uzenet div a:hover { color: rgb(100,149,237); }
+
+ table.uzenetSzal tbody tr.uzenetPartner td.uzenet div { background-color: white; }
+
+/*
+ table.uzenetSzal tr td.uzenet div:before {
+ width: 0;
+ height: 0;
+ border-top: 5px solid transparent;
+ border-bottom: 5px solid transparent;
+ border-right: 5px solid blue;
+ content:"";
+ position:absolute;
+ display:block;
+ }
+*/
+
+ table.uzeno tbody tr td.uzenet a {
+ display: inline-block; overflow: hidden; max-width:200px; text-overflow: ellipsis; line-height: 1em;
+ }
+
+ a span.icon-network { color: #aaa; }
+ a:hover span.icon-network { color: cornflowerblue; }
+
+@media (max-width: 764px) {
+
+ table.uzeno tbody tr td.felado { min-width:80px;}
+ table.uzeno tbody tr td.cimzett { min-width:80px;}
+ table.uzeno tbody tr td.uzenet { width:90%; padding:4px; word-break:break-word;}
+
+ table.uzeno tbody tr td.uzenoEszkozok { min-width:50px; text-align:center; font-size:20px}
+
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/azonositok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/azonositok.phtml
new file mode 100644
index 00000000..b529f995
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/azonositok.phtml
@@ -0,0 +1,95 @@
+<?php
+
+ function putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev=__TANEV, $Tagok) {
+
+ global $AUTH;
+
+ formBegin(array('class'=>'azonosito'));
+
+ echo '<input type="hidden" name="action" value="createAzonosito" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<input type="hidden" name="createOu" value="'.intval(!is_array($ldapTagok)).'" />'."\n";
+
+ echo '<table>';
+ echo '<tr><th colspan="4">';
+ echo _JELSZO;
+ echo ' <input type="text" name="userPassword" value="" />'."\n";
+ echo '</th></tr>'."\n";
+
+ $CONTAINERS = $AUTH['private'][ $AUTH['private']['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr><th colspan="4">';
+ echo _CONTAINER;
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>';
+ }
+ echo '</select>';
+ echo '</th></tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<th>'._NEV.'</th>'."\n";
+ echo '<th>'._OID.'</th>'."\n";
+ echo '<th>'._AZONOSITO.'</th>'."\n";
+ echo '<th>'._HASONLO_FELHASZNALOK.'</th>'."\n";
+ echo '</tr>';
+// for ($i = 0; $i < count($ldapTagok['oIdNelkuli']); $i++) {
+// echo '<tr>';
+// echo '<th></th>';
+// echo '<td>';
+// echo $ldapTagok['oIdNelkuli'][$i]['oId'];
+// echo '</td>';
+// echo '<td>';
+// echo $ldapTagok['oIdNelkuli'][$i]['dn'];
+// echo '</td>';
+// echo '</tr>'."\n";
+// }
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ echo '<tr>';
+ echo '<th>';
+ echo $osztalyTagok[$i]['diakNev'];
+ echo '</th>';
+ echo '<td>';
+ echo $osztalyTagok[$i]['oId'];
+ echo '</td>';
+
+ echo '<td>';
+ if (!isset($osztalyTagok[$i]['userAccount'])) {
+ if ($osztalyTagok[$i]['oId'] != '') {
+ echo '<input type="hidden" name="oId[]" value="'.$osztalyTagok[$i]['oId'].'" />'."\n";
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i]['generatedAccount'].'" />'."\n";
+ } else {
+ echo _NINCS_OID;
+ }
+ } else {
+ echo $osztalyTagok[$i]['userAccount'];
+ if (__JELSZOGENERALAS === true && isset($Tagok[ $osztalyTagok[$i]['oId'] ]['userPassword']))
+ echo ' ('.$Tagok[ $osztalyTagok[$i]['oId'] ]['userPassword'].')';
+ }
+ echo '</td>';
+
+ if (is_array($osztalyTagok[$i]['studyIds'])) {
+ for ($j = 0; $j < count($osztalyTagok[$i]['userAccounts']); $j++)
+ $L[] = $osztalyTagok[$i]['userAccounts'][$j].' ('.$osztalyTagok[$i]['studyIds'][$j].')';
+ echo '<td class="azonosNev">'.implode(',', $L).'</td>'."\n";
+ } elseif (count($osztalyTagok[$i]['userAccounts']) > 0) {
+ echo '<td class="tobbszorosOid">'.implode(',', $osztalyTagok[$i]['userAccounts']).'</td>'."\n";
+ } else {
+ echo '<td></td>'."\n";
+ }
+
+ echo '</tr>'."\n";
+ }
+ echo '<tr>';
+ echo '<th colspan="4"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/csoportok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/csoportok.phtml
new file mode 100644
index 00000000..61c2d123
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/csoportok.phtml
@@ -0,0 +1,87 @@
+<?php
+
+ function putCsoportLista($Csoportok, $osztalyId, $csoportId) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ if ($csoportId != '') echo '<select name="csoportId" class="onChangeSubmit kiemelt" >'."\n";
+ else echo '<select name="csoportId" class="onChangeSubmit">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($csoportId => ' selected="selected" ');
+ for ($i = 0; $i < count($Csoportok); $i++) {
+ echo '<option value="'.$Csoportok[$i]['csoportId'].'"'.$SEL[$Csoportok[$i]['csoportId']].'>'.$Csoportok[$i]['csoportNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putUjCsoportForm($osztalyId, $Tankorok) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._UJ_CSOPORT.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujCsoport" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<label for="csoportNev">'._CSOPORT_NEVE.': </label>';
+ echo '<input id="csoportNev" type="text" name="csoportNev" value="" />'."\n";
+
+ echo '<select name="tankorId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putCsoportModositoForm($csoportAdatok, $Tankorok, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._CSOPORT_MODOSITAS.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="csoportModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportAdatok['csoportId'].'" />'."\n";
+
+ echo '<label for="ujCsoportNev">'._CSOPORT_NEVE.': </label>';
+ echo '<input type="text" name="csoportNev" value="'.$csoportAdatok['csoportNev'].'" id="ujCsoportNev" />'."\n";
+ echo '<select name="tankorId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ if (in_array($Tankorok[$i]['tankorId'],$csoportAdatok['tankorId']))
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'" selected="selected">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ else
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putCsoportTorlesForm($csoportId, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._CSOPORT_TORLESE.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="csoportTorlese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportId.'" />'."\n";
+
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_E.'" class="confirm" />'."\n";
+
+ formEnd();
+
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml
new file mode 100644
index 00000000..cc97974a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml
@@ -0,0 +1,12 @@
+<?php
+
+ function fillHaladasiForm($tolDt, $igDt) {
+ formBegin();
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />';
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />';
+ echo '<input type="submit" name="action" value="ok" style="display:block; margin-left: auto; margin-right:auto; width:30%;" />';
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/import.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/import.phtml
new file mode 100644
index 00000000..4aa1f88c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/import.phtml
@@ -0,0 +1,5 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml
new file mode 100644
index 00000000..f70e7739
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml
@@ -0,0 +1,142 @@
+<?php
+
+ function putIntezmenyModositasForm($ADAT) {
+
+ $Intezmeny = $ADAT['intezmenyAdat'];
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._INTEZMENY_MODOSITAS.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="intezmenyModositas" />'."\n";
+
+ echo _OMKOD . ': <input type="text" name="OMKod" id="OMKod" value="'.$Intezmeny['OMKod'].'" maxlength="8" />'."\n";
+ echo _ROVIDNEV .': <input type="text" name="rovidNev" id="rovidNev" value="'.$Intezmeny['rovidNev'].'" readonly="readonly" />'."\n";
+ echo _NEV.': <input type="text" name="nev" id="nev" value="'.$Intezmeny['nev'].'" />'."\n";
+ echo _FENNTARTO.': ';
+ echo '<select name="fenntarto">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['fenntartok'] as $fenntarto) {
+ $SEL = ($Intezmeny['fenntarto']==$fenntarto?' selected="selected" ':'');
+ echo '<option value="'.$fenntarto.'"'.$SEL.'>'.$fenntarto.'</option>';
+ }
+ echo '</select>';
+ if ($Intezmeny['alapertelmezett'])
+ echo '<input type="checkbox" name="alapertelmezett" value="1" checked="checked" />' . _ALAPERTELMEZETT;
+ else
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ if (is_array($Intezmeny['telephely']) && count($Intezmeny['telephely']) > 0) {
+ for ($i = 0; $i < count($Intezmeny['telephely']); $i++) {
+
+ formBegin(array('class'=>'telephely'));
+
+ echo '<h2>'.($i+1).'. '._TELEPHELY_MODOSITAS.'</h2>'."\n";
+ echo '<input type="hidden" name="action" value="telephelyModositas" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$Intezmeny['telephely'][$i]['telephelyId'].'" />'."\n";
+
+ echo _TELEPHELYROVIDNEV .': <input type="text" name="telephelyRovidNev" id="telephelyRovidNev'.$i.'" value="'.$Intezmeny['telephely'][$i]['telephelyRovidNev'].'" />'."\n";
+ echo _TELEPHELYNEV.': <input type="text" name="telephelyNev" id="telephelyNev'.$i.'" value="'.$Intezmeny['telephely'][$i]['telephelyNev'].'" />'."\n";
+ if ($Intezmeny['telephely'][$i]['alapertelmezett'])
+ echo '<input type="checkbox" name="alapertelmezett" value="1" checked="checked" />' . _ALAPERTELMEZETT;
+ else
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<hr />';
+ echo _IRSZ . ': <input type="text" name="cimIrsz" value="'.$Intezmeny['telephely'][$i]['cimIrsz'].'" />'."\n";
+ echo _HELYSEG . ': <input type="text" name="cimHelyseg" value="'.$Intezmeny['telephely'][$i]['cimHelyseg'].'" />'."\n";
+ echo '<hr />'."\n";
+ echo _KOZTERULETNEV . ': <input type="text" name="cimKozteruletNev" value="'.$Intezmeny['telephely'][$i]['cimKozteruletNev'].'" />'."\n";
+ echo _KOZTERULETJELLEG . ': <input type="text" name="cimKozteruletJelleg" value="'.$Intezmeny['telephely'][$i]['cimKozteruletJelleg'].'" />'."\n";
+ echo _HAZSZAM . ': <input type="text" name="cimHazszam" value="'.$Intezmeny['telephely'][$i]['cimHazszam'].'" />'."\n";
+ echo '<hr />';
+ echo _TELEFON . ': <input type="text" name="telefon" value="'.$Intezmeny['telephely'][$i]['telefon'].'" />'."\n";
+ echo _FAX . ': <input type="text" name="fax" value="'.$Intezmeny['telephely'][$i]['fax'].'" />'."\n";
+ echo _EMAIL . ': <input type="text" name="email" value="'.$Intezmeny['telephely'][$i]['email'].'" />'."\n";
+ echo _HONLAP . ': <input type="text" name="honlap" value="'.$Intezmeny['telephely'][$i]['honlap'].'" />'."\n";
+
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+ }
+
+ formBegin(array('class'=>'ujTelephely'));
+
+ echo '<h2 class="ujTelephely">'._UJ_TELEPHELY.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujTelephely" />'."\n";
+
+ echo _TELEPHELYROVIDNEV .': <input type="text" name="telephelyRovidNev" id="telephelyRovidNevUj" value="" />'."\n";
+ echo _TELEPHELYNEV.': <input type="text" name="telephelyNev" id="telephelyNevUj" value="" />'."\n";
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<hr />';
+ echo _IRSZ . ': <input type="text" name="cimIrsz" value="" />'."\n";
+ echo _HELYSEG . ': <input type="text" name="cimHelyseg" value="" />'."\n";
+ echo '<hr />'."\n";
+ echo _KOZTERULETNEV . ': <input type="text" name="cimKozteruletNev" value="" />'."\n";
+ echo _KOZTERULETJELLEG . ': <input type="text" name="cimKozteruletJelleg" value="" />'."\n";
+ echo _HAZSZAM . ': <input type="text" name="cimHazszam" value="" />'."\n";
+ echo '<hr />';
+ echo _TELEFON . ': <input type="text" name="telefon" value="" />'."\n";
+ echo _FAX . ': <input type="text" name="fax" value="" />'."\n";
+ echo _EMAIL . ': <input type="text" name="email" value="" />'."\n";
+ echo _HONLAP . ': <input type="text" name="honlap" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putIntezmenyTorlesForm($ADAT) {
+
+ $Intezmeny = $ADAT['intezmenyAdat'];
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._INTEZMENY_TORLES.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="intezmenyTorles" />'."\n";
+
+ echo '<p>Az adatbázisok törlése csak egy esetleges későbbi fejlesztés lesz. Egyelőre csak az
+ intézmények listájából törlünk. Az adatbázisokat kézzel kell törölni.</p>';
+ echo '<input type="checkbox" name="dbTorles" value="1" readonly />' . _ADATBAZISOK_TORLESE;
+
+ echo '<hr />'."\n";
+
+ echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._TORLES.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putUjIntezmenyForm() {
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._UJ_INTEZMENY.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujIntezmeny" />'."\n";
+
+
+ echo _OMKOD . ': <input type="text" name="OMKod" id="OMKod" value="0000000" maxlength="7" />'."\n";
+ echo _ROVIDNEV .': <input type="text" name="rovidnev" id="rovidnev" />'."\n";
+ echo _NEV.': <input type="text" name="nev" id="nev" />'."\n";
+
+ echo '<hr />'."\n";
+
+ echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml
new file mode 100644
index 00000000..e9ffde6d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml
@@ -0,0 +1,72 @@
+<?php
+
+ function putAddNodeForm($ADAT) {
+ formBegin(array('id'=>'addNode'));
+ echo '<h3>'._UJ_VEGPONT.'</h3>';
+ echo '<input type="hidden" name="action" value="addNode" />';
+ echo '<p>';
+ echo '<select name="nodeId">';
+ foreach ($ADAT['nodes'] as $nodeId => $nAdat) {
+ echo '<option value="'.$nAdat[0]['nodeId'].'">'.$nAdat[0]['nev'].' - '.$nAdat[0]['cimHelyseg'].' ('.$nAdat[0]['nodeId'].')</option>';
+ }
+ echo '</select>';
+ echo '<br/>';
+ echo '<label for="userAccount">'._ACCOUNT.'</label>';
+ echo '<input type="text" id="userAccount" name="userAccount" value="" />';
+ echo '<br/>';
+ echo '<select name="OMKod">';
+ foreach ($ADAT['intezmenyek'] as $OMKod => $iAdat) {
+ echo '<option value="'.$iAdat[0]['OMKod'].'">'.$iAdat[0]['nev'].' - '.$iAdat[0]['cimHelyseg'].' ('.$iAdat[0]['OMKod'].')</option>';
+ }
+ echo '</select>';
+ echo '</p>';
+ echo '<input type="submit" value="'._ADD.'" />';
+ formEnd();
+ }
+
+ function putPrivilegesForm($ADAT) {
+ echo '<table id="privNodes">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._NODE.'</th>';
+ echo '<th>'._NODEID.'</th>';
+ echo '<th>'._INTEZMENY.'</th>';
+ echo '<th>'._OMKOD.'</th>';
+ echo '<th>'._ACCOUNT.'</th>';
+ echo '<th>'._PRIVS.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tbody>';
+ foreach ($ADAT['privs'] as $index => $pAdat) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['nodes'][ $pAdat['nodeId'] ][0]['nev'].'</td>';
+ echo '<td>'.$pAdat['nodeId'].'</td>';
+ echo '<td>'.$ADAT['intezmenyek'][ $pAdat['OMKod'] ][0]['nev'].'</td>';
+ echo '<td>'.$pAdat['OMKod'].'</td>';
+ echo '<td>'.$pAdat['userAccount'].'</td>';
+ echo '<td>';
+ formBegin(array('id'=>'priv'));
+ echo '<input type="hidden" name="action" value="setPriv" />';
+ echo '<input type="hidden" name="nodeId" value="'.$pAdat['nodeId'].'" />';
+ echo '<input type="hidden" name="userAccount" value="'.$pAdat['userAccount'].'" />';
+ echo '<input type="hidden" name="OMKod" value="'.$pAdat['OMKod'].'" />';
+ $nPriv = explode(',',$pAdat['priv']);
+ foreach ($ADAT['privileges'] as $index => $priv) {
+ if (in_array($priv, $nPriv)) $CHK=' checked="checked" ';
+ else $CHK = '';
+ $id = 'n'.$pAdat['nodeId'].ekezettelen($pAdat['userAccount']).$pAdat['OMKod'].$index;
+ echo '<input id="'.$id.'" type="checkbox" name="priv[]" value="'.$priv.'"'.$CHK.' />';
+ echo '<label for="'.$id.'">'.$priv.'</label>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml
new file mode 100644
index 00000000..f7cff27b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml
@@ -0,0 +1,61 @@
+<?php
+
+ function putSzemeszterAdat($ADAT) {
+
+ $Sz = $ADAT['szemeszterAdat'];
+
+ formBegin(array('class'=>'szemeszter'));
+ echo '<input type="hidden" name="action" value="idoszakModositas" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$Sz['szemeszterId'].'" />'."\n";
+
+
+// echo '<h1>'.$Sz['tanev'].'/'.$Sz['szemeszter'].'('.$Sz['szemeszterId'].')</h1>'."\n";
+// echo '<p>'.$Sz['kezdesDt'].' - '.$Sz['zarasDt'].' ('.$Sz['statusz'].')</p>'."\n";
+ echo '<h2>'._IDOSZAKOK.'</h2>';
+ echo '<table align="center" cellpadding="1" cellspacing="1">';
+ for ($i = 0; $i < count($Sz['idoszak']); $i++) {
+
+ echo '<tr>';
+ echo '<td><input id="t'.$i.'" type="checkbox" name="torlendo[]" value="'.$Sz['idoszak'][$i]['idoszakId'].'" title="'._TORLENDO.'" /></td>'."\n";
+ echo '<td><input type="hidden" name="idoszakId[]" value="'.$Sz['idoszak'][$i]['idoszakId'].'" />'."\n";
+ echo '<label for="t'.$i.'">'.$Sz['idoszak'][$i]['tipus'].':</label></td>';
+ echo '<td><input type="text" name="tolDt[]" value="'.$Sz['idoszak'][$i]['tolDt'].'" class="datetime txt" /></td>'."\n";
+ echo '<td><input type="text" name="igDt[]" value="'.$Sz['idoszak'][$i]['igDt'].'" class="datetime txt" /></td>'."\n";
+ echo '</tr>'."\n";
+
+ }
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="'._TORLES.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putUjIdoszak($szemeszterId, $idoszakTipusok) {
+
+ formBegin(array('class'=>'szemeszter'));
+
+ echo '<input type="hidden" name="action" value="ujIdoszak" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$szemeszterId.'" />'."\n";
+
+ echo '<h2>'._UJ_IDOSZAK.'</h2>';
+
+ echo '<label for="tolDt">'._TOLDT.'</label>'."\n";
+ echo '<input class="datetime" type="text" name="tolDt" id="tolDt" value="" />'."\n";
+ echo '<label for="igDt">'._IGDT.'</label>'."\n";
+ echo '<input class="datetime" type="text" name="igDt" id="igDt" value="" />'."\n";
+ echo '<label for="tipus">'._TIPUS.'</label>'."\n";
+ echo '<select name="tipus" id="tipus">'."\n";
+ for ($i = 0; $i < count($idoszakTipusok); $i++) {
+ echo '<option value="'.$idoszakTipusok[$i].'">'.$idoszakTipusok[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml
new file mode 100644
index 00000000..650afce6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml
@@ -0,0 +1,113 @@
+<?php
+
+ function putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev=__TANEV, $Tagok) {
+
+ global $AUTH;
+
+ formBegin(array('class'=>'azonosito'));
+
+ echo '<input type="hidden" name="action" value="createAzonosito" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<table>';
+ echo '<tr><th colspan="9">';
+ echo _JELSZO;
+ echo ' <input type="text" name="userPassword" value="" />'."\n";
+ echo '</th></tr>'."\n";
+
+ $CONTAINERS = $AUTH['parent'][ $AUTH['private']['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr><th colspan="4">';
+ echo _CONTAINER;
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>';
+ }
+ echo '</select>';
+ echo '</th></tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<th>'._NEV.'</th>'."\n";
+
+ echo '<th>'._ANYANEV.'</th>'."\n";
+ echo '<th>'._ANYAAZONOSITO.'</th>'."\n";
+ echo '<th>'._ANYA_FELHASZNALO.'</th>'."\n";
+ echo '<th>'._ANYA_HASONLO_NEV.'</th>'."\n";
+
+ echo '<th>'._APANEV.'</th>'."\n";
+ echo '<th>'._APAAZONOSITO.'</th>'."\n";
+ echo '<th>'._APA_FELHASZNALO.'</th>'."\n";
+ echo '<th>'._APA_HASONLO_NEV.'</th>'."\n";
+
+ echo '</tr>';
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ echo '<tr>';
+
+ echo '<th>';
+ echo $osztalyTagok[$i]['diakNev'];
+ echo '</th>';
+ foreach (array('anya','apa') as $szulo) {
+ if ($osztalyTagok[$i][$szulo]['szuloNev'] == '') {
+ echo '<td></td><td></td><td></td><td></td>';
+ continue;
+ }
+ echo '<td class="'.$szulo.'">';
+ echo $osztalyTagok[$i][$szulo]['szuloNev'];
+
+ echo '</td>';
+ echo '<td class="'.$szulo.'">';
+ if ($osztalyTagok[$i][$szulo]['statusz'] == 'elhunyt') { // elhunyt státuszú a szülő
+ echo '<span class="elhunyt">'._ELHUNYT.'</span>';
+ } elseif (!isset($osztalyTagok[$i][$szulo.'Account'])) { // Ha nem találtunk létező $szulo.Account-ot
+ // ez kellene, hogy a szulő táblát módosítsuk...
+ echo '<input type="hidden" name="szuloId[]" value="'.$osztalyTagok[$i][$szulo.'Id'].'" />'."\n";
+ if ($osztalyTagok[$i][$szulo]['userAccount'] != '') { // de a szulő táblában be van írva
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i][$szulo]['userAccount'].'" />'."\n";
+ } else {
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i][$szulo.'GeneratedAccount'].'" />'."\n";
+ }
+ // generált jelszó
+ echo '<br />('.$osztalyTagok[$i][$szulo]['userPassword'].')';
+ } else {
+ if (false && $osztalyTagok[$i][$szulo]['email'] != '') { // nem megvalósított funkció...
+ echo '<div style="float: right; display: inline-block; width: 50px; font-size: 1.5em; margin: -4px -16px 0 0; padding: 0;">';
+ echo '&#009993;';
+ echo '<input type="checkbox" name="mailto[]" title="'.$osztalyTagok[$i][$szulo]['email'].'" value="'.$osztalyTagok[$i][$szulo.'Id'].'" />';
+ echo '</div>';
+ }
+ echo $osztalyTagok[$i][$szulo]['userAccount'];
+ // generált jelszó
+ echo '<br />('.$osztalyTagok[$i][$szulo]['userPassword'].')';
+ }
+ echo '</td>';
+
+ echo '<td class="'.$szulo.'">';
+ if (isset($osztalyTagok[$i][$szulo.'Account'])) { // Ha találtunk létező $szulo.Account-ot
+ echo $osztalyTagok[$i][$szulo.'UserCn'];
+ }
+ echo '</td>';
+
+ if (is_array($osztalyTagok[$i][$szulo.'Cns'])) {
+ $L = array();
+ for ($j = 0; $j < count($osztalyTagok[$i][$szulo.'Cns']); $j++)
+ $L[] = $osztalyTagok[$i][$szulo.'Cns'][$j].' ('.$osztalyTagok[$i][$szulo.'Accounts'][$j].')';
+ echo '<td class="azonosNev">'.implode(',<br />', $L).'</td>'."\n";
+ } else {
+ echo '<td></td>'."\n";
+ }
+ } // anya / apa
+ echo '</tr>'."\n";
+ }
+ echo '<tr>';
+ echo '<th colspan="9"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tanevek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tanevek.phtml
new file mode 100644
index 00000000..ba77f647
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tanevek.phtml
@@ -0,0 +1,165 @@
+<?php
+
+ function putUjTanevForm() {
+
+ $SZEMESZTER_STATUSZ = Array('aktív','tervezett');
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._UJ_TANEV.'</h2>'."\n";
+
+ echo '<div class="data">';
+
+ echo '<input type="hidden" name="action" value="ujTanev" />'."\n";
+
+ //szemeszter: tanev, sorszám, status (aktív, lezárt, új, tervezett), kezdete, vége
+
+ echo _TANEV_JELE . ': <input type="text" name="ujTanev" id="tanev" value="" maxlength="4" size="4" />'."\n";
+ echo '<hr />'."\n";
+
+ for ( $i = 1; $i <= 2; $i++ ) {
+ echo $i .'. ' . _SZEMESZTER . ":";
+ echo '<input type="hidden" name="szemeszter[]" value="'.$i.'" />'."\n";
+ echo '<input class="date" type="text" name="kezdesDt[]" value="" maxlength="10" size="10" /> - '."\n";
+ echo '<input class="date" type="text" name="zarasDt[]" value="" maxlength="10" size="10" />'."\n";
+ echo ' ('._TERVEZETT.')';
+ echo '<br/>';
+
+// echo '<select name="statusz[]">';
+// foreach($SZEMESZTER_STATUSZ as $key => $statusz) {
+// echo '<option value="'.$statusz.'">'.$statusz.'</option>';
+// }
+// echo '</select>';
+ }
+
+ echo '<hr />'."\n";
+
+// echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+// echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function putTanevSzemeszterekForm($Szemeszterek) {
+
+ global $tanev;
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="szemeszterTorles" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<h2>'._TANEV_SZEMESZTEREI.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+
+ for ($i = 0; $i < count($Szemeszterek); $i++) {
+ $Sz = $Szemeszterek[$i];
+ echo '<input type="checkbox" name="szemeszterId[]" value="'.$Sz['szemeszterId'].'">';
+ echo $Sz['szemeszter'].'. '._SZEMESZTER.': ';
+ echo '<input type="text" name="kezdesDt[]" value="'.$Sz['kezdesDt'].'" title="'._KEZDESDT.'" maxlength="10" class="date" />'."\n";
+ echo ' - ';
+ echo '<input type="text" name="zarasDt[]" value="'.$Sz['zarasDt'].'" title="'._ZARASDT.'" maxlength="10" class="date" />'."\n";
+ echo ' ('.$Sz['statusz'].')<br />'."\n";
+ }
+ echo '<input type="submit" value="'._TOROL.'" />'."\n";
+
+ echo '</div>'."\n";
+ formEnd();
+
+ }
+
+ function putTanevAktivalForm( $tanev ) {
+
+ if ($tanev=='') return false;
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="tanevAktival" />'."\n";
+
+ echo '<h2>'._TANEV_AKTIVALAS.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'"/>';
+ echo '<label for="rootUser">rootUser:</label><input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo '<label for="rootPassword">rootPassword:</label><input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._AKTIVAL.'" />'."\n";
+
+ echo '</div>';
+ formEnd();
+ }
+
+ function putTanevLezarasForm( $ADAT ) {
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="tanevLezar" />'."\n";
+
+ echo '<h2>'._TANEV_LEZARAS.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'"/>';
+
+ echo '<p>'._TAJEKOZTATO.'</p>';
+
+ echo '<label for="tanevZarasDt">'._TANEV_ZARASDT.'</label>'."\n";
+ echo '<input id="tanevZarasDt" type="text" name="dt" value="'.$ADAT['dt'].'" title="'._TANEV_ZARASDT.'" maxlength="10" class="date" />'."\n";
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosJogviszonyLezaras" id="vjl" /> ';
+ echo '<label for="vjl">'._VEGZOSOK_JOGVISZONYANAK_LEZARASA.'</label>'."\n";
+ echo '</h3>';
+ echo '<p>';
+ for ($i = 0; $i < count($ADAT['vegzoOsztalyok']); $i++) {
+ echo '<input id="vjl'.$i.'" type="checkbox" name="vjlOsztaly[]" value="'.$ADAT['vegzoOsztalyok'][$i]['osztalyId'].'" />';
+ echo '<label for="vjl'.$i.'">'.$ADAT['vegzoOsztalyok'][$i]['osztalyJel'].'</label>'."\n";
+ }
+ echo '</p>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosOsztalyokLezarasa" id="vol" /> ';
+ echo '<label for="vol">'._VEGZOS_OSZTALYOK_LEZARASA.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosAzonositokTorlese" id="vat" /> ';
+ echo '<label for="vat">'._VEGZOSOK_AZONOSITOINAK_TORLESE.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosSzuloAzonositokTorlese" id="vszat" /> ';
+ echo '<label for="vszat">'._VEGZOSOK_SZULOI_AZONOSITOINAK_TORLESE.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="tanevLezaras" id="tl" /> ';
+ echo '<label for="tl">'._TANEV_LEZARAS.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<p>';
+ echo '<label for="rootUser">rootUser:</label><input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo '<label for="rootPassword">rootPassword:</label><input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+ echo '</p>'."\n";
+
+ echo '<input type="submit" value="'._LEZAR.'" />'."\n";
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tankorok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tankorok.phtml
new file mode 100644
index 00000000..4aa1f88c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/tankorok.phtml
@@ -0,0 +1,5 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml
new file mode 100644
index 00000000..4753fbf4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml
@@ -0,0 +1,1273 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/share/date/names.php');
+
+ if (_RUNLEVEL!=='cron') putEszkozSor();
+
+ function putUjIntezmeny() {
+
+ formBegin();
+ echo ' <input type="hidden" name="action" value="ujIntezmeny" />
+
+ _OMKOD(max7): <input type="text" name="OMKod" id="OMKod" value="0000000" maxlength="7" />
+ _ROVIDNEV(sql): <input type="text" name="rovidnev" id="rovidnev" />
+ _NEV: <input type="text" name="nev" id="nev" />
+
+ <input type="submit" />
+ ';
+ formEnd();
+
+ }
+
+ function putEszkozSor() {
+
+ global $TOOL,$policy;
+
+ if (__NOPAGEHELP!==true && (defined('__PAGEHELP') || isset($TOOL['pageHelp']) && defined('__'.$TOOL['pageHelp']))) $showHelp = true;
+ else $showHelp=false;
+
+ $colspan=3;
+
+ $_diakId = readVariable($_POST['diakId'],'id',readVariable($_GET['diakId'],'id',(defined('__USERDIAKID')?__USERDIAKID:null)));
+ $_tanarId = readVariable($_POST['tanarId'],'id',readVariable($_GET['tanarId'],'id',(defined('__USERTANARID')?__USERTANARID:null)));
+ $_tankorId = readVariable($_POST['tankorId'],'id',readVariable($_GET['tankorId'],'id',(null)));
+
+ echo '<table align="center" cellspacing="0" class="toolBar hideShowContainer"><tr class="first">';
+ if (is_array($TOOL['vissza'])) {
+ echo '<th style="width:32px;">';
+ putToolFormStart('vissza', '');
+ echo '<button type="submit" class="toolBarLeft icon-'.$TOOL['vissza']['icon'].'"></button>';
+ putToolFormStop(false, "");
+
+ echo '</th>';
+ $colspan++;
+ }
+
+ echo '<td class="toolBarTitle" id="toolBarTitle" colspan="3">';
+ if (defined('__PAGETITLE')) echo __PAGETITLE.'<br/>';
+ else echo 'MaYoR eleketronikus napló'.'<br/>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=valtas').'">';
+ if (defined('__TELEPHELYID')) echo '<span id="toolBarIntezmeny" title="TelephelyId:".'.__TELEPHELYID.'>'.__INTEZMENY .', ' . __TANEV.'/'.(__TANEV+1).'</span>';
+ else echo '<span id="toolBarIntezmeny">'.__INTEZMENY . '/' . __TANEV.'</span>';
+ echo '</a>';
+ if ($showHelp) echo '<span id="toolBarHelpButton" class="onClickHideShow">?</span>';
+ echo '</td>'."\n";
+ reset($TOOL);
+ foreach ( $TOOL as $tool => $params ) {
+// if ( function_exists( $func = "put$tool" ) && $params['tipus']=='cella') {
+ if ( isset($params['tipus']) && $params['tipus']=='cella') {
+ if (isset($params['title'])) $title = '__'.$params['title'];
+ else $title = '__'.nagybetus($tool).'TITLE';
+
+ echo '<td class="toolBarTool cella" style="position:; vertical-align:top">';
+ echo '<table style="/*border-bottom:solid 1px #558;*/" >'."\n";
+ if (defined($title)) {
+ echo '<tr><th>';
+ echo constant($title);
+ echo '</th><th>';
+ if ($GLOBALS['skin'] != 'vakbarat') echo '<button type="button" value="x" class="toolBarClear"><span class="icon-remove-circle"></span></button>';
+ echo '</th></tr>'."\n";
+ }
+ echo '<tr><td colspan="2">'."\n";
+ $func = "put$tool";
+ if (function_exists( $func )) { $func(); }
+ else { putGeneralSelect($tool); }
+ echo '</td></tr>'."\n";
+ echo '</table>'."\n";
+
+ echo '</td>'."\n";
+ $colspan++;
+ } elseif (isset($params['tipus']) && $params['tipus'] == 'sor') { $sorDb++; }
+ }
+
+ if (__PAGE_PRESET===true) {
+ echo '<th>';
+
+ putToolFormStart('preSetSave', '');
+ echo '<button type="submit" class="icon-heart-alt toolBarBtn"></button>';
+ echo '<input type="hidden" name="preSetSave" value="1" />';
+ putPostParams($TOOL['general']['post']);
+ putToolFormStop(false, "");
+
+ putToolFormStart('preSetLoad', '');
+ echo '<button type="submit" class="icon-reverse-alt toolBarBtn"></button>';
+ echo '<input type="hidden" name="preSetLoad" value="1" />';
+ // putPostParams($TOOL['general']['post']);
+ putToolFormStop(false, "");
+
+ echo '</th>';
+ }
+ if ($_diakId>0 && _POLICY=='private') {
+ echo '<td class="szemely diakNev" data-diakid="'.$_diakId.'">';
+ echo '<span class="icon-child" data-diakid="'.$_diakId.'"></span>'; // itt is kell a data...
+ echo '</td>'."\n";
+ } elseif ($_tanarId>0 && _POLICY=='private') {
+ echo '<td class="szemely tanarNev" data-tanarid="'.$_tanarId.'">';
+ echo '<span class="icon-adult" data-tanarid="'.$_tanarId.'"></span>'; // itt is kell a data...
+ echo '</td>'."\n";
+ }
+ if ($_tankorId>0 && _POLICY=='private') { //--TODO css class szemely->csoport
+ echo '<td class="szemely tankorAdat" data-tankorid="'.$_tankorId.'">';
+ echo '<span class="icon-group" data-tankorid="'.$_tankorId.'"></span>';
+ echo '</td>'."\n";
+ }
+ echo '<td id="toolBarKerelem">';
+ //echo '<div id="toolBarHamburgerVezerlo" style="height:100%; padding:4px; font-size:20px;">';
+ // echo '<span class="icon-th-list"></span>';
+ //echo '</div>';
+ if ($policy!='public') {
+ $href = href('index.php?page=naplo&sub=hibabejelento&f=hibabejelento');
+ echo '<a href="'.$href.'" class="noprint">';
+ //echo '<img src="skin/classic/module-naplo/img/hibabejelento/buggie.gif" alt="'._HIBABEJELENTES.'" />';
+ echo '<img src="skin/classic/module-naplo/img/hibabejelento/buggie.svg" style="height:34px;" alt="'._HIBABEJELENTES.'" id="mayorBuggie" />';
+ echo '</a>';
+ }
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if (__NOPAGEHELP!==true) {
+ if (isset($TOOL['pageHelp']) && defined('__'.$TOOL['pageHelp']))
+ echo '<tr><td colspan="'.$colspan.'" class="help openable" style="display:none">'.constant('__'.$TOOL['pageHelp']).'</td></tr>'."\n";
+ elseif (defined('__PAGEHELP'))
+ echo '<tr><td colspan="'.$colspan.'" class="help openable" style="display:none">'.__PAGEHELP.'</td></tr>'."\n";
+ }
+
+ reset($TOOL);
+ foreach ( $TOOL as $tool => $params ) {
+ if ( function_exists( $func = "put$tool" ) && $params['tipus']=='sor') {
+ echo '<tr><td colspan="'.($colspan).'">';
+
+ echo '<table align="center" cellspacing="0"><tr>';
+ if (isset($params['title'])) $title = '__'.$params['title'];
+ else $title = '__'.nagybetus($tool).'TITLE';
+ if (defined($title)) echo '<th class="toolBarTool">'.constant($title).'</th>'."\n";
+
+ echo '<td class="toolBarTool sor">';
+ $func();
+ echo '</td></tr></table>';
+ echo '</td></tr>';
+ }
+ }
+ echo '</table>';
+
+ }
+
+ function putPostParams($postParams, $postOverride=array()) {
+
+ if (is_array($postParams))
+ for ($i = 0; $i < count($postParams); $i++) {
+ $postParam = $postParams[$i];
+ if (is_array($_POST[$postParam])) {
+ for ($j = 0; $j < count($_POST[$postParam]); $j++) {
+ echo '<input type="hidden" name="'.$postParam.'[]" value="'.str_replace('"', '', $_POST[$postParam][$j]).'" />'."\n";
+ }
+ } else {
+ echo '<input type="hidden" name="'.$postParam.'" value="'.str_replace('"', '', $_POST[$postParam]).'" />'."\n";
+ }
+ }
+ if (is_array($postOverride) && count($postOverride)>=1) {
+ foreach($postOverride as $_k => $_v)
+ echo '<input type="hidden" name="'.$_k.'" value="'.str_replace('"', '', $_v).'" />'."\n";
+ }
+ }
+
+ function setParam($toolName, $paramName) {
+
+ global $TOOL;
+
+ if (isset($TOOL[$toolName]['paramName'])) $paramName = $TOOL[$toolName]['paramName'];
+ else $TOOL[$toolName]['paramName'] = $paramName;
+ global $$paramName;
+
+ $TOOL[$toolName]['paramValue'] = ($$paramName != '' || $$paramName === 0) ? $$paramName : $TOOL[$toolName][$paramName];
+
+ }
+
+ function putToolFormStart($toolName, $paramName, $_action='') {
+
+ global $TOOL;
+ //if (!isset($_action))
+ $_action = href('index.php',array('page','sub','f','lang','skin','sessionID','policy'));
+ setParam($toolName, $paramName);
+ formBegin(array('id' => $toolName.'Tool', 'method' => 'post', 'action'=> $_action));
+ if (isset($TOOL[$toolName]['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL[$toolName]['action'].'" />'."\n";
+ putPostParams($TOOL[$toolName]['post'],$TOOL[$toolName]['postOverride']);
+ echo '<table><tr><td>'."\n";
+
+ }
+
+ function putToolFormStop($putSubmitButton=true, $putTextButton="") {
+
+ echo '</td>';
+ if ($putSubmitButton===true) {
+ echo '<td class="sbmt">'."\n";
+// echo '<input style="float: right; height:17px; width:17px;" class="toolSubmit" type="image" name="kiválaszt" value="kiválaszt" src="skin/classic/module-naplo/img/toolSubmit.png" />'."\n";
+ if ($GLOBALS['skin'] != 'vakbarat')
+ echo '<button type="submit" class="toolSubmit" value=""><span class="icon-ok"></span></button>';
+ else echo '<input type="submit" class="toolSubmit" name="kivalaszt" value="kiválaszt" />';
+ echo '</td>';
+ }
+ if ($putTextButton!='') {
+ echo '<td>'."\n";
+ echo '<input style="float: right;" class="toolSubmit" type="button" name="" value="'.$putTextButton.'" />'."\n";
+ echo '</td>';
+ }
+ echo '</tr></table>'."\n";
+ formEnd();
+ }
+
+ /* Toolok */
+
+ function putGeneralSelect($tool) {
+
+ global $TOOL;
+
+ putToolFormStart($tool, $TOOL[$tool]['paramName']);
+
+ echo '<select name="'.$TOOL[$tool]['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL[$tool]['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL[$tool]['adatok']); $i++) {
+ $M = $TOOL[$tool]['adatok'][$i];
+ $id = $M[ $TOOL[$tool]['paramName'] ];
+ $nev = $M[ $TOOL[$tool]['paramDesc'] ];
+ echo '<option value="'.$id.'"'.$SEL[$id].'>'.htmlspecialchars($nev);
+ if ($id != $nev) echo ' ('.$id.')';
+ echo '</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzamSelect() {
+
+ global $TOOL;
+ putToolFormStart('szamSelect', 'szam');
+ echo '<select name="'.$TOOL['szamSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['szamSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['szamSelect']['szamok'] as $_szam) {
+ echo '<option value="'.$_szam.'"'.$SEL[$_szam].'>'.$_szam.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putForrasSelect() {
+
+ global $TOOL;
+ putToolFormStart('forrasSelect');
+ echo '<select name="'.$TOOL['forrasSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['forrasSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['forrasSelect']['adatok'] as $_szam => $_nev) {
+ echo '<option value="'.$_szam.'"'.$SEL[$_szam].'>'.$_nev.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putIntezmenySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('intezmenySelect', 'intezmeny');
+ echo '<select name="'.$TOOL['intezmenySelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['intezmenySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['intezmenySelect']['intezmenyek']); $i++) {
+ $I = $TOOL['intezmenySelect']['intezmenyek'][$i];
+ echo '<option value="'.$I['rovidNev'].'"'.$SEL[$I['rovidNev']].'>'.htmlspecialchars($I['nev']).' ('.$I['OMKod'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTelephelySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('telephelySelect', 'telephelyId');
+ echo '<select name="'.$TOOL['telephelySelect']['paramName'].'" class="onChangeSubmit" style="width:50px">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['telephelySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['telephelySelect']['telephelyek']); $i++) {
+ $I = $TOOL['telephelySelect']['telephelyek'][$i];
+ echo '<option value="'.$I['telephelyId'].'"'.$SEL[$I['telephelyId']].'>'.$I['telephelyRovidNev'].' ('.htmlspecialchars($I['telephelyNev']).')</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTanevSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('tanevSelect', 'tanev');
+ echo '<select name="'.$TOOL['tanevSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['tanevSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanevSelect']['tanevek']); $i++) {
+ $T = $TOOL['tanevSelect']['tanevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzemeszterSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('szemeszterSelect', 'szemeszterId');
+ echo '<select name="'.$TOOL['szemeszterSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['szemeszterSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['szemeszterSelect']['szemeszterek']); $i++) {
+ $T = $TOOL['szemeszterSelect']['szemeszterek'][$i];
+ echo '<option value="'.$T['szemeszterId'].'"'.$SEL[$T['szemeszterId']].'>'.$T['tanev'].' / '.$T['szemeszter'].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putFelevSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('felevSelect', 'szemeszter');
+ echo '<select name="'.$TOOL['felevSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['felevSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 1; $i <= 2 ; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTargySorrendSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('targySorrendSelect', 'sorrendNev');
+ echo '<select name="'.$TOOL['targySorrendSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['targySorrendSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['targySorrendSelect']['sorrendNevek']); $i++) {
+ $T = $TOOL['targySorrendSelect']['sorrendNevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putMunkakozossegSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('munkakozossegSelect', 'mkId');
+ echo '<select name="'.$TOOL['munkakozossegSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['munkakozossegSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['munkakozossegSelect']['munkakozossegek']); $i++) {
+ $M = $TOOL['munkakozossegSelect']['munkakozossegek'][$i];
+ echo '<option value="'.$M['mkId'].'"'.$SEL[$M['mkId']].'>'.$M['leiras'];
+ if ($M['mkVezNev']!='') echo ' ('.htmlspecialchars($M['mkVezNev']).') ';
+ echo '</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTargySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('targySelect', 'targyId');
+ echo '<select name="'.$TOOL['targySelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['targySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['targySelect']['targyak']); $i++) {
+ $M = $TOOL['targySelect']['targyak'][$i];
+ echo '<option value="'.$M['targyId'].'"'.$SEL[$M['targyId']].'>'.htmlspecialchars($M['targyNev']).' ('.$M['targyId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putMunkatervSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('munkatervSelect', 'munkatervId');
+ echo '<select name="'.$TOOL['munkatervSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['munkatervSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['munkatervSelect']['munkatervek']); $i++) {
+ $M = $TOOL['munkatervSelect']['munkatervek'][$i];
+ echo '<option value="'.$M['munkatervId'].'"'.$SEL[$M['munkatervId']].'>'.htmlspecialchars($M['munkatervNev']).' ('.$M['munkatervId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTanarSelect() {
+
+ global $TOOL;
+ $StatuszJel = array(
+ 'jogviszonya lezárva' => ' [-]',
+ 'tartósan távol' => ' [t]',
+ 'külső óraadó' => ' [k]'
+ );
+
+ putToolFormStart('tanarSelect', 'tanarId');
+ echo '<select name="'.$TOOL['tanarSelect']['paramName'].'" class="onChangeSubmit" accesskey="t">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tanarSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanarSelect']['tanarok']); $i++) {
+ $M = $TOOL['tanarSelect']['tanarok'][$i];
+// echo '<option value="'.$M['tanarId'].'"'.$SEL[$M['tanarId']].'>'.(($M['aktualisStatusz'] == 'jogviszonyban van')?'':'[-] ').htmlspecialchars($M['tanarNev']).' ('.$M['tanarId'].')'.'</option>';
+ echo '<option value="'.$M['tanarId'].'"'.$SEL[$M['tanarId']].'>'.htmlspecialchars($M['tanarNev']).' ('.$M['tanarId'].')'.$StatuszJel[$M['statusz']].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putDiakSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('diakSelect', 'diakId');
+
+ if ($TOOL['diakSelect']['searchable']==true && $TOOL['diakSelect']['paramValue']=='' && count($TOOL['diakSelect']['diakok'])>100) {
+ echo '<span style="display:none" id="diakSelectIcon">ዖ</span>';
+ echo '<input type="text" name="diakSelectPattern" id="diakSelectPattern" value="" placeholder="'._NEV.'" />';
+ echo '<select style="display:none" id="diakSelectLista" name="'.$TOOL['diakSelect']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value=""></option>';
+ echo '</select>';
+ } else {
+ echo '<span style="display:inline" id="diakSelectIcon" class="icon-view-mode"></span>'; //ዖ
+ echo '<input style="display:none;" type="text" name="diakSelectPattern" id="diakSelectPattern" value="" placeholder="'._NEV.'"/>';
+ echo '<select id="diakSelectLista" name="'.$TOOL['diakSelect']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['diakSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['diakSelect']['statusz'] as $statusz) {
+ if (count($TOOL['diakSelect']['statusz']) > 1) echo '<optgroup label="'.$statusz.'">'."\n";
+ for ($i = 0; $i < count($TOOL['diakSelect']['diakok']); $i++) {
+ $M = $TOOL['diakSelect']['diakok'][$i];
+ if ($M['aktualisStatusz'] == 'magántanuló') $statuszStr = ' - [m]';
+ elseif ($M['aktualisStatusz'] == 'jogviszonya lezárva') $statuszStr = ' - [-]';
+ elseif ($M['aktualisStatusz'] == 'jogviszonya felfüggesztve') $statuszStr = ' - [f]';
+ else $statuszStr = '';
+ if ($M['aktualisStatusz'] == $statusz) {
+ echo '<option value="'.$M['diakId'].'"'.$SEL[$M['diakId']].'>';
+ if (_POLICY=='private') {
+ echo htmlspecialchars($M['diakNev']).' ('.$M['diakId'].')'.$statuszStr;
+ } else {
+ $_tmpNev = explode(' ',str_replace(' ',' ',$M['diakNev']));
+ $_tmpStr = '';
+ // echo serialize($_tmpNev);
+ for ($n=0; $n<count($_tmpNev); $n++) $_tmpStr .= mb_substr($_tmpNev[$n],0,1).'.';
+ echo htmlspecialchars($_tmpStr);
+ }
+ echo '</option>';
+ }
+ }
+ if (count($TOOL['diakSelect']['statusz']) > 1) echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ } // <100
+ putToolFormStop();
+
+ }
+
+ function putDiakLapozo() {
+
+ global $TOOL;
+
+ putToolFormStart('diakLapozo', 'diakId');
+
+ for ($i = 0; $i < count($TOOL['diakLapozo']['diakok']); $i++) {
+ if ($TOOL['diakLapozo']['diakok'][$i]['diakId'] == $TOOL['diakLapozo']['paramValue']) {
+ $M[0] = $TOOL['diakLapozo']['diakok'][$i-1];
+ $M[1] = $TOOL['diakLapozo']['diakok'][$i];
+ $M[2] = $TOOL['diakLapozo']['diakok'][$i+1];
+ break;
+ }
+ }
+ if (is_array($M[0])) echo '<button type="submit" class="lapozo balra" name="diakId" value="'.$M[0]['diakId'].'">'.htmlspecialchars($M[0]['diakNev']).'</button>';
+
+ if ($TOOL['diakLapozo']['withSelect'] === true) {
+ echo '<select id="diakSelectLista" name="'.$TOOL['diakLapozo']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value="">------------------------------ '.__DIAKLAPOZOTITLE.' ------------------------------------</option>'."\n";
+ $SEL = array($TOOL['diakLapozo']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['diakLapozo']['statusz'] as $statusz) {
+ if (count($TOOL['diakLapozo']['statusz']) > 1) echo '<optgroup label="'.$statusz.'">'."\n";
+ for ($i = 0; $i < count($TOOL['diakLapozo']['diakok']); $i++) {
+ $D = $TOOL['diakLapozo']['diakok'][$i];
+ if ($D['aktualisStatusz'] == 'magántanuló') $statuszStr = ' - [m]';
+ elseif ($D['aktualisStatusz'] == 'jogviszonya lezárva') $statuszStr = ' - [-]';
+ elseif ($D['aktualisStatusz'] == 'jogviszonya felfüggesztve') $statuszStr = ' - [f]';
+ else $statuszStr = '';
+ if ($D['aktualisStatusz'] == $statusz) echo '<option value="'.$D['diakId'].'"'.$SEL[$D['diakId']].'>'.htmlspecialchars($D['diakNev']).' ('.$D['diakId'].')'.$statuszStr.'</option>';
+ }
+ if (count($TOOL['diakLapozo']['statusz']) > 1) echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo '<span class="lapozo">'.htmlspecialchars($M[1]['diakNev']).'</span>';
+ }
+ if (is_array($M[2])) echo '<button type="submit" class="lapozo jobbra" name="diakId" value="'.$M[2]['diakId'].'">'.htmlspecialchars($M[2]['diakNev']).'</button>';
+
+ putToolFormStop(false);
+
+ }
+
+ function putTableSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('tableSelect', 'table');
+ echo '<select name="'.$TOOL['tableSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tableSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['tableSelect']['naplo_intezmeny']); $i++) {
+ $t = $TOOL['tableSelect']['naplo_intezmeny'][$i];
+ echo '<option value="'."naplo_intezmeny:$t".'"'.$SEL["naplo_intezmeny:$t"].'>'.$t.' ('.__INTEZMENY.')</option>';
+ }
+ for ($i = 0; $i < count($TOOL['tableSelect']['naplo']); $i++) {
+ $t = $TOOL['tableSelect']['naplo'][$i];
+ echo '<option value="'."naplo:$t".'"'.$SEL["naplo:$t"].'>'.$t.' ('.__TANEV.')</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putOsztalySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('osztalySelect', 'osztalyId');
+ echo '<select name="'.$TOOL['osztalySelect']['paramName'].'" class="onChangeSubmit" accesskey="o">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['osztalySelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['osztalySelect']['osztalyok']); $i++) {
+ $M = $TOOL['osztalySelect']['osztalyok'][$i];
+ if (isset($M['osztalyJel'])) $osztalyJel = $M['osztalyJel'].' - '.$M['kezdoTanev'];
+ else $osztalyJel = $M['kezdoTanev'].'/'.$M['jel'];
+ if (is_array($M['osztalyfonok']) && $M['osztalyfonokNev']!=''){
+ $osztalyJel .= ' ('.htmlspecialchars($M['osztalyfonokNev']).')';
+ }
+ echo '<option value="'.$M['osztalyId'].'"'.$SEL[$M['osztalyId']].'>'.$osztalyJel.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putTanmenetSelect() {
+
+ global $TOOL;
+ putToolFormStart('tanmenetSelect', 'tanmenetId');
+ echo '<select name="'.$TOOL['tanmenetSelect']['paramName'].'" class="onChangeSubmit" accesskey="t">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['tanmenetSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['tanmenetSelect']['tanmenetek']); $i++) {
+ $M = $TOOL['tanmenetSelect']['tanmenetek'][$i];
+ $tanmenetNev = $M['tanmenetNev'].' ('.$M['tanmenetId'].') - '.$M['tanarNev'].' '.$M['dt'].' ('.$M['statusz'].')';
+ echo '<option value="'.$M['tanmenetId'].'"'.$SEL[$M['tanmenetId']].'>'.htmlspecialchars($tanmenetNev).'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putTankorSelect() {
+
+ global $TOOL;
+
+ if (count($TOOL['tankorSelect']['tankorok'])>0) {
+ if ($TOOL['tankorSelect']['tankorIdsDt']!='') $_info = true; else $_info=false;
+ putToolFormStart('tankorSelect', 'tankorId');
+ echo '<select name="'.$TOOL['tankorSelect']['paramName'].'" class="onChangeSubmit" accesskey="k" title="'.$TOOL['tankorSelect']['tankorIdsDt'].'">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tankorSelect']['paramValue'] => ' selected="selected" ');
+ if (is_array($TOOL['tankorSelect']['tankorIds'])) {
+ if ($_info) echo '<optgroup label="--['.$TOOL['tankorSelect']['tankorIdsDt'].']-----------------">';
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ if (in_array($M['tankorId'], $TOOL['tankorSelect']['tankorIds']))
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ if ($_info) echo '</optgroup>';
+ if ($_info) echo '<optgroup label="--------------------------------------">';
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ if (!in_array($M['tankorId'], $TOOL['tankorSelect']['tankorIds']))
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ if ($_info) echo '</optgroup>';
+ } else {
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ }
+
+ function putTanevLapozo() {
+ global $TOOL;
+
+ putToolFormStart('tanevLapozo', 'tanev');
+ echo '&larr;';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']-1).'" />';
+ echo '</td>';
+ echo '<th>'.$TOOL['tanevLapozo']['tanev'].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']+1).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+ formEnd();
+ }
+
+ function putDatumSelect() {
+ global $TOOL;
+ $paramName = $TOOL['datumSelect']['paramName'];
+ global $$paramName;
+
+ $aHetNapjai = json_decode(AHETNAPJAI);
+
+ if ($TOOL['datumSelect']['lapozo']) {
+ // Előző és következő dátum meghatározása
+ $elozo = $kovetkezo = '';
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ if ($TOOL['datumSelect']['napok'][$i] == $$paramName) {
+ $kovetkezo = $TOOL['datumSelect']['napok'][$i+1];
+ $elozo = $TOOL['datumSelect']['napok'][$i-1];
+ break;
+ }
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for ($t = $tolTime; $t <= $igTime; $t = strtotime("$count days", $t)) {
+ $d = date('Y-m-d', $t);
+ if ($d == $$paramName) {
+ if (strtotime("$count days", $t) <= $igTime) $kovetkezo = date('Y-m-d', strtotime("$count days", $t));
+ break;
+ }
+ $elozo = $d;
+ }
+ }
+ echo '<table><tr>';
+ if ($elozo!='') {
+ echo '<td>';
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ echo '<input name="'.$paramName.'" style="float: left;" class="toolSubmit" type="submit" value="'.$elozo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+ echo '</td>';
+ }
+ echo '<td>';
+
+ }
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ $SEL = array($$paramName => ' selected="selected" ');
+ echo '<button type="button" name="selectorBtn" value="'.$elozo.'" class="btnSelectPrev toolBarBtn mobileOnly">'.'<span class="icon-chevron-left"></span></button>';
+ echo '<select name="'.$paramName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ $d = $TOOL['datumSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+ echo '<button type="button" name="selectorBtn" value="'.$kovetkezo.'" class="btnSelectNext toolBarBtn mobileOnly">'.'<span class="icon-chevron-right"></span></button>';
+ putToolFormStop();
+
+ if ($TOOL['datumSelect']['lapozo']) {
+ echo '</td>';
+ if ($kovetkezo!='') {
+ echo '<td>';
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ echo '<input name="'.$paramName.'" style="float: right;" class="toolSubmit" type="submit" value="'.$kovetkezo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '</td>';
+ }
+ echo '</tr></table>';
+ }
+
+
+
+ }
+
+//--
+ function putDatumTolIgSelect() {
+
+ global $TOOL, $aHetNapjai;
+
+ $tolParamName = $TOOL['datumTolIgSelect']['tolParamName'];
+ global $$tolParamName;
+ $igParamName = $TOOL['datumTolIgSelect']['igParamName'];
+ global $$igParamName;
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['datumTolIgSelect']['post']);
+ if (isset($TOOL['datumTolIgSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumTolIgSelect']['action'].'" />'."\n";
+ echo '<table><tr><td>'."\n";
+ echo '<select name="'.$tolParamName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$tolParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+
+ echo ' - ';
+
+ echo '<select name="'.$igParamName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$igParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putOraSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('oraSelect', 'ora');
+ echo '<select name="'.$TOOL['oraSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['oraSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['oraSelect']['orak'])) {
+ for ($i = 0; $i < count($TOOL['oraSelect']['orak']); $i++) {
+ echo '<option value="'.$TOOL['oraSelect']['orak'][$i].'"'.$SEL[$TOOL['oraSelect']['orak'][$i]].'>'.$TOOL['oraSelect']['orak'][$i].'</option>';
+ }
+ if ($TOOL['oraSelect']['foglaltOrakkal']) {
+ echo '<optgroup label="'._FOGLALT_ORAK.'">';
+ for ($t = $TOOL['oraSelect']['tol']; $t <= $TOOL['oraSelect']['ig']; $t++) {
+ if (!in_array($t, $TOOL['oraSelect']['orak'])) echo '<option value="'.$t.'"'.$SEL[$t].'>'.$t.'</option>';
+ }
+ echo '</optgroup>'."\n";
+ }
+ } else {
+ for ($t = $TOOL['oraSelect']['tol']; $t <= $TOOL['oraSelect']['ig']; $t++) {
+ echo '<option value="'.$t.'"'.$SEL[$t].'>'.$t.'</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTeremSelect() {
+
+ global $TOOL;
+
+ // telephely szerint szétválogatás:
+ $numt=0;
+ if (is_array($TOOL['teremSelect']['termek'])) {
+ for ($i = 0; $i < count($TOOL['teremSelect']['termek']); $i++) {
+ $I = $TOOL['teremSelect']['termek'][$i];
+ $T[$I['telephelyId']][] = $I;
+ $numt++;
+ }
+ }
+
+ putToolFormStart('teremSelect', 'teremId');
+ echo '<select name="'.$TOOL['teremSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['teremSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if ($numt>=2) {
+ foreach($T AS $telephelyId => $I) {
+ $disp = ($telephelyId=='')?'Nincs telephely':$telephelyId;
+ echo '<optgroup label="'.$disp.'">';
+ if (is_array($I)) {
+ for ($i = 0; $i < count($I); $i++) {
+ $show = $I[$i]['leiras'];
+ echo '<option value="'.$I[$i]['teremId'].'"'.$SEL[$I[$i]['teremId']].'>'.$show.'</option>';
+ }
+ }
+ echo '</optgroup>'."\n";
+ }
+ } else {
+ if (is_array($TOOL['teremSelect']['termek'])) {
+ for ($i = 0; $i < count($TOOL['teremSelect']['termek']); $i++) {
+ $show = $TOOL['teremSelect']['termek'][$i]['leiras'];
+ echo '<option value="'.$TOOL['teremSelect']['termek'][$i]['teremId'].'"'.$SEL[$TOOL['teremSelect']['termek'][$i]['teremId']].'>'.$show.'</option>';
+ }
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putOrarendiHetSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('orarendiHetSelect', 'orarendiHet');
+ echo '<select name="'.$TOOL['orarendiHetSelect']['paramName'].'" class="onChangeSubmit" '.$_DS.'>';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['orarendiHetSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['orarendiHetSelect']['hetek'] as $M) {
+ echo '<option value="'.$M.'"'.$SEL[$M].'>'.$M.'</option>';
+ }
+ if (is_array($TOOL['orarendiHetSelect']['megjelenitendoHetek'])) {
+ echo '<optgroup label="'._UJ_ORARENDIHET.'">';
+ foreach ($TOOL['orarendiHetSelect']['megjelenitendoHetek'] as $index => $het) {
+ if (!in_array($het, $TOOL['orarendiHetSelect']['hetek']))
+ echo '<option value="'.$het.'"'.$SEL[$het].'>'.$het.'</option>';
+ }
+ echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putKepzesSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('kepzesSelect', 'kepzesId');
+ echo '<select name="'.$TOOL['kepzesSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['kepzesSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['kepzesSelect']['kepzes']); $i++) {
+ $M = $TOOL['kepzesSelect']['kepzes'][$i];
+ $_prefix = ($M['kepzesEles']!=1) ? '-' : '';
+ echo '<option value="'.$M['kepzesId'].'"'.$SEL[$M['kepzesId']].'>'.$_prefix.htmlspecialchars($M['kepzesNev']).' '.$M['tanev'].' ('.$M['kepzesId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzuloSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('szuloSelect', 'szuloId');
+ echo '<select name="'.$TOOL['szuloSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['szuloSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['szuloSelect']['szulo']); $i++) {
+ $M = $TOOL['szuloSelect']['szulo'][$i];
+ echo '<option value="'.$M['szuloId'].'"'.$SEL[$M['szuloId']].'>'.htmlspecialchars($M['szuloNev']).' ('.$M['szuloId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putKerdoivSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('kerdoivSelect', 'kerdoivId');
+ echo '<select name="'.$TOOL['kerdoivSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['kerdoivSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['kerdoivSelect']['kerdoiv']); $i++) {
+ $M = $TOOL['kerdoivSelect']['kerdoiv'][$i];
+ echo '<option value="'.$M['kerdoivId'].'"'.$SEL[$M['kerdoivId']].'>'.$M['cim'].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putZaradekSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('zaradekSelect', 'zaradekIndex');
+ $mit = array('bizonyítvány','törzslap','osztálynapló','beírási napló');
+ $mire = array('Bi.','Tl.','On.','Bn.');
+ echo '<select name="'.$TOOL['zaradekSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['zaradekSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['zaradekSelect']['zaradekok'])) {
+ foreach ($TOOL['zaradekSelect']['zaradekok'] as $zaradekIndex => $zaradekAdat) {
+ $length = mb_strlen($zaradekAdat['szoveg'], 'utf-8');
+ $rpos = mb_strrpos(mb_substr($zaradekAdat['szoveg'],0,-15), ' ', 0, 'utf-8');
+ echo '<option value="'.$zaradekIndex.'"'.$SEL[$zaradekIndex].'>';
+ echo $zaradekAdat['sorszam'].' '
+ .($length>80?
+ mb_substr($zaradekAdat['szoveg'],0,mb_strpos($zaradekAdat['szoveg'],' ',40,'utf-8'),'utf-8').
+ ' ... '.
+ mb_substr($zaradekAdat['szoveg'], $rpos, $length-$rpos+10, 'utf-8'):$zaradekAdat['szoveg']).
+ ' ('.str_replace($mit, $mire, $zaradekAdat['dokumentum']).')</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putTanarOraLapozo() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['tanarOraLapozo']['paramName'];
+ global $$paramName; // most oraId
+ if ((is_array($TOOL['tanarOraLapozo']['elozo'])) || (is_array($TOOL['tanarOraLapozo']['kovetkezo']))) {
+ formBegin(array('class'=>'lapozo','method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['tanarOraLapozo']['post']);
+ echo '<table><tr><td>';
+ if (is_array($TOOL['tanarOraLapozo']['elozo'])) {
+ $_leiras = '&larr;'.($TOOL['tanarOraLapozo']['elozo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['elozo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['elozo']['leiras'].')';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['elozo']['oraId']).'" />';
+ }
+ echo '</td>';
+ echo '<th>';
+ echo $TOOL['tanarOraLapozo']['oraAdat']['ora'].'. '._ORA.' ';
+ if ($TOOL['tanarOraLapozo']['oraAdat']['leiras'] != '') echo '('.$TOOL['tanarOraLapozo']['oraAdat']['leiras'].') ';
+ echo '</th>';
+ echo '<td>';
+ if (is_array($TOOL['tanarOraLapozo']['kovetkezo'])) {
+ $_leiras = ($TOOL['tanarOraLapozo']['kovetkezo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['kovetkezo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['kovetkezo']['leiras'].')';
+ $_leiras .=' &rarr;';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['kovetkezo']['oraId']).'" />';
+ }
+ echo '</td></tr></table>';
+ formEnd();
+ echo "\n";
+ }
+ }
+
+ function putHonapLapozo() {
+
+ global $TOOL,$Honapok;
+
+ $paramName = $TOOL['honapLapozo']['paramName'];
+ global $$paramName;
+ formBegin(array('class' => 'lapozo', 'method' => 'post', 'action' => href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['honapLapozo']['post']);
+ echo '<table><tr><td>';
+ echo '&larr;';
+ echo '<input type="submit" name="ho" value="'.(($$paramName-1)==0?12:$$paramName-1).'" />';
+ echo '</td>';
+ echo '<th>'.$Honapok[$$paramName-1].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="ho" value="'.(($$paramName%12+1)).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+
+ // ideiglenes megoldás!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+// echo '<input type="hidden" name="diakId" value="'.$TOOL['honapLapozo']['diakId'].'" />'."\n";
+
+ formEnd();
+
+ }
+
+//-- INSECURE
+ function putOldalFlipper() {
+
+ global $TOOL;
+ $paramName = $TOOL['oldalFlipper']['paramName'];
+ global $$paramName;
+
+ $stepCount = count($TOOL['oldalFlipper']['url']);
+ if (isset($TOOL['oldalFlipper']['step'])) $step = $TOOL['oldalFlipper']['step'];
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['titleConst']); $i++) {
+ if (defined($TOOL['oldalFlipper']['titleConst'][$i]))
+ $TOOL['oldalFlipper']['title'][$i] = constant($TOOL['oldalFlipper']['titleConst'][$i]);
+ else
+ $TOOL['oldalFlipper']['title'][$i] = '';
+ }
+
+
+
+
+ echo '<table class="flipper"><tr>';
+ if ($stepCount > 1 && isset($step) && $step > 0) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step-1])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+ echo '<input type="submit" value="&larr;" title="'.$TOOL['oldalFlipper']['title'][$step-1].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ if ($stepCount > 1)
+ for ($j = 0; $j < $stepCount; $j++) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$j])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ if (isset($step) && $step == $j)
+ echo '<input class="step" type="button" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ else
+ echo '<input type="submit" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ if ($stepCount == 1 || (isset($step) && $step < $stepCount-1)) {
+ if (!isset($step)) $step = 0; else $step++;
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ echo '<input type="submit" value="&rarr;" title="'.$TOOL['oldalFlipper']['title'][$step].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ echo '</tr></table>'."\n";
+
+ }
+
+ function putNyomtatasGomb() {
+
+ global $TOOL;
+ $paramName = $TOOL['nyomtatasGomb']['paramName'];
+ global $$paramName;
+
+ if (defined($TOOL['nyomtatasGomb']['titleConst']))
+ $TOOL['nyomtatasGomb']['title'] = constant($TOOL['nyomtatasGomb']['titleConst']);
+ else
+ $TOOL['nyomtatasGomb']['title'] = '';
+
+ echo '<table class="gomb"><tr>';
+ echo '<td>';
+ formBegin(array('method'=>'post', 'action'=>href($TOOL['nyomtatasGomb']['url'])));
+ putPostParams($TOOL['nyomtatasGomb']['post']);
+ if (isset($TOOL['nyomtatasGomb']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['nyomtatasGomb']['action'].'" />'."\n";
+ if (isset($TOOL['nyomtatasGomb']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+// echo '<input type="submit" value="&larr;" title="'.$TOOL['nyomtatasGomb']['title'].'" />'."\n";
+ echo '<button title="'.$TOOL['nyomtatasGomb']['title'].'"><span class="icon-print" style="font-size:15px; color:white;"></span></button>'."\n";
+ formEnd();
+ echo '</td>';
+ echo '</tr></table>'."\n";
+
+ }
+
+
+ function putIgazolasOsszegzo() {
+
+ global $TOOL;
+
+ $H = $TOOL['igazolasOsszegzo']['igazolasok'];
+ echo '<table class="hianyzasOsszegzo" cellpadding="1" cellspacing="1" style="width:300px;">';
+ echo '<tr>';
+ echo '<th></th>';
+ echo '<th>'._ORVOSI.'</th>';
+ echo '<th>'._SZULOI.'</th>';
+ echo '<th>'._OSZTALYFONOKI.'</th>';
+ echo '<th>'._TANULMANYI_VERSENY.'</th>';
+ echo '<th>'._VIZSGA.'</th>';
+ echo '<th>'._IGAZGATOI.'</th>';
+ echo '<th>'._HATOSAGI.'</th>';
+ echo '<th>'._PALYAVALASZTAS.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+
+ echo '<td></td>';
+ echo '<td>'.intval($H['napok']['osszesen']['orvosi']).' nap</td>';
+ echo '<td>';
+ if (__SZULOI_IGAZOLAS_EVRE != 0) echo (int)$H['napok']['osszesen']['szülői'].'/'.__SZULOI_IGAZOLAS_EVRE.' '._NAP.'/'._EV.' ';
+ if (__SZULOI_IGAZOLAS_FELEVRE != 0) foreach ($H['szemeszterek'] as $i => $szemeszter) {
+ echo decimal_to_roman($szemeszter).':&nbsp;'.(int)$H['napok'][ $szemeszter ]['szülői'].'/'.__SZULOI_IGAZOLAS_FELEVRE.'&nbsp;'._NAP.', ';
+ }
+ echo '</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['osztályfőnöki'].'/'.__OSZTALYFONOKI_IGAZOLAS_EVRE. ' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['verseny'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['vizsga'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['igazgatói'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['hatósági'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['pályaválasztás'].' '._NAP.'</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: green;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['igazolt']).'</span>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: red;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['igazolatlan']).'</span>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: #C8C864;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['kesesPercOsszeg']).'\'';
+ echo '/'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['kesesDb']).'';
+ echo '</span>';
+ echo '</td>'; // igazolatlan, kesesPercOsszeg
+ echo '<td>'.(int)$H['orak']['osszesen']['orvosi'].' '._ORA.'</td>';
+ echo '<td>';
+ if (__SZULOI_ORA_IGAZOLAS_EVRE != 0) echo (int)$H['orak']['osszesen']['szülői'].'/'.__SZULOI_ORA_IGAZOLAS_EVRE.' '._ORA.'/'._EV.' ';
+ if (__SZULOI_ORA_IGAZOLAS_FELEVRE != 0) foreach ($H['szemeszterek'] as $i => $szemeszter) {
+ echo decimal_to_roman($szemeszter).':&nbsp;'.(int)$H['orak'][ $szemeszter ]['szülői'].'/'.__SZULOI_ORA_IGAZOLAS_FELEVRE.'&nbsp;'._ORA.', ';
+ }
+ echo '</td>';
+
+ echo '<td>'.(int)$H['orak']['osszesen']['osztályfőnöki'].'/'.__OSZTALYFONOKI_ORA_IGAZOLAS_EVRE.' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['verseny'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['vizsga'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['igazgatói'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['hatósági'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['pályaválasztás'].' '._ORA.'</td>';
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ // ---
+ if (is_array($TOOL['kretaIgazolasOsszegzo'])) { // az adattömb tartalmazza, de nem jeleníti meg a késéseket is
+ $K = $TOOL['kretaIgazolasOsszegzo'];
+ $IGTIPUSOK = array_keys($K);
+ if (count($IGTIPUSOK)==0) return;
+ echo '<table class="hianyzasOsszegzo" cellpadding="1" cellspacing="1" align="center">';
+ echo '<tr>';
+ foreach($IGTIPUSOK as $k => $v)
+ echo '<th style="background-color: cornflowerblue;">'.$v.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ foreach($IGTIPUSOK as $k => $v) {
+ echo '<td style="background-color: #3facc7; color: white;">'.intval($K[$v]['hiányzás'][0]['db']).' '._NAP.'</td>';
+ }
+ echo '</tr>'."\n";
+ echo '<tr>';
+ foreach($IGTIPUSOK as $k => $v) {
+ echo '<td style="background-color: #3facc7; color: white;">'.intval($K[$v]['hiányzás'][0]['dbBejegyzes']).' '._ORA.'</td>';
+ }
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ }
+
+ }
+
+ function putKerelemStat() {
+
+ global $TOOL;
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: #6969ff;" title="sum">'.$TOOL['kerelemStat']['stat']['n'].'</span>';
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: lightgreen;" title="done">'.$TOOL['kerelemStat']['stat']['nofdone'].'</span>';
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: magenta; " title="avgtime">'.$TOOL['kerelemStat']['stat']['avgTime'].'</span>';
+
+ }
+
+ function putToolBarHamburger() {
+ global $TOOL;
+ echo '<div id="toolBarHamburgerLista" style="position:fixed; top:150px;right:0px;">';
+ echo '<ul>';
+ for ($j = 0; $j < count($TOOL['toolBarHamburger']['url']); $j++) {
+ echo '<li>';
+ formBegin(array('action'=>href($TOOL['toolBarHamburger']['url'][$j])));
+ putPostParams($TOOL['toolBarHamburger']['post']);
+ if (isset($TOOL['toolBarHamburger']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['toolBarHamburger']['action'].'" />'."\n";
+ if (isset($TOOL['toolBarHamburger']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+ //echo '<input type="submit" value="'.$TOOL['toolBarHamburger']['title'][$j].'" title="'.$TOOL['toolBarHamburger']['title'][$j].'" />'."\n";
+ echo '<button type="submit" class="hamburgerIkon" value="'.$TOOL['toolBarHamburger']['title'][$j].'" title="'.$TOOL['toolBarHamburger']['title'][$j].'">'.$TOOL['toolBarHamburger']['title'][$j].'</button>'."\n";
+ formEnd();
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</div>';
+ }
+
+
+
+ // CONTRIB!
+ include('skin/classic/module-naplo/html/share/face.phtml');
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml
new file mode 100644
index 00000000..d216ade0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml
@@ -0,0 +1,52 @@
+<?php
+
+ function putBejegyzesTipusForm($ADAT) {
+
+ formBegin(array('action'=>'', 'method'=>'post', 'class'=>'bejegyzes'));
+
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="action" value="modositas" />';
+
+ foreach ($ADAT['bejegyzesTipusok'] as $tipus => $tAdat) {
+ echo '<ul class="'.ekezettelen($tipus).'">';
+ echo '<lh>'.$tipus.'</lh>';
+ for ($i = 0; $i < count($tAdat); $i++) {
+ $btId = $tAdat[$i]['bejegyzesTipusId'];
+ echo '<li>';
+ echo '<input type="hidden" name="bejegyzesTipusId[]" value="'.$btId.'" />';
+ if ($tAdat[$i]['fokozat'] < 10) echo '&nbsp';
+ echo $tAdat[$i]['fokozat'].'. '._FOKOZAT.'('.$btId.') - ';
+ echo '<input type="text" name="bejegyzesTipusNev[]" value="'.$tAdat[$i]['bejegyzesTipusNev'].'" />';
+ if ($tipus == 'fegyelmi') {
+ $SEL = array($tAdat[$i]['hianyzasDb'] => ' selected="selected" ');
+ echo '<select name="hianyzasDb[]">';
+ for ($h = 0; $h < 26; $h++) {
+ echo '<option value="'."$btId-$h".'"'.$SEL[$h].'>'.($h==0?'-':$h).'</option>';
+ }
+ echo '</select>'._DARAB_IGAZOLATLAN_HIANYZAS_ESETEN;
+ }
+// echo ' ('.$tAdat[$i]['jogosult'].')';
+ echo '<span title="'._JOGOSULT.'">';
+ foreach ($ADAT['jogosult'] as $jogosult) {
+ if (strpos($tAdat[$i]['jogosult'], $jogosult) !== false)
+ echo '<input id="'.$jogosult.$tipus.$i.'" checked="checked" type="checkbox" name="jogosult[]" value="'."$btId-$jogosult".'" />';
+ else
+ echo '<input id="'.$jogosult.$tipus.$i.'" type="checkbox" name="jogosult[]" value="'."$btId-$jogosult".'" />';
+ echo '<label for="'.$jogosult.$tipus.$i.'">';
+ echo $jogosult;
+ echo '</label>';
+ }
+ echo '</span>';
+ echo '</li>';
+ }
+ echo '<li class="submit">';
+ echo '<input class="ok" type="submit" value="'._OK.'" />';
+ echo '<input class="del confirm" type="submit" name="del-'.ekezettelen($tipus).'" value="'._UTOLSO_TORLESE.'" title="'._BIZTOS_TOROL_E.'" />';
+ echo '<input class="new" type="submit" name="new-'.ekezettelen($tipus).'" value="'._UJ_FOKOZAT.'" title="'._UJ_FOKOZAT.'" />';
+ echo '</li>';
+ echo '</ul>';
+ }
+ formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml
new file mode 100644
index 00000000..b46a9d3e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml
@@ -0,0 +1,97 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putBejegyzesLista($diakId, $BEJEGYZESEK, $DIAKOK = array()) {
+
+ global $osztalyId;
+
+ echo '<div class="bejegyzes">'."\n";
+
+ echo '<ul>';
+ for ($i = 0; $i < count($BEJEGYZESEK); $i++) {
+
+ echo $DIAKOK[$BEJEGYZESEK[$i]['diakId']]['diakNev'];
+
+ echo '<li class="'.$BEJEGYZESEK[$i]['tipus'].'">';
+ echo '<div class="kategoria">';
+ echo $BEJEGYZESEK[$i]['bejegyzesTipusNev'];
+ echo '</div>';
+ echo '<div class="megjegyzes">';
+ echo $BEJEGYZESEK[$i]['szoveg'];
+ echo '</div>';
+ echo '<div class="dt">';
+ echo '<span class="tanar">';
+ echo $BEJEGYZESEK[$i]['tanarNev'];
+ echo '</span>';
+ echo $BEJEGYZESEK[$i]['beirasDt'];
+ if (!in_array($BEJEGYZESEK[$i]['referenciaDt'],array('',0,'0000-00-00'))) echo ' / '.$BEJEGYZESEK[$i]['referenciaDt'];
+ echo '</div>';
+
+ if (
+ __NAPLOADMIN ||
+ ($BEJEGYZESEK[$i]['tanarId'] == __USERTANARID && $BEJEGYZESEK[$i]['beirasDt'] == date('Y-m-d'))
+ ) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="delBejegyzes" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+ echo '<input type="hidden" name="bejegyzesId" value="'.$BEJEGYZESEK[$i]['bejegyzesId'].'" />';
+ echo '<input type="submit" value="'._TOROL.'" />'."\n";
+ formEnd();
+ }
+
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>';
+
+ echo '</div>'."\n";
+
+ }
+
+ function putOsztalyBejegyzesek($Bejegyzesek, $Diakok) {
+
+ global $osztalyId;
+
+ for ($j = 0; $j < count($Diakok); $j++) {
+
+ $diakId = $Diakok[$j]['diakId'];
+ $diakNev = $Diakok[$j]['diakNev'];
+ $B = $Bejegyzesek[$diakId];
+ if (count($B) == 0) continue;
+
+ echo '<div class="bejegyzes">'."\n";
+
+ formBegin(array('class'=>'nev'));
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="submit" value="'.$diakNev.'" />'."\n";
+ formEnd();
+
+ echo '<ul>';
+ for ($i = 0; $i < count($B); $i++) {
+
+ echo '<li class="'.$B[$i]['tipus'].'">';
+ echo '<div class="kategoria">';
+ echo '<span class="tanar">';
+ echo $B[$i]['tanarNev'];
+ echo '</span>';
+ echo '<span class="dt">';
+ echo $B[$i]['beirasDt'];
+ if (!in_array($BEJEGYZESEK[$i]['referenciaDt'],array('',0,'0000-00-00'))) echo ' / '.$BEJEGYZESEK[$i]['referenciaDt'];
+ echo '</span>';
+ echo $B[$i]['bejegyzesTipusNev'];
+ echo '</div>';
+
+ }
+ echo '</ul>';
+
+ echo '</div>'."\n";
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml
new file mode 100644
index 00000000..bbbe2c4c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putBejegyzesInfo($ADAT) {
+ echo '<div style="text-align: center">';
+ echo _AKTUALIS_BEJEGYZESEK_SZAMA.' '.$ADAT['db'];
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml
new file mode 100644
index 00000000..22759d38
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml
@@ -0,0 +1,47 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putUjBejegyzesForm($diakId) {
+
+ global $FOKOZATOK, $osztalyId;
+
+ formBegin(array('class'=>'bejegyzes'));
+
+ echo '<input type="hidden" name="action" value="ujBejegyzes" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+
+ $tipus = '';
+ echo '<select name="bejegyzesTipusId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($FOKOZATOK as $i => $F) {
+ if ($tipus != $F['tipus']) {
+ if ($tipus != '') echo '</optgroup>'."\n";
+ $tipus = $F['tipus'];
+ echo '<optgroup label="'.$tipus.'">'."\n";
+ }
+ echo '<option value="'.$F['bejegyzesTipusId'].'">'.$F['bejegyzesTipusNev'].'</option>'."\n";
+ }
+ if ($tipus != '') echo '</optgroup>'."\n";
+ echo '</select>';
+
+ echo '<input type="checkbox" id="evvegi" name="evvegi" value="true" />'."\n";
+ echo '<label for="evvegi">'._EVVEGI.'</label>'."\n";
+ _inlineHelp(_SUGO_EVVEGI);
+
+ echo '<br />'."\n";
+
+
+
+ echo '<label for="szoveg">'._MEGJEGYZES.'</label><br />'."\n";
+ echo '<textarea name="szoveg" id="szoveg"></textarea><br />'."\n";
+
+ echo '<input type="submit" value="'._ROGZIT.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/diakValaszto.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/diakValaszto.phtml
new file mode 100644
index 00000000..4b925da8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/diakValaszto.phtml
@@ -0,0 +1,22 @@
+<?php
+
+ function putDiakValasztoForm($ADAT) {
+
+ formBegin(array('class'=>'valaszto'));
+ echo '<input type="hidden" name="action" value="valaszt" />'."\n";
+
+ $SEL = array(__PARENTDIAKID => ' selected="selected" ');
+ echo '<select name="diakId">'."\n";
+ for ($i=0; $i<count($ADAT); $i++) {
+ echo '<option value="'.$ADAT[$i]['diakId'].'" '.$SEL[ $ADAT[$i]['diakId'] ].'>';
+ echo $ADAT[$i]['diakNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml
new file mode 100644
index 00000000..74c0143c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml
@@ -0,0 +1,77 @@
+<?php
+
+ function _sgn($a) {
+ if ($a < 0) return -1;
+ elseif ($a == 0) return 0;
+ else return 1;
+ }
+
+ function putKerdoiv($ADAT) {
+
+ $class = array(-1 => 'negativ', 0 => 'semleges', 1 => 'pozitiv');
+
+ formBegin(array('class'=>'kerdoiv'));
+ echo '<input type="hidden" name="action" value="ertekeles" />'."\n";
+ echo '<input type="hidden" name="kerdoivId" value="'.$ADAT['kerdoivId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettId" value="'.$ADAT['cimzettId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettTipus" value="'.$ADAT['cimzettTipus'].'" />'."\n";
+ echo '<h1>'.$ADAT['kerdoivAdat']['cim'].'<br />'.$ADAT['cimzettLeiras'].'</h1>'."\n";
+ if ($ADAT['kerdoivAdat']['megjegyzes'] != '') echo '<p>'.$ADAT['kerdoivAdat']['megjegyzes'].'</p>'."\n";
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['kerdoivAdat']['kerdes']); $i++) {
+ $kerdesId = $ADAT['kerdoivAdat']['kerdes'][$i]['kerdesId'];
+ $valaszok = $ADAT['kerdoivAdat']['kerdes'][$i]['valasz'];
+ echo '<li>';
+ echo $ADAT['kerdoivAdat']['kerdes'][$i]['kerdes'];
+ if (
+ ($valaszok[0]['pont'] == 0 && $valaszok[ count($valaszok)-1 ]['pont'] == 0)
+ || in_array($kerdesId, $ADAT['megvalaszoltKerdes'])
+ ) {
+ echo '<ol>'; $sgn = 0;
+ } else {
+ echo '<span class="gomb negativ">-</span><span class="gomb semleges">0</span><span class="gomb pozitiv">+</span>';
+ echo '<ol style="display: none;" class="'.$class[_sgn($valaszok[0]['pont'])].'">'; $sgn = _sgn($valaszok[0]['pont']);
+ }
+ if (!in_array($kerdesId, $ADAT['megvalaszoltKerdes'])) {
+ if (count($valaszok) == 0) {
+ echo '<input class="szabadValasz" type="text" name="szabadValasz'.$kerdesId.'" value="" />'."\n";
+ } else {
+ for ($j = 0; $j < count($valaszok); $j++) {
+ $valaszId = $valaszok[$j]['valaszId'];
+ if ($sgn != _sgn($valaszok[$j]['pont'])) {
+ echo '</ol>';
+ echo '<ol style="display: none;" class="'.$class[_sgn($valaszok[$j]['pont'])].'">'; $sgn = _sgn($valaszok[$j]['pont']);
+ }
+ echo '<li>';
+ if (
+ $valaszok[$j]['pont'] == 0
+ && ($j == 0 || $valaszok[$j-1]['pont'] < 0)
+ && ($j+1 == count($valaszok) || $valaszok[$j+1]['pont'] > 0)
+ ) $CHK = ' checked="checked" '; else $CHK = '';
+ echo '<input type="radio" name="valasz'.$kerdesId.'" id="valasz'.$kerdesId.$j.'" value="'.$valaszId.'"'.$CHK.' />'."\n";
+ echo '<label for="valasz'.$kerdesId.$j.'">'.$valaszok[$j]['valasz'].'</label>';
+ echo '</li>';
+ }
+ }
+ } else {
+ echo '<li>'._MAR_MEGVALASZOLT_KERDES.'</li>';
+/* for ($j = 0; $j < count($ADAT['kerdoivAdat']['kerdes'][$i]['valasz']); $j++) {
+ echo '<li>';
+ echo $ADAT['kerdoivAdat']['kerdes'][$i]['valasz'][$j]['valasz'];
+ echo '</li>';
+ }
+*/
+ }
+ echo '</ol>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+
+ echo '<input id="ok" type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml
new file mode 100644
index 00000000..f019f1d5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml
@@ -0,0 +1,90 @@
+<?php
+
+ function putKerdoivForm($ADAT) {
+
+ formBegin(array('class'=>'kerdoiv'));
+ echo '<input type="hidden" name="action" value="kerdoivBetoltes1" />'."\n";
+
+ echo '<p><label for="cim">'._CIM.'</label>';
+ echo '<input type="text" name="cim" id="cim" value="" />'."\n";
+ echo '</p>';
+
+ echo '<p><label for="tolDt">'._ERVENYESSEG.'</label>'."\n";
+ echo '<input type="text" name="tolDt" id="tolDt" class="date" value="" /> - <input type="text" name="igDt" id="igDt" class="date" value="" />';
+ echo '</p>';
+
+/*
+ echo '<p><label for="feladoTipus">'._FELADO.'</label>';
+ echo '<select name="feladoTipus" id="feladoTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['feladoTipusok']); $i++) {
+ $feladoTipus = $ADAT['feladoTipusok'][$i];
+ $feladoNev = constant('_FELADO_'.nagybetus($feladoTipus));
+ echo '<option value="'.$feladoTipus.'">'.$feladoNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+*/
+ echo '<label for="cimzettTipus">'._CIMZETT.'</label>';
+ echo '<select name="cimzettTipus" id="cimzettTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettTipusok']); $i++) {
+ $cimzettTipus = $ADAT['cimzettTipusok'][$i];
+ $cimzettNev = constant('_CIMZETT_'.nagybetus($cimzettTipus));
+ echo '<option value="'.$cimzettTipus.'">'.$cimzettNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</p>';
+
+ echo '<label for="txt">'._MEGJEGYZES.'</label><br /><textarea name="megjegyzes" id="megjegyzes"></textarea>'."\n";
+
+ echo '<p><lable for="txt">'._KERDESEK_VALASZOK.'</lable>'."\n";
+ echo '<br /><textarea name="txt" id="txt"></textarea>'."\n";
+ echo '</p>';
+
+ echo '<input type="submit" value="OK" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putCimzettForm($ADAT) {
+
+ formBegin(array('class'=>'kerdoivCimzett'));
+
+ echo '<input type="hidden" name="action" value="kerdoivBetoltes2" />'."\n";
+ echo '<input type="hidden" name="kerdoivId" value="'.$ADAT['kerdoivId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettTipus" value="'.$ADAT['cimzettTipus'].'" />'."\n";
+
+ echo '<h2>'.$ADAT['cim'].' ('.$ADAT['kerdoivId'].')</h2>';
+
+ // Akit fel akarunk venni
+ echo '<div class="bal">';
+ echo '<label for="cimzett">'._TOVABBI_CIMZETTEK.': '.constant('_CIMZETT_'.nagybetus($ADAT['cimzettTipus'])).'</label><br />';
+ echo '<select name="cimzettId[]" id="cimzettId" multiple="multiple">'."\n";
+ // echo '<option value="0" selected="selected">'._OSSZES.'</option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettek']); $i++) {
+ if (!in_array($ADAT['cimzettek'][$i]['cimzettId'], $ADAT['kerdoivAdat']['cimzett'][ $ADAT['cimzettTipus'] ]))
+ echo '<option value="'.$ADAT['cimzettek'][$i]['cimzettId'].'">'
+ .$ADAT['cimzettek'][$i]['cimzettNev'].' ('.$ADAT['cimzettek'][$i]['cimzettId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+ echo '<div class="jobb">';
+ echo '<label for="torlendoCimzett">'._CIMZETT.': '.constant('_CIMZETT_'.nagybetus($ADAT['cimzettTipus'])).'</label><br />';
+ echo '<select name="torlendoCimzettId[]" id="torlendoCimzettId" multiple="multiple">'."\n";
+ //echo '<option value="0" selected="selected">'._OSSZES.'</option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettek']); $i++) {
+ if (in_array($ADAT['cimzettek'][$i]['cimzettId'], $ADAT['kerdoivAdat']['cimzett'][ $ADAT['cimzettTipus'] ]))
+ echo '<option value="'.$ADAT['cimzettek'][$i]['cimzettId'].'">'
+ .$ADAT['cimzettek'][$i]['cimzettNev'].' ('.$ADAT['cimzettek'][$i]['cimzettId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<input type="submit" value="OK" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml
new file mode 100644
index 00000000..cb6062d4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml
@@ -0,0 +1,102 @@
+<?php
+
+ function esemenyNevsor($ADAT) {
+
+ $DIS = (__MODOSITHAT)?'':' disabled="disabled" ';
+ formBegin(array('method'=>'post','action'=>'','class'=>'nevsor','id'=>'nevsorForm'));
+
+ echo '<input type="hidden" name="action" value="nevsorModositas" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ echo '<input type="hidden" name="postDiakId" value="semmi" id="postDiakId" />'."\n";
+
+ echo '<h2>Jelentkezők</h2>';
+
+ echo '<table id="kontener">'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._NEVSOR.' '; if (__MODOSITHAT) _inlineHelp(_SUGO_NEVSOR); echo '</th>';
+ if (__MODOSITHAT) {
+ echo '<th>'._OSZTALYOK.' '; _inlineHelp(_SUGO_OSZTALYOK); echo '</th>'."\n";
+ echo '<th>'._DIAKOK.' '; _inlineHelp(_SUGO_DIAKOK); echo '</th>'."\n";
+ }
+ echo '</tr>';
+ echo '<tr><td>';
+
+ echo '<table class="nevsor" id="nevsor">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2"></th>'."\n";
+ echo '<th colspan="2">'._NEV.'</th>'."\n";
+ echo '<th>'._JELENTKEZES.'</th>'."\n";
+ echo '<th colspan="2">'._JOVAHAGYAS.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>';
+
+ echo '<tbody>'."\n";
+ foreach ($ADAT['esemenyAdat']['diakok'] as $dAdat) {
+ $_osztalyJel = $ADAT['osztalyId2osztalyJel'][ $ADAT['diak2osztaly'][ $dAdat['diakId'] ]];
+
+ echo '<tr class="'.str_replace('.','',$_osztalyJel).'">'."\n";
+ echo '<td class="sorsz">'.(++$i).'.</td>'."\n";
+ echo '<td><span class="icon-remove-sign" title="'._DIAK_TOROL_E.' ('.$dAdat['diakNev'].')"><input type="hidden" name="diakId" value="'.$dAdat['diakId'].'" /></span></td>'."\n";
+ echo '<td class="nev">'.$dAdat['diakNev'].' ('.$dAdat['diakId'].')</td>'."\n";
+ echo '<td class="osztaly">'.$_osztalyJel.'</td>'."\n";
+ echo '<td class="jelDt">'.$dAdat['jelentkezesDt'].'</td>'."\n";
+ if ($dAdat['jovahagyasDt'] != '0000-00-00 00:00:00') {
+ echo '<td class="jovahagy" title="'._ELUTASIT.'"><span class="icon-ok-sign"></span></td>'."\n";
+ echo '<td class="jovDt">'.$dAdat['jovahagyasDt'].'</td>'."\n";
+ } else {
+ echo '<td class="jovahagy" title="'._JOVAHAGY.'"><span class="icon-minus-sign"></span></td>'."\n";
+ echo '<td class="jovDt"></td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ if (__MODOSITHAT === true) {
+ echo '<tfoot>'."\n";
+ echo '<tr id="submitRow">';
+ echo '<td colspan="6">'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoor>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ echo '</td>'."\n";
+
+ if (__MODOSITHAT) {
+ echo '<td id="osztalyok">';
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+ if (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds'])) {
+ echo '<input type="button" class="plusz" id="showO'.$oAdat['osztalyId'].'" value="'.$oAdat['osztalyJel'].' ('.$oAdat['osztalyId'].') &#10140;" /><br />';
+ }
+ }
+ echo '</td>';
+ }
+
+ if (__MODOSITHAT) {
+ echo '<td class="openable" id="oEmpty">';
+ echo '<select name="odiak" class="diakok" multiple="multiple">';
+ echo '</select>';
+ echo '</td>';
+ }
+ foreach ($ADAT['esemenyAdat']['osztalyIds'] as $osztalyId) {
+ echo '<td style="display: none;" class="openable" id="o'.$osztalyId.'">';
+ echo '<select name="odiak" class="diakok" id="od'.$osztalyId.'" multiple="multiple">';
+ foreach ($ADAT['diakok'][$osztalyId] as $dAdat) {
+ echo '<option value="'.$dAdat['diakId'].'">'.$dAdat['diakNev'].' ('.$dAdat['diakId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="button" class="add" value="&#8678;" />'."\n";
+ echo '</td>';
+ }
+ echo '</tr></table>';
+
+ formEnd();
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml
new file mode 100644
index 00000000..1169390a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml
@@ -0,0 +1,87 @@
+<?php
+
+ function putJelentkezesForm($ADAT) {
+
+ formBegin(array('method'=>'post', 'action'=>'', 'class'=>'esemeny'));
+
+ echo '<input type="hidden" name="action" value="jelentkezes" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr title="'._OSSZES_AKTUALIS.'">'."\n";
+ echo '<th colspan="2">'._JELENTKEZES.'</th>'."\n";
+ echo '<th colspan="2">'._ESEMENYNEV.'</th>'."\n";
+ echo '<th>'._KATEGORIA.'</th>'."\n";
+ echo '<th>'._LETSZAM.'</th>'."\n";
+ echo '<th>'._MINMAX.'</th>'."\n";
+ echo '<th>'._JOVAHAGYAS.'</th>'."\n";
+ echo '</tr>'."\n";
+
+ foreach ($ADAT['esemenyek'] as $eAdat) {
+ $valasztott = (is_array($ADAT['valasztottEsemenyek']) && in_array($eAdat['esemenyId'], $ADAT['valasztottEsemenyek']));
+ $jovahagyott = (is_array($ADAT['jovahagyottEsemenyek']) && in_array($eAdat['esemenyId'], $ADAT['jovahagyottEsemenyek']));
+ $aktualis = (strtotime($eAdat['jelentkezesTolDt']) <= time() && time() <= strtotime($eAdat['jelentkezesIgDt']));
+ $maxLetszam = (($eAdat['max'] != 0) && ($eAdat['letszam'] >= $eAdat['max']));
+ $minLetszam = $eAdat['min'] >= $eAdat['letszam'];
+ $jelentkezhet = (
+ $aktualis // határidőn belül vagyunk
+ && (($eAdat['max'] == 0) || ($eAdat['letszam'] < $eAdat['max'])) // van még hely
+ );
+ $leadhat = (
+ $aktualis // határidőn belül vagyunk
+ && $eAdat['min'] < $eAdat['letszam'] // nem túl kicsi a létszám
+ && !$jovahagyott // jóváhagyott eseményt már ne adjon le
+ );
+ $minmaxClass="minmax";
+ if ($valasztott) $trClass='valasztott';
+ else $trClass='jelentkezes';
+ if ($aktualis) {
+ $trClass .= ' aktualis';
+ $trStyle = '';
+ } else {
+ $trStyle = ' style="display: none;" ';
+ };
+ if ($minLetszam) $minmaxClass .= " min";
+ if ($maxLetszam) $minmaxClass .= " max";
+ echo '<tr class="'.$trClass.'"'.$trStyle.'>'."\n";
+ if ($valasztott) {
+ echo '<td></td>'."\n";
+ echo '<td class="gombKontener lead">';
+ if ($leadhat) {
+ echo '<input type="submit" class="lead" id="l'. $eAdat['esemenyId'].'" name="lead'.$eAdat['esemenyId'].'" value="'._LEAD.'" />';
+ } else {
+ echo '<input type="submit" class="lead" id="l'. $eAdat['esemenyId'].'" name="lead'.$eAdat['esemenyId'].'" value="'._LEAD.'" disabled="disabled" />';
+ }
+ echo '</td>'."\n";
+ } else {
+ echo '<td class="gombKontener felvesz">';
+ if ($jelentkezhet) {
+ echo '<input type="submit" class="felvesz" id="f'. $eAdat['esemenyId'].'" name="felvesz'.$eAdat['esemenyId'].'" value="'._FELVESZ.'" />';
+ } else {
+ echo '<input type="submit" class="felvesz" id="f'. $eAdat['esemenyId'].'" name="felvesz'.$eAdat['esemenyId'].'" value="'._FELVESZ.'" disabled="disabled" />';
+ }
+ echo '</td>'."\n";
+ echo '<td></td>'."\n";
+ }
+ echo '<td>'.$eAdat['esemenyRovidnev'].'</td>'."\n";
+ echo '<td>';
+ _inlineHelp($eAdat['esemenyNev']."\n\n".$eAdat['esemenyLeiras']);
+ echo '</td>'."\n";
+ echo '<td>'.$eAdat['esemenyKategoria'].'</td>'."\n";
+ echo '<td class="letszam">'.$eAdat['letszam'].'</td>'."\n";
+ echo '<td class="'.$minmaxClass.'">'.$eAdat['min'].'-'.$eAdat['max'].'</td>'."\n";
+
+ echo '<td>';
+ if ($jovahagyott) echo '<span class="icon-ok-sign"></span>';
+ else echo '<span class="icon-minus-sign"></span>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml
new file mode 100644
index 00000000..604b5c9c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml
@@ -0,0 +1,171 @@
+<?php
+
+ function esemenyForm($ADAT) {
+
+ $DIS = (__MODOSITHAT)?'':' disabled="disabled" ';
+ formBegin(array('action'=>'','method'=>'post','class'=>'esemeny'));
+
+ if ($ADAT['esemenyId'] == '') {
+ echo '<input type="hidden" name="action" value="ujEsemeny" />'."\n";
+ } else {
+ echo '<input type="hidden" name="action" value="esemenyModositas" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ }
+
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><label for="rovidnev">'._ROVIDNEV.'</label></th>';
+ echo '<td>'."\n";
+ echo '<input id="rovidnev" type="text" name="esemenyRovidnev" value="'.$ADAT['esemenyAdat']['esemenyRovidnev'].'" '.$DIS.'/>'."\n";
+ _inlineHelp(_SUGO_ROVIDNEV);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="nev">'._ESEMENYNEV.'</label></th>';
+ echo '<td>'."\n";
+ echo '<input id="nev" type="text" name="esemenyNev" value="'.$ADAT['esemenyAdat']['esemenyNev'].'" '.$DIS.'/>'."\n";
+ _inlineHelp(_SUGO_ESEMENYNEV);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<td colspan="2"><hr/>'."\n";
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<select id="kategoria" name="esemenyKategoria"'.$DIS.'>'."\n";
+ echo '<option value="">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;'._KATEGORIA.'&nbsp;&nbsp;&nbsp;&nbsp;- </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['esemenyKategoria'] => ' selected="selected" ');
+ foreach ($ADAT['esemenyKategoriak'] as $eKategoria) {
+ echo '<option value="'.$eKategoria.'"'.$SEL[$eKategoria].'>'.$eKategoria.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<label for="leiras"><strong>'._LEIRAS.'</strong></label>&nbsp;&nbsp;'."\n";
+ _inlineHelp(_SUGO_LEIRAS);
+ echo '<br/>';
+ echo '<textarea name="esemenyLeiras" id="leiras"'.$DIS.'>'.$ADAT['esemenyAdat']['esemenyLeiras'].'</textarea>'."\n";
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="tolDt">'._JELENTKEZES.'</label></th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="tolDt" name="jelentkezesTolDt" class="datetime" value="'.$ADAT['esemenyAdat']['jelentkezesTolDt'].'"'.$DIS.'/>
+ - <input type="text" id="igDt" name="jelentkezesIgDt" class="datetime" value="'.$ADAT['esemenyAdat']['jelentkezesIgDt'].'"'.$DIS.' />'."\n";
+ _inlineHelp(_SUGO_JELENTKEZES);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="min">'._LETSZAM_KORLAT.'</label></th>';
+ echo '<td>'."\n";
+ echo '<select name="min"'.$DIS.'>'."\n";
+ echo '<option value="0"> - </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['min'] => ' selected="selected" ');
+ for ($i=1; $i<501; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select> - '."\n";
+ $count = count($ADAT['esemenyAdat']['diakIds']);
+ echo '<select name="max"'.$DIS.'>'."\n";
+ echo '<option value="0"> - </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['max'] => ' selected="selected" ');
+ for ($i=1; $i<501; $i++) {
+ if ($count > $i) echo '<option value="'.$i.'"'.$SEL[$i].' disabled="disabled">'.$i.'</option>'."\n";
+ else echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ _inlineHelp(_SUGO_LETSZAM_KORLAT);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if ($ADAT['esemenyId'] != '') {
+
+ echo '<tr>';
+ echo '<td colspan="2"><hr/>'."\n";
+
+ echo '<div id="osztalyLista">'."\n";
+ echo '<strong>'._OSZTALYOK.'</strong>&nbsp;&nbsp'."\n";
+ _inlineHelp(_SUGO_OSZTALYOK);
+
+ echo '<ul>'."\n";
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+ if (__MODOSITHAT) {
+ echo '<li>';
+ echo '<label class="oJel" for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ $CHK = (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds']))?' checked="checked" ':'';
+ echo '<input type="checkbox" value="'.$oAdat['osztalyId'].'" name="esemenyOsztaly[]" id="osztaly'.$oAdat['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['kezdoTanev'].'/'.$oAdat['vegzoTanev'].'.'.$oAdat['jel'].' ('.$oAdat['leiras'].')</label>'."\n";
+ echo '</li>';
+ } elseif (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds'])) {
+ echo '<li>';
+ echo '<label class="oJel" for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ echo '<label for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['kezdoTanev'].'/'.$oAdat['vegzoTanev'].'.'.$oAdat['jel'].' ('.$oAdat['leiras'].')</label>'."\n";
+ echo '</li>';
+ }
+ }
+ echo '</ul>'."\n";
+ echo '<a href="'.href('index.php?page=naplo&sub=esemeny&f=esemenyDiak&esemenyId='.$ADAT['esemenyId']).'">'._ESEMENYJELENTKEZOK.'...</a>'."\n";
+ echo '</div>'."\n";
+
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="tanarok">'._TANAROK.'</label></th>'."\n";
+ echo '<td class="tanarok">'."\n";
+ echo '<div class="select"><select id="esemenyTanar" name="esemenyTanar[]" multiple="multiple"'.$DIS.'>'."\n";
+ foreach ($ADAT['tanarok'] as $tAdat) {
+ if (in_array($tAdat['tanarId'], $ADAT['esemenyAdat']['tanarIds']))
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>'."\n";
+ }
+ echo '</select></div>'."\n";
+
+ if (__MODOSITHAT) {
+ echo '<br />'."\n";
+ echo '<input type="button" id="plusz" value="+" />'."\n";
+ echo '<input type="button" id="minusz" value="&#8722;" />'."\n";
+ _inlineHelp(_SUGO_TANAROK);
+ echo '<div id="tanarLista" style="display: none" >'."\n";
+ echo '<span id="closeTanarLista">&times;</span>'."\n";
+ echo '<select id="tanarok" name="tanarok" multiple="multiple">'."\n";
+ foreach ($ADAT['tanarok'] as $tAdat) {
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="button" id="add" value="&#8678;" />'."\n";
+ echo '</div>'."\n";
+ }
+ echo '</td>'."\n";
+ echo '</tr>';
+ }
+
+ if (__MODOSITHAT) {
+ echo '<tr class="submit">'."\n";
+ echo '<td colspan="2" id="submitTd">'."\n";
+ echo '<input id="submitButton" type="submit" value="'._OK.'" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+ formEnd();
+
+ if ($ADAT['esemenyId'] != '' && __MODOSITHAT) {
+ formBegin(array('method'=>'post','action'=>'','class'=>'esemenyTorles'));
+ echo '<input type="hidden" name="action" value="esemenyTorles" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" class="confirm" title="'._ESEMENY_TOROL_E.'" />'."\n";
+ formEnd();
+ }
+ }
+/*
+ function esemenyLista($ADAT) {
+ echo '<p>Ez még csúny, tudom... :)</p>';
+ if (is_array($ADAT['esemenyek'])) {
+ echo '<ul id="esemenyLista">';
+ foreach ($ADAT['esemenyek'] as $eAdat) {
+ echo '<li>';
+ formBegin(array('method'=>'post','action'=>''));
+ echo '<input type="hidden" name="esemenyId" value="'.$eAdat['esemenyId'].'" />'."\n";
+ echo '<input type="submit" value="'.$eAdat['esemenyRovidnev'].' ('.$eAdat['esemenyId'].')" />'."\n";
+ formEnd();
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+
+ }
+*/
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml
new file mode 100644
index 00000000..2d357aa1
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml
@@ -0,0 +1,47 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=bizonyitvany'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="bizonyitvanyExport" />'."\n";
+
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['szemeszterAdat']['szemeszterId']))
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ $CHK = array('ods' => ' checked="checked" ');
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv"'.$CHK['csv'].' />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods"'.$CHK['ods'].' />'."\n";
+ echo '<label for="ods">'._ODS.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml"'.$CHK['xml'].' />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/diakExport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/diakExport.phtml
new file mode 100644
index 00000000..f3f8a8f2
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/diakExport.phtml
@@ -0,0 +1,153 @@
+<?php
+
+ function putDiakTabla($ADAT) {
+
+ echo '<div id="tableDiv">';
+
+ $i = 0;
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ if ($ADAT['types'][$attr] == 'int') $sortType[] = 'Number';
+ elseif ($ADAT['types'][$attr] == 'date') $sortType[] = 'Date';
+ else $sortType[] = 'String';
+ if (in_array($attr, array('szuletesiHely','lakhelyHelyseg','nem','lakohelyiJellemzo'))) $selIndex[] = $i;
+ $i++;
+ }
+echo '<script type="text/javascript">'."var cellTypes = ['".implode("','", $sortType)."']; selIndex = [".implode(',', $selIndex)."];".'</script>';
+ echo '<table class="diak" id="diakTabla" class="filterable">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<th>';
+ echo $attrNev;
+ echo '</th>';
+ }
+ echo '<th></th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<th>';
+ echo $attrNev;
+ echo '</th>';
+ }
+ echo '<th></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ foreach ($ADAT['export'] as $i => $dAdat) {
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<td>';
+ echo $dAdat[$attr];
+ echo '</td>'."\n";
+ }
+ echo '<td>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diak')));
+ echo '<input type="hidden" name="diakId" value="'.$dAdat['diakId'].'" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function putDiakExportForm($ADAT) {
+
+ global $skin, $exportFormatum;
+
+ if ($skin != 'ajax') formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=diakExport'), 'class'=>"diak hideShowContainer", 'id'=>"exportOptions"));
+
+ echo '<input type="hidden" name="action" value="diakExport" />'."\n";
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['dt'])) echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+
+ echo '<div id="submitForm">';
+ echo '<input type="button" value="'._BEALLITASOK.'" class="onClickHideShow" />';
+
+ echo '<input type="submit" name="html" value="'._HTML.'" id="htmml" />'."\n";
+ echo '<input type="submit" name="csv" value="'._CSV.'" id="csv" />'."\n";
+ echo '<input type="submit" name="xml" value="'._XML.'" id="xml" />'."\n";
+
+ echo '</div>';
+
+
+ if (is_array($ADAT['export']) && count($ADAT['export']) > 0) {
+ echo '<fieldset class="openable" style="display: none;"><legend>'._EXPORT.'</legend>'."\n";
+ } else {
+ echo '<fieldset class="openable"><legend>'._EXPORT.'</legend>'."\n";
+ }
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'._MEGJELENITENDO_MEZOK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>';
+ echo '<select multiple="multiple" name="szabad" id="szabad">'."\n";
+ foreach ($ADAT['fields'] as $attr => $attrNev) {
+ if (!isset($ADAT['mezok'][$attr])) {
+ echo '<option value="'.$attr.'">'.$attrNev.'</option>';
+ }
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="button" id="valaszt" value="&rarr;" />';
+ echo '<br />';
+ echo '<input type="button" id="torol" value="&larr;" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select multiple="multiple" name="mezok[]" id="kivalasztott">'."\n";
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<option value="'.$attr.'">'.$attrNev.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td colspan="3" align="center">';
+ foreach ($exportFormatum as $formatum => $mezok) {
+ $format = ekezettelen($formatum);
+ echo '<input type="button" name="'.$format.'" value="'.$formatum.'" class="onClickMezoSelect" />'."\n";
+ echo '<input type="hidden" name="'.$format.'Lista" id="'.$format.'Lista" value="'.implode(',', $mezok).'" />'."\n";
+ }
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+
+ if ($skin != 'ajax') formEnd();
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/kreta.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/kreta.phtml
new file mode 100644
index 00000000..cea5556e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/kreta.phtml
@@ -0,0 +1,138 @@
+<?php
+
+ function putKretaTanarExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=kreta'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="kretaTanarExport" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+
+ echo '<fieldset><legend>Kréta - Tanár adatbázis</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>Tanár adatok</th>'."\n";
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'Elsődleges, hogy a KIR, KRÉTA és MaYoR rendszerekben a tanár neveket és születési dátumokat szinkronizálni kell!';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '<tr><th>A MaYoR tanár adatainak letöltése (export)</th></tr>';
+
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+ }
+
+
+ function putKretaTankorTanarExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=kreta'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tankorTanarExport" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+
+ echo '<fieldset><legend>ETTF - Előzetes Tantárgyfelosztás</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>Előzetes Tantárgyfelosztás (ETTF) - egyszerű formátum</th>'."\n";
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'Az előzetes tantárgyfelosztás a kiválasztott formátumú file letöltése és megnyitása után <span style="color:green; font-weight:bold;">.xlsx</span> formában elmentve közvetlenül importálható a központi Kréta rendszerbe.';
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'A tankörtípusokban megkülönböztetjük a csak óratervi - képzési hálóban szereplő tanköröket.';
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<td>';
+ echo '<ul>';
+ $_CHK1 = ($ADAT['csakOratervi']==false) ? 'checked="checked" ': '';
+ $_CHK2 = ($ADAT['csakOratervi']==true) ? 'checked="checked" ': '';
+ echo '<li><input type="radio" id="mindenTankor_radio" name="csakOratervi" value="false" '.$_CHK1.'/> <label for="mindenTankor_radio">minden tankört</label></li>';
+ echo '<li><input type="radio" id="csakOratervi_radio" name="csakOratervi" value="true" '.$_CHK2.'/> <label for="csakOratervi_radio">csak óratervinek jelölt tanköröket</label></li>';
+ echo '</ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+
+ /* ha ki szeretnénk írni a bontasOk === false okat
+ echo '<table align="center">';
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $D = $ADAT['tankorok'][$i];
+ if ($ADAT['tankorok'][$i]['bontasOk']===false) {
+ //dump($ADAT['tankorok'][$i]);
+ echo '<tr>';
+ echo '<td>'.$D['tankorNev'].' ('.$D['tankorId'].')</td>';
+ echo '<td>'.$D['hetiOraszam'].'</td>';
+ echo '<td>'.implode(',',$D['tanarIds']).'</td>';
+ echo '<td>';
+ dump($D['tervezettOraszamok']);
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+ */
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/sulix.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/sulix.phtml
new file mode 100644
index 00000000..7979153d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/sulix.phtml
@@ -0,0 +1,43 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ echo '<div class="txt">';
+ echo '<div>';
+ echo '<p>A MaYoR és a SuliXerver legújabb verziói képesek együttműködésre, aminek számos előnye van a felhasználók és az
+üzemeltetők számára. Az előnyök közé tartozik például, hogy az együttműködés során megoldottuk a közös felhasználókezelést, az
+egypontos bejelentkezést, az automatikus adatmentést, automatikus rendszerfrissítést. Ezen kívül a rendszer rendkívül kompakt módon,
+egyetlen szerverről is működhet.</p>';
+ echo '<p>A két rendszer együttműködésének előnyeit egyaránt kihasználhatják azok, akik a MaYoR mellett már használnak
+SuliXervert, de azok is, akik még nem, és most fogják telepíteni.</p>';
+ echo '<p>Az együttműködésnek két alapvető üzemmódja van:</p>';
+ echo '<ul>';
+ echo '<li>Teljes áttérés SuliXerverre: ebben az esetben az új SuliXerveren futó MaYoR alapú SuliX Napló fogja ezentúl az
+összes MaYoR funkciót ellátni. Ennek a megoldásnak az az előnye, hogy egy szerveren települ és üzemeltethető a komplett megoldás,
+valamint a közös adatbázisnak köszönhetően az adatok mindig egységesek és konzisztensek maradnak. Az adatok migrálásához csupán egy
+pendrive-ra van szükség, amelyre egy kattintással lementhetjük a meglévő MaYoR adatokat és a SuliXerveren egy kattintással beolvashatjuk
+azokat.</li>';
+ echo '<li>Integráció SuliXerverrel: ennél a módszernél a jelenlegi MaYoR szerver megmarad, de közös felhasználói adatbázist
+és autentikációt fog használni a SuliXerverrel. Ennek előnye, hogy külön szerveren is futhat a Napló, azonban néhány kényelmi
+funkció nem lesz elérhető, pl. egypontos belépés, integrált mentés, adatok változtatása esetén azok automatikus átvezetése a másik
+rendszerbe.</li>';
+ echo '</ul>';
+ echo '<p>Mindkét esetben kattintson a "Felhasználói azonosítók exportálása" gombra a lap alján, majd a keletkezett fájlt
+másolja egy hordozható adattárolóra. Amennyiben nincs futó SuliXervere, telepítsen egyet a <a href="http://www.sulix.hu">www.sulix.hu</a>
+oldalon leírtak alapján.
+A SuliXerveren a szokványos beállításokon kívül még néhány beállítást meg kell tennie ahhoz, hogy a mentett adatokat be tudja olvasni.
+Ehhez lépjen be a SuliXerverre adminisztrátorként, majd kattintson a Segédeszközök -> SuliXerver Napló beállítások fülre, válassza ki
+az "Integrált napló használata" illetve a "Külső napló használata" lehetőséget és kövesse az ott leírtakat.</p>';
+
+ echo '</div>';
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'export'));
+ echo '<input type="hidden" name="action" value="sulixExport" />'."\n";
+ echo '<input type="submit" value="'._EXPORT.'" />'."\n";
+ formEnd();
+
+ echo '</div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml
new file mode 100644
index 00000000..dc1e2565
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml
@@ -0,0 +1,46 @@
+<?php
+
+ function putTanarOsztalyOraszamForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=tanarOsztalyOraszam'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tanarOsztalyOraszam" />'."\n";
+
+ echo '<fieldset><legend>Tanár-osztály óraszám</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr><th>A MaYoR tanár-osztály óraszám mátrixának letöltése (export)</th></tr>';
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml
new file mode 100644
index 00000000..fa495fad
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml
@@ -0,0 +1,41 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=tantargyFelosztas'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tantargyFelosztasExport" />'."\n";
+
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">'._ODS.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml
new file mode 100644
index 00000000..d8249691
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml
@@ -0,0 +1,63 @@
+<?php
+
+ function putElmaradas($Elmaradas, $Tanarok) {
+
+ echo '<table class="elmaradas" cellspacing="1">';
+ echo '<thead><tr>';
+ echo '<th colspan="2">'._TANAR.'</th>';
+ echo '<th>'._LEZART.'</th>';
+ echo '<th>'._BEIRANDO.'</th>';
+ echo '</tr></thead><tfoot><tr><td colspan="4">'._HATARIDO.':'._HALADASI_HATARIDO.'; '._MAIDATUM.': '.date('Y-m-d').'</td></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($Elmaradas['lezart']); $i++) {
+
+ echo '<tr>';
+ $tanarId = $Elmaradas['lezart'][$i]['ki'];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+ $Tanarok[$tanarId]['volt'] = true;
+ $lezartDb = $Elmaradas['lezart'][$i]['db'];
+ $beirandoDb = $Elmaradas['beirando'][$tanarId]['db'];
+ echo '<th>';
+ echo ($i+1).'. ';
+ echo '</th>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">';
+ echo $tanarNev;
+ echo '</th>';
+ echo '<td>';
+ echo $lezartDb;
+ echo '</td>';
+ echo '<td>';
+ echo $beirandoDb;
+ echo '</td>';
+ echo '</tr>';
+ }
+
+ foreach ($Elmaradas['beirando'] as $tanarId => $beirandoAdat) {
+ if (!$Tanarok[$tanarId]['volt']) {
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+ $lezartDb = '';
+ $beirandoDb = $Elmaradas['beirando'][$tanarId]['db'];
+ $Tanarok[$tanarId]['volt'] = true;
+ echo '<tr class="beirando">';
+ echo '<th>';
+ echo (++$i).'.';
+ echo '</th>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">';
+ echo $tanarNev;
+ echo '</th>';
+ echo '<td>';
+ echo $lezartDb;
+ echo '</td>';
+ echo '<td>';
+ echo $beirandoDb;
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ // Ha nagyon akarjuk, akkor kirakhatjuk a többi nevet is - de nem akarjuk...
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml
new file mode 100644
index 00000000..7d9adb23
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml
@@ -0,0 +1,284 @@
+<?php
+
+ function putElszamolas($ADAT) {
+
+ if (!is_array($ADAT['napok']) || count($ADAT['napok'])==0) return false;
+
+ $napszam = ($ADAT['napok'][1]['tanítási nap']+$ADAT['napok'][1]['speciális tanítási nap']);
+ $napTipus = array('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap','tanítási szünet');
+ $T = array(
+ 'lekötött' => array('normál','normál máskor','helyettesítés'),
+ 'fennmaradó' => array('helyettesítés','felügyelet','előírt egyéb','egyéb') // 'összevonás'
+ );
+
+ $Munkaido = array_keys($T);
+ $SumTipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb');
+
+ /* Munkaterv */
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th>'._MUNKATERV.'</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<th>'.$tipus.'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '</thead><tfoot></tfoot>';
+ echo '<tbody>';
+ foreach ($ADAT['napok'] as $munkatervId => $mAdat) {
+ echo '<tr><th>'.$ADAT['munkaterv'][$munkatervId]['munkatervNev'].' ('.$munkatervId.')</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<td>'.$mAdat[$tipus].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+
+ /* Elszámolás, órastatisztika */
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1" >'."\n";
+ echo '<thead><tr>';
+
+ echo '<th rowspan="3">'._TANAR.'</th>';
+ echo '<th rowspan="1" colspan="7">'._KOTOTT_MUNKAIDO.'</th>';
+ echo '<th colspan="3">Σ</th>';
+ echo '<th rowspan="2" colspan="4">';
+ echo _ELOIRT_HETI_MUNKAORA.' '.$napszam.' '._NAPRA_VETITVE;
+ echo '<div style="border: solid 1px #ddd; width:174px; height:8px; background-color: #aaa;"><span id="munkaoraBar" style="display:block; width:0%;height:8px;"></span></div>';
+ echo '</th>';
+ echo '<th colspan="2" rowspan="2">'._HETI_ORASZAM.'</th>';
+
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">lekötött</th>';
+ //echo '<th colspan="1">lekötött+fennmaradó</th>';
+ echo '<th colspan="4">fennmaradó</th>';
+// echo '<th colspan="1">nem számolt</th>'; // összevonás
+ echo '<th rowspan="2">lekötött</th>';
+ echo '<th rowspan="2">fennmaradó</th>';
+ echo '<th rowspan="2">+</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<th class="'.str_replace(' ','_',ekezettelen($Tipus[$i])).'">'.$Tipus[$i].'</th>';
+ }
+ }
+ echo '<th class="e1">55%</th>';
+ echo '<th class="e2">65%</th>';
+ echo '<th class="e3">80%</th>';
+ echo '<th class="e4">100%</th>';
+ echo '<th>'._TANTARGYFELOSZTASBOL.'</th><th>'._ORARENDBOL.'</th>';
+
+ echo '</tr></thead>'."\n";
+
+ echo '<tbody>';
+ for ($t = 0; $t < count($ADAT['tanarok']); $t++) {
+ $_O = $ADAT['tanarok'][$t];
+ $tanarId = $ADAT['tanarok'][$t]['tanarId'];
+ if (!__VEZETOSEG && !__NAPLOADMIN && $tanarId!=__USERTANARID) continue;
+ $tanarNev = $ADAT['tanarok'][$t]['tanarNev'];
+
+ // Elavult
+ //$tanarHetiMunkaora = $ADAT['tanarok'][$t]['hetiMunkaora'];
+ //$_THM = ($tanarHetiMunkaora / 5) * $napszam ; // Tanári Heti Munkaóra a vizsgált időszakra vetítve (tanítási napok
+
+ $_THM = $_heti = ($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']):40;
+ $_kotottMax= ($_O['hetiKotottMaxOraszam']>0) ? ($_O['hetiKotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.8):32);
+ $_lekotottMax = ($_O['hetiLekotottMaxOraszam']>0) ? ($_O['hetiLekotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.65):26);
+ $_lekotottMin = ($_O['hetiLekotottMinOraszam']>0) ? ($_O['hetiLekotottMinOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.55):22);
+
+ $_korrekciosSzam = $napszam/5; // HETI öt nap
+
+ $sum = 0;
+ for ($i=0; $i<count($SumTipus); $i++) {
+ $sum += intval($ADAT[$tanarId][$SumTipus[$i]]);
+ }
+ if ($sum<=($_lekotottMin*$_korrekciosSzam)) $_style = ' class="e1" ';
+ elseif ($sum<=($_lekotottMax*$_korrekciosSzam)) $_style=' class="e2" ';
+ elseif ($sum<=($_kotottMax*$_korrekciosSzam)) $_style=' class="e3" ';
+ else $_style = ' class="e4" ';
+
+ $SUM = array();
+ echo '<tr data-percent="'.((100*$sum/($_heti*$_korrekciosSzam))).'" '.$_style.'>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">'.$tanarNev.'</th>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<td class="'.ekezettelen($Tipus[$i]).' '.ekezettelen($_munkaido).'">';
+ if ($Tipus[$i]=='helyettesítés') {
+ echo $_c = ($ADAT['detailed'][$tanarId][$Tipus[$i]][$_munkaido]);
+ } elseif (in_array($Tipus[$i],array('előírt egyéb','egyéb'))) {
+ if ($Tipus[$i]=='előírt egyéb') echo $_c = ($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]['egyéb'][$_munkaido]['órarend']);
+ else echo $_c = ($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]['egyéb'][$_munkaido]['plusz']);
+ } else {
+ echo $_c = $ADAT[$tanarId][$Tipus[$i]];
+ }
+ echo '</td>';
+ $SUM[$_munkaido] += $_c;
+ }
+ }
+ echo '<th class="sum lekotott">'.$SUM['lekötött'].'</th>';
+ echo '<th class="sum fennmarado">'.$SUM['fennmaradó'].'</th>';
+ echo '<th class="sumsum">'.($SUM['lekötött']+$SUM['fennmaradó']).'</th>';
+
+ echo '<td '.$_style.'>'.($_lekotottMin*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_lekotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_kotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_heti*$_korrekciosSzam).'</th>';
+
+ echo '<td>'.number_format($_O['hetiKotelezoOraszam'],1).'</td>';
+ echo '<td>'.number_format($ADAT[$tanarId]['oraszam'],1).'</td>';
+ echo '</tr>'."\n";
+
+ }
+
+ echo '</tbody></table>'."\n";
+
+ }
+
+
+/*
+ function putElszamolas_old($ADAT) {
+
+ if (!is_array($ADAT['napok']) || count($ADAT['napok'])==0) return false;
+
+ $napszam = ($ADAT['napok'][1]['tanítási nap']+$ADAT['napok'][1]['speciális tanítási nap']);
+ $napTipus = array('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap','tanítási szünet');
+ $T = array(
+ 'lekötött' => array('normál','normál máskor','helyettesítés'),
+ 'fennmaradó' => array('helyettesítés','felügyelet','egyéb') // 'összevonás'
+ );
+ $Munkaido = array('lekötött','fennmaradó');
+ $Tipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb'); // 'összevonás'
+ $SumTipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb');
+
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th>'._MUNKATERV.'</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<th>'.$tipus.'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '</thead><tfoot></tfoot>';
+ echo '<tbody>';
+ foreach ($ADAT['napok'] as $munkatervId => $mAdat) {
+ echo '<tr><th>'.$ADAT['munkaterv'][$munkatervId]['munkatervNev'].' ('.$munkatervId.')</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<td>'.$mAdat[$tipus].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1" >'."\n";
+ echo '<thead><tr>';
+
+ echo '<th rowspan="3">'._TANAR.'</th>';
+ echo '<th rowspan="1" colspan="'.(count($Tipus)+1).'">'._KOTOTT_MUNKAIDO.'</th>';
+ echo '<th colspan="3">Σ</th>';
+
+ echo '<th rowspan="2" colspan="4">'._ELOIRT_HETI_MUNKAORA.' '.$napszam.' '._NAPRA_VETITVE.'</th>';
+ echo '<th rowspan="3">'._HETI_ORASZAM.'</th>';
+
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">lekötött</th>';
+ //echo '<th colspan="1">lekötött+fennmaradó</th>';
+ echo '<th colspan="3">fennmaradó</th>';
+// echo '<th colspan="1">nem számolt</th>';
+ echo '<th rowspan="2">lekötött</th>';
+ echo '<th rowspan="2">fennmaradó</th>';
+ echo '<th rowspan="2">+</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<th>'.$Tipus[$i].'</th>';
+ }
+ }
+ echo '<th>55%</th>';
+ echo '<th>65%</th>';
+ echo '<th>80%</th>';
+ echo '<th>100%</th>';
+
+ echo '</tr></thead>'."\n";
+
+ echo '<tbody>';
+ for ($t = 0; $t < count($ADAT['tanarok']); $t++) {
+ $_O = $ADAT['tanarok'][$t];
+
+ $tanarId = $ADAT['tanarok'][$t]['tanarId'];
+ if (!__VEZETOSEG && !__NAPLOADMIN && $tanarId!=__USERTANARID) continue;
+ $tanarNev = $ADAT['tanarok'][$t]['tanarNev'];
+
+ // Elavult
+ //$tanarHetiMunkaora = $ADAT['tanarok'][$t]['hetiMunkaora'];
+ //$_THM = ($tanarHetiMunkaora / 5) * $napszam ; // Tanári Heti Munkaóra a vizsgált időszakra vetítve (tanítási napok
+
+ $_THM = $_heti = ($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']):40;
+ $_kotottMax= ($_O['hetiKotottMaxOraszam']>0) ? ($_O['hetiKotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.8):32);
+ $_lekotottMax = ($_O['hetiLekotottMaxOraszam']>0) ? ($_O['hetiLekotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.65):26);
+ $_lekotottMin = ($_O['hetiLekotottMinOraszam']>0) ? ($_O['hetiLekotottMinOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.55):22);
+
+ $_korrekciosSzam = $napszam/5; // HETI öt nap
+
+ $sum = 0;
+ $SUM = array();
+ echo '<tr>';
+ echo '<th><a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tanarId='.$tanarId).'">'.$tanarNev.'</a></th>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<td class="'.ekezettelen($Tipus[$i]).' '.ekezettelen($_munkaido).'">';
+
+
+ echo '<span title="';
+ echo intval($ADAT['detailed'][$tanarId][$Tipus[$i]]['lekötött']).'+';
+ echo intval($ADAT['detailed'][$tanarId][$Tipus[$i]]['fennmaradó']).'=';
+ echo '">';
+ if ($Tipus[$i]=='helyettesítés') {
+ echo $_c = ($ADAT['detailed'][$tanarId][$Tipus[$i]][$_munkaido]);
+ } elseif ($Tipus[$i]=='egyéb') {
+ dump($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]);
+ } else {
+ echo $_c = $ADAT[$tanarId][$Tipus[$i]];
+ }
+ echo '</span>';//ezt mégsem így kéne
+ echo '</td>';
+ $SUM[$_munkaido] += $_c;
+ }
+ }
+ for ($i=0; $i<count($SumTipus); $i++) {
+ $sum += intval($ADAT[$tanarId][$SumTipus[$i]]);
+ }
+ echo '<th class="sum lekotott">'.$SUM['lekötött'].'</th>';
+ echo '<th class="sum fennmarado">'.$SUM['fennmaradó'].'</th>';
+ echo '<th class="sumsum">'.($SUM['lekötött']+$SUM['fennmaradó']).'</th>';
+
+
+ if ($_THM>0) $eff = @ceil(100*$sum/$_THM);
+ else $eff = 100;
+
+ if ($eff<=55) $_style = ' class="e1" ';
+ elseif ($eff<=65) $_style = ' class="e2" ';
+ elseif ($eff<=80) $_style = ' class="e3" ';
+ else $_style = ' class="e4" ';
+ //echo '<td '.$_style.'>'.$_THM*0.55.'</td>';
+ //echo '<td '.$_style.'>'.$_THM*0.65.'</td>';
+ //echo '<td '.$_style.'>'.$_THM*0.80.'</td>';
+ //echo '<td '.$_style.' title="'.$ADAT['tanarok'][$t]['hetiMunkaora'].'" >'.$_THM.'</th>';
+ echo '<td '.$_style.'>'.($_lekotottMin*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_lekotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_kotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_heti*$_korrekciosSzam).'</th>';
+
+ echo '<td>'.number_format($ADAT[$tanarId]['oraszam'],1).'</td>';
+
+ echo '</tr>'."\n";
+
+ }
+
+ echo '</tbody></table>'."\n";
+
+ }
+*/
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..11c42ede
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,676 @@
+<?php
+ global $SZLO;
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV,$SZLO;
+ // kompatibilitás miatt -- átnevezhetők
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ //..
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+ $teremId = $ADAT['teremId'];
+
+ if ($ADAT['title']=='') return;
+
+ if ($tankorId!='') $AKTIV_TH['tankor'] = true;
+
+ $FORM = array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>'haladasiOrabeiras', 'class'=>'onChangeRequest');
+ formBegin($FORM);
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="teremId" value="'.$teremId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="haladasiNaploBeiras" />'."\n";
+ if ($tankorId != '') echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+
+ echo '<table class="haladasiBejegyzesek" align="center" cellpadding="1" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th>';
+ if ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']>0) {
+ echo '<span class="icon-time"></span>';
+ echo ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']);
+ }
+ echo '</th>';
+ echo '<th colspan="7" class="fejlec8">';
+ if ($tanarId!='') {
+ echo '<span class="tanarNev" data-tanarid="'.$tanarId.'">'.$title.'</span>';
+ if ($ADAT['csakUres']==true) {
+ $_CHK = ' checked="checked" ';
+ $_ACTIVE = ' class="on" ';
+ $AKTIV_TH['tananyag'] = true;
+ }
+ echo ' <label for="csakUres" '.$_ACTIVE.'><span class="icon-bullhorn"></span></label>';
+ echo '<input type="checkbox" id="csakUres" name="csakUres" value="1" class="onChangeSubmit" '.$_CHK.' style="display:none;" />';
+ $AKTIV_TH['tanar'] = true;
+ } else {
+ echo $title;
+ }
+ echo '</th></tr>'."\n";
+/*
+ echo '<tr>';
+ echo '<th style="width:30px;">';
+ // ENTER esetén az első submit érvényes - ne a dátum gomb legyen
+ echo '<input type="submit" value="" class="rejtettGomb DOA" style="display:none;" />'."\n"; //⨁⍟☉
+ echo _ORA;
+ //echo '<input type="button" id="rejtMutat" name="orderInvert" value="'._ORA.' ⨁" class="rejtettGomb" tabindex="10" />'."\n";
+ //if ($order=='DESC') echo '<img src="skin/classic/module-naplo/img/fel.gif" alt="^" />'."\n";
+ //else echo '<img src="skin/classic/module-naplo/img/le.gif" alt="v" />'."\n";
+ echo '</th>';
+ echo '<th colspan="3">';
+ echo _TANKOR;
+ if ($AKTIV_TH['tankor']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th>';
+ echo '<th>';
+ echo _TANAR;
+ if ($AKTIV_TH['tanar']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th><th>'.'</th>';
+ echo '<th style="width:45%">';
+ echo _TANANYAG;
+ if ($AKTIV_TH['tananyag']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th>';
+ echo '<th style="width:64px;">';
+ //if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz1" value="<<" tabindex="7" />';
+ //if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz1" value=">>" tabindex="8" />';
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<button class="gomb" type="submit" name="lapoz1" value="prevWeek" tabindex="7"><span class="icon-chevron-left"></span></button>';
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<button class="gomb" type="submit" name="lapoz1" value="nextWeek" tabindex="8"><span class="icon-chevron-right"></span></button>';
+ echo ' </th></tr>'."\n";
+*/
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th>';
+ if ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']>0) {
+ echo '<span class="icon-time"></span>';
+ echo ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']);
+ }
+ echo '</th>';
+ echo '<th colspan="7">';
+ // if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<button class="gomb" type="submit" name="lapoz1" value="prevWeek" tabindex="7"><span class="icon-chevron-left"></span></button>';
+
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+ // if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<button class="gomb" type="submit" name="lapoz1" value="nextWeek" tabindex="8"><span class="icon-chevron-right"></span></button>';
+
+ echo '</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ // -------------------------------
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ if ($order == 'ASC') {
+
+ for ($time = $fromTime; $time <= $toTime; $time = strtotime('1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ } else {
+
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ }
+ // ---------------------------------
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+
+ function putNap($dt, $dNap, $napInfos, $doga, $napInfo2) {
+
+ global $ADAT;
+ global $aHetNapjai;
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ $tipus = $orarendiHet = $megjegyzes = array();
+ if (is_array($napInfos)) foreach ($napInfos as $ni) {
+ if (!in_array($ni['tipus'], $tipus)) $tipus[] = $ni['tipus'];
+ if ($ni['orarendiHet'] != 0 && !in_array($ni['orarendiHet'], $orarendiHet)) $orarendiHet[] = $ni['orarendiHet'];
+ if ($ni['megjegyzes'] != '' && !in_array($ni['megjegyzes'], $megjegyzes)) $megjegyzes[] = $ni['megjegyzes'];
+ }
+ $tanitasiNap = false;
+ if (in_array('tanítási nap', $tipus) || in_array('speciális tanítási nap', $tipus)) {
+ if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+ $tanitasiNap = true;
+ } elseif (in_array('tanítás nélküli munkanap', $tipus)) {
+ echo '<tbody class="tanitasNelkul">'."\n";
+ } elseif (in_array('szorgalmi időszakon kívüli munkanap', $tipus)) {
+ echo '<tbody class="szorgalmiIdoszakonKivul">'."\n";
+ } else {
+ echo '<tbody class="szunet">'."\n";
+ }
+ echo '<tr>';
+ echo '<th class="nap">';
+ if (__PLUSZBEIRHAT===true) echo '<div class="icon-plus-sign rejtMutat"></div>';
+ echo '</th>'."\n";
+ // Az első cella a dátum/nap
+ echo '<th colspan="7" class="nap">';
+ echo str_replace('-','.',$dt) .'. ';
+ echo '<span class="napNev">'.$aHetNapjai[(date('w',$time)+6)%7].'</span>';
+ if ($napInfo2['napszam']!='' || $napInfo['orarendiHet'] != 0) {
+ echo ' (';
+ // if ($napInfo2['napszam']!='') {
+ if ($tanitasiNap) {
+ echo $napInfo2['napszam'] . '. ' . _TANITASI_NAP;
+ if ($napInfo['orarendiHet'] != 0) echo '/';
+ }
+ // if ($napInfo['orarendiHet'] != 0) echo $napInfo['orarendiHet'] . '. '. _HET;
+ if (count($orarendiHet) > 0) echo ' - '.implode('./',$orarendiHet).'. '._HET;
+ // if ($napInfo['megjegyzes'] != '') echo ' - '.$napInfo['megjegyzes'];
+ if (count($megjegyzes) > 0) echo ' - '.implode('/', $megjegyzes);
+ echo ')';
+ } else {
+ echo '<br/>'.implode(' ',$tipus);
+ }
+ echo '</th>';
+ echo '</tr>';
+ putHaladasiDolgozat($dt,$doga);
+
+ $o=0; // MINORA
+ if ($count > 0) {
+ for ($i=0; $i<$count; $i++) {
+ if (__PLUSZBEIRHAT===true && intval($dNap[$i]['ora'])>=$o) {
+ while ($o < intval($dNap[$i]['ora'])) {
+// if (__PLUSZBEIRHAT===true) {
+ putUjOra(array('dt'=>$dt, 'ora'=>$o++));
+// }
+ }
+ }
+ if ($dNap[$i]['ki']!=$ADAT['tanarId'] && __PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$o, 'class'));
+ putOra($dNap[$i]);
+ $o=intval($dNap[$i]['ora'])+1;
+ } // órák kiírása
+ for($j=intval($dNap[$i-1]['ora'])+1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$j));
+ }
+ } else {
+ echo '<tr><th colspan="8" class="nincsOra">'._NINCS_ORAJA.'</th></tr>';
+// if ($tanitasiNap && strtotime(date('Y-m-d'))>=strtotime($dt)) {
+// if (
+// (strtotime(date('Y-m-d'))>=strtotime($dt)
+// || ((__NAPLOADMIN===true || __VEZETOSEG===true))
+// )) {
+ for($j=1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$j));
+ }
+
+// }
+ }
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ if ($order == 'DESC') putTankorOra($dNap[$count-$i-1]);
+ else putTankorOra($dNap[$i]);
+ } // órák kiírása
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<tr>';
+ echo '<td colspan="8" class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+ echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+ echo '</a>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ }
+
+ function putUjOra($dOra) {
+
+ global $ADAT; // --FIXME
+
+ if (__TANAR !==true && __VEZETOSEG!==true && __NAPLOADMIN !== true) return false;
+ if (__NAPLOADMIN ===true || __VEZETOSEG===true) {
+ $_eredet='órarend';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>strtotime("+1week")
+ || (strtotime(_ZARAS_HATARIDO)>strtotime($dOra['dt']))
+ // Ha már a haladási naplót írhatja, akkor a plusz órát is engedjük meg...
+ // || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) return false;
+ } else {
+ $_eredet='plusz';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>time()
+ || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) {
+ return false;
+ }
+ }
+
+ $_tipus='egyéb';
+
+ echo '<tr class="ujOra" style="display:none">';
+ echo '<th class="ora">';
+ echo $dOra['ora'].'.';
+ echo '</th>'."\n";
+ echo '<td class="t">';
+ echo '<select class="DOA" name="UJORA[]" style="width:90%">';
+ echo '<option value="">'._FELADAT_TIPUS.'</option>';
+ if (is_array($ADAT['feladatTipus'])) foreach($ADAT['feladatTipus'] as $feladatTipusId=>$_D) {
+ echo '<option value="'.$dOra['dt'].'_'.$dOra['ora'].'_'.$_tipus.'_'.$_D['feladatTipusId'].'">'.$_D['feladatTipusLeiras'].' ('.$_D['feladatTipusId'].')</option>';
+ }
+ echo '</select>';
+ //echo $ADAT['feladatTipus'][$dOra['feladatTipusId']]['feladatTipusLeiras'].' ('.$dOra['eredet'].')';
+ echo '<input type="submit" value="'._OK.'" class="gomb DOA" />';
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ echo '</td>';
+ echo '<td class="mg">';
+ echo '</td>'."\n";
+ // ----- Tanár(ok) -------------------------------
+ echo '<td class="t">';
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ echo '</td>'."\n";
+ // ----- Leírás ---------------------------------
+ echo '<td>'; // két lépcsőben
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+
+ }
+
+
+
+ function putOra($dOra) {
+
+ global $ADAT,$SZLO;
+ if ( $ADAT['tankorTipusok'][$dOra['tankorTipusId']]['jelleg']=='osztályfüggetlen' && ($ADAT['haladasiTipus']=='osztalyHaladasi' || $ADAT['haladasiTipus']=='diakHaladasi')) return false;
+ $modosithatoOra = modosithatoOra($dOra);
+// $torolhetoOra = torolhetoOra($dOra);
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ if ($dOra['tipus'] == 'összevonás') $tipus = 'Ö';
+ else $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ if ($dOra['tipus'] == 'egyéb') $tr_class = ' class="egyeb '.$dOra['eredet'].'"';
+ else $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+ $tr_id = (intval($dOra['oraId'])>0 ? ' id="ORAID_'.$dOra['oraId'].'"':'');
+
+ echo '<tr'.$tr_class.$tr_id.'>';
+
+ // ----- óra ----------------------------------
+ echo '<td class="ora oraAdat"'.' data-oraid="'.$dOra['oraId'].'">';
+ echo $dOra['ora'].'.';
+/* if ( __NAPLOADMIN===true) {
+ echo '<a style="display:inline" href="'.href('index.php?page=naplo&sub=haladasi&f=ora&oraId='.$dOra['oraId']).'" class="onClickUpdateWindow" title="'.$dOra['ora'].'. '._ORA.' '._BEALLITASAI.'">';
+ echo '≡'; //≡☰
+ echo '</a>';
+ }
+*/ if ( __NAPLOADMIN===true || __DIAK === true ) {
+// echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=tankor&tankorId='.$dOra['tankorId']).'"
+// class="onClickUpdateWindow tankorStat icon-graph" title="A tankör statisztikái">';
+// //echo ; //≡☰
+// echo '</a>';
+
+// echo '<span class="oraAdat icon-bullhorn" data-oraid="'.$dOra['oraId'].'"></span>';
+ }
+
+ if ($dOra['tolTime']!='')
+ echo '<div class="oraTime">'.substr($dOra['tolTime'],0,5).'–'.substr($dOra['igTime'],0,5).'</div>';
+
+ echo '</td>'."\n";
+
+ // ----- Tankör -------------------------------
+ echo '<td class="t tankorAdat" data-tankorid="'.$dOra['tankorId'].'">';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // FeladatTípus kezelése
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport'])>1
+ && $modosithatoOra
+ ) {
+
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ echo '<option value="'.$dOra['csoportId'].':'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ if ($__SEL == '') echo '<option value="'.$dOra['csoportId'].':'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ echo '</select>';
+ // ugyanakkor js-ből meg kellene változtatni a tankorId paramétert...
+ echo '<span style="display:inline" href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tankorId='.$dOra['tankorId']).'" title="'.$dOra['tankorNev'].' '._TANKOR_HALADASI.'">';
+ echo '☰'; //≡
+ echo '</span>';
+
+ } elseif ($dOra['tipus']=='egyéb') {
+ /*for ($t = 0; $t<count($ADAT['feladatTipus']); $t++) {
+ $_D = $ADAT['feladatTipus'][$t];
+ $_SEL = ($_D['feladatTipusId'] == $dOra['feladatTipusId']) ? ' selected="selected" ':'';
+ }*/
+ echo $ADAT['feladatTipus'][$dOra['feladatTipusId']]['feladatTipusLeiras'].' ('.$dOra['eredet'].')';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo '<span href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tankorId='.$dOra['tankorId']).'" class="tankorNev" data-tankorId = "'.$dOra['tankorId'].'" title="'.$dOra['tankorNev'].' '._TANKOR_HALADASI.'">';
+ echo $dOra['tankorNev'];
+ echo '</span>';
+ }
+ echo '<input type="hidden" name="tanmenetIdContainer[]" value="'.$ADAT['tankorTanmenet'][ $dOra['tankorId'] ].'" />'."\n";
+ echo '<input type="hidden" name="tankorIdContainer[]" value="'.$dOra['tankorId'].'" />'."\n";
+ // -------------------------------------------------------------------------
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ if ($dOra['tipus']=='egyéb' && (__VEZETOSEG===true || __NAPLOADMIN === true)) {
+ echo '<select name="TEREMVALT[]" class="teremvalt">';
+ echo '<option value="">'.$ADAT['terem'][$dOra['teremId']]['leiras'].'</option>';
+ for ($t=0; $t<count($ADAT['szabadTermek'][$dOra['dt']][$dOra['ora']]); $t++) {
+ $_T = $ADAT['szabadTermek'][$dOra['dt']][$dOra['ora']][$t];
+ echo '<option value="'.$dOra['oraId'].'_'.$_T.'" '.$_SEL.'>'.$ADAT['terem'][$_T]['leiras'].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo '<a style="display:inline" href="'.href('index.php?page=naplo&sub=orarend&f=orarend&teremId='.$dOra['teremId'].'&dt='.$dOra['dt']).'" class="onClickUpdateWindow" title="'.$dOra['teremId'].'">';
+ echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ echo '</a>';
+ }
+ echo '</td>';
+ echo '<td class="mg">';
+ echo $tipus;
+ if (isset($ADAT['oraLatogatasok'][$dOra['oraId']])) {
+ echo '<span class="latogatott" title="';
+ if (is_array($ADAT['oraLatogatasok'][$dOra['oraId']]['tanarNevek'])) echo implode(', ',$ADAT['oraLatogatasok'][$dOra['oraId']]['tanarNevek']);
+ echo '">L</span>';
+ }
+ echo '</td>'."\n";
+
+
+ // ----- Tanár(ok) -------------------------------
+ echo '<td class="t tanarNev" data-tanarid="'.$dOra['ki'].'">';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanar']) > 1 && in_array($dOra['tipus'],array('normál','normál máskor')) && $modosithatoOra) {
+ $_SEL = array($dOra['ki'] => 'selected="selected" ');
+ if ($dOra['ki']!=$tanarId) $_masTartja=true;
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t = 0; $t < count($dOra['tanar']); $t++) {
+ echo '<option value="'.$dOra['tanar'][$t]['tanarId'].'" '.$_SEL[$dOra['tanar'][$t]['tanarId']].'>';
+ echo $dOra['tanar'][$t]['tanarNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td class="mg">';
+ if ($dOra['tipus']!='egyéb') {
+ echo '<a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId='.$ADAT['tankorTanmenet'][ $dOra['tankorId'] ]).'" class="onClickUpdateWindow" title="'._TANMENET.'">';
+ echo $dOra['oraszam'];
+ echo '</a>';
+ } else { // itt kiírhatjuk a heti terhelését
+ //echo '<span style="color: purple;" title="a típusból ezen a héten összesen">eheti:'.($ADAT['oraTerheles'][$dOra['feladatTipusId']]['db']-$SZLO[$dOra['feladatTipusId']])."/".($ADAT['oraTerheles'][$dOra['feladatTipusId']]['db']).'</span>';
+ //echo '<span style="color: purple;" title="a típusból ezen a héten összesen">eheti:'.($SZLO['sum']-$SZLO['sum_c'])."/".($SZLO['sum']).'</span>';
+ $SZLO[$dOra['feladatTipusId']]++;
+ $SZLO['sum_c']++;
+ }
+ echo '</td>'."\n";
+
+ // ----- Leírás ---------------------------------
+ if ($modosithatoOra) {
+ echo '<td class="l">';
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<span class="INFO" id="B_'.($dOra['oraId']).'"></span>';
+ echo '<input type="submit" class="gomb DOA" value="'._OK.'" tabindex="" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<span class="INFO" id="B_'.($dOra['oraId']).'">✓</span>';
+ echo '<input type="submit" class="gomb DOA" value="'._OK.'" tabindex="" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ //echo '<span type="text" class="INFO" style="display:none;" id="B_'.($dOra['oraId']).'">√</span>';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td>'.$dOra['leiras'];
+ } else {
+ echo '<td class="nincsBeirva">'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ if ($dOra['tipus']=='egyéb') {
+ if ($modosithatoOra === true) {
+ echo '<div style="text-align: center;">';
+ echo '<input type="checkbox" class="torol" name="ORATOROL[]" value="'.$dOra['oraId'].'" />';
+ echo '<span class="oraTorol">'._TOROL.'</span>';
+ echo '</div>';
+ }
+ } else {
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ //2014? echo '<a href="'.$href.'" tabindex="200" class="onClickUpdateWindow">';
+ echo '<a href="'.$href.'" tabindex="200" class="h" >';
+ echo _HIANYZOK;
+ echo '</a>';
+ }
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ if ( // helyettesített kolléga írhasson be plusz órát (saját óráját helyettesítették, hogy ő felvételi dolgozatokat mutogathasson pl.)
+ __PLUSZBEIRHAT===true
+ && in_array($dOra['tipus'], array('helyettesítés','felügyelet'))
+ && $dOra['ki'] != $ADAT['tanarId']
+ )
+ putUjOra(array('dt'=>$dOra['dt'], 'ora'=>$dOra['ora']));
+
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+ $modosithatoOra = modosithatoOra($dOra);
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+// if (substr($dOra['tipus'],0,6) != 'normál') {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<tr'.$tr_class.'>';
+ // ----- óra ----------------------------------
+ echo '<td class="ora">';
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[(date('w',strtotime($dOra['dt']))+6)%7].' ';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+
+ // ----- Tankör -------------------------------
+ echo '<td>';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport']) > 1
+ && $modosithatoOra
+ ) {
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ echo '<option value="'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ if ($__SEL == '') echo '<option value="'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo '<span class="tankorAdat" data-tankorid="'.$dOra['tankorId'].'">'.$dOra['tankorNev'].'</span>';
+ }
+ // -------------------------------------------------------------------------
+ echo '</td>'."\n";
+
+ //echo '<td>';
+ //echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ //echo '</td>'."\n";
+ echo '<td colspan="2">';
+ echo $tipus;
+ echo '</td>'."\n";
+
+
+ // ----- Tanör(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo '<span class="tanarNev" data-tanarid="'.$dOra['ki'].'">'.$dOra['kiCn'].'</span>';
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $dOra['oraszam'];
+ echo '</td>'."\n";
+
+ // ----- Leíráás ---------------------------------
+ if ($modosithatoOra) {
+ echo '<td>';
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._MODOSIT.'" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._ROGZIT.'" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td>'.$dOra['leiras'];
+ } else {
+ echo '<td>'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a href="'.$href.'">';
+ echo _HIANYZOK;
+ echo '</a>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ function putHetesForm($ADAT) {
+
+ formBegin(array('class'=>'hetes'));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'._SHOW_DAYS_FROM.'" />'."\n";
+// echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="hetesFelvetel" />'."\n";
+
+ echo '<span>'._HETESEK.'</span>';
+ for ($k = 1; $k < 3; $k++) {
+ $SEL = array($ADAT['hetesek'][$k]['diakId'] => ' selected="selected" ');
+ echo '<select name="hetes'.$k.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'"'.$SEL[ $ADAT['diakok'][$i]['diakId'] ].'>'.$ADAT['diakok'][$i]['diakNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml
new file mode 100644
index 00000000..808316e3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml
@@ -0,0 +1,698 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putHianyzoTanarForm($Tanarok, $Hianyzok, $dt) {
+
+ formBegin(array('class'=>'helyettesites'));
+ echo '<input type="hidden" name="action" value="hianyzoModositas" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+
+ echo '<table align="center" class="tanarForm" cellspacing="1" cellpadding="1" >'."\n";
+
+ echo '<tr>';
+ echo '<th>'._JELENLEVO_TANAROK.'</th>';
+ echo '<th>'._HIANYZO_TANAROK.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="addHianyzo[]" id="ah" multiple="multiple">'."\n";
+
+ for ($i = 0;$i < count($Tanarok['tanarIds']); $i++) {
+
+ $tanarId = $Tanarok['tanarIds'][$i];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev']." (".$tanarId.")";
+
+ if (!in_array($tanarId,$Hianyzok)) echo '<option value="'.$tanarId.'"'.$SEL.'>'.$tanarNev.'</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="delHianyzo[]" id="dh" multiple="multiple">'."\n";
+
+ for ($i = 0;$i < count($Tanarok['tanarIds']); $i++) {
+
+ $tanarId = $Tanarok['tanarIds'][$i];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+
+ if (in_array($tanarId,$Hianyzok)) echo '<option value="'.$tanarId.'"'.$SEL.'>'.$tanarNev.'</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo '<input type="submit" value="'._OK.'" />';
+// Ez ugye nem kell? // echo '<input type="reset" value="'._VISSZAALLIT.'" />';
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+ formEnd();
+ flush();
+ }
+
+
+
+ function putHianyzoOrak($HELYETTESITES, $dt) {
+ for ($i = 0; $i < count($HELYETTESITES['helyettesites']['tanarIds']);$i++) {
+ $tanarId = $HELYETTESITES['helyettesites']['tanarIds'][$i];
+ $tanarNev = $HELYETTESITES['tanarok'][$tanarId]['tanarNev'];
+ $tanarOrak = $HELYETTESITES['helyettesites'][$tanarId]['orak'];
+ putTanarHianyzoOrak($tanarId, $tanarNev, $tanarOrak, $HELYETTESITES['tanarok'], $dt, $HELYETTESITES);
+ flush();
+ }
+ }
+
+ function putTanarHianyzoOrak($tanarId, $tanarNev, $tanarOrak, $Tanarok, $dt, $ADAT=array()) { // az ADAT az általános...(2013)
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="helyettesitesRogzitese" />'."\n";
+ echo '<input type="hidden" name="kit" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+
+ echo '<table class="hianyzoTanar" cellspacing="1" cellpadding="1" align="center">'."\n";
+
+ echo '<thead><tr>'."\n";
+ echo '<th colspan="6">'.$tanarNev.'</th>'."\n";
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><tr>'."\n";
+ echo '<th colspan="6">'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr></tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ for ($i = 0; $i < count($tanarOrak); $i++) {
+
+ $SELECT = sulyKiszamitas($tanarOrak[$i], $Tanarok);
+
+ if (substr($tanarOrak[$i]['tipus'],0,7) == 'elmarad') echo '<tr class="elmarad">'."\n";
+ else echo '<tr>'."\n";
+
+ echo '<td>'."\n";
+ echo $_ora = $tanarOrak[$i]['ora'].'. '._ORA;
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $tanarOrak[$i]['tankorNev'];
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($ADAT['termek'][$tanarOrak[$i]['teremId']]['leiras']!='') {
+ echo $ADAT['termek'][$tanarOrak[$i]['teremId']]['leiras'];
+ echo ' <span class="teremId">('.$tanarOrak[$i]['teremId'].')</span>';
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($tanarOrak[$i]['ki']!='') {
+ $_ki_txt = ' terhelés:';
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki'] ]['lekotott']['heti'];
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki'] ]['kotottEloirt']['heti'];
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki']]['kotott']['heti'];
+ } else $_ki_txt = '';
+ echo '<select name="T[]">'."\n";
+
+ // A jelenlegi állapot kiírása --> value='' --> Nem módosítja
+ if ($tanarOrak[$i]['eredet'] == 'órarend') {
+ if ($tanarOrak[$i]['tipus'] == 'normál') $txt = 'megtartva';
+ elseif ($tanarOrak[$i]['tipus'] == 'felügyelet') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (felügyelet)';
+ elseif ($tanarOrak[$i]['tipus'] == 'összevonás') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (összevonás)';
+ elseif ($tanarOrak[$i]['tipus'] == 'helyettesítés') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (helyettesítés)';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad máskor') $txt = 'máskor megtartva';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad') $txt = 'elmarad';
+ elseif ($tanarOrak[$i]['tipus'] == 'egyéb') $txt = 'egyéb feladat (kiírt)';
+ else $txt = 'ismeretlen típus!!!!!!!';
+ } elseif ($tanarOrak[$i]['eredet'] == 'plusz') {
+ if ($tanarOrak[$i]['tipus'] == 'normál') $txt = 'plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'normál máskor') $txt = 'cserélt/mozgatott óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad') $txt = 'elmaradt mozgatott óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'helyettesítés') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' helyettesített plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'felügyelet') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' felügyelt plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'összevonás') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' összevont plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'egyéb') $txt = 'egyéb feladat (tanár által megadott)';
+ else $txt = 'ismeretlen típus!!!!!!!';
+ } else {
+ $txt = 'nem ered sehonnan!!!!!!!!';
+ }
+// if ('__HELYETTESITES_RENDEZES' == 'súly')
+ echo '<option value="">'.$txt.$_ki_txt.'</option>'."\n";
+
+ if ($tanarOrak[$i]['tipus'] == 'egyéb') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/töröl">töröl</option>'."\n";
+ } else {
+ if ($tanarOrak[$i]['tipus'] == 'elmarad máskor') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'normál máskor') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/">csere/mozgatás visszaállítása</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'normál') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'elmarad') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ } else {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ }
+ foreach ($SELECT as $_tanarId => $_tanarAdat) {
+ // a nullás súlyúaknak órája van! nem jelenhet meg (ha mégis szeretné, manuális beállítás)
+ if ($_tanarId != $tanarId && $_tanarId != 'foglaltak' && $_tanarAdat['súly']>0) {
+ $value = $_tanarId.'/'.$tanarOrak[$i]['oraId'].'/'.$_tanarAdat['tipus'];
+ /* 2013.09 beta ... */
+ $_disabled = (
+ $_tanarAdat['tipus']!='összevonás'
+ && (
+ (
+ $ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['lekotott']<$ADAT['tanarTerheles'][$_tanarId]['lekotott']['heti']
+ && ($ADAT['tanarTerheles'][ $_tanarId ]['over']['napi']>=2
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['ora']>=6
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['eves']>=30)
+ )
+ || $ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott']
+ )
+ );
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott'])
+ $_tanarAdat['súly'] .= '!'.$_tanarAdat['tipus'];
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['kotott']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott'])
+ $_tanarAdat['súly'] .= '!';
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['lekotott']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['lekotott'])
+ $_tanarAdat['súly'] .= '!';
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['over']['napi']>=2
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['ora']>=6
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['eves']>=30)
+ $_tanarAdat['súly'] .= '!';
+ /* */
+ echo '<option value="'.$value.'" '.($_disabled?' disabled="disabled" ':'').'>'."\n";
+ if ('__HELYETTESITES_RENDEZES' == 'súly') echo ''.$_tanarAdat['súly'].'| ';
+ echo $_tanarAdat['tanarNev'].' ('.$_tanarAdat['tipus'].') '.$_tanarAdat['txt'];
+ echo ' terhelés:';
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['lekotott']['heti'];
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti'];
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['kotott']['heti'];
+ echo '</option>'."\n";
+ }
+ }
+ for($j=0; $j<count($ADAT['egyeb'][$tanarOrak[$i]['ora']]); $j++) {
+ $_D = $ADAT['egyeb'][$tanarOrak[$i]['ora']];
+ $_tanarNev = $Tanarok[$_D[$j]]['tanarNev'];
+ echo '<option value="'.$_D[$j].'" disabled="disabled" >[már beosztva] '.$_tanarNev.'</option>';
+ }
+ }
+ echo '</select>';
+
+ echo '</td>'."\n";
+ echo '<td class="info">';
+
+ /* itt célszerű lenne infóval ellátni a kiírót, ha korlátozás van érvényben! */
+ // ⚠ ♺ ⦷
+ $__ki = $tanarOrak[$i]['ki'];
+ if ($__ki>0) {
+ if ( $ADAT['tanarTerheles'][ $__ki ]['munkaido']['lekotott']<$ADAT['tanarTerheles'][ $__ki]['lekotott']['heti']
+// && ($ADAT['tanarTerheles'][ $__ki ]['over']['napi']>=2
+// || $ADAT['tanarTerheles'][ $__ki ]['over']['ora']>=6
+// || $ADAT['tanarTerheles'][ $__ki ]['over']['eves']>=30)
+ ) {
+ echo '<span style="cursor:help" title="A nevelés-oktatással lekötött munkaidőbe már nem fér bele, ezért a fennmaradó részt terheljük! '.$ADAT['tanarTerheles'][ $__ki ]['lekotott']['heti'].'">';
+ echo " ⚠ ";
+ echo '</span>';
+ }
+ if ($ADAT['tanarTerheles'][ $__ki ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $__ki ]['munkaido']['kotott']) {
+ echo '<span style="cursor:help" title="A lekötött és az előírt pluszfeladatok száma '
+ .'('.$ADAT['tanarTerheles'][ $__ki ]['kotottEloirt']['heti'].') '
+ .'a heti megengedettel egyezik vagy túl is lépi azt'
+ .'('.$ADAT['tanarTerheles'][ $__ki ]['munkaido']['kotott'].')! A tanár tovább nem terhelhető!">';
+ echo " ⚠ ";
+ echo '</span>';
+ }
+ // echo ($ADAT['tanarTerheles'][$__ki]['over']['napi']);
+ // echo ($ADAT['tanarTerheles'][$__ki]['over']['heti']);
+ echo '<span class="info" style="font-size:10px;background-color: rgba(255,255,255,1); border: solid 1px grey; padding: 0px 5px; border-radius:8px; cursor:help" title="'.$tanarOrak[$i]['munkaido'].'">'.($tanarOrak[$i]['munkaido'][0]).'</span>';
+ }
+ /* ----------- */
+
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($tanarOrak[$i]['tipus'] != 'elmarad máskor') {
+ echo '<input type="image" name="gomb_manual_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/kez.gif" alt="manual" /> '."\n";
+ echo '<input type="image" name="gomb_mozgat_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/mozgat.gif" alt="mozgat" /> '."\n";
+ echo '<input type="image" name="gomb_csere_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/csere.gif" alt="csere" /> '."\n";
+
+ //echo '<input type="image" class="btn_manual" name="gomb_manual_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ //echo '<input type="image" class="btn_mozgat" name="gomb_mozgat_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ //echo '<input type="image" class="btn_csere" name="gomb_csere_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ }
+ if (substr($tanarOrak[$i]['tipus'],-7) == 'máskor') {
+ echo '!<input type="image" name="csereAttekintes" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/kez.gif" alt="manual" />! '."\n";
+ }
+ if ($tanarOrak[$i]['ki']!='') {
+ // Órarend clock/clock3
+ //echo '<input type="image" name="orarendGomb" value="'.$tanarId.'/'.$dt.'" src="skin/classic/module-naplo/img/helyettesites/ora.gif" alt="orarend" class="onClickUpdateWindow" />'."\n";
+ echo '<a href ="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tolDt='.$dt.'&igDt='.$dt.'&tanarId='.$tanarOrak[$i]['ki']).'" alt="orarend" class="onClickUpdateWindow O">O</a>'."\n";
+ }
+ echo '<input type="hidden" name="orarend" value="'.$tanarId.'/'.$dt.'" />'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+ }
+
+
+ function sulyKiszamitas($tanarOra, $Tanarok) {
+
+ for ($j = 0; $j < count($tanarOra['osszevono']); $j++) {
+ $osszevonoId = $tanarOra['osszevono'][$j];
+ $Tanarok[$osszevonoId]['osszevon'] = true;
+ }
+ for ($j = 0; $j < count($tanarOra['foglalt']); $j++) {
+ $foglaltId = $tanarOra['foglalt'][$j];
+ $Tanarok[$foglaltId]['foglalt'] = true;
+ }
+ unset($Tanarok['tanarIds']);
+
+ // súly kiszámítása
+ foreach ($Tanarok as $tId => $tAdatok) {
+// if (!$tAdatok['osszevon'] and $tAdatok['orak'][$tanarOra['ora']]) {
+ if ($tAdatok['foglalt']) {
+ // ütközés - tanít, de nem tud összevonni, mert nem szakos
+ $suly = 0;
+ $Tanarok[$tId]['txt'] = '[X]';
+
+ } elseif ($tAdatok['osszevon']) {
+ // össze tud vonni
+ //[2013.09.20.ig volt érvényben az ősidőktől :( RIP]$suly = 9; // az <- -> szakos/nem szakos között
+ $suly = 1;
+ $Tanarok[$tId]['txt'] = '[Ö]';
+ $Tanarok[$tId]['tipus'] = 'összevonás';
+
+ } else {
+ $Tanarok[$tId]['tipus'] = 'felügyelet';
+ $Tanarok[$tId]['txt'] = '[';
+ $suly = 2;
+ if (isset($tAdatok['elso ora']) && ($tAdatok['elso ora'] < $tanarOra['ora'])) {
+ // Van elötte órája
+ $Tanarok[$tId]['txt'] .= '<- ';
+ $suly += 3;
+ if ($tAdatok['utolso ora'] > $tanarOra['ora']) {
+ // Van utána is órája
+ $suly += 3;
+ $Tanarok[$tId]['txt'] .= '-> ';
+ }
+ } else {
+ if ($tAdatok['utolso ora'] > $tanarOra['ora']) {
+ // Csak utána van órája
+ $suly += 1;
+ $Tanarok[$tId]['txt'] .= '-> ';
+ }
+ }
+ if ($tAdatok['targyak'][$tanarOra['targyId']]) {
+ // Taníthatja az adott tárgyat
+ $suly += 2;
+ $Tanarok[$tId]['txt'] .= 'SZ ';
+ $Tanarok[$tId]['tipus'] = 'helyettesítés';
+ }
+ if ($tAdatok['db'] > 4) {
+ // Már van legalább 5 órája
+ $suly = floor($suly/2);
+ $Tanarok[$tId]['txt'] .= '!6!';
+ }
+ if (strlen($Tanarok[$tId]['txt']) == 1) $Tanarok[$tId]['txt'] .= ']';
+ else $Tanarok[$tId]['txt'] = substr($Tanarok[$tId]['txt'], 0, -1) . ']';
+ }
+ $Tanarok[$tId]['súly'] = $suly;
+ }
+
+ if (__HELYETTESITES_RENDEZES != 'ABC') uasort($Tanarok,'cmp');
+
+ return $Tanarok;
+ }
+
+ function putKeziBeallitas($oraAdat, $Termek, $Tanarok) {
+
+ global $aHetNapjai;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="keziBeallitas" />';
+ echo '<input type="hidden" name="oraId" value="'.$oraAdat['oraId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+
+ echo '<table class="keziBeallitas" cellspacing="1" cellpadding="1" align="center">';
+
+ echo '<tr>';
+ echo '<th colspan="6">'._KEZI_BEALLITAS.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<td>';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].')';
+ echo '</td>';
+
+ echo '<td>';
+ echo $oraAdat['ora'].'. '._ORA;
+ echo '</td>';
+
+ echo '<td>';
+ echo $oraAdat['tankorNev'];
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['ki'] => ' selected="selected" ');
+ echo '<select name="ki">';
+ echo '<option value=""> - </option>';
+ for ($i = 0; $i < count($Tanarok);$i++) {
+ echo '<option value="'.$Tanarok[$i]['tanarId'].'" '.$SEL[$Tanarok[$i]['tanarId']].'>';
+ echo $Tanarok[$i]['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['tipus'] => ' selected="selected" ');
+ $Tipus = array('helyettesítés','felügyelet','összevonás');
+ if (!in_array($oraAdat['tipus'], $Tipus)) $Tipus[] = $oraAdat['tipus'];
+ echo '<select name="tipus">';
+ foreach ($Tipus as $key => $tipus) {
+ echo '<option value="'.$tipus.'" '.$SEL[$tipus].'>';
+ echo $tipus ;
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['teremId'] => ' selected="selected" ');
+ echo '<select name="teremId">';
+ for ($i = 0; $i < count($Termek); $i++) {
+ echo '<option value="'.$Termek[$i]['teremId'].'" '.$SEL[$Termek[$i]['teremId']].'>';
+ echo $Termek[$i]['leiras'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="6"><input type="submit" value="'._OK.'" />';
+ echo '</tr>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putMozgatas($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $ujDt, $TANAR_UJDT_NAPI_ORAK) {
+
+ global $aHetNapjai, $_TANEV, $napiMinOra, $napiMaxOra;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="oraMozgatas" />';
+ echo '<input type="hidden" name="ujDt" value="'.$ujDt.'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+ echo '<input type="hidden" name="mozgat" value="'.$oraAdat['oraId'].'" />';
+// echo '<input type="hidden" name="kit" value="'.$tanarId.'" />';
+
+ echo '<table align="center" class="mozgatas" cellspacing="1" cellpadding="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="4">'._ORA_MOZGATAS.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="2">'._MOZGATANDO.'</th>';
+ echo '<th colspan="2">'._UJ_IDOPONT.'</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo '<input type="submit" name="rogzit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].')';
+ echo '</th>';
+ echo '<th colspan="2">';
+ echo '<select name="ujDt" class="onChangeSubmit">';
+
+ $SEL = array( $ujDt => ' selected="selected" ');
+ $_dt = date('Y-m-d',strtotime('-10 days',strtotime($ujDt)));
+ while (strtotime($_dt) <= strtotime($_TANEV['zarasDt'])) {
+
+ echo '<option value="'.$_dt.'"'.$SEL[$_dt].'>'.$_dt.' ('.$aHetNapjai[(date('w',strtotime($_dt))+6) % 7].')</option>';
+ $_dt = date('Y-m-d',strtotime('+1 days',strtotime($_dt)));
+
+ }
+
+ echo '</select>';
+
+ echo '</th>';
+ echo '</tr>';
+
+ // órarend
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+
+ if (isset($_POST['ora']) && $_POST['ora'] == $i) $CHK = ' checked="checked" ';
+ else $CHK = '';
+
+ if (is_array($TANAR_DT_NAPI_ORAK[$i])&&count($TANAR_DT_NAPI_ORAK[$i])>0) {
+ $txt1 = '';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ $txt1 .= $TANAR_DT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt1 .= '('.$TANAR_DT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt1 = '';
+ }
+
+ if (is_array($TANAR_UJDT_NAPI_ORAK[$i]) && count($TANAR_UJDT_NAPI_ORAK[$i])>0) {
+ $txt2='';
+ for ($j=0; $j<count($TANAR_UJDT_NAPI_ORAK[$i]); $j++) {
+ $txt2 .= $TANAR_UJDT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_UJDT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt2 .= '('.$TANAR_UJDT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt2 = '';
+ }
+
+ $class='';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['oraId'] == $oraAdat['oraId']) { $class = 'mozgatando'; break; }
+ }
+
+ $class2 = '';
+ $txt2ext = '<input type="radio" name="ora" value="'.$i.'" '.$CHK.'/>'.$txt2;
+ for ($j=0; $j<count($TANAR_UJDT_NAPI_ORAK[$i]); $j++) {
+ $_U = $TANAR_UJDT_NAPI_ORAK[$i][$j];
+ if ($_U['oraId'] == $oraAdat['oraId']) {
+ $class2 = 'mozgatando';
+ $txt2ext = $txt2;
+ break;
+ } elseif ($_U['ki']==$tanarId) {
+ $class2 = 'utkozik';
+ $txt2ext = $txt2;
+ break;
+ } elseif ($_U['kit'] == $tanarId) {
+ $class2 = 'nemMegtartott';
+ } else {
+ }
+ }
+ echo '<tr>';
+ echo '<td>'.$i.'.</td>';
+ echo '<td class="'.$class.'">';
+ echo $txt1;
+ echo '</td>';
+ echo '<td class="'.$class2.'">';
+ echo $txt2ext;
+ echo '</td>';
+ echo '<td>'.$i.'.</td>';
+ echo '</tr>';
+
+ }
+ echo '</tbody>'."\n";
+ echo '</table>';
+
+ formEnd();
+ }
+
+ function putCsere($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $csTanarId, $csDt, $CSTANAR_CSDT_NAPI_ORAK, $Tanarok) {
+
+ global $aHetNapjai, $_TANEV, $napiMinOra, $napiMaxOra;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="oraCsere" />';
+ echo '<input type="hidden" name="csDt" value="'.$csDt.'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+ echo '<input type="hidden" name="csere" value="'.$oraAdat['oraId'].'" />';
+// echo '<input type="hidden" name="kit" value="'.$tanarId.'" />';
+
+ echo '<table class="csere" cellspacing="1" cellpadding="1" align="center">';
+ echo '<tr>';
+ echo '<th colspan="4">'._ORA_CSERE.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="2">'._CSERELENDO.'</th>';
+ echo '<th colspan="2">'._UJ_IDOPONT.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+
+ echo '<th colspan="2">';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].') ';
+ for ($i = 0; ($i < count($Tanarok) && $Tanarok[$i]['tanarId'] != $tanarId); $i++);
+ echo $Tanarok[$i]['tanarNev'];
+ echo '</th>';
+
+ echo '<th colspan="2">';
+ echo '<select name="csDt" class="onChangeSubmit">';
+
+ $SEL = array( $csDt => ' selected="selected" ');
+ $_dt = date('Y-m-d',strtotime('-10 days',strtotime($csDt)));
+ while (strtotime($_dt) <= strtotime($_TANEV['zarasDt'])) {
+
+ echo '<option value="'.$_dt.'"'.$SEL[$_dt].'>'.$_dt.' ('.$aHetNapjai[(date('w',strtotime($_dt))+6) % 7].')</option>';
+ $_dt = date('Y-m-d',strtotime('+1 days',strtotime($_dt)));
+
+ }
+
+ echo '</select>';
+
+ echo '<select name="csTanarId" class="onChangeSubmit">';
+ $SEL = array($csTanarId => ' selected="selected"');
+ for ($i = 0; $i < count($Tanarok); $i++) {
+ echo '<option value="'.$Tanarok[$i]['tanarId'].'"'.$SEL[$Tanarok[$i]['tanarId']].'>'.$Tanarok[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+
+ echo '</th>';
+ echo '</tr>';
+
+ // órarend
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+
+ if (is_array($TANAR_DT_NAPI_ORAK[$i])&&count($TANAR_DT_NAPI_ORAK[$i])>0) {
+ $txt1 = '';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ $txt1 .= $TANAR_DT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt1 .= '('.$TANAR_DT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt1 = '';
+ }
+
+ if (is_array($CSTANAR_CSDT_NAPI_ORAK[$i]) && count($CSTANAR_CSDT_NAPI_ORAK[$i])>0) {
+ $txt2='';
+ for ($j=0; $j<count($CSTANAR_CSDT_NAPI_ORAK[$i]); $j++) {
+ $txt2 .= $CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt2 .= '('.$CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt2 = '';
+ }
+
+ echo '<tr>';
+ echo '<td>'.$i.'.</td>';
+ if ($TANAR_DT_NAPI_ORAK[$i][0]['oraId'] == $oraAdat['oraId']) $class = 'mozgatando';
+ else $class='';
+ echo '<td class="'.$class.'">';
+ echo $txt1;
+ echo '</td>';
+ if ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'] == $oraAdat['oraId']) {
+ // A mozgatandó óra...
+ echo '<td class="mozgatando">';
+ echo $txt2;
+ echo '</td>';
+ } elseif ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['ki'] == $csTanarId) {
+ // órája van
+ echo '<td class="orajavan">';
+ echo '<input type="radio" name="csId" value="'.$CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'].'" /> ';
+ echo $txt2;
+ echo '</td>';
+ } elseif ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['kit'] == $csTanarId) {
+ // nem megtartott óra: helyettesítik, elmarad
+ echo '<td class="nemMegtartott">';
+ echo '<input type="radio" name="csId" value="'.$CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'].'" /> ';
+ echo $txt2;
+ echo '</td>';
+ } else {
+ // Lukas óra
+ echo '<td>';
+ echo $txt2;
+ echo '</td>';
+ }
+ echo '<td>'.$i.'.</td>';
+ echo '</tr>';
+
+ }
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo '<input type="submit" name="rogzit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function putCsereAttekintes($oraId, $Orak) {
+
+ global $aHetNapjai;
+
+ echo '<h2>'._CSERE_ATTEKINTES.'</h2>'."\n";
+ echo '<table class="csereAttekintes">'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._MIT.'</th>'."\n";
+ echo '<th>'._HONNAN.'</th>'."\n";
+ echo '<th></th>'."\n";
+ echo '<th>'._HOVA.'</th>'."\n";
+ echo '</tr>'."\n";
+
+ foreach ($Orak['plusz'] as $tankorId => $pluszAdat) {
+
+ // felhasználjuk, hogy minden alapórának pontosan egy plusz óra felel meg
+ $oraAdat = $Orak['alap'][$tankorId];
+ for ($i = 0; $i < count($pluszAdat); $i++) {
+
+ echo '<tr>'."\n";
+
+ echo '<td>'.$oraAdat[$i]['tankorNev'].'</td>'."\n";
+ echo '<td>'.$oraAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat[$i]['dt']))+6) % 7].') '.$oraAdat[$i]['ora'].'. '._ORA.'</td>'."\n";
+ echo '<td> --&gt; </td>';
+ if (substr($pluszAdat[$i]['tipus'],0,7) == 'normál')
+ echo '<td>'.$pluszAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($pluszAdat[$i]['dt']))+6) % 7].') '.$pluszAdat[$i]['ora'].'. '._ORA.'</td>'."\n";
+ else
+ echo '<td>'.$pluszAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($pluszAdat[$i]['dt']))+6) % 7].') '.$pluszAdat[$i]['ora'].'. '._ORA.' ('.$pluszAdat[$i]['tipus'].')</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ }
+
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hetes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hetes.phtml
new file mode 100644
index 00000000..0609ed37
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hetes.phtml
@@ -0,0 +1,37 @@
+<?php
+
+ function putHetesForm($ADAT) {
+
+ formBegin(array('class'=>'hetes'));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'._SHOW_DAYS_FROM.'" />'."\n";
+ echo '<input type="hidden" name="action" value="hetesFelvetel" />'."\n";
+
+ echo '<table align="center" class="hetes" cellpadding="1" cellspacing="1" >';
+ if (is_array($ADAT['hetesek'])) foreach (($ADAT['hetesek']) as $osztalyId=>$D) {
+ echo '<tr><th colspan="3">'.$ADAT['osztalyok'][$osztalyId]['osztalyJel'].' '.$ADAT['osztalyok'][$osztalyId]['osztalyfonokNev'].'</th></tr>';
+ for ($k = 0; $k < count($D); $k++) {
+/*
+ $SEL = array($D[$k]['diakId'] => ' selected="selected" ');
+ echo '<select name="hetes'.$k.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'"'.$SEL[ $ADAT['diakok'][$i]['diakId'] ].'>'.$ADAT['diakok'][$i]['diakNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+*/
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$D[$k]['dt']).'.</td>';
+ echo '<td>'.$D[$k]['sorszam'].'</td>';
+ echo '<td>'.$ADAT['diakok'][$D[$k]['diakId']]['diakNev'].'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+// echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml
new file mode 100644
index 00000000..61a91533
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml
@@ -0,0 +1,55 @@
+<?php
+
+ function putOrak($ADAT) {
+
+ formBegin(array('class'=>'minuszora'));
+
+ echo '<input type="hidden" name="action" value="oraElmaradas" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+
+ echo '<ul>'."\n";
+ for ($i = $ADAT['napiMinOra']; $i <= $ADAT['napiMaxOra']; $i++) {
+
+ echo '<li>';
+ echo $i . '. ' . _ORA;
+ if (is_array($ADAT['orak'][$i]) && count($ADAT['orak'][$i]) > 0) {
+ echo '<ul>'."\n";
+ for ($j = 0; $j < count($ADAT['orak'][$i]); $j++) {
+ if (!in_array($ADAT['orak'][$i][$j]['tipus'], array('elmarad','elmarad máskor'))) {
+ $D = $ADAT['orak'][$i][$j];
+ echo '<li class="'.$D['tipus'].' '.$D['eredet'].'">';
+ echo '<input type="checkbox" name="oraId[]" value="'.$D['oraId'].'" />'."\n";
+ if (is_null($D['tankorId'])) echo $D['tipus'];
+ else echo $D['tankorNev'];
+ if ($D['teremId']!='')
+ echo ' ('.$D['teremLeiras'].')';
+ echo ' ';
+ echo $D['leiras'];
+ if ($D['oralatogatasId']!='') {
+ echo '<span class="latogatott">L</span>';
+ echo $D['megjegyzes'];
+ }
+ echo ' {'.$D['munkaido'].'}';
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>'."\n";
+// } else {
+// echo ' - ';
+ }
+
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>'."\n";
+
+ echo '<input type="submit" value="'._ELMARAD.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/ora.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/ora.phtml
new file mode 100644
index 00000000..ef21f763
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/ora.phtml
@@ -0,0 +1,51 @@
+<?php
+
+ function putOraAdat($ADAT) {
+ $O = $ADAT['oraAdat'];
+
+ echo '<style type="text/css">
+ .modGomb {
+ background-color: #eeeeee;
+ padding:4px 1em; margin:1em; background-color: #eeeeee; border-radius: 2px; border-style: solid solid solid none; border-width: 1px 1px 1px 1px; border-color: #aaa;
+ }
+ .oraElmarad {background-color: red; color:white;}
+ .oraMegtartva {background-color: green; color:white;}
+ </style>';
+
+ echo '<div style="padding:1em 0em;float:left; margin-right:2em;background-color: #eeeeee; width:294px; border-radius: 0px 4px 4px 0px; border-style: solid solid solid none; border-width: 1px 1px 1px 0px; border-color: #aaa;">';
+ if (is_array($O)) {
+ foreach($ADAT['oraAdat'] as $k => $v) {
+ echo '<div style="width:90px; text-align:right; display:table-cell;">';
+ echo $k;
+ echo '</div>';
+ echo '<div style="width:200px; text-align:left; display:table-cell; padding-left:1em;">';
+ echo $v;
+ echo '</div><div style="clear:both"></div>';
+ }
+ }
+ echo '</div>';
+echo '<h2>Ez a funkció még nem működik!</h2>';
+ echo '<input type="hidden" name="oraId" value="'.$O['oraId'].'" />';
+ echo '<input type="submit" name="oraElmarad" value="'._ELMARAD.'" id="oraElmarad" class="modGomb oraElmarad" />';
+ echo '<input type="submit" name="oraMegtartva" value="'._MEGTARTVA.'" id="oraMegtartva" class="modGomb oraMegtartva" />';
+
+/*
+ echo 'Mit lehet csinálni egy órával?
+
+<pre>
+Haladási:
+- elmarad
+- helyettesítk/felügyelik stb
+- összevonjuk másikkal (lásd előbb)
+- terme megváltozik ideiglenesen
+
+Órarend:
+- terme megváltozik véglegesen
+</pre>
+';
+*/
+ echo '<div style="clear: both"></div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml
new file mode 100644
index 00000000..008544b4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml
@@ -0,0 +1,56 @@
+<?php
+
+ function putOralatogatasForm($ADAT) {
+
+
+ echo '<ul class="ora">'."\n";
+ foreach ($ADAT['orak'] as $ora => $oAdat) {
+ foreach ($oAdat as $key => $oraAdat) {
+ $_OK = is_array($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds']);
+ $_class = ($_OK) ? 'latogatva' : '';
+ echo '<li>';
+
+ formBegin(array('class'=>$_class));
+
+ echo '<input type="hidden" name="action" value="oralatogatasBeiras" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="oraId" value="'.$oraAdat['oraId'].'" />'."\n";
+
+ echo '<p>';
+ echo '<input type="submit" name="delete_'.$oraAdat['oraId'].'" value="'._TOROL.'" />'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '<span class="ora">'.$ora.'. '._ORA.'</span>';
+ echo $oraAdat['tankorNev'];
+ echo '</p>';
+
+ echo '<div class="jobb">';
+ echo '<label for="tanar'.$oraAdat['oraId'].'">'._LATOGATO.'</label>'."<br />\n";
+ echo '<select name="tanarIds[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"';
+ if (
+ is_array($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds']) &&
+ in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds'])) echo ' selected="selected" ';
+ echo '>'.$ADAT['tanarok'][$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div>';
+ echo '<label for="megjegyzes'.$oraAdat['oraId'].'">'._MEGJEGYZES.'</label>'."<br />\n";
+ echo '<textarea name="megjegyzes">';
+ echo htmlspecialchars($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['megjegyzes']);
+ echo '</textarea>'."\n";
+ echo '</div>';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml
new file mode 100644
index 00000000..b0e38c08
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml
@@ -0,0 +1,51 @@
+<?php
+
+ function putOraFelvetelForm($ADAT) {
+
+ formBegin(array('class'=>'pluszora'));
+ echo '<input type="hidden" name="action" value="oraFelvetele" />';
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />';
+
+ echo '<h2>'._TORLENDOK.'</h2>';
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['torlendoTankorok']); $i++) {
+ $T = $ADAT['torlendoTankorok'][$i];
+ echo '<li>'.$ADAT['tankorok'][$T['tankorId']][0]['tankorNev'].' ('.$T['oraId'].')</li>';
+ }
+ echo '</ul>';
+
+ echo '<input type="submit" value="'._ORA_FELVETELE.'" class="confirm" title="'._ORA_FELVETELE_CONFIRM.'" />';
+ formEnd();
+ }
+
+ function putOrak($Orak, $title) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ echo '<h2>'.$title.' '._ORAI.'</h2>';
+ echo '<ul class="pluszora">';
+
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">' . $i . '. ' . _ORA . '</span> ';
+ if (is_array($Orak[$i])) {
+ if (is_array($Orak[$i][0])) {
+ for ($j = 0; $j < count($Orak[$i]); $j++) {
+ echo '<span>' . $Orak[$i][$j]['tankorNev'] . '</span> ';
+ }
+ } else {
+ echo 'AJJAJJ';
+ }
+ }
+ echo '</li>';
+ }
+
+ echo '</ul>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml
new file mode 100644
index 00000000..af74fcb5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml
@@ -0,0 +1,95 @@
+<?php
+
+ function putOraFelvetelForm($tankorId, $tanarId, $dt, $ora, $teremId, $ADAT) {
+ formBegin(array('class'=>'pluszora'));
+ echo '<input type="hidden" name="action" value="oraFelvetele" />';
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="ora" value="'.$ora.'" />';
+ echo '<input type="hidden" name="teremId" value="'.$teremId.'" />';
+
+ echo '<label for="eredet">'._EREDET.'</label>';
+ echo '<select name="eredet" id="eredet">';
+ echo '<option value="plusz">'._PLUSZ.'</option>';
+ echo '<option value="órarend">'._ORAREND.'</option>';
+ echo '</select>';
+ if ($ADAT['tipus'] != 'normál') echo '<strong> '.$ADAT['tipus'].' </strong>';
+
+ echo '<input type="submit" value="'._ORA_FELVETELE.'" />';
+ formEnd();
+ }
+
+ function putOrak($Orak, $title, $ADAT) {
+
+ echo '<h1>'.ucfirst($title).' '._ORAI.'</h1>';
+ echo '<ul class="pluszora">';
+
+ for ($i = $ADAT['napiMinOra']; $i <= $ADAT['napiMaxOra']; $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">' . $i . '. ' . _ORA . '</span> ';
+ if (is_array($Orak[$i])) {
+ if (is_array($Orak[$i][0])) {
+ for ($j = 0; $j < count($Orak[$i]); $j++) {
+ echo '<span>' . $Orak[$i][$j]['tankorNev'] . '</span> ';
+ }
+ } else {
+ echo '<span>' . $Orak[$i]['tankorNev'] . '</span>';
+ }
+ }
+ echo '</li>';
+ }
+
+ echo '</ul>';
+ }
+
+ function putLila($ADAT) {
+
+ echo '<h1>'._CSOPORTOS_PLUSZORA.'</h1>';
+
+ formBegin(array('class'=>'pluszLila'));
+
+ echo '<input type="hidden" name="action" value="csoportos" />';
+
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />';
+
+ echo '<label>'._TANAROK.'</label>';
+
+ echo '<button type="button" id="mindentanar">minden tanár</button>';
+ echo '<button type="button" id="invertal">kijelölés invertálása</button>';
+// echo '<button type="button" id="munkakozosseg">munkaközösség</button>';
+// echo '<button type="button" id="targy">tárgy</button>';
+// echo '<button type="button" id="tankorcsoport">tankörcsoport</button>';
+// echo '<button type="button" id="tankorblokk">tankörblokk</button>';
+ echo '<select name="munkakozossegSelector" id="munkakozossegSelector">';
+ echo '<option value=""> - </option>';
+ for ($i=0; $i<count($ADAT['munkakozossegek']); $i++) {
+ $_D = $ADAT['munkakozossegek'][$i];
+ echo '<option value="'.$_D['mkId'].'">'.$_D['leiras'].' ('.$_D['mkVezNev'].')</option>';
+ }
+ echo '</select >';
+ echo '<button type="button" class="selectorButton" id="selectorPlus" ><span class="icon-plus"></span></button>';
+ echo '<button type="button" class="selectorButton" id="selectorMinus"><span class="icon-minus"></span></button>';
+ echo '<br/>';
+ echo '<select multiple="multiple" size="15" name="tanarIdk[]" id="tanarLista">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ echo '<option value="'.$_D['tanarId'].'" data-mk="['.implode(',',$ADAT['mkTanar']['tanarMk'][$_D['tanarId']]).']">'.$_D['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ echo '<label>'._FELADAT.'</label>';
+ echo '<select name="feladatTipusId">';
+ foreach ($ADAT['feladatTipus'] as $feladatTipusId => $FA) {
+ echo '<option value="'.$feladatTipusId.'">'.$FA['feladatTipusLeiras'].'</option>';
+ }
+ echo '</select> ';
+ echo '<label>'._LEIRAS.'</label>';
+ echo '<input type="text" name="leiras" placeholder="a feladat részletes leírása" style="width:50%;" />';
+ echo '<input type="submit"> ';
+ _inlineHelp('A gomb megnyomásával a kijelölt tanároknak előírt pluszfeladatot rögzítünk az adott nap ('.($ADAT['dt']).') adott órájára ('.$ADAT['ora'].')');
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/specialis.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/specialis.phtml
new file mode 100644
index 00000000..74f47c4e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/specialis.phtml
@@ -0,0 +1,181 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putNapInfo($napAdat, $munkatervek) {
+
+ echo '<table class="napinfo">';
+ echo '<tr><th colspan="'.count($napAdat).'">'.$napAdat[0]['dt'].'</th></tr>';
+ echo '<tr>';
+ for ($i = 0; $i < count($napAdat); $i++) {
+ echo '<td>';
+ echo '<h3>'._MUNKATERV.': '.$munkatervek[$napAdat[$i]['munkatervId']]['munkatervNev'].' ('.$napAdat[$i]['munkatervId'].')</h3>';
+ echo '<p>'._TIPUS.': <strong>'.$napAdat[$i]['tipus'].'</strong></p>';
+ echo '<p>'._ORARENDIHET.': <strong>'.$napAdat[$i]['orarendiHet'].'</strong></p>';
+ echo '<p>'._MEGJEGYZES.'<strong>: '.$napAdat[$i]['megjegyzes'].'</strong></p>';
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</table>';
+
+ }
+
+ function napiOrakTorleseForm($napAdat, $napTipusok) {
+
+ $dt = $napAdat[0]['dt'];
+ $tipus = array();
+ for ($i = 0; $i < count($napAdat); $i++) if (!in_array($napAdat[$i]['tipus'], $tipus)) $tipus[] = $napAdat[$i]['tipus'];
+ // Ha egyféle típus van rendelve a naphoz az összes munkatervben...
+ if (count($tipus) == 1) $SEL = array($tipus[0] => ' selected="selected" ');
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="napiOrakTorlese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<label for="tipus">'._NAP_TIPUSA.'</label>'."\n";
+ echo '<select name="tipus" id="tipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<option value="'.$napTipusok[$i].'"'.$SEL[$napTipusok[$i]].'>'.$napTipusok[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._ORAK_TORLESE.'" class="confirm" title="'._TORLES_BIZTOS_E.'" />'."\n";
+
+ formEnd();
+ }
+
+ function orakBetolteseForm($napAdat, $Hetek) {
+
+ $dt = $napAdat[0]['dt'];
+ $orarendiHet = array();
+ for ($i = 0; $i < count($napAdat); $i++) if (!in_array($napAdat[$i]['orarendiHet'], $orarendiHet)) $orarendiHet[] = $napAdat[$i]['orarendiHet'];
+ // Ha egyetlen órarendi héthez van rendelve a nap az összes munkatervben...
+ if (count($orarendiHet) == 1) $SEL = array($orarendiHet[0] => ' selected="selected" ');
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="orakBetoltese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<label for="het">'._ORARENDIHET.'</label>'."\n";
+ echo '<select name="orarendiHet" id="het">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Hetek); $i++) {
+ echo '<option value="'.$Hetek[$i].'"'.$SEL[$Hetek[$i]].'>'.$Hetek[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._ORAK_BETOLTESE.'" class="confirm" title="'._BETOLTES_BIZTOS_E.'" />'."\n";
+
+ formEnd();
+ }
+
+ function specialisNapForm($dt, $szabadOrak, $Hetek) {
+
+ global $aHetNapjai, $napiMinOra, $napiMaxOra;
+
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="specialisNap" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr><th colspan="5">'._ORAREND_OSSZEALLITASA.": $dt</th></tr>\n";
+ echo '<tr>';
+ echo '<th>'._SZABAD_ORA.'</th>';
+ echo '<th></th>';
+ echo '<th>'._HET.'</th>';
+ echo '<th>'._NAP.'</th>';
+ echo '<th>'._ORA.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="5"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ for ($j = 0; $j < count($szabadOrak); $j++) {
+ echo '<tr>'."\n";
+ echo '<th><input type="hidden" name="celOra[]" value="'.$szabadOrak[$j].'" />'.$szabadOrak[$j].'</th>'."\n";
+ echo '<td>&#8594;</td>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="het[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($h = 0; $h < count($Hetek); $h++) {
+ echo '<option value="'.$Hetek[$h].'">'.$Hetek[$h].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ $dow = date('w',strtotime($dt));
+ if ($dow == 0 ) $dow = 7;
+ $SEL = array($dow => ' selected="selected" ');
+ echo '<select name="nap[]">';
+ echo '<option value=""> - </option>';
+ for ($k = 1; $k <= 7; $k++) {
+ echo '<option value="'.$k.'"'.$SEL[$k].'>'.$aHetNapjai[$k-1].'</option>';
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<select name="ora[]">';
+ echo '<option value=""> - </option>';
+ for ($k = $napiMinOra; $k <= $napiMaxOra; $k++) {
+ if ($szabadOrak[$j] == $k) {
+ echo '<option value="'.$k.'" selected="selected">'.$k.'</option>';
+ } else {
+ echo '<option value="'.$k.'">'.$k.'</option>';
+ }
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+ function orakTorleseForm($dt, $szabadOrak) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="orakTorlese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr><th colspan="2">'._FOGLALT_SAVOK_TORLESE.': '.$dt.'</th></tr>'."\n";
+ echo '<tr>';
+ echo '<th>'._FOGLALT_ORA.'</th>';
+ echo '<th>'._TORLENDO.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2"><input type="submit" value="'._TORLES.'" class="confirm" title="'._ORA_TORLES_BIZTOS_E.'" /></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+ if (!in_array($i, $szabadOrak)) {
+ echo '<tr>';
+ echo '<th>'.$i.'</th>';
+ echo '<td><input type="checkbox" name="ora[]" value="'.$i.'" /></td>'."\n";
+ echo '</tr>';
+ }
+ }
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/stat.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/stat.phtml
new file mode 100644
index 00000000..a8b908c2
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/stat.phtml
@@ -0,0 +1,84 @@
+<?php
+
+
+ function putTankorStat($tankorStat) {
+ $mutatHianyzasStat = (is_array($tankorStat['hianyzasStat'])) ? true : false;
+ echo '<table class="stat" cellspacing="1">'."\n";
+ echo '<thead><tr>'."\n";
+ echo '<th>'._TANKORNEV.'</th>'."\n";
+ echo '<th>'._MEGTARTOTT_ORASZAM.'</th>'."\n";
+ echo '<th>'._BECSULT_HATRALEVO_ORASZAM.'</th>'."\n";
+ echo '<th colspan="2">'._BECSULT_OSSZES_ORASZAM.'</th>'."\n";
+ echo '<th>'._TERVEZETT_ORASZAM.'</th>'."\n";
+ if ($mutatHianyzasStat) echo '<th>'._HIANYZAS_ARANY.'</th>'."\n";
+ echo '<th>'._TANKOR_JEGYEK_SZAMA.'</th>'."\n";
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><th colspan="'.(6+($mutatHianyzasStat)).'"></th></tfoot>'."\n";
+
+ if (is_array($tankorStat['tervezett']))
+ foreach ($tankorStat['tervezett'] as $tankorId => $tervezettAdat) {
+ echo '<tbody>';
+ echo '<tr>'."\n";
+
+ echo '<th class="tankorNev tankorAdat" data-tankorid="'.$tankorId.'">';
+ echo $tervezettAdat[0]['tankorNev'];
+ echo '</th>'."\n";
+ echo '<td>';
+ echo $_megtartott=$tankorStat['megtartott'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $tankorStat['becsult'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $_tmp = $tankorStat['becsult'][$tankorId]['oraSzam']+$tankorStat['megtartott'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ $_terv_szazalek = number_format(($_tmp*100/$tervezettAdat['evesOraszam']),2);
+ if ($_terv_szazalek<70) $_style=' style="background-color: red" ';
+ elseif ($_terv_szazalek<80) $_style=' style="background-color: orange" ';
+ elseif ($_terv_szazalek<90) $_style=' style="background-color: yellow" ';
+ elseif ($_terv_szazalek<100) $_style=' style="background-color: lightgreen" ';
+ elseif ($_terv_szazalek>=100) $_style=' style="background-color: cornflowerblue" ';
+ echo '<td data-tervszazalek="'.$_terv_szazalek.'" '.$_style.'>';
+ echo $_terv_szazalek."%";
+ echo '</td>';
+ echo '<td title="'.$tankorStat['tanitasiHetekSzama'][$tankorId].' '._TANITASI_HET.'">';
+ echo $_tervezett=$tervezettAdat['evesOraszam'];
+ echo '</td>'."\n";
+ if ($mutatHianyzasStat) {
+ $_db = $tankorStat['hianyzasStat'][$tankorId]['db'];
+ if (is_numeric($_db) && $_db>0 && intval($_megtartott)>0 && $_tervezett>0) {
+ $_sz1 = number_format($_db*100/$_megtartott,1);
+ $_sz2 = number_format($_db*100/$_tervezett,1);
+ if ($_sz1>30) $_class = ' class="ertesitendo" ';
+ else $_class = '';
+ } else {
+ $_class = '';
+ }
+ echo "<td $_class>";
+ if (is_numeric($_db) && $_db>0) {
+ echo $_db . ' ' . _DB ;
+ if ($_megtartott>0&&$_tervezett>0) echo " ($_sz1% | $_sz2%)";
+ }
+ echo '</td>'."\n";
+ }
+
+ echo '<td>';
+ echo '<span title="'._JEGYEK_SZAMA.'">'.intval($tankorStat['jegyekSzama'][$tankorId]).' db </span> / ';
+ echo '<span title="'._LETSZAM.'">'.intval($tankorStat['letszam'][$tankorId]).' fő</span> / ';
+ echo '<span title="'._HETI_ORASZAM.'">'.$tankorStat['tervezett'][$tankorId]['hetiOraszam'].' óra </span> = ';
+ echo '<span title="'._JEGYSZAM_PER_FO.'">'.((intval($tankorStat['letszam'][$tankorId])!=0)?number_format($tankorStat['jegyekSzama'][$tankorId]/$tankorStat['letszam'][$tankorId],2):'-').' db/fő </span> / ';
+ echo '<span title="'._HETI_ORASZAM.'">'.$tankorStat['tervezett'][$tankorId]['hetiOraszam'].' óra </span> = ';
+ echo '<span title="'._ATLAGOS_JEGYSZAM.'">'.((intval($tankorStat['letszam'][$tankorId])!=0 && intval($tankorStat['tervezett'][$tankorId]['hetiOraszam'])!=0)?number_format($tankorStat['jegyekSzama'][$tankorId]/$tankorStat['letszam'][$tankorId]/$tankorStat['tervezett'][$tankorId]['hetiOraszam'],2):'- - . -').'</span>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+ }
+
+
+ echo '</table>'."\n";
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/tankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/tankor.phtml
new file mode 100644
index 00000000..c5b62199
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/tankor.phtml
@@ -0,0 +1,54 @@
+<?php
+
+ function putTankorStat($ADAT) {
+
+
+ $sum = 0;
+ $sum = $ADAT['tankorStat']['éves']['órarend']['normál'][0]['db'];
+ $sum += $ADAT['tankorStat']['éves']['órarend']['normál plusz'][0]['db'];
+ $sum += $ADAT['tankorStat']['éves']['órarend']['normál máskor'][0]['db'];
+
+ $n = 0;
+ $n += $ADAT['tankorStat']['éves']['órarend']['elmarad'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['elmarad máskor'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['felügyelet'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['helyettesítés'][0]['db'];
+
+ echo '<h1>Az órák '.$sum*100/($sum+$n).'%-a volt megtartva.</h1>';
+ echo '<h1>'.$n.' óra maradt el.</h1>';
+ //dump($ADAT);
+ return;
+
+ $O = $ADAT['oraAdat'];
+
+ echo '<style type="text/css">
+ .modGomb {
+ background-color: #eeeeee;
+ padding:4px 1em; margin:1em; background-color: #eeeeee; border-radius: 2px; border-style: solid solid solid none; border-width: 1px 1px 1px 1px; border-color: #aaa;
+ }
+ .oraElmarad {background-color: red; color:white;}
+ .oraMegtartva {background-color: green; color:white;}
+ </style>';
+
+ echo '<div style="padding:1em 0em;float:left; margin-right:2em;background-color: #eeeeee; width:294px; border-radius: 0px 4px 4px 0px; border-style: solid solid solid none; border-width: 1px 1px 1px 0px; border-color: #aaa;">';
+ if (is_array($O)) {
+ foreach($ADAT['oraAdat'] as $k => $v) {
+ echo '<div style="width:90px; text-align:right; display:table-cell;">';
+ echo $k;
+ echo '</div>';
+ echo '<div style="width:200px; text-align:left; display:table-cell; padding-left:1em;">';
+ echo $v;
+ echo '</div><div style="clear:both"></div>';
+ }
+ }
+ echo '</div>';
+echo '<h2>Ez a funkció még nem működik!</h2>';
+ echo '<input type="hidden" name="oraId" value="'.$O['oraId'].'" />';
+ echo '<input type="submit" name="oraElmarad" value="'._ELMARAD.'" id="oraElmarad" class="modGomb oraElmarad" />';
+ echo '<input type="submit" name="oraMegtartva" value="'._MEGTARTVA.'" id="oraMegtartva" class="modGomb oraMegtartva" />';
+
+ echo '<div style="clear: both"></div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml
new file mode 100644
index 00000000..deaaab15
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml
@@ -0,0 +1,49 @@
+<?php
+ /* 2010 */
+
+ function putTeremModositas($ADAT) {
+ formBegin();
+
+ foreach (array('dt','ora','tanarId','tankorId','oraId') as $key) {
+ echo '<input type="hidden" name="'.$key.'" value="'.$ADAT[$key].'" />';
+ }
+ unset($key);
+
+ echo '<table class="terem" align="center">';
+ echo '<tr>';
+ echo '<td>';
+ _putOraAdat($ADAT['oraAdat']);
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr><th>';
+ echo '<select name="ujTeremId">';
+ echo '<option value="'.$ADAT['oraAdat']['teremId'].'">'._EREDETI.' ('.$ADAT['oraAdat']['teremId'].')</option>'; // nulla amúgy sincs
+ foreach($ADAT['szabadTerem'] as $key) {
+ $_SEL = ($key['teremId'] == $ADAT['oraAdat']['teremId']) ? ' selected="selected" ' : '';
+ $_CLASS = ($ADAT['tankorLetszam']>$key['ferohely']) ? ' class="nemferbe" ' : ' ';
+ echo '<option '.$_CLASS.' value="'.$key['teremId'].'">'.$key['leiras'].' '.$key['tipus'].' ('.$key['ferohely'].' '._HELY.') '.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="hidden" name="action" value="teremModosit" />';
+ echo '<input type="submit" name="kuld" value="'._OK.'" />';
+ echo '</th></tr>';
+ echo '</table>';
+
+ formEnd();
+ }
+
+ function _putOraAdat($OA) {
+ /* Példa
+ array(13) { ["oraId"]=> string(5) "36513" ["dt"]=> string(10) "2010-03-25" ["ora"]=> string(1) "6" ["ki"]=> string(2) "81" ["kit"]=> NULL ["tankorId"]=> string(4) "1267" ["teremId"]=> NULL ["leiras"]=> NULL ["tipus"]=> string(7) "normál" ["eredet"]=> string(8) "órarend" ["kiCn"]=> string(16) "Ábrám László" ["kitCn"]=> string(0) "" ["tankorNev"]=> string(25) "7-8. fizika szakkör ALAP" }
+ */
+ echo '<table align="center" class="terem oraAdat" cellspacing="1">';
+ foreach(array('oraId','dt','ora','tankorNev','kiCn','kitCn','teremId') as $key) {
+ echo '<tr>';
+ echo '<th>'.constant('_'.strtoupper($key)).'</th>';
+ echo '<td>'.$OA[$key].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diak.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diak.phtml
new file mode 100644
index 00000000..6f6256dd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diak.phtml
@@ -0,0 +1,228 @@
+<?php
+
+ function putDiakHianyzasNaptar($ADAT) {
+
+ global $aHetNapjai,$Honapok;
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ $HTIPUSOK2 = array('felszerelés hiány','felmentés','egyenruha hiány');
+ // nincs használatban??? // $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $NAPOK = $ADAT['napok'];
+
+ echo '<table class="naptar" cellspacing="0" align="center">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="7">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=tanuloLista&diakId='.$diakId).'">';
+ echo $ADAT['diak']['nev'];
+ if (is_array($ADAT['diak']['kepzes'])) {
+ echo ' ';
+ for ($j=0; $j<count($ADAT['diak']['kepzes'][$ADAT['diakId']]); $j++) {
+ echo '<span class="kepzes">';
+ echo $ADAT['diak']['kepzes'][$ADAT['diakId']][$j]['kepzesNev'];
+ echo '</span>';
+ }
+ }
+ //echo '</a>';
+ echo ' ';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=osztaly&osztalyId='.$ADAT['osztalyId']).'">';
+ echo $ADAT['osztaly']['osztalyJel'];
+ echo ' '.$ADAT['osztaly']['leiras'];
+ echo '</a>';
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ //echo '<tr>';
+ // echo '<th colspan="7">';
+ // echo $NAPOK[0]['dt'].' '.$NAPOK[count($NAPOK)-1]['dt'];
+ // echo '</th>';
+ //echo '</tr>';
+ if (defined('__STATUS_HATARIDO')) {
+ echo '<tr>';
+ echo '<th colspan="7">';
+ echo _MARNEMIGAZOLHATO.': '.__STATUS_HATARIDO.', ';
+ echo _BEIRHATO.': '. __BEIRAS_HATARIDO;
+ echo '</th>';
+ echo '</tr>';
+ }
+ // igazolás típusának váltása
+ if ( defined('__STATUS_HATARIDO') && (__NAPLOADMIN || __OFO || __VEZETOSEG) ) {
+ echo '<tr>';
+ echo '<td colspan="7">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="ho" value="'.$ADAT['ho'].'" />';
+// #echo '<input type="hidden" name="igDt" value="'.$igDt.'" />';
+ echo '<input type="hidden" name="action" value="igazolasTipusValtas" />';
+ echo '<select name="igazolas" class="onChangeSubmit">';
+ for ($i=0; $i<count($ADAT['igazolasTipusok']['engedelyezett']); $i++) {
+ $_SEL = ($ADAT['igazolas'] == $ADAT['igazolasTipusok']['engedelyezett'][$i]) ? ' selected="selected" ':'';
+ echo '<option value="'.$ADAT['igazolasTipusok']['engedelyezett'][$i].'" '.$_SEL.'>';
+ if ($ADAT['igazolasTipusok'][$ADAT['igazolasTipusok']['engedelyezett'][$i]]!='') {
+ echo $ADAT['igazolasTipusok'][$ADAT['igazolasTipusok']['engedelyezett'][$i]];
+ } else {
+ $ADAT['igazolasTipusok']['engedelyezett'][$i].' (-)';
+ }
+ echo '</option>';
+ }
+ echo '</select>';
+ formEnd();
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tfoot>'."\n";
+
+
+ ## első hó fejléce
+ $dow = date('w',strtotime($NAPOK[0]['dt']));
+ $ho = date('m',strtotime($NAPOK[0]['dt']));
+ if ($dow==0) $dow=7;
+ echo '<tbody>'."\n";
+ echo '<tr><th colspan="7" class="fejlec">'.$Honapok[($ho-1)].'</th></tr>'."\n";
+ echo '<tr>';
+ for($nap=0; $nap<7; $nap++) {
+ echo '<th class="fej2">'.$aHetNapjai[$nap].'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '<tr>';
+ for($nap=1; $nap<$dow; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+
+ for($i=0; $i<count($NAPOK); $i++) {
+ $dt = $NAPOK[$i]['dt'];
+ $dow = date('w',strtotime($dt));
+ $_ho = date('n',strtotime($dt));
+ if ($dow==0) $dow=7;
+
+ if (strtotime($dt)>time()) $future = true;
+
+ // Hónapváltás
+ if ($_ho!=$ho) {
+ $ho=$_ho;
+ if ($dow!=7) {
+ for($nap=$dow; $nap<=7; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr><th colspan="7" class="fejlec">'.$Honapok[($ho-1)].'</th></tr>'."\n";
+ echo '<tr>';
+ for($nap=0; $nap<7; $nap++) {
+ echo '<th class="fejlec">'.$aHetNapjai[$nap].'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '<tr>';
+ for($nap=1; $nap<$dow; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ } // hónapváltás vége
+
+ if ($dow==1) echo '<tr>';
+
+ // Egy nap
+ echo '<td class="egynap">';
+ {
+ if (in_array($NAPOK[$i]['tipus'], array('tanítási nap','speciális tanítási nap'))) {
+ _putHianyzasNap($ADAT,array('dt'=>$NAPOK[$i]['dt']),$ADAT['igazolas'],$future);
+ } else {
+ //if ($NAPOK[$i]['megjegyzes']!='')
+ echo '<div class="spec '.str_replace(' ','_',$NAPOK[$i]['tipus']).'">'.$NAPOK[$i]['megjegyzes'].'</div>';
+ }
+ }
+ echo '</td>'."\n";
+ // -------------------------------------------------
+
+ if ($dow==7) echo '</tr>';
+
+ } // kirakandó dátumok vége
+
+ if ($dow!=7) {
+ for($nap=$dow+1; $nap<=7; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+
+ echo '</table>';
+
+ }
+
+
+ function _putHianyzasNap($ADAT,$NAPADAT,$igazolas,$future) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ $diakId = $ADAT['diakId'];
+ $dt = $NAPADAT['dt'];
+ $KRETAHIANYZAS = $ADAT['hianyzasKreta'][$ADAT['diakId']][$dt];
+ echo '<table class="tanuloEgyNapja hianyzasNaptar" cellspacing="1" cellpadding="1" border="0">';
+ echo '<tr>';
+ if (defined('__STATUS_HATARIDO') && (__OFO || __VEZETOSEG || __NAPLOADMIN) && strtotime(__STATUS_HATARIDO) < strtotime($dt) && !$future) {
+ echo '<th class="balgomb">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="status" value="igazolatlan" />';
+ echo '<input type="hidden" name="igazolas" value="" />';
+ echo '<input type="hidden" name="action" value="napiHianyzasBeiras" />';
+ echo '<input type="submit" value="H" class="H" />';
+ formEnd();
+ echo '</th>'."\n";
+ echo '<th class="balgomb">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="status" value="igazolt" />';
+ echo '<input type="hidden" name="igazolas" value="'.$igazolas.'" />';
+ echo '<input type="hidden" name="action" value="napiHianyzasBeiras" />';
+ echo '<input type="submit" value="I" class="I" />';
+ formEnd();
+ echo '</th>';
+ } else { // nincs joga igazolni
+ echo '<th colspan="2" class="balgombokhelye"></th>'."\n";
+ }
+ echo '<th class="datum">';
+ echo '&nbsp;'.date('j',strtotime($NAPADAT['dt'])).'&nbsp;';
+ echo '</th>'."\n";
+ echo '<th class="jobbgomb">';
+ if (!$future) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=hianyzas&f=nap')));
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$NAPADAT['dt'].'" />';
+ echo '<input type="hidden" name="action" value="" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ }
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="4">';
+
+ if ((__OFO || __NAPLOADMIN || __VEZETOSEG)) {
+ $allowed=true;
+ } else $allowed = false;
+ $href= 'index.php?diakId='.$diakId.'&igazolas='.$igazolas.'&page=naplo&sub=hianyzas&f=diak&action=statusModositas';
+
+ if (!$future) _putHianyzasKistabla(
+ $ADAT['hianyzasok'][$ADAT['diakId']],
+ array('dt' => $dt),
+ array('href' => $href, 'allowed' => $allowed, 'napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra),
+ $KRETAHIANYZAS
+ );
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml
new file mode 100644
index 00000000..c2343043
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml
@@ -0,0 +1,42 @@
+<?php
+
+ function putDiakIgazolatlan($ADAT) {
+
+ echo '<table class="igazolatlan" cellspacing="1">'."\n";
+// echo '<thead>'."\n";
+ echo '<tr class="fej">';
+ echo '<th>'._DATUM.'</th>';
+ echo '<th>'._ORA.'</th>';
+ echo '<th>'._TIPUS.'</th>';
+ echo '<th>'._PERC.'</th>';
+ echo '</tr>'."\n";
+// echo '</thead>'."\n";
+// echo '<tbody>'."\n";
+
+ $hDb = $perc = 0;
+ foreach ($ADAT['igazolatlan'] as $iAdat) {
+
+ if ($iAdat['tipus'] == 'késés') $perc += $iAdat['perc'];
+ else $hDb++;
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$iAdat['dt']).'.</td>';
+ echo '<td>'.$iAdat['ora'].'</td>';
+ echo '<td>'.$iAdat['tipus'].'</td>';
+ echo '<td>'.($iAdat['tipus'] == 'késés'?$iAdat['perc']:'').'</td>';
+ echo '</tr>';
+
+ }
+// echo '</tbody>'."\n";
+// echo '<tfoot>'."\n";
+ echo '<tr class="lab">';
+ echo '<th>'._HIANZASOK_SZAMA.':</th>';
+ echo '<td>'.$hDb.'</td>';
+ echo '<th>'._KESESEK_OSSZESEN.':</th>';
+ echo '<td>'.$perc.'</td>';
+ echo '</tr>'."\n";
+// echo '</tfoot>'."\n";
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml
new file mode 100644
index 00000000..4335f38c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml
@@ -0,0 +1,50 @@
+<?php
+
+ function putDiakHianyzasLista($ADAT) {
+
+ global $aHetNapjai;
+ //re
+ $_N = $ADAT['napok'];
+ for ($i=0; $i<count($_N); $i++) {
+ $NAPOK[$_N[$i]['dt']] = $_N[$i];
+ }
+ unset($_N);
+
+ if (is_array($ADAT['hianyzasok'][$ADAT['diakId']])) {
+ echo '<table class="hianyzasLista" cellspacing="1" cellpadding="1" align="center">';
+ echo '<caption>'.$ADAT['diak']['nev'].'</caption>';
+ foreach ($ADAT['hianyzasok'][$ADAT['diakId']] as $dt => $T) {
+ echo '<tr>';
+ echo '<th colspan="8">';
+ echo str_replace('-','.',$dt) .'. '. $aHetNapjai[date('w',strtotime($dt))-1];
+ echo ' '.$NAPOK[$dt]['megjegyzes'].' ('.$NAPOK[$dt]['orarendiHet'].'. '.__HET.')'; // tipus, megjegyzes, orarendiHet
+ formBegin(array('class'=>'nyil','action'=>href('index.php?page=naplo&sub=hianyzas&f=nap')));
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="action" value="nem csinálunk semmit" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ echo '</th>';
+ echo '</tr>';
+ foreach($T as $ora => $D) {
+ for ($i=0; $i<count($D); $i++) {
+
+ $ORAADAT = getOraAdatById($D[$i]['oraId']); // ezt nem itt!
+
+ echo '<tr>';
+ echo '<td>'.$D[$i]['ora'].'.</td>';
+ echo '<td class="'.ekezettelen($D[$i]['tipus']).'">'.$D[$i]['tipus'].($D[$i]['tipus'] == 'késés'?' ('.$D[$i]['perc'].' '._PERC.')':'').'</td>';
+ echo '<td class="'.ekezettelen($D[$i]['statusz']).'">'.$D[$i]['igazolas'].'</td>';
+ echo '<td>'.$ORAADAT['kiCn'].'</td>';
+ echo '<td>'.$ORAADAT['leiras'].'</td>';
+ echo '<td>'.$ORAADAT['tipus'].'</td>';
+ echo '<td>'.$ORAADAT['tankorNev'].'</td>';
+ echo '</tr>'."\n";
+ }
+ }
+ }
+ echo '</table>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/info.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/info.phtml
new file mode 100644
index 00000000..14b7acec
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/info.phtml
@@ -0,0 +1,96 @@
+<?php
+
+ function putDiakHianyzasInfo($ADAT) {
+ if (__ALLOW_3RDPARTY_APPS===true) {
+ echo "\n\n<!-- We are using Google Chart API! Thank You! http://code.google.com/apis/chart/terms.html -->\n\n";
+ reset($ADAT);
+ $i=0;
+ foreach($ADAT as $dt => $D) {
+ $d = $D['hianyzokSulyozva'];
+ if ($d!=-1) $Goo_Data[] = $d;
+ if ($d!=-1) $Goo_Data2[] = $D['hianyzokTanulmanyin'];
+ if ($d!=-1) $Goo_Data3[] = $d - $D['hianyzokTanulmanyin'];
+ if ($mx<$d) $mx = $d;
+ }
+ $Goo_Data = array_reverse($Goo_Data,false);
+ $Goo_Data2 = array_reverse($Goo_Data2,false);
+ $Goo_Data3 = array_reverse($Goo_Data3,false);
+ echo '<div style="text-align: center">';
+# echo '<img src="http://chart.apis.google.com/chart?chco=667766&cht=lc&chs=500x150&chd=t:'.implode(',',$Goo_Data).'&chds=0,'.($mx+1).'&chxt=y&chxl=0:|0|'.($mx+1).'&chtt=Hiányzók+alakulása+(becslés)" alt="Google Chart" />';
+ echo '<img src="http://chart.apis.google.com/chart?chco=00ff00,7777ff,872879&cht=lc&chs=810x180&chm=D,872879,2,0,4&chd=e:'.
+ googEE($Goo_Data,$mx+1,0).','.
+ googEE($Goo_Data2,$mx+1,0).','.
+ googEE($Goo_Data3,$mx+1,0).
+ '&chds=0,'.($mx+1).'&chxt=y&chxl=0:|0|'.($mx+1).'&chtt=Hiányzók+alakulása+a+megadott+intervallumban+(becslés)'.
+ '&chdl=becslés|tanulmányi+versenyzők|különbség'.
+ '&chg=2.7,10,1,1,0,0'.
+ '&scg=20,50,1,5" alt="Google Chart" />';
+ echo '</div>';
+
+echo '
+ <div id="chart_div"></div>
+';
+
+ }
+ reset($ADAT);
+ echo '<table align="center" class="info" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th>Nap</th>
+ <th>Hány diák hiányzott? (Becslés)</th>
+ <th>Az órák hány százalékán volt hiányzó?</th>
+ <th>Tanulmányi verseny miatt igazolt<br/>(db diák) - pontos érték</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="4">A statisztika '.date('Y-m-d H:i:s').'-kor készült'.'</th></tr></tfoot>';
+ echo '<tbody>';
+ foreach($ADAT as $dt => $D) {
+ list($y,$m,$d) = explode('-',$dt);
+ $w = date('w',strtotime($dt));
+ echo '<tr class="nap'.$w.'">';
+ echo '<th>'.$y.'.'.intval($m).'.'.intval($d).'.</th>';
+ echo '<td>'.$D['hianyzokSulyozva'].'</td>'."\n";
+ echo '<td>'.$D['oranHianyzasSzazalek'].'%</td>'."\n";
+ echo '<td>'.$D['hianyzokTanulmanyin'].'</td>'."\n";
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n";
+
+ }
+
+
+/**
+ * Encode an array of integers according to Google's Extended Encoding
+ * Scales to largest value in array if $max is not set, truncates lower bound if $min is set
+ * Does NOT set the 'e:' prefix so it can be called when creating multiple data series
+ * @link http://code.google.com/apis/chart/formats.html#extended
+ * @param array $values
+ * @param integer $max
+ * @param integer $min
+ * @return string
+ * @author Marcus Bointon <marcus@synchromedia.co.uk>
+ */
+function googEE($values, $max = -1, $min = 0) {
+ $encoding = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.';
+ $rangemax = 4095;
+ $chartdata = '';
+ if ($max < 0) {
+ $max = max($values);
+ }
+ //If max is smaller than the largest value, it will go beyond range allowed by the encoding (0..4095)
+ if ($max < max($values)) {
+ $max = max($values);
+ }
+ $range = $max - $min;
+ $scale = $rangemax / $range;
+ foreach ($values as $k => $v){
+ if ($v >= $min && $v <= $max) {
+ $scaledvalue = ($v - $min) * $scale;
+ $chartdata .= $encoding[floor($scaledvalue / 64)].$encoding[$scaledvalue % 64];
+ } else {
+ $chartdata .= '__'; // Value out of max range;
+ }
+ }
+ return($chartdata);
+}
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/nap.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/nap.phtml
new file mode 100644
index 00000000..32bc0c07
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/nap.phtml
@@ -0,0 +1,253 @@
+<?php
+
+ function putHianyzok($ADAT) {
+
+ $napiMinOra = $ADAT['napiMinOra'];
+ $napiMaxOra = $ADAT['napiMaxOra'];
+ // make assoc
+ if (is_array($ADAT['hianyzasok']))
+ foreach ($ADAT['hianyzasok'] as $_diakId => $_DN)
+ foreach ($_DN as $_dt => $_DO)
+ foreach($_DO as $ora => $_D)
+ for ($i=0; $i<count($_D); $i++) {
+ $HADAT[$_D[$i]['ora']][$_D[$i]['diakId']][$_D[$i]['tipus']] = $_D[$i];
+ $UJHADAT[$_D[$i]['oraId']][$_D[$i]['diakId']][$_D[$i]['tipus']] = $_D[$i];
+ }
+
+ for ($i=0; $i<count($ADAT['nevsor']['adatok']); $i++) {
+ $D = $ADAT['nevsor']['adatok'][$i];
+ $RESZLETEK[$D['tankorId']] = $D;
+ }
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ if (__EGYENRUHA_HIANY_REGISZTRALAS === true) $HTIPUSOK2 = array('egyenruha hiány','felszerelés hiány','felmentés');
+ else $HTIPUSOK2 = array('','felszerelés hiány','felmentés');
+ $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $dt = $ADAT['dt'];
+ $_diakId = $diakId = $ADAT['diakId'];
+
+ $JOGOSULTSAG = $ADAT['jogosultsag'];
+ $JOGADAT = $JOGOSULTSAG[$diakId]['igazolas'];
+
+ formBegin();
+ echo '<table align="center" cellspacing="1" cellpadding="1" class="csoportNevsorHianyzok">'."\n";
+ echo '<thead>';
+ echo '<tr><th colspan="9" class="neve">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId).'" title="'.$ADAT['diakJogviszony'].'">';
+ echo $ADAT['diak']['nev'];
+ echo '</a>';
+ if (!__DIAK) {
+ echo ' ';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=osztaly&osztalyId='.$ADAT['osztaly']['osztalyId']).'">';
+ echo $ADAT['osztaly']['osztalyJel'];
+ echo ' '.$ADAT['osztaly']['leiras'];
+ echo '</a>';
+ }
+ echo '</th><th>';
+ _putHianyzasKistabla($ADAT['hianyzasok'][$_diakId], array('dt'=>$dt), array('napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra), $ADAT['hianyzasKreta'][$diakId][$dt]);
+ echo '</th></tr>';
+ echo '<tr><th></th><th colspan="2">'._TANKOR.'</th><th>'._J.'</th><th>'._K.'</th><th>'._H.'</th><th>'.EH.'</th><th>'._F.'</th><th>'._FM.'</th><th>'._IGAZOLT.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="11">';
+ echo '<input type="submit" name="gomb" value="'._OK.'" />';
+ echo '<input type="hidden" name="action" value="hianyzokRogzitese" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '</th></tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+
+ for ($ora = __MIN_ORA; $ora <= __MAX_ORA; $ora++) {
+ $JOG = $JOGOSULTSAG[$diakId]['orak'][$ora];
+ if (!is_array($ADAT['orak'][$dt][$ora]))
+ {
+ $tankorId='';
+ $OA = false;
+ } else {
+
+ while (
+ list($tankorId,$OA) = each($ADAT['orak'][$dt][$ora])
+ ) {
+ $_tankorTipusId = $ADAT['tankorok'][$tankorId][0]['tankorTipusId'];
+ $_TT = $ADAT['tankorTipus'][$_tankorTipusId];
+ $_class = str_replace(' ','_',ekezettelen( $_TT['rovidNev'] )).' '.ekezettelen(str_replace(' ','',$ADAT['diakJogviszony']));
+ $_oraId = $OA['oraId'];
+ echo '<tr class="'.$_class.'">';
+ echo '<td>';
+ echo $ora.'.';
+ echo '</td>';
+ echo '<td colspan="2">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$OA['oraId']).'" title="'.$ADAT['tankorok'][$tankorId][0]['tankorTipus'].'" >';
+ echo $ADAT['tankorok'][$tankorId][0]['tankorNev'];
+ echo ' '.$_TT['rovidNev'];
+ echo '</a>';
+ echo '</td>';
+
+ if (in_array($OA['tipus'],array('elmarad','elmarad máskor'))) {
+ echo '<th colspan="6">'.$OA['tipus'].'</th>';
+ } else {
+ $oraAlolFelmentve = false;
+ if (in_array($tankorId,array_keys($ADAT['felmentett']))) {
+ for ($i = 0; $i < count($ADAT['felmentett'][$tankorId]); $i++) {
+ if (
+ $ADAT['felmentett'][$tankorId][$i]['felmentesTipus']=='óralátogatás alól'
+ && ($ora == $ADAT['felmentett'][$tankorId][$i]['ora']
+ || is_null($ADAT['felmentett'][$tankorId][$i]['ora'])
+ )
+ ) $oraAlolFelmentve = true;
+ }
+ }
+ if ($_TT['regisztralando'] == 'igen'
+ && !$oraAlolFelmentve
+ && (in_array($ADAT['diakJogviszony'], array('jogviszonyban van','vendégtanuló'))
+ || ($ADAT['diakJogviszony']=='magántanuló' && $_TT['jelleg']=='gyakorlat')
+ )
+ ) {
+ $_igtipus='';
+ /* prepare data */
+ reset($HTIPUSOK1);
+ $__jelen=true;
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ if ($UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId']!='') $__jelen=false;
+ }
+ /* -- */
+ reset($HTIPUSOK1);
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ $_disp='';
+ //$_hid = $HADAT[$ora][$_diakId][$_tipus]['hianyzasId'];
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') $_igtipus = $_tipus;
+ if ($_tipus=='') $_csstipus='jelen'; else $_csstipus=$_tipus;
+ $_radio = ($_hid!='' || ($_tipus=='' && $__jelen)) ?'checked="checked"' : '';
+ $_csstipus .= ($JOG['beirhato'] && ($_hid!='' || ($_tipus=='' && $__jelen))) ?' checked ' : '';
+ echo '<td class="'.$_csstipus.'">';
+ if ($JOG['beirhato']==true) {
+ if ($_tipus=='késés') {
+ $_perc = intval(($UJHADAT[$_oraId][$_diakId][$_tipus]['perc']));
+ $_kesett = ($_perc>0) ? ' kesett':'';
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$_oraId.'" value="'.$_perc.'" />';
+ $_disp = 'style="display:none"';
+ }
+ echo '<input type="radio" id="'.$_tipus.'_HIANYZOK1_'.$_oraId.'" name="HIANYZOK1_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio . ' '.$_disp.'/>';
+ } else {
+ if (($__jelen && $_tipus=='') || $_hid!='') {
+ if ($_hid!='') echo '<input type="hidden" name="HIANYZOK1_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"/>';
+ if ($_tipus=='késés' && ($_perc = intval(($UJHADAT[$_oraId][$_diakId][$_tipus]['perc']))) != 0) {
+ echo '<span class="perc">'.$_perc.'</span>';
+ } else {
+ _putImg($_tipus,$__jelen);
+ }
+ }
+ }
+ echo '</td>';
+ }
+ if ($JOG['fbeirhato']==true) {
+/*
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus" >';
+ echo '<select id="HIANYZOK2_'.$_oraId.'" name="HIANYZOK2_'.$_oraId.'">';
+ echo '<option value="'.$_diakId.'/"></option>';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ $_radio = ($_hid!='') ?'selected="selected"' : '';
+ echo '<option value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'>'.$_tipus.'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+*/
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ echo '<td title="'.$_tipus.'" class="fbetus">';
+
+ //$_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_tipus != '') {
+ if ($_hid != '') $chk = ' checked="checked" '; else $chk = '';
+ echo '<input type="checkbox" id="HIANYZOK'.($j+10).'_'.$_oraId.'" name="HIANYZOK'.($j+10).'_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"'.$chk.' />';
+ }
+ echo '</td>';
+ }
+
+
+ } else {
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus" >';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') {
+ echo '<input type="hidden" name="HIANYZOK2_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'/>';
+ echo ' '.$_tipus.' ';
+ }
+ }
+ echo '</td>';
+ }
+ echo '<td>';
+ _putIgazolasSelect($UJHADAT[$_oraId][$_diakId][$_igtipus], $ITIPUSOK,$JOG,$JOGADAT,array('diakId'=>$_diakId,'oraId'=>$ORAADAT['oraId'],'hianyzasId'=>$_hid));
+ echo '</td>';
+ } else { // nem kötelező bejárnia
+ if ($ADAT['diakJogviszony'] == 'magántanuló') {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ echo $ADAT['diakJogviszony'];
+ echo '</td>'."\n";
+ } else {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ if ($tankorId!='') echo _NEM_REGISZTRALANDO;
+ echo '</td>'."\n";
+ }
+ } // bejárnia kell-e
+ } //oratipusa normál, helyettesites, felugyelet
+ echo '</tr>';
+ } // r516 óta
+ }
+ //$i++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function _putIgazolasSelect($ADAT,$TIPUSOK,$JOG,$JOGADAT,$SET) {
+ //"'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"
+ if (is_array($ADAT)) {
+ if ($JOG['igazolhato']===true) {
+ echo '<select name="IGAZOLAS[]">';
+ echo '<option value="'.$SET['diakId'].'////'.$ADAT['hianyzasId'].'">'._IGAZOLATLAN.'</option>';
+ for($i=0; $i<count($TIPUSOK); $i++){
+ $_SEL = ($ADAT['igazolas']==$TIPUSOK[$i]) ? ' selected="selected"':'';
+ if (in_array($TIPUSOK[$i], $JOGADAT['tipusok'])) {
+ echo '<option value="'.$SET['diakId'].'///'.$TIPUSOK[$i].'/'.$ADAT['hianyzasId'].'" '.$_SEL.'>'.$TIPUSOK[$i].'</option>';
+ }
+ }
+ // és a kieg, ha elfogyott volna, de ez még azzal van igazolva:
+ if (!in_array($ADAT['igazolas'],$JOGADAT['tipusok']) && $ADAT['statusz']!='igazolatlan') {
+ echo '<option value="" selected="selected">'.$ADAT['igazolas'].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['igazolas'];
+ }
+ }
+
+ }
+
+ function _putOraAdat($ORAADAT) {
+ echo '<table align="center" class="oraAdat">';
+ echo '<tr><td>';
+ echo $ORAADAT['dt'].', '.$ORAADAT['ora'].'. ('.$ORAADAT['oraId'].')';
+ echo '</td><td>';
+ echo $ORAADAT['tankorNev'].' - '.$ORAADAT['kiCn'];
+ echo '</td></tr><tr><th colspan="2">';
+ echo $ORAADAT['leiras'];
+ echo '</td></tr>';
+ echo '</table>';
+ }
+
+ function _putImg($tipus,$jelen) {
+ if ($jelen && $tipus=='') echo '<span class="icon-ok-sign" style="display:block;color:green; text-align:center"></span>';
+ elseif ($tipus=='késés') echo '<span class="icon-time" style="display:block;color:yellow; text-align:center"></span>';
+ elseif ($tipus=='hiányzás') echo '<span class="icon-remove-sign" style="display:block;color: red; text-align:center"></span>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml
new file mode 100644
index 00000000..373de446
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml
@@ -0,0 +1,133 @@
+<?php
+
+ function putOktoberiStatisztika($ADAT) {
+
+ putStat_a04t17($ADAT);
+ putStat_a04t79($ADAT);
+ putStat_a04t83($ADAT);
+
+ }
+ function putSTat_a04t79($ADAT) {
+ $stat = 'a04t79';
+ $D = $ADAT[$stat];
+
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+ echo 'nem kompatibilis nézet'; //--TODO: a tábláazt pont fordítva van!
+
+ if (is_array($ADAT['osszes'][0])) {
+ //if (!is_array($ADAT['osszes'][0])) return false;
+
+ $KEYS = array_keys($ADAT['osszes'][0]);
+
+ echo '<table class="info" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="'.count($KEYS).'">Összes</th></tr>'."\n";
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($j=0;$j<count($ADAT['osszes']); $j++) {
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<td>'.$ADAT['osszes'][$j][$KEYS[$i]].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '</table>';
+
+ }
+
+ if (is_array($ADAT['tankoteles'][0])) {
+ //if (!is_array($ADAT['tankoteles'][0])) return false;
+
+ $KEYS = array_keys($ADAT['tankoteles'][0]);
+
+ echo '<table class="info" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="'.count($KEYS).'">Tanköteles</th></tr>'."\n";
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($j=0;$j<count($ADAT['tankoteles']); $j++) {
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<td>'.$ADAT['tankoteles'][$j][$KEYS[$i]].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '</table>';
+
+ }
+
+ }
+
+
+ function putStat_a04t17($ADAT) {
+
+ $stat = 'a04t17';
+ $D = $ADAT[$stat];
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+
+ echo 'Iskolába lépő gyermekek';
+ echo '<table>';
+ echo '<tr><th colspan="2"></th><th>összesen</th><th>lány</th></tr>';
+ echo '<tr>';
+ echo '<td>2</td>';
+ echo '<td>tanköteles (május 31-ig a 6. életévét betöltötte)</td>';
+ echo '<td>'._sum($D[$stat.'_2']).'</td>';
+ echo '<td>'.$D[$stat.'_2']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>3</td>';
+ echo '<td>július 1. és augusztus 31. között töltötte be a 6. életévét</td>';
+ echo '<td>'._sum($D[$stat.'_3']).'</td>';
+ echo '<td>'.$D[$stat.'_3']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>4</td>';
+ echo '<td>szeptember 1-jén a 6. életévét még nem töltötte be</td>';
+ echo '<td>'._sum($D[$stat.'_4']).'</td>';
+ echo '<td>'.$D[$stat.'_4']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+ }
+
+ function putStat_a04t83($ADAT) {
+ $stat = 'a04t83';
+ $D = $ADAT[$stat];
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+ // TODO: emelt szintű oktatásban részt vevő tanulók
+ }
+
+ function _sum($what) {
+
+ return (intval($what['lány']['db']) + intval($what['fiú']['db']) + intval($what['']['db']));
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/ora.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/ora.phtml
new file mode 100644
index 00000000..1edac54f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/ora.phtml
@@ -0,0 +1,280 @@
+<?php
+
+ function putHianyzok($ORAADAT, $ADAT) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ // make assoc
+ for($i=0; $i<count($ADAT['hianyzok']); $i++) {
+ $_D = $ADAT['hianyzok'][$i];
+ $HADAT[$_D['oraId']][$_D['diakId']][$_D['tipus']] = $_D;
+ }
+
+ $NEVEK = $ADAT['nevsor']['nevek'];
+ $RESZLETEK = $ADAT['nevsor']['adatok'];
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ if (__EGYENRUHA_HIANY_REGISZTRALAS === true) $HTIPUSOK2 = array('egyenruha hiány','felszerelés hiány','felmentés');
+ else $HTIPUSOK2 = array('','felszerelés hiány','felmentés');
+ $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $dt = $ORAADAT['dt'];
+ $ora = $ORAADAT['ora'];
+
+ $jovobeli = (strtotime($dt)>time()); // ezt csak itt tiltjuk le, a pre-ben nem! -- ennél szigorúbb a korlátozás a getHianyzasJogosultsag() -on keresztül
+
+ if (!is_array($NEVEK) || count($NEVEK)==0)
+ if (!$ADAT['tagokFelvehetok'])
+ return false;
+
+
+ formBegin(array('class'=>"vissza",'action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi')));
+ echo '<input type="hidden" name="igDt" value="'.$ORAADAT['dt'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ORAADAT['ki'].'" />';
+ echo '<input type="submit" value="&larr; '._HALADASI.'" />';
+ formEnd();
+
+ if ($ADAT['tankorAdat']['oratervi'] != 'óratervi') $class = 'delutani';
+ formBegin(array('method' => 'post', 'action' => '','class' => $class));
+
+ echo '<table align="center" cellspacing="1" cellpadding="1" class="csoportNevsorHianyzok">'."\n";
+ echo '<thead class="oraAdat">';
+ echo '<tr><th colspan="11">';
+ _putOraAdat($ORAADAT);
+ echo '</th></tr></thead>';
+ echo '<thead class="fejlec">';
+ echo '<tr><th colspan="11">'.
+ '<span title="'.
+ _JELENLET.': '.$ADAT['tankorAdat']['jelenlet'].'/'.
+ _REGISZTRALANDO.': '.$ADAT['tankorAdat']['regisztralando'].'/'.
+ _HIANYZAS_BELESZAMIT.': '.$ADAT['tankorAdat']['hianyzasBeleszamit'].
+ '">'.$ADAT['tankorAdat']['oratervi'].', '.$ADAT['tankorAdat']['jelleg'].'</span>';
+ echo '</th></tr>';
+ echo '<tr><th>'._ADOTT_NAP.'</th><th colspan="3">'._NEV_OSZTALY.'</th><th>'._J.'</th><th>'._K.'</th><th>'._H.'</th>'.
+ '<th title="'._EGYENRUHA.'">'._EH.'</th>'.'<th title="'._FELSZERELES.'">'._FH.'</th>'.'<th title="'._FELMENTETT.'">'._FM.'</th>'.'<th>'._IGAZOLT.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="11">';
+ echo '<input type="submit" name="gomb" value="'._OK.'" />';
+ echo '<input type="hidden" name="action" value="hianyzokRogzitese" />';
+ echo '<input type="hidden" name="oraId" value="'.$ORAADAT['oraId'].'" />';
+ echo '</th></tr>';
+ echo '</tfoot>';
+
+
+ /* Ha a tagok felvehetők (módosíthatók) - tipikusan ilyen a tanulószoba */
+ if ($ADAT['tagokFelvehetok']===true) {
+ echo '<body>';
+ echo '<tr class="ujTag">';
+ echo '<th>';
+ echo _UJ_TAG;
+ echo '</th>';
+ echo '<td colspan="8" >';
+ echo '<select name="diakId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $_D = $ADAT['diakok'][$i];
+ echo '<option value="'.$_D['diakId'].'">'.$_D['diakNev'].' ('.$_D['diakId'].')</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+ echo '</body>'."\n";
+ }
+ /* -- */
+
+
+
+ echo '<tbody>';
+ $i=0;
+ if (is_array($NEVEK))
+ foreach($NEVEK as $_diakId => $DA) {
+ $JOG = $ADAT['jogosultsag'][$_diakId]['orak'][$ORAADAT['ora']];
+ $JOGADAT = $ADAT['jogosultsag'][$_diakId]['igazolas'];
+ $jogviszony = ekezettelen(str_replace(' ','',$ADAT['diakJogviszony'][$_diakId][$ORAADAT['dt']]['statusz']));
+ $felmentett_class = (in_array($ADAT['tankorAdat']['tankorId'], $ADAT['felmentes'][$_diakId])) ? ' felmentett':'';
+ echo '<tr class="'.$jogviszony.$felmentett_class.'">';
+ echo '<td>';
+ _putHianyzasKistabla($ADAT['napiHianyzasok'][$_diakId], $ORAADAT, array('napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra), $ADAT['hianyzasKreta'][$_diakId][$ORAADAT['dt']]);
+ echo '</td>';
+ echo '<td>';
+ putFace($DA['diakId'],'diak','30');
+ echo '</td>';
+ echo '<th class="c diakNev" data-diakid="'.$_diakId.'">';
+ echo '<span>';
+ printf("%02s. ", $i+1);
+ echo '</span>';
+ echo '</th>';
+ echo '<td colspan="1" title="'.$ADAT['diakJogviszony'][$_diakId][$ORAADAT['dt']]['statusz'].'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$_diakId).'">';
+ echo $DA['diakNev'];
+ echo '</a>';
+ echo '</td>';
+ if (
+ $ADAT['tankorAdat']['regisztralando']=='igen'
+ && !in_array($ADAT['tankorAdat']['tankorId'], $ADAT['felmentes'][$_diakId])
+ && (in_array($jogviszony, array('jogviszonybanvan','vendegtanulo'))
+ || ($jogviszony == 'magantanulo' && $ADAT['tankorAdat']['jelleg']=='gyakorlat')
+ )
+ ) {
+ $_igtipus='';
+ /* prepare data */
+ reset($HTIPUSOK1);
+ $__jelen=true;
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ if ($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId']!='') $__jelen=false;
+ }
+
+ /* -- */
+ reset($HTIPUSOK1);
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ $_disp='';
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') $_igtipus = $_tipus;
+ if ($_tipus=='') $_csstipus = 'jelen'; else $_csstipus=$_tipus;
+ $_radio = ($_hid!='' || ($_tipus=='' && $__jelen)) ?'checked="checked"' : '';
+ $_csstipus .= ($JOG['beirhato'] && ($_hid!='' || ($_tipus=='' && $__jelen))) ?' checked ' : '';
+ echo '<td class="'.$_csstipus.'">';
+ if ($JOG['beirhato']==true && !$jovobeli) {
+ //echo $_diakId.'/'.$_tipus.'/'.$_hid;
+ if ($_tipus=='késés') {
+ $_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']));
+ if ($_perc >0) $_kesett = ' kesett'; else $_kesett = '';
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$i.'" value="'.$_perc.'" />';
+ $_disp = 'style="display:none"';
+ }
+ echo '<input type="radio" id="HIANYZOK1_'.$i.'" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio . ' '.$_disp.'/>';
+
+ } else {
+ if (($__jelen && $_tipus=='') || $_hid!='') {
+ if ($_hid!='') echo '<input type="hidden" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"/>';
+ if ($_tipus=='késés' && ($_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']))) != 0) {
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$i.'" value="'.$_perc.'" disabled="disabled" />';
+ //echo '<span class="perc">'.$_perc.'</span>';
+ } else {
+ _putImg($_tipus,$__jelen);
+ }
+ }
+ }
+ echo '</td>';
+ }
+ /* === */
+ if ($JOG['fbeirhato']==true && !$jovobeli) {
+/*
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus">';
+ echo '<select id="HIANYZOK2_'.$i.'" name="HIANYZOK2_'.$i.'">';
+ echo '<option value="'.$_diakId.'/"></option>';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ $_radio = ($_hid!='') ?'selected="selected"' : '';
+ echo '<option value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'>'.$_tipus.'</option>';
+ }
+ echo '</select>';
+ echo '</td>
+*/
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ echo '<td title="'.$_tipus.'" class="fbetus">';
+
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_tipus != '') {
+ if ($_hid != '') $chk = ' checked="checked" '; else $chk = '';
+ echo '<input type="checkbox" id="HIANYZOK'.($j+10).'_'.$i.'" name="HIANYZOK'.($j+10).'_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"'.$chk.' />';
+ }
+ echo '</td>';
+ }
+ } else {
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus">';
+
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') {
+ echo '<input type="hidden" name="HIANYZOK2_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'/>';
+ echo $_tipus;
+ }
+ }
+ echo '</td>';
+ }
+ echo '<td>';
+ _putIgazolasSelect($HADAT[$ORAADAT['oraId']][$_diakId][$_igtipus], $ITIPUSOK,$JOG,$JOGADAT,array('diakId'=>$_diakId,'oraId'=>$ORAADAT['oraId'],'hianyzasId'=>$_hid));
+ echo '</td>';
+ } else {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ // echo _ORARA_NEM_KOTELEZO_BEJARNIA;
+ echo _NEM_REGISZTRALANDO;
+ echo '</td>'."\n";
+ }
+
+ echo '</tr>';
+ $i++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function _putIgazolasSelect($ADAT,$TIPUSOK,$JOG,$JOGADAT,$SET) {
+ //"'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"
+ if (is_array($ADAT)) {
+ if ($JOG['igazolhato']===true) {
+ echo '<select name="IGAZOLAS[]">'."\n";
+ echo '<option value="'.$SET['diakId'].'////'.$ADAT['hianyzasId'].'">'._IGAZOLATLAN.'</option>'."\n";
+ for($i=0; $i<count($TIPUSOK); $i++){
+ $_SEL = ($ADAT['igazolas']==$TIPUSOK[$i]) ? ' selected="selected"':'';
+ if (in_array($TIPUSOK[$i], $JOGADAT['tipusok'])) {
+ echo '<option value="'.$SET['diakId'].'///'.$TIPUSOK[$i].'/'.$ADAT['hianyzasId'].'" '.$_SEL.'>'.$TIPUSOK[$i].'</option>'."\n";
+ }
+ }
+ // és a kieg, ha elfogyott volna, de ez még azzal van igazolva:
+ if (!in_array($ADAT['igazolas'],$JOGADAT['tipusok']) && $ADAT['statusz']!='igazolatlan') {
+ echo '<option value="" selected="selected">'.$ADAT['igazolas'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo $ADAT['igazolas'];
+ }
+ }
+
+ }
+
+ function _putOraAdat($ORAADAT) {
+ echo '<table align="center" class="oraAdat">';
+ echo '<tr><td>';
+ echo '<span title="'.$ORAADAT['oraId'].'">';
+ echo $ORAADAT['dt'].', '.$ORAADAT['ora'].'.'._ORA.'</span>';
+ echo '</td><td>';
+ echo $ORAADAT['tankorNev'].' - '.$ORAADAT['kiCn'];
+ echo '</td></tr><tr>';
+ echo '<th colspan="2">';
+ if ($ORAADAT['tankorTipus'] == 'délutáni') echo nagybetus($ORAADAT['tankorTipus']).' ';
+ echo $ORAADAT['leiras'];
+ echo '</th></tr>';
+ echo '</table>';
+ }
+
+
+ function putOraAdatok($oraAdat) {
+
+ list($evf,$oszt,$targy,$targycsoport,$tipus,$index) = explode('_',$oraAdat['tankor']);
+
+ #echo '<table align="center" class="oraAdatok" style="width:90%" cellpadding="0" cellspacing="0"><tr><td style="text-align: center">';
+ echo '<table align="right" style="border-style: none none dotted none; border-width: 0px 0px 1px 0px; border-color: #999999">';
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$oraAdat['dt']).'.</td>';
+ echo '<td>'.$oraAdat['ora'].'. óra</td>';
+ echo "<td> ~ $evf.$oszt $targy, $tipus $targycsoport</td>";
+ echo '<td> ~ '.$oraAdat['tanarCn'].'</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+ #echo '</td></tr></table>'."\n";
+ #echo '<br/>';
+ }
+
+ function _putImg($tipus,$jelen) {
+ if ($jelen && $tipus=='') echo '<span class="icon-ok-sign" style="display:block;color:green; text-align:center"></span>';
+ elseif ($tipus=='késés') echo '<span class="icon-time" style="display:block;color:yellow; text-align:center"></span>';
+ elseif ($tipus=='hiányzás') echo '<span class="icon-remove-sign" style="display:block;color: red; text-align:center"></span>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml
new file mode 100644
index 00000000..f07a166d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml
@@ -0,0 +1,667 @@
+<?php
+
+ function putOsztalyOsszesito($ADAT, $View) {
+
+ global $_TANEV;
+
+ $_cols = 3;
+
+ formBegin();
+ echo '<table align="center" class="navi"><tr><td>';
+
+
+ echo '<input id="hozott" type="checkbox" name="View[]" value="hozott" ';
+ if (in_array('hozott',$View)) echo 'checked="checked" ';
+ echo '/><label for="hozott">'._HOZOTT.'</label>';
+ echo '<input id="lezart" type="checkbox" name="View[]" value="lezárt" ';
+ if (in_array('lezárt',$View)) echo 'checked="checked" ';
+ echo '/><label for="lezart">'._LEZART.'</label>';
+ echo '<input id="igazolhato" type="checkbox" name="View[]" value="igazolható" ';
+ if (in_array('igazolható',$View)) echo 'checked="checked" ';
+ echo '/><label for="igazolhato">'._IGAZOLHATO.'</label>';
+ echo '<input id="osszes" type="checkbox" name="View[]" value="összes" ';
+ if (in_array('összes',$View)) echo 'checked="checked" ';
+ echo '/><label for="osszes">'._OSSZES.'</label>';
+ echo '<input id="kreta" type="checkbox" name="View[]" value="kreta" ';
+ if (in_array('kreta',$View)) echo 'checked="checked" ';
+ echo '/><label for="kreta">'._KRETA.'</label>';
+ echo '<input id="fegyu" type="checkbox" name="View[]" value="fegyelmi utáni" ';
+ if (in_array('fegyelmi utáni',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyu">'._FEGYELMI_UTANI.'</label>';
+ echo '<input id="fegyfo" type="checkbox" name="View[]" value="fegyelmi fokozatok" ';
+ if (in_array('fegyelmi fokozatok',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyfo">'._FEGYELMI_FOKOZATOK.'</label>';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" /> ';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" /> ';
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" /> ';
+ echo '<input type="submit" value="'._OK.'" />';
+
+ echo ' '._REFERENCIADT.' ';
+ echo '<select name="referenciaDt" class="onChangeSubmit">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['referenciaDt'] => ' selected="selected" ');
+ for (
+ $dt = _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ strtotime($dt) < time();
+ $dt = date('Y-m-d',strtotime('+1 day',strtotime($dt)))
+ ) echo '<option value="'.$dt.'"'.$SEL[$dt].'>'.$dt.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '<table class="hianyzas" align="center" cellspacing="1">';
+
+ /* ----------- Fejléc ----------- */
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th rowspan="3" colspan="2" title="'.$ADAT['tolDt'].'-'.$ADAT['igDt'].'">';
+ formBegin();
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" /> ';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" /> ';
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" /> ';
+ $SEL = array($ADAT['nevsor'] => ' selected="selected" ');
+ echo '<select name="nevsor" class="onChangeSubmit">';
+ echo '<option value="aktualis"'.$SEL['aktualis'].'>'._AKTUALIS_NEVSOR.'</option>';
+ echo '<option value="teljes"'.$SEL['teljes'].'>'._TELJES_NEVSOR.'</option>';
+ echo '</select>';
+ formEnd();
+ echo '</th>';
+
+ if (in_array('hozott',$View)) {
+ echo '<th colspan="3">'._HOZOTT.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="6">'._LEZART.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="6">'._IGAZOLHATO.'</th>';
+ $_cols+=6;
+ }
+
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="9">'._OSSZES.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('kreta',$View)) {
+ echo '<th colspan="6">'._KRETA.'</th>';
+ $_cols+=6;
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th colspan="3">'._FEGYELMI_UTANI.'</th>';
+ $_cols+=3;
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th colspan="4">'._FEGYELMI_FOKOZATOK.'</th>';
+ $_cols+=4;
+ }
+
+ echo '</tr><tr>';
+
+ if (in_array('hozott',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ }
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELMENTES.'">'._FM.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._EGYENRUHA_HIANY.'">'._EH.'</th>';
+ }
+ if (in_array('kreta',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._HIANYZAS.'">'._H.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._KESES.'">'._K.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._OSSZES_IGAZOLATLAN.'">'._O.'</th>';
+ echo '<th rowspan="2" class="alcim">'._AKTUALIS_FOKOZAT.'</th>';
+ echo '<th rowspan="2" class="alcim">'._LEGMAGASABB_FOKOZAT.'</th>';
+ echo '<th rowspan="2" class="alcim">'._BEIRANDO_FOKOZAT.'</th>';
+ }
+
+ echo '</tr><tr>';
+
+
+
+ if (in_array('hozott',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+
+ if (in_array('lezárt',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+
+ if (in_array('összes',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('kreta',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ }
+
+
+ echo '</tr>';
+
+
+ echo '</thead>'."\n";
+
+ /* ----------- Fejléc vége ------------- */
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._OSSZES.'</th>';
+ if (in_array('hozott',$View)) {
+ echo '<td colspan="3"></td>';
+ }
+ if (in_array('lezárt',$View)) {
+ echo '<td colspan="6"></td>';
+ }
+ if (in_array('igazolható',$View)) {
+ echo '<td colspan="6"></td>';
+ }
+ if (in_array('összes',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['hiányzás']['igazolatlan'].'</td>';
+ echo '<td class="igazolt hianyzas">'.$ADAT['stat']['összes']['hiányzás']['igazolt'].'</td>';
+ echo '<td class="osszes hianyzas">'.(intval($ADAT['stat']['összes']['hiányzás']['igazolt'])+intval($ADAT['stat']['összes']['hiányzás']['igazolatlan'])).'</td>';
+ echo '<td class="igazolatlan keses">'.$ADAT['stat']['összes']['késés']['igazolatlan'].'</td>';
+ echo '<td class="igazolt keses">'.$ADAT['stat']['összes']['késés']['igazolt'].'</td>';
+ echo '<td class="osszes keses">'.(intval($ADAT['stat']['összes']['késés']['igazolt'])+intval($ADAT['stat']['összes']['késés']['igazolatlan'])).'</td>';
+ echo '<td class="felszereles">'.$ADAT['stat']['összes']['felszerelés hiány']['igazolatlan'].'</td>';
+ echo '<td class="felmentes">'.$ADAT['stat']['összes']['felmentés']['igazolatlan'].'</td>';
+ echo '<td class="egyenruha">'.$ADAT['stat']['összes']['egyenruha hiány']['igazolatlan'].'</td>';
+ }
+ if (in_array('kreta',$View)) {
+ echo '<td colspan="6"></td>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['fegyelmi']['hiányzás']['igazolatlan'].'</td>';
+ echo '<td class="igazolatlan keses">'.$ADAT['stat']['összes']['fegyelmi']['késés']['igazolatlan'].'</td>';
+ echo '<td class="felszereles">'.$ADAT['stat']['összes']['fegyelmi']['felszerelés hiány']['igazolatlan'].'</td>';
+ }
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['összes igazolatlan'].'</td>';
+ echo '<td colspan="3"></td>';
+ }
+ echo '</tr>';
+ if ($ADAT['hianyzasmentesNapokSzama'] != 0) {
+ echo '<tr><th colspan="'.$_cols.'">';
+ echo _HIANYZASMENTESNAPOKSZAMA.': '.$ADAT['hianyzasmentesNapokSzama'];
+ echo '</th></tr>';
+ }
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+
+ $i = 1;
+ foreach ($ADAT['stat']['névsor'] as $diakId => $dAdat) {
+ $DH = $ADAT['stat'][$diakId]; // DH=DiákHiányzás: lezárt|összes|fegyelmi
+ // kiemelt változók
+
+ $lhigazolatlan = $DH['lezárt']['hiányzás']['igazolatlan'];
+ $lhigazolt = $DH['lezárt']['hiányzás']['igazolt'];
+ $lkigazolatlan = $DH['lezárt']['késés']['igazolatlan']['db'];
+ $lkigazolatlanIdo = $DH['lezárt']['késés']['igazolatlan']['ido'];
+ // igazolható, igazolatlan hiányzás
+ $ihigazolatlan = $DH['összes']['hiányzás']['igazolatlan'] - $DH['lezárt']['hiányzás']['igazolatlan'];
+ $lkigazolt = $DH['lezárt']['késés']['igazolt']['db'];
+ // igazolható, igazolt hiányzás
+ $ihigazolt = $DH['összes']['hiányzás']['igazolt'] - $DH['lezárt']['hiányzás']['igazolt'];
+ $ikigazolatlan = $DH['összes']['késés']['igazolatlan']['db'] - $DH['lezárt']['késés']['igazolatlan']['db'];
+ $ikigazolatlanIdo = $DH['összes']['késés']['igazolatlan']['ido'] - $DH['lezárt']['késés']['igazolatlan']['ido'];
+ $ikigazolt = $DH['összes']['késés']['igazolt']['db'] - $DH['lezárt']['késés']['igazolt']['db'];
+
+ $ohigazolatlan = $DH['összes']['hiányzás']['igazolatlan'] + $DH['hozott']['igazolatlan']['db'];
+ $ohigazolt=$DH['összes']['hiányzás']['igazolt']+ $DH['hozott']['igazolt']['db'];
+
+ $okigazolatlan = $DH['összes']['késés']['igazolatlan']['db'];
+ $okigazolatlanIdo = $DH['összes']['késés']['igazolatlan']['ido'];
+ $okigazolt=$DH['összes']['késés']['igazolt']['db'];
+ $ofelszereles = $DH['összes']['felszerelés hiány']['igazolatlan'];
+ $ofelmentes = $DH['összes']['felmentés']['igazolatlan'];
+ $oegyenruha = $DH['összes']['egyenruha hiány']['igazolatlan'];
+
+ $fih = $DH['fegyelmi']['hiányzás']['igazolatlan'];
+ $fik = $DH['fegyelmi']['késés']['igazolatlan']['db'];
+ $fikIdo = $DH['fegyelmi']['késés']['igazolatlan']['ido'];
+ $ff = $DH['fegyelmi']['felszerelés hiány']['igazolatlan'];
+ $fe = $DH['fegyelmi']['egyenruha hiány']['igazolatlan'];
+ //---..
+
+ echo '<tr class="'.str_replace(' ','',ekezettelen($dAdat['aktualisStatusz'])).'">';
+ echo '<td class="nev" style="text-align: right;">'.($i++).'</td>';
+
+ echo '<td class="nev" title="'.$dAdat['aktualisStatusz'].'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId.'&osztalyId='.$ADAT['osztalyId']).'" >';
+ echo $dAdat['diakNev'];
+ echo '</a>';
+ echo '</td>';
+
+
+ if (in_array('hozott',$View)) {
+ # Hozott
+ // Lezárt igazolatlan hiányzás
+ if (intval($ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db']) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db'].'</td>';
+
+ // Lezárt igazolt hiányzás
+ if (intval($ADAT['hozottHianyzas'][$diakId]['igazolt']['db']) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$ADAT['hozottHianyzas'][$diakId]['igazolt']['db'].'</td>';
+
+ // Lezárt összes hiányzás
+ $osszeg = intval($ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db']) + intval($ADAT['hozottHianyzas'][$diakId]['igazolt']['db']);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+
+ if (in_array('lezárt',$View)) {
+ # Lezártak
+ // Lezárt igazolatlan hiányzás
+ if (intval($lhigazolatlan) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolatlan.'</td>';
+
+ // Lezárt igazolt hiányzás
+ if (intval($lhigazolt) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolt.'</td>';
+
+ // Lezárt összes hiányzás
+ $osszeg = intval($lhigazolt) + intval($lhigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Lezárt igazolatlan késés
+ if ($lkigazolatlan == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$lkigazolatlanIdo.'">'.$lkigazolatlan.'</td>';
+
+ // Lezárt igazolt késés
+ if ($lkigazolt == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt keses';
+ echo '<td class="'.$class.'">'.$lkigazolt.'</td>';
+
+ // Lezárt igazolatlan késés
+ $osszeg = intval($lkigazolt) + intval($lkigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+ if (in_array('igazolható',$View)) {
+ ## Lezárt utáni = Igazolható
+
+ // Igazolható igazolatlan hiányzás
+ if ($ihigazolatlan == 0) {
+ $ihigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolatlan.'</td>';
+
+ // Igazolható igazolt hiányzás
+ if ($ihigazolt == 0) {
+ $ihigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolt hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolt.'</td>';
+
+ // Igazolható összes hiányzás
+ $osszeg = $ihigazolt+$ihigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Igazolható igazolatlan késés
+ if ($ikigazolatlan == 0) {
+ $ikigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan keses';
+ }
+ echo '<td class="'.$class.'" title="'.$ikigazolatlanIdo.'">'.$ikigazolatlan.'</td>';
+
+ // Igazolható igazolt késés
+ if ($ikigazolt == 0) {
+ $ikigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato izagolt keses';
+ }
+ echo '<td class="'.$class.'">'.$ikigazolt.'</td>';
+
+ // Igazolható összes késés
+ $osszeg = intval($ikigazolt)+intval($ikigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+
+ if (in_array('összes',$View)) {
+ ## Összes
+
+ // Összes igazolatlan hiányzás
+ if ($ohigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolatlan.'</td>';
+
+ // Összes igazolt hiányzás
+ if ($ohigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolt.'</td>';
+
+ // Összes hiányzás
+ $osszeg = intval($ohigazolt)+intval($ohigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes igazolatlan késés
+ if ($okigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$okigazolatlanIdo.'">'.$okigazolatlan.'</td>';
+
+ // Összes igazolt késés
+ if ($okigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt keses';
+ echo '<td class="'.$class.'">'.$okigazolt.'</td>';
+
+ // Összes késés
+ $osszeg = intval($okigazolt) + intval($okigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes felszerelés hiány
+ if ($ofelszereles == 0) $class = 'uosszes';
+ else $class = 'osszes felszereles';
+ echo '<td class="'.$class.'">'.$ofelszereles.'</td>';
+
+ // Összes felmentés hiány
+ if ($ofelmentes == 0) $class = 'uosszes';
+ else $class = 'osszes felmentes';
+ echo '<td class="'.$class.'">'.$ofelmentes.'</td>';
+
+ // Összes egyenruha hiány
+ if ($oegyenruha == 0) $class = 'uosszes';
+ else $class = 'osszes egyenruha';
+ echo '<td class="'.$class.'">'.$oegyenruha.'</td>';
+ ## ------
+ }
+
+
+ if (in_array('kreta',$View)) { // Kréta
+ $_KRETAADAT = $ADAT['hianyzasKreta'][$diakId];
+ echo '<td class="kreta hianyzas igazolatlan">'.$_KRETAADAT['hiányzás']['igazolatlan']['db'].'</td>';
+ echo '<td class="kreta hianyzas igazolt">'.$_KRETAADAT['hiányzás']['igazolt']['db'].'</td>';
+ echo '<td class="kreta hianyzas osszes">'.(($_KRETAADAT['hiányzás']['igazolatlan']['db'])+($_KRETAADAT['hiányzás']['igazolt']['db'])).'</td>';
+ echo '<td class="kreta keses igazolatlan">';
+ _kiir(intval($_KRETAADAT['késés']['igazolatlan']['db']).'/'.intval($_KRETAADAT['késés']['igazolatlan']['perc'])."'");
+ echo '</td>';
+ echo '<td class="kreta keses igazolt">';
+ _kiir(intval($_KRETAADAT['késés']['igazolt']['db']).'/'.intval($_KRETAADAT['késés']['igazolt']['perc'])."'");
+ echo '</td>';
+ echo '<td class="kreta keses osszes">';
+ if (($_KRETAADAT['késés']['igazolatlan']['db'])+($_KRETAADAT['késés']['igazolt']['db']) >0) {
+ echo (($_KRETAADAT['késés']['igazolatlan']['db'])+($_KRETAADAT['késés']['igazolt']['db']));
+ echo '/';
+ echo (($_KRETAADAT['késés']['igazolatlan']['perc'])+($_KRETAADAT['késés']['igazolt']['perc']));
+ echo '\'';
+ }
+ echo '</td>';
+ } // Kréta
+
+ if (in_array('fegyelmi utáni',$View)) {
+ ## Fegyelmi után
+ // Fegyelmi utáni igazolatlan hiányzás
+ if ($fih == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$fih.'</td>';
+
+ // Fegyelmi utáni igazolatlan késés
+ if ($fik == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$fikIdo.'">'.$fik.'</td>';
+
+ // Fegyelmi utáni felszerelés hiány
+ if ($ff == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi felszereles';
+ echo '<td class="'.$class.'">'.$ff.'</td>';
+
+ // Fegyelmi utáni egyenruha hiány
+ if ($fe == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi egyenruha';
+ echo '<td class="'.$class.'">'.$fe.'</td>';
+ ## ------
+ }
+ if (in_array('fegyelmi fokozatok',$View)) {
+ ## Fokozatok
+
+ $igazolatlanok_szama = $DH['összes igazolatlan'];
+ if ($igazolatlanok_szama == 0) {
+ $igazolatlanok_szama = '';
+ $class = 'ufokozat';
+ } else {
+ $class = 'fokozat oi igazolatlan';
+ }
+ echo '<td class="'.$class.'">'.$igazolatlanok_szama.'</td>';
+
+ // Jelenlegi fegyelmi fokozat
+ $aktFokozat = intval($DH['fegyelmi']['fokozat']);
+ $maxFokozat = intval($DH['fegyelmi']['maxFokozat']);
+ $hianyzasDb = intval($DH['fegyelmi']['hianyzasDb']);
+ $diakReferenciaDt = $DH['fegyelmi']['referenciaDt'];
+ if ($aktFokozat == 0) $class = 'ufokozat';
+ else $class = 'fokozat';
+ if ($maxFokozat == 0) $_class2 = 'ufokozat';
+ else $_class2 = 'fokozat';
+ if ($ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['hianyzasDb']!='')
+ $title = 'Dt: '.$diakReferenciaDt.' (~'.$ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['hianyzasDb'].' db igazolatlan / '.$hianyzasDb.' db rögzített)';
+ else
+ $title = 'Dt: '.$diakReferenciaDt;
+ echo '<td class="'.$class.'" title="'.$title.'">';
+ echo '<span>'.$ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['bejegyzesTipusNev'];
+ echo '</span>';
+ echo '</td>'; // kapott már + dt
+
+ echo '<td class="'.$_class2.'" title="'.$title.'">';
+ echo '<span>'.$ADAT['fokozat2bejegyzesTipus'][$maxFokozat]['bejegyzesTipusNev'];
+ echo '</span>';
+ echo '</td>'; // kapott már + dt
+
+
+
+ // Adandó fegyelmi fokozat szempontjából érdekes, már lezárt hiányzások és késésekből, felszerelés hiányokból, egyenruha hiányokból "átváltott" hiányzások
+ $fegyelmiIgazolatlanDb = $lhigazolatlan;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlanIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlan / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($ofelszereles / intval(_HANY_FSZ_IGAZOLATLAN));
+ if (intval(_HANY_EH_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($oegyenruha / intval(_HANY_EH_IGAZOLATLAN));
+ }
+ // keressük visszafele az első adandó fokozatot...
+ $fegyelmi = 0;
+ $j = count($ADAT['összes fokozat'])-1;
+ while($ADAT['összes fokozat'][$j]['hianyzasDb'] > $fegyelmiIgazolatlanDb && $j >= 0) $j--;
+// Na de mi van, ha $j == -1 lesz, mert mondjuk az első fokozat 2 igazolatlan esetén adandó és neki még csak egy van?
+ if ($j >= 0) {
+ $megerdemeltFokozat = $ADAT['összes fokozat'][$j]['fokozat'];
+ $megerdemeltBejegyzesTipusId = $ADAT['összes fokozat'][$j]['bejegyzesTipusId'];
+
+ // Fegyelmi utáni igazolatlanok összesítése
+ $fegyelmi = $fih;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ // a fegyelmikbe beleszámítható az igazolatlanok száma rev2222+
+ $fegyelmi += floor($fikIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($fik / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($ff / intval(_HANY_FSZ_IGAZOLATLAN));
+ }
+ }
+ # FIX 2009-05-28 konczy
+ # Ha a már lejárt hiányzások és késések és hiányzások darabszámának ($j) megfelelő
+ # fokozat nagyobb, mint a beírt, akkor meg kell jelenítenünk a formot.
+ # - illetve, ha a legutóbbi fegyelmi óta van újabb lezárt igazolatlanja...
+ //// $_talalat = ($j >= 0 && ($fegyelmi > 0 || $megerdemeltFokozat>$aktFokozat));
+ # Nem, az utolsó feltétel nem áll, mert ha nem adunk minden igazolatlan után
+ # valamilyen fegyelmit, akkor maradhat "megtorlatlan" igazolatlan!
+ $_talalat = ($j >= 0 && ($megerdemeltFokozat>$aktFokozat));
+
+ if (($_talalat)&& $_TANEV['statusz']=='aktív') $class = 'fokozat';
+ else $class = 'ufokozat';
+ echo '<td class="'.$class.'">';
+ ## FORM
+ if (
+ ($_talalat) && $_TANEV['statusz']=='aktív'
+ && in_array($dAdat['aktualisStatusz'], array('jogviszonyban van','vendégtanuló'))
+ ) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="fegyelmiRogzitese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="hianyzasDb" value="'.$fegyelmiIgazolatlanDb.'" />'."\n";
+ if ($ADAT['referenciaDt'] == '') echo '<input type="hidden" name="ujReferenciaDt" value="'.$DH['igDt'].'" />';
+ else echo '<input type="hidden" name="ujReferenciaDt" value="'.$ADAT['referenciaDt'].'" />';
+ echo '<select name="bejegyzesTipusId">'."\n";
+ foreach ($ADAT['összes fokozat'] as $f => $fAdat) {
+ // if (in_array($fAdat, $ADAT['jogosult fokozatok'])) $DIS = '';
+ // else $DIS = ' disabled="disabled" ';
+ $DIS_class = (in_array($fAdat, $ADAT['jogosult fokozatok'])) ? '' : 'tiltott';
+
+ if ($megerdemeltBejegyzesTipusId == $fAdat['bejegyzesTipusId']) echo '<option'.$DIS.' value="'.$fAdat['bejegyzesTipusId'].'" selected="selected" class="megerdemelt '.$DIS_class.'">';
+ else echo '<option class="'.$DIS_class.'" value="'.$fAdat['bejegyzesTipusId'].'">';
+ echo $fAdat['bejegyzesTipusNev'].' ('.$fAdat['hianyzasDb'].')';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._SAVE.'" />';
+ formEnd();
+ } elseif ($fegyelmi > 0) {
+ echo _FEGYELMIVEL_NEM_SULYTOTT_LEZART_IGAZOLATLANOK.': '.$fegyelmi;
+ }
+ echo '</td>'."\n";
+ ## -----
+ }
+
+ echo '</tr>';
+ }
+ #
+ echo '</tbody>'."\n";
+
+ echo '</table>';
+
+ }
+
+ function _kiir($val) {
+ if ($val>0) echo $val;
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml
new file mode 100644
index 00000000..719a6c96
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml
@@ -0,0 +1,112 @@
+<?php
+
+ function putOsztalyHianyzok($ADAT) {
+ echo '<table class="hianyzas" style="float:left; margin-left:40px; margin-right:0px;">'."\n";
+
+ echo '<thead>';
+ echo '<tr><th>'._DIAK.'</th><th colspan="2">'._KESES.'</th><th colspan="2">'._HIANYZAS.'</th><th>'._FELSZERELES.'</th><th>'._FELMENTES.'</th><th>'._EGYENRUHA.'</th></tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr><th colspan="7">'.'</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>';
+ foreach($ADAT['diakok'] as $diakId=>$X) {
+ $D = $ADAT['diakHianyzott'][$diakId];
+ if (is_array($D)) {
+ echo '<tr>';
+ echo '<th>';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId.'&dt='.$ADAT['dt']).'">';
+ echo $ADAT['diakok'][$diakId]['diakNev'];
+ echo '</a>';
+ echo '</th>';
+ echo '<td class="d igazolatlan keses">'._hWalk($D['késés']['igazolatlan']).'</td>';
+ echo '<td class="d igazolt keses">'._hWalk($D['késés']['igazolt']).'</td>';
+ echo '<td class="d igazolatlan hianyzas">'._hWalk($D['hiányzás']['igazolatlan']).'</td>';
+ echo '<td class="d igazolt hianyzas">'._hWalk($D['hiányzás']['igazolt']).'</td>';
+ echo '<td class="d igazolatlan felszereles">'._hWalk($D['felszerelés hiány']['igazolatlan']).'</td>';
+ echo '<td class="d igazolatlan felmentes">'._hWalk($D['felmentés']['igazolatlan']).'</td>';
+ echo '<td class="d igazolatlan egyenruha">'._hWalk($D['egyenruha hiány']['igazolatlan']).'</td>';
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</tbody>'."\n\n";
+ echo '</table>';
+ }
+
+ function _hWalk($X) {
+ if (is_array($X))
+ foreach ($X as $tankorTipus => $V) {
+ $r[] = '<span title="'.$tankorTipus.'">'.$V['db'].'</span>';
+ if ($V['db']!='') $db += $V['db'];
+ }
+ return $db.((count($r)>0) ? ' ('.implode('+', $r).')':'');
+ }
+
+ function putOsztalyHianyzas($ADAT) {
+
+ putOsztalyHianyzok($ADAT);
+
+ echo '<table class="hianyzas">'."\n";
+
+ echo '<thead>';
+ echo '<tr><th>'._ORA.'</th><th>'._TANKOR.'</th><th>'._DIAK.'</th><th colspan="2">'._TIPUS.'</th></tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr><th colspan="5">'.$ADAT['dt'].'</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>';
+
+ foreach ($ADAT['hianyzas'] as $ora => $oraAdat) {
+
+ // Az óra cella magasságának (rowspan) megállapítása
+ $row = 0; foreach ($oraAdat as $tankorId => $hAdat) $row += count($hAdat);
+ // ezzel jelezzük, hogy most nem kell tr a tankör cellája előtt
+ $oraElso = true;
+ // Az óra sorának kezdete
+ echo '<tr>';
+ echo '<th rowspan="'.$row.'">'.$ora.'.</th>';
+
+ foreach ($oraAdat as $tankorId => $hAdat) {
+
+ if (!$oraElso) echo '<tr>';
+ $oraElso = false;
+ echo '<th class="tk" rowspan="'.count($hAdat).'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$hAdat[0]['oraId']).'">';
+ echo $ADAT['tankorok'][ $hAdat[0]['tankorId'] ][0]['tankorNev'].' ('.$hAdat[0]['tankorId'].')';
+ echo '</a>';
+ echo '</th>';
+
+ $diakIndex = array(); $elso = true;
+ for ($i = 0; $i < count($hAdat); $i++) $diakIndex[ $hAdat[$i]['diakId'] ][] = $i;
+ foreach ($ADAT['diakok'] as $diakId => $dAdat) {
+// if (isset($diakIndex[$diakId])) {
+ if (is_array($diakIndex[$diakId])) foreach ($diakIndex[$diakId] as $i) {
+// $i = $diakIndex[$diakId];
+ if (!$elso) echo '<tr>'."\n";
+ $elso = false;
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=nap&diakId='.$hAdat[$i]['diakId'].'&dt='.$ADAT['dt']).'">';
+ echo $ADAT['diakok'][ $hAdat[$i]['diakId'] ]['diakNev'].' ('.$hAdat[$i]['diakId'].')';
+ echo '</a>'."\n";
+ echo '</td>'."\n";
+ echo '<td class="d '.ekezettelen($hAdat[$i]['statusz']).' '.ekezettelen($hAdat[$i]['hTipus']).'">'.'</td>'."\n";
+ echo '<td >';
+ if ($hAdat[$i]['hTipus'] != 'felmentés' && $hAdat[$i]['hTipus'] != 'felszerelés hiány' && $hAdat[$i]['hTipus'] != 'egyenruha hiány') echo $hAdat[$i]['statusz'].' ';
+ echo $hAdat[$i]['hTipus'];
+ if ($hAdat[$i]['statusz'] == 'igazolatlan' && $hAdat[$i]['hTipus'] == 'késés' && $hAdat[$i]['perc'] != 0)
+ echo ' ('.$hAdat[$i]['perc'].' '._PERC.')';
+
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ }
+ }
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml
new file mode 100644
index 00000000..1672bcb7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml
@@ -0,0 +1,150 @@
+<?php
+
+ function putKerelmek($ADAT, $telephelyId, $TELEPHELY) {
+
+ global $KERELEM_TAG;
+
+ echo '<ol class="kerelem">';
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+ $_K = $ADAT['kerelmek'][$i];
+ $kerelemId = $_K['kerelemId'];
+ $_napja = round(((strtotime(date('Y-m-d H:i:s')) - strtotime($_K['rogzitesDt']))/(24*60*60)));
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '') $class = ' class="jovahagyott" ';
+ else $class = '';
+
+ echo '<li '.$class.' id="kerelemId'.$ADAT['kerelmek'][$i]['kerelemId'].'">';
+ //echo '<div style="text-align:center; color:white; font-size:30px;">'.$i.'</div>';
+ echo '<fieldset>';
+ echo '<legend>';
+ echo superdate($ADAT['kerelmek'][$i]['rogzitesDt']);
+ echo ' – ';
+ echo $ADAT['kerelmek'][$i]['userAccount'];
+ if ($ADAT['kerelmek'][$i]['kategoria'] !='')
+ echo '<span style="border: solid 1px white; background-color: #678670; padding: 2px 5px; margin: 0px 5px;">'.$ADAT['kerelmek'][$i]['kategoria'].'</span>';
+ // if ($_K['telephelyId'] !='')
+ // echo '<span style="border: solid 1px white; background-color: #678670; padding: 2px 5px; margin: 0px 5px;">'.$_K['telephelyId'].'</span>';
+ if ($_napja>0) echo ' – '.$_napja.' napja';
+ echo '</legend>';
+
+ echo '<div class="szoveg">';
+ echo nl2br(supertext($ADAT['kerelmek'][$i]['szoveg']));
+ echo '</div>';
+
+ echo '</fieldset>';
+
+ if (count($ADAT['valaszok'][$kerelemId])>0) {
+ $_V = $ADAT['valaszok'][$kerelemId];
+ echo '<table class="kerelemValasz" cellpadding="1" cellspacing="1">';
+ for ($j=0; $j<count($_V); $j++) {
+ $_idx = (ord(mb_substr($_V[$j]['userAccount'],0,1))%5); // color index
+ echo '<tr class="c'.$_idx.'">';
+ echo '<th class="dt">'.superdate($_V[$j]['valaszDt']).'</th>';
+ echo '<td class="userAccount">'.$_V[$j]['userAccount'].'</td>';
+ echo '<td>'.supertext($_V[$j]['valasz']).'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="hibaAdminRogzites" />';
+ echo '<input type="hidden" name="kerelemId" value="'.$ADAT['kerelmek'][$i]['kerelemId'].'" />';
+ echo '<input type="hidden" name="telephelyId" value="'.$telephelyId.'" />';
+
+ echo '<textarea name="valasz" '.$class.' placeholder="Válasz...">';
+ // echo ($ADAT['kerelmek'][$i]['valasz']);
+ echo '</textarea><br />';
+
+
+ echo '<span class="mg">';
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria" class="mg">';
+ echo '<option value="">-</option>';
+ for ($j=0; $j<count($KERELEM_TAG); $j++) {
+ $_v = $KERELEM_TAG[$j];
+ $_SEL = ($_v==$ADAT['kerelmek'][$i]['kategoria']) ? 'selected="selected"':'';
+ echo '<option value="'.$_v.'" '.$_SEL.'>'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '</span>';
+
+ if (count($TELEPHELY)>=1) {
+ echo '<span class="mg2">';
+ echo '<select class="telephely" name="telephelyId">';
+ echo '<option value=""></option>';
+ for ($ti=0; $ti<count($TELEPHELY); $ti++) {
+ $_T = $TELEPHELY[$ti];
+ $_SEL = ($_K['telephelyId'] == $_T['telephelyId']) ? ' selected="selected" ' : '' ;
+ echo '<option value="'.$_T['telephelyId'].'" '.$_SEL.'>'.$_T['telephelyRovidNev'].'</option>';
+ }
+ echo '</select>';
+ echo '</span>'."\n";
+ }
+
+ echo '<input class="mg" type="submit" name="megjegyzes" value="'._MEGJEGYZES.'" />';
+
+ if (__VEZETOSEG || __NAPLOADMIN) {
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '')
+ echo '<input class="njh" type="submit" title="'.$_K['jovahagyasAccount'].'" name="nemHagyJova" value="'.$ADAT['kerelmek'][$i]['jovahagyasDt'].'" />';
+ else
+ echo '<input class="jh" type="submit" name="jovahagy" value="'._JOVAHAGYAS.'" />';
+ echo '<input class="done" type="submit" name="lezar" value="'._LEZARAS.'" />';
+
+ } else {
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '') echo '<span class="dt">'.$ADAT['kerelmek'][$i]['jovahagyasDt'].'</span>';
+ if ($ADAT['kerelmek'][$i]['lezarasDt'] != '') echo '<span class="dt">'.superdate($ADAT['kerelmek'][$i]['lezarasDt']).'</span>';
+
+
+/* echo '<div class="valasz">';
+ echo nl2br(supertext($ADAT['kerelmek'][$i]['valasz']));
+ echo '</div>';
+
+ echo '<div>';
+ echo '<span class="dt">'.$ADAT['kerelmek'][$i]['rogzitesDt'].'</span>';
+ echo '</div>';
+*/
+ }
+
+
+ formEnd();
+
+ echo '</li>';
+
+ }
+ echo '</ol>';
+
+ }
+
+ function putHibabejelento($telephelyId) {
+
+ global $KERELEM_TAG;
+
+ formBegin(array('class'=>'hiba'));
+ echo '<input type="hidden" name="action" value="hibabejelentes" />';
+ echo '<input type="hidden" name="telephelyId" value="'.$telephelyId.'" />';
+
+ echo '<h1>'._KERELEM.'</h1>';
+ echo '<textarea name="txt" id="" placeholder="Kérelem...">';
+
+ echo '</textarea>';
+
+ echo '<br />';
+
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($KERELEM_TAG); $i++) {
+ $_v = $KERELEM_TAG[$i];
+ echo '<option value="'.$_v.'">'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml
new file mode 100644
index 00000000..08bec2a3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ function putHibabejelento($telephelyId) {
+
+ global $KERELEM_TAG;
+
+ formBegin(array('class'=>'hiba'));
+ echo '<input type="hidden" name="action" value="hibabejelentes" />';
+ echo '<input type="hidden" name="kerelemTelephelyId" value="'.$telephelyId.'" />';
+
+ echo '<h1>'._ESZREVETEL.'</h1>';
+ echo '<textarea name="txt" id="focus" maxlength="255">';
+
+ echo '</textarea>';
+
+ echo '<br />';
+
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($KERELEM_TAG); $i++) {
+ $_v = $KERELEM_TAG[$i];
+ echo '<option value="'.$_v.'">'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
new file mode 100644
index 00000000..8dc73ed5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
@@ -0,0 +1,265 @@
+<?php
+
+ function generateFutarEmailTorzs($ADAT) {
+
+ if (!is_array($ADAT['hirnokFolyam'])) return false;
+
+ for ($h=0; $h<count($ADAT['hirnokFolyam']); $h++) {
+ if (count($ADAT['hirnokFolyam'])>1) { // csak ha nem egyértelmű
+ $RETURN_STR .= '<div class="hirnokSeparator">';
+ // putFace($ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['id'],$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['tipus'],30);
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'">'.$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['cn'].'</a>';
+ $RETURN_STR .= '</div>';
+ }
+ foreach ($ADAT['hirnokFolyam'][$h]['hirnokFolyamUzenetek'] as $stamp => $DA) {
+ for ($i=0; $i<count($DA); $i++) {
+ $D = $DA[$i];
+ $RETURN_STR .= '<div class="hirnokDoboz '.$D['hirnokTipus'].'">';
+ $RETURN_STR .= '<div class="hirnokBadgeHolder '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarBadge_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarBadge_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokDt">';
+ if (function_exists('generateFutarDetail_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarDetail_'.$D['hirnokTipus'],$D);
+ else $RETURN_STR .= (date('Y.m.d. H:i:s',$stamp));
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokText '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutar_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutar_'.$D['hirnokTipus'],$D);
+ // else dump($D);
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokRight '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarRight_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarRight_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+/* $RETURN_STR .= '<div class="hirnokFooter '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarFooter_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarFooter_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+*/
+ $RETURN_STR .= '</div>';
+ }
+ }
+ }
+ // vege $RETURN_STR .= '<div class="hirnokSeparator"><a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'"><span class="icon-calendar"></span> '.superdate($ADAT['tolDt']).'<span class="icon-bullhorn"></span></a></div>';
+ return str_replace('</div>','</div>'."\n",$RETURN_STR);
+ }
+ function generateFutarRight_uzeno($D) {
+ return $RETURN_STR;
+ }
+ function generateFutarFooter_uzeno($D) {
+ return $RETURN_STR;
+ }
+ function generateFutar_idoszak($D) {
+ $RETURN_STR .= 'Aktív <b>'.$D['idoszakAdat']['tipus'].'</b> időszak: '.$D['idoszakAdat']['tolDt'].' – '.$D['idoszakAdat']['igDt'];
+ return $RETURN_STR;
+ }
+
+ function generateFutarBadge_jegy($D) {
+ // return '<i class="material-icons">face</i>';
+ }
+
+ function generateFutar_haladasiOra($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
+ $RETURN_STR .= 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
+ if ($D['oraAdat']['teremId']>0) $RETURN_STR .= 'Terme: '.$D['oraAdat']['teremLeiras'].' ('.$D['oraAdat']['teremId'].') ';
+ $RETURN_STR .= 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
+ if ($D['oraAdat']['ki']>0) $RETURN_STR .= '('.$D['oraAdat']['kiCn'].')';
+ return $RETURN_STR;
+ }
+
+ function generateFutarDetail_uzeno($D) {
+ $IMG = array( // jobb lenne valami shared helyen
+ 'diak' => '<span title="diák" class="icon-child"></span>',
+ 'szulo' => '<span title="szülő" class="icon-adult"></span>',
+ 'tanar' => '<span title="tanár" class="icon-adult"></span>',
+ 'munkakozosseg' => '<span title="munkaközösség tagjai" class="icon-slideshare"></span>',
+ 'tankor' => '<span title="tankör diákjai és tanára" class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span title="tankörbe járók szülei" class="icon-group-alt"></span>',
+ 'osztaly' => '<span title="osztály diákjai és osztályfőnökei" class="icon-group"></span>',
+ 'osztalySzulo' => '<span title="osztályba járók szülei" class="icon-adult"></span>',
+ 'osztalyTanar' => '<span title="osztályban tanítók" class="icon-slideshare"></span>',
+ );
+ $TIPUS_STR = array(
+ 'diak' => 'diák',
+ 'szulo' => 'szülő',
+ 'tanar' => 'tanár',
+ 'munkakozosseg' => 'munkaközösség tagjai',
+ 'tankor' => 'tankör diákjai és tanára',
+ 'tankorSzulo' => 'tankörbe járók szülei',
+ 'osztaly' => 'osztály diákjai és osztályfőnökei',
+ 'osztalySzulo' => 'osztályba járók szülei',
+ 'osztalyTanar' => 'osztályban tanítók',
+ );
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $_link1 = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['uzenoAdat']['feladoId'].'&feladoTipus='.$D['uzenoAdat']['feladoTipus']);
+ $_link2 = href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['uzenoAdat']['cimzettId'].'&feladoTipus='.$D['uzenoAdat']['cimzettTipus']);
+ $RETURN_STR .= '<a href="'.$_link1.'">';
+ if ($D['uzenoAdat']['feladoId']==0) $RETURN_STR .= 'Adminisztrátor';
+ else $RETURN_STR .= $D['feladoNev'];
+ $RETURN_STR .= '</a>';
+ //TESZT $RETURN_STR .= '<span class="icon-caret-right" style="padding: 0px 4px; font-size:8px;"></span>';
+ if ($D['cimzettNev']!='') $RETURN_STR .= '<br/><span><a href="'.$_link2.'">'.$D['cimzettNev'].'</a></span>';
+ $RETURN_STR .= '<br/>';
+ $RETURN_STR .= '<span style="color:#aaa;">';
+ $RETURN_STR .= superdate(date('Y-m-d H:i:s',strtotime($D['uzenoAdat']['dt'])));
+ $RETURN_STR .= '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) $RETURN_STR .= '<span class="icon-globe" title="minden"></span>';
+ else $RETURN_STR .= $IMG[$D['uzenoAdat']['cimzettTipus']];
+ $RETURN_STR .= '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) $RETURN_STR .= 'minden ';
+ $RETURN_STR .= $TIPUS_STR[$D['uzenoAdat']['cimzettTipus']];
+ $RETURN_STR .= '</span>';
+ return $RETURN_STR;
+
+ }
+
+ function generateFutar_zaroJegy($D) {
+ global $KOVETELMENY;
+
+ $RETURN_STR .= ucfirst($D['targyAdat']['targyNev']);
+ $RETURN_STR .= ' tárgyból ';
+
+ $RETURN_STR .= $D['zaroJegyAdat']['evfolyamJel'].'. évfolyam ';
+ $RETURN_STR .= ''.$D['zaroJegyAdat']['felev'].'. félévére ';
+
+ $RETURN_STR .= '<b>'.($KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['hivatalos']).'</b>';
+ $RETURN_STR .= ' ('.$KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['rovid'].') ';
+ $RETURN_STR .= $D['zaroJegyAdat']['jegyTipus'];
+ $RETURN_STR .= ' típusú osztályzat került beírásra / módosult a bizonyítványban.';
+
+
+ if (is_array($D['oraAdat'])) {
+ $RETURN_STR .= 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // dump($D);
+ return $RETURN_STR;
+ }
+ function generateFutar_jegy($D) {
+ global $KOVETELMENY;
+
+ if ($D['jegyAdat']['dt'] != date('Y-m-d',strtotime($D['jegyAdat']['modositasDt']))) {
+
+ $str[] = 'Jegymódosítás! ';
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].') ';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelésre módosult a '.$D['jegyAdat']['dt'].'-n kelt eredeti bejegyzés.';
+ } else {
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '(röviden: '.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].'),';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelés került beírásra az osztályozó naplóba.';
+ }
+
+ if (is_array($D['oraAdat'])) {
+ $str[] = 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // $RETURN_STR .= $D['jegyAdat']['jegy'];
+ // $RETURN_STR .= $D['jegyAdat']['jegyTipus'];
+ $RETURN_STR .= implode(' ',$str);
+
+ // dump($D);
+ return $RETURN_STR;
+ }
+
+ function generateFutar_dolgozat($D) {
+
+ if (strtotime($D['dolgozatAdat']['tervezettDt'])>strtotime(date('Y-m-d H:i:s'))) {
+ $RETURN_STR .= 'Új dolgozat várható! ';
+ } else {
+ $RETURN_STR .= 'Új dolgozat került rögzítésre. ';
+ }
+ $RETURN_STR .= 'A bejelentés ideje: ';
+ $RETURN_STR .= $D['dolgozatAdat']['bejelentesDt'].', tervezett időpontja: ';
+ $RETURN_STR .= $D['dolgozatAdat']['tervezettDt'].'. ';
+
+ $RETURN_STR .= 'A dolgozat megnevezése: '.$D['dolgozatAdat']['dolgozatNev'].'. ';
+
+ $RETURN_STR .= 'Érintett tankör';
+ if (count($D['dolgozatAdat']['tankor'])>1) $RETURN_STR .= 'ök';
+ $RETURN_STR .= ': ';
+ for($i=0; $i<count($D['dolgozatAdat']['tankor']); $i++) {
+ $RETURN_STR .= ($D['dolgozatAdat']['tankor'][$i]['tankorNev']);
+ if ($i<count($D['dolgozatAdat']['tankor'])-1) $RETURN_STR .= ' ';
+ }
+ // dump( $D );
+ return $RETURN_STR;
+ }
+
+ function generateFutarRight_haladasiBeiratlan($D) {
+ global $UdvozloKep,$skin;
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ if ($D['db']==0) {
+ $i = rand(0, count($UdvozloKep)-1);
+ $RETURN_STR .= '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" style="height: 60px;" />';
+ }
+ return $RETURN_STR;
+ }
+
+ function generateFutar_haladasiBeiratlan($D) {
+
+ if ($D['db']==0) {
+ $RETURN_STR .= 'Köszönjük, hogy minden órádat beírtad!';
+ } else {
+ $RETURN_STR .= 'Beíratlan órák száma: '.$D['db'];
+ }
+ return $RETURN_STR;
+ }
+ function generateFutar_uzeno($D) {
+ if ($D['uzenoAdat']['flag']==1) $RETURN_STR .= '<i>– a szöveget a kérésedre elrejtettük –</i>';
+ else $RETURN_STR .= nl2br(makelinksclickable((supertext($D['uzenoAdat']['txt'])))); // egyelőre nem tudunk bővebbet, mert a backend nem szolgáltat infót
+/* $RETURN_STR .= '<div class="hirnokIkonKontener" style="display: relativ; top:0px; right:0px; text-align:right;">';
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ $RETURN_STR .= '<span class="icon-pencil"></span>';
+ $RETURN_STR .= '</a>';
+
+ if ($D['uzenoAdat']['flag']!=1) {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=1&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-close"></span></a>';
+ } else {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=0&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-open"></span></a>';
+ }
+ if (__UZENOADMIN===true) {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-trash-alt"></span></a>';
+ }
+ $RETURN_STR .= '</div>';
+*/
+ return $RETURN_STR;
+
+ }
+
+ function generateFutar_bejegyzes($D) {
+ $RETURN_STR .= 'Új '.ucfirst($D['bejegyzesAdat']['bejegyzesTipusNev']).' került rögzítésre. ';
+ if ($D['bejegyzesAdat']['szoveg'] !='') $RETURN_STR .= '<q>'.$D['bejegyzesAdat']['szoveg'].'</q>';
+ $RETURN_STR .= ' - '.$D['tanarAdat']['tanarNev'];
+ return $RETURN_STR;
+ }
+
+ function generateFutar_hianyzas($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['hianyzasAdat']['dt']))-1]);
+ $RETURN_STR .= $D['hianyzasAdat']['dt'].' '.$nap.' '.$D['hianyzasAdat']['ora'].'. órára (';
+ $RETURN_STR .= $D['oraAdat']['tankorNev'].', '.$D['oraAdat']['kiCn'];
+ $RETURN_STR .= ') ';
+ if (in_array($D['hianyzasAdat']['tipus'],array('késés','hiányzás'))) $RETURN_STR .= $D['hianyzasAdat']['statusz'].' ';
+ if ($D['hianyzasAdat']['tipus']=='késés' && $D['hianyzasAdat']['perc']>0) $RETURN_STR .= ' '.$D['hianyzasAdat']['perc'].' perc ';
+ $RETURN_STR .= '<b>'.$D['hianyzasAdat']['tipus'].'</b> került rögzítésre.';
+ return $RETURN_STR;
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
new file mode 100644
index 00000000..0ab0693c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
@@ -0,0 +1,320 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/face.phtml');
+
+ function putHirnokFolyam($ADAT) {
+
+ if (!is_array($ADAT['hirnokFolyam'])) return false;
+
+ // echo '<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">';
+
+ for ($h=0; $h<count($ADAT['hirnokFolyam']); $h++) {
+ if (count($ADAT['hirnokFolyam'])>=1) {
+ echo '<div class="hirnokSeparator">';
+ putFace($ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['id'],$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['tipus'],30);
+ echo '<a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'">'.$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['cn'].'</a>';
+ echo '</div>';
+ }
+ foreach ($ADAT['hirnokFolyam'][$h]['hirnokFolyamUzenetek'] as $stamp => $DA) {
+ for ($i=0; $i<count($DA); $i++) {
+ $D = $DA[$i];
+ echo '<div class="hirnokDoboz '.$D['hirnokTipus'].'">';
+ echo '<div class="hirnokBadgeHolder '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokBadge_'.$D['hirnokTipus'])) call_user_func('putHirnokBadge_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+ echo '<div class="hirnokDt">';
+ if (function_exists('putHirnokDetail_'.$D['hirnokTipus'])) call_user_func('putHirnokDetail_'.$D['hirnokTipus'],$D);
+ else echo superdate(date('Y-m-d H:i:s',$stamp));
+ echo '</div>';
+ echo '<div class="hirnokText '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnok_'.$D['hirnokTipus'])) call_user_func('putHirnok_'.$D['hirnokTipus'],$D);
+ // else dump($D);
+ echo '</div>';
+ echo '<div class="hirnokRight '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokRight_'.$D['hirnokTipus'])) call_user_func('putHirnokRight_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+/* echo '<div class="hirnokFooter '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokFooter_'.$D['hirnokTipus'])) call_user_func('putHirnokFooter_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+*/
+ echo '</div>';
+ }
+ }
+ }
+ echo '<div class="hirnokSeparator"><a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'"><span class="icon-calendar"></span> '.superdate($ADAT['tolDt']).'<span class="icon-bullhorn"></span></a></div>';
+
+ }
+ function putHirnokBadge_bejegyzes($D) {
+ // hint by rpetya (peter.rakolcza@gmail.com)
+ // $ICO = array('dicséret'=>'icon-smiley-alt','fegyelmi'=>'icon-exclamation-sign','üzenet'=>'icon-envelope');
+ $ICON = array('dicséret'=>'mood','fegyelmi'=>'mood_bad','üzenet'=>'mail');
+ $RGB = array('dicséret'=>'lightgreen','fegyelmi'=>'#e91e63','üzenet'=>'#9c27b0');
+ // echo '<a href="'.href('index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek').'"><span style="background-color: '.$RGB[$D['bejegyzesAdat']['tipus']].'" class="'.$ICO[$D['bejegyzesAdat']['tipus']].'"></span></a>';
+ echo '<a href="'.href('index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek').'"><span style="background-color: '.$RGB[$D['bejegyzesAdat']['tipus']].'" class="material-icons">'.$ICON[$D['bejegyzesAdat']['tipus']].'</span></a>';
+ }
+ function putHirnokBadge_idoszak($D) {
+ echo '<span class="icon-calendar-sign"></span>';
+ }
+ function putHirnokBadge_haladasiBeiratlan($D) {
+
+ if ($D['db']!=0)
+ echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'"><span class="icon-bullhorn"></span></a>';
+ else
+ echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'"><span class="icon-ok-sign" style="background-color:lightgreen"></span></a>';
+
+ }
+ function putHirnokBadge_dolgozat($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat').'">';
+ //echo '<span class="icon-calendar-sign"></span>';
+ echo '<span class="material-icons" style="background-color:orange;">lightbulb_outline</span>';
+ echo '</a>';
+ }
+ function putHirnokBadge_jegy($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak').'">';
+ // echo '<span class="icon-pencil"></span>';
+ if (in_array($D['jegyAdat']['jegy'],array(1,2,3,4,5))) echo '<span class="material-icons">looks_'.intval(($D['jegyAdat']['jegy'])).'</span>';
+ else echo '<span class="material-icons">mode_edit</span>';
+ echo '</a>';
+ }
+ function putHirnokBadge_haladasiOra($D) {
+ $ICONS = array('helyettesítés'=>'cached', 'elmarad'=>'grid_off', 'elmarad máskor'=>'call_split','felügyelet'=>'border_clear', 'normál'=>'border_all', 'normál máskor'=>'call_merge','összevonás'=>'group_add');
+ echo '<a href="'.href('index.php?page=naplo&sub=orarend&f=orarend').'">';
+ // echo '<span class="icon-th"></span>';
+ echo '<span class="material-icons">'.$ICONS[$D['oraAdat']['tipus']].'</span>'; // grid_off
+ echo '</a>';
+ }
+ function putHirnokBadge_uzeno($D) {
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ // putFace($D['uzenoAdat']['cimzettId'],$D['uzenoAdat']['cimzettTipus'],30);
+ // echo '<span class="icon-envelope"></span>';
+ echo '<span class="material-icons">mail</span>';
+ echo '</a>';
+ //putFace($D['uzenoAdat']['feladoId'],$D['uzenoAdat']['feladoTipus'],30);
+ }
+ function putHirnokRight_uzeno($D) {
+ putFace($D['uzenoAdat']['feladoId'],$D['uzenoAdat']['feladoTipus'],30);
+ }
+ function putHirnokFooter_uzeno($D) {
+ echo '<div class="hidden">';
+ // echo '<span class="icon-globe"></span>';
+ echo '<span class="material-icons">swap_horiz</span>';
+ echo '</div>';
+ }
+
+ function putHirnokBadge_zaroJegy($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=bizonyitvany').'">';
+ // echo '<span class="icon-pencil-alt"></span>';
+ echo '<span class="material-icons">border_color</span>';
+ echo '</a>';
+ }
+
+ function putHirnok_idoszak($D) {
+ echo 'Aktív <b>'.$D['idoszakAdat']['tipus'].'</b> időszak: '.$D['idoszakAdat']['tolDt'].' – '.$D['idoszakAdat']['igDt'];
+ }
+
+ function putHirnokBadge_hianyzas($D) {
+ $ICON = array('késés'=>'timer','felmentés'=>'accessible','felszerelés hiány'=>'accessibility',
+ 'hiányzás'=>'location_off'); // location_off, grid_off, blur_off
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak').'">';
+ // echo '<span class="icon-time-alt"></span>';
+ echo '<span class="material-icons">'.$ICON[$D['hianyzasAdat']['tipus']].'</span>';
+ echo '</a>';
+ ;
+ }
+
+ function putHirnok_hianyzas($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['hianyzasAdat']['dt']))-1]);
+ echo $D['hianyzasAdat']['dt'].' '.$nap.' '.$D['hianyzasAdat']['ora'].'. órára (';
+ echo $D['oraAdat']['tankorNev'].', '.$D['oraAdat']['kiCn'];
+ echo ') ';
+ if (in_array($D['hianyzasAdat']['tipus'],array('késés','hiányzás'))) echo $D['hianyzasAdat']['statusz'].' ';
+ if ($D['hianyzasAdat']['tipus']=='késés' && $D['hianyzasAdat']['perc']>0) echo ' '.$D['hianyzasAdat']['perc'].' perc ';
+ echo '<b>'.$D['hianyzasAdat']['tipus'].'</b> került rögzítésre.';
+ }
+
+ function putHirnok_haladasiOra($D) {
+ global $aHetNapjai;
+ // if ($D['oraAdat']['dt']=='1970-01-01 01:00:00') return false;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
+ echo 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
+ if ($D['oraAdat']['teremId']>0) echo 'Terme: '.$D['oraAdat']['teremLeiras'].' ('.$D['oraAdat']['teremId'].') ';
+ echo 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
+ if ($D['oraAdat']['ki']>0) echo '('.$D['oraAdat']['kiCn'].')';
+ }
+
+ function putHirnokDetail_uzeno($D) {
+ $IMG = array( // jobb lenne valami shared helyen
+ 'diak' => '<span title="diák" class="icon-child"></span>',
+ 'szulo' => '<span title="szülő" class="icon-adult"></span>',
+ 'tanar' => '<span title="tanár" class="icon-adult"></span>',
+ 'munkakozosseg' => '<span title="munkaközösség tagjai" class="icon-slideshare"></span>',
+ 'tankor' => '<span title="tankör diákjai és tanára" class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span title="tankörbe járók szülei" class="icon-group-alt"></span>',
+ 'osztaly' => '<span title="osztály diákjai és osztályfőnökei" class="icon-group"></span>',
+ 'osztalySzulo' => '<span title="osztályba járók szülei" class="icon-adult"></span>',
+ 'osztalyTanar' => '<span title="osztályban tanítók" class="icon-slideshare"></span>',
+ );
+ $TIPUS_STR = array(
+ 'diak' => 'diák',
+ 'szulo' => 'szülő',
+ 'tanar' => 'tanár',
+ 'munkakozosseg' => 'munkaközösség tagjai',
+ 'tankor' => 'tankör diákjai és tanára',
+ 'tankorSzulo' => 'tankörbe járók szülei',
+ 'osztaly' => 'osztály diákjai és osztályfőnökei',
+ 'osztalySzulo' => 'osztályba járók szülei',
+ 'osztalyTanar' => 'osztályban tanítók',
+ );
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $_link1 = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['uzenoAdat']['feladoId'].'&feladoTipus='.$D['uzenoAdat']['feladoTipus']);
+ $_link2 = href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['uzenoAdat']['cimzettId'].'&feladoTipus='.$D['uzenoAdat']['cimzettTipus']);
+ echo '<a href="'.$_link1.'">';
+ if ($D['uzenoAdat']['feladoId']==0) echo 'Adminisztrátor';
+ else echo $D['feladoNev'];
+ echo '</a>';
+ //TESZT echo '<span class="icon-caret-right" style="padding: 0px 4px; font-size:8px;"></span>';
+ if ($D['cimzettNev']!='') echo '<br/><span><a href="'.$_link2.'">'.$D['cimzettNev'].'</a></span>';
+ echo '<br/>';
+ echo '<span style="color:#aaa;">';
+ echo superdate(date('Y-m-d H:i:s',strtotime($D['uzenoAdat']['dt'])));
+ echo '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) echo '<span class="icon-globe" title="minden"></span>';
+ else echo $IMG[$D['uzenoAdat']['cimzettTipus']];
+ echo '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) echo 'minden ';
+ echo $TIPUS_STR[$D['uzenoAdat']['cimzettTipus']];
+ echo '</span>';
+
+ }
+
+ function putHirnok_zaroJegy($D) {
+ global $KOVETELMENY;
+
+ echo ucfirst($D['targyAdat']['targyNev']);
+ echo ' tárgyból ';
+
+ echo $D['zaroJegyAdat']['evfolyamJel'].'. évfolyam ';
+ echo ''.$D['zaroJegyAdat']['felev'].'. félévére ';
+
+ echo '<b>'.($KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['hivatalos']).'</b>';
+ echo ' ('.$KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['rovid'].') ';
+ echo $D['zaroJegyAdat']['jegyTipus'];
+ echo ' típusú osztályzat került beírásra / módosult a bizonyítványban.';
+
+
+ if (is_array($D['oraAdat'])) {
+ echo 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // dump($D);
+ }
+ function putHirnok_jegy($D) {
+ global $KOVETELMENY;
+
+ if ($D['jegyAdat']['dt'] != date('Y-m-d',strtotime($D['jegyAdat']['modositasDt']))) {
+
+ $str[] = 'Jegymódosítás! ';
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].') ';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelésre módosult a '.$D['jegyAdat']['dt'].'-n kelt eredeti bejegyzés.';
+ } else {
+ $str[] = '<b>'.ucfirst($D['targyAdat']['targyNev']).'</b>';
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].'),';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelés került beírásra az osztályozó naplóba.';
+ }
+
+ if (is_array($D['oraAdat'])) {
+ $str[] = 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // echo $D['jegyAdat']['jegy'];
+ // echo $D['jegyAdat']['jegyTipus'];
+ echo implode(' ',$str);
+
+ // dump($D);
+ }
+
+ function putHirnok_dolgozat($D) {
+
+ if (strtotime($D['dolgozatAdat']['tervezettDt'])>strtotime(date('Y-m-d H:i:s'))) {
+ echo 'Új dolgozat várható! ';
+ } else {
+ echo 'Új dolgozat került rögzítésre. ';
+ }
+ echo 'A bejelentés ideje: ';
+ echo $D['dolgozatAdat']['bejelentesDt'].', tervezett időpontja: ';
+ echo $D['dolgozatAdat']['tervezettDt'].'. ';
+
+ echo 'A dolgozat megnevezése: '.$D['dolgozatAdat']['dolgozatNev'].'. ';
+
+ echo 'Érintett tankör';
+ if (count($D['dolgozatAdat']['tankor'])>1) echo 'ök';
+ echo ': ';
+ for($i=0; $i<count($D['dolgozatAdat']['tankor']); $i++) {
+ echo ($D['dolgozatAdat']['tankor'][$i]['tankorNev']);
+ if ($i<count($D['dolgozatAdat']['tankor'])-1) echo ' ';
+ }
+ // dump( $D );
+ }
+
+ function putHirnokRight_haladasiBeiratlan($D) {
+ global $UdvozloKep,$skin;
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ if ($D['db']==0) {
+ $i = rand(0, count($UdvozloKep)-1);
+ echo '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" style="height: 60px;" />';
+ }
+ }
+
+ function putHirnok_haladasiBeiratlan($D) {
+
+ if ($D['db']==0) {
+ echo 'Köszönjük, hogy minden órádat beírtad!';
+ } else {
+ echo 'Beíratlan órák száma: '.$D['db'];
+ }
+ }
+ function putHirnok_uzeno($D) {
+ if ($D['uzenoAdat']['flag']==1) echo '<i>– a szöveget a kérésedre elrejtettük –</i>';
+ else echo nl2br(makelinksclickable((supertext($D['uzenoAdat']['txt'])))); // egyelőre nem tudunk bővebbet, mert a backend nem szolgáltat infót
+ echo '<div class="hirnokIkonKontener" style="display: relativ; top:0px; right:0px; text-align:right;">';
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ echo '<span class="icon-pencil"></span>';
+ echo '</a>';
+ if ($D['uzenoAdat']['flag']!=1) {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=1&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-close"></span></a>';
+ } else {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=0&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-open"></span></a>';
+ }
+ if (__UZENOADMIN===true) {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-trash-alt"></span></a>';
+ }
+ echo '</div>';
+
+ }
+
+ function putHirnok_bejegyzes($D) {
+ echo 'Új '.ucfirst($D['bejegyzesAdat']['bejegyzesTipusNev']).' került rögzítésre. ';
+ if ($D['bejegyzesAdat']['szoveg'] !='') echo '<q>'.$D['bejegyzesAdat']['szoveg'].'</q>';
+ if ($D['tanarAdat']['tanarNev']!='') echo ' - '.$D['tanarAdat']['tanarNev'];
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml
new file mode 100644
index 00000000..ba5d6b69
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml
@@ -0,0 +1,68 @@
+<?php
+
+ function putHirnokFeliratkozas($ADAT) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="hirnokFeliratkozas" />';
+ echo '<table align="center" style="background-color: #eee">';
+ echo '<tr>';
+ echo '<th>-|+</th>';
+ echo '<td><input type="text" placeholder="diakId/tanarId" name="naploId" /></td>';
+ echo '<td>';
+ echo '<select name="naploTipus">';
+ echo '<option value="diak">diák</option>';
+ echo '<option value="tanar">tanár</option>';
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td><input type="text" value="'._USERACCOUNT.'" /></td>';
+ echo '<td><input type="text" value="'._POLICY.'" /></td>';
+ echo '<td><input type="text" placeholder="email" name="email" /></td>';
+ echo '<td><input type="submit"></td>';
+ echo '<th style="background-color: lightgreen">utolsó email dátum</th>';
+ echo '</tr>';
+// foreach ($ADAT['hirnokFeliratkozas'] as $tipus => $HADAT) {
+ $HADAT = $ADAT['hirnokFeliratkozas'];
+ for ($i=0; $i<count($HADAT); $i++) {
+ echo '<tr>';
+ echo '<td><input type="checkbox" name="hirnokFeliratkozasId" value="'.$HADAT[$i]['hirnokFeliratkozasId'].'"></td>';
+ echo '<td>'.$HADAT[$i]['naploId'].'</td>';
+ echo '<td>'.$HADAT[$i]['naploTipus'].'</td>';
+ echo '<td>'.$HADAT[$i]['userAccount'].'</td>';
+ echo '<td>'.$HADAT[$i]['policy'].'</td>';
+ echo '<td>'.$HADAT[$i]['email'].'</td>';
+ echo '<td>'.$HADAT[$i]['feliratkozasDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['utolsoEmailDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['megtekintesDt'].'</td>';
+ echo '</tr>'."\n";
+ }
+// }
+ echo '</table>';
+ formEnd();
+ }
+
+
+ function putHirnokFeliratkozas_user($ADAT) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="hirnokFeliratkozas" />';
+ echo '<table align="center" style="background-color: #eee">';
+ echo '<tr>';
+ echo '<th>-|+</th>';
+ echo '<td><input type="text" placeholder="email" name="email" value="'.$ADAT['email'].'"/></td>';
+ echo '<td><input type="submit"></td>';
+ echo '<th style="background-color: lightgreen">utolsó email dátum</th>';
+ echo '</tr>';
+ $HADAT = $ADAT['hirnokFeliratkozas'];
+ for ($i=0; $i<count($HADAT); $i++) {
+ echo '<tr>';
+ echo '<td><input type="checkbox" name="hirnokFeliratkozasId" value="'.$HADAT[$i]['hirnokFeliratkozasId'].'"></td>';
+ echo '<td>'.$HADAT[$i]['email'].'</td>';
+ echo '<td>'.'</td>';
+ echo '<td>'.$HADAT[$i]['utolsoEmailDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['megtekintesDt'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</table>';
+ formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diak.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diak.phtml
new file mode 100644
index 00000000..546d1a42
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diak.phtml
@@ -0,0 +1,1038 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+ function putBizonyitvanyTorzslap($ADAT) {
+ echo '<div>';
+ formBegin(array('class'=>'diak'));
+ echo '<fieldset class="bizonyitvanyTorzslap"><legend>'._DIAK_ALAPADATAI.'</legend>'."\n";
+ echo '<div class="face" style="float:right">';
+ putFace($ADAT['diakId'],'diak','100');
+ echo '</div>';
+ echo '<table>';
+ echo '<tr><td>Diák neve</td><td>'.($ADAT['diakAdat']['diakNev']).'</td></tr>';
+ echo '<tr><td>Oktatási:</td><td>'.($ADAT['diakAdat']['oId']).'</td></tr>';
+ echo '<tr><td>Születési hely:</td><td>'.($ADAT['diakAdat']['szuletesiHely']).'</td></tr>';
+ echo '<tr><td>Születési idő:</td><td>'.($ADAT['diakAdat']['szuletesiIdo']).'</td></tr>';
+ echo '<tr><td>Gondviselő neve:</td><td>'.($ADAT['diakAdat']['gondviseloNev']).'</td></tr>';
+ echo '<tr><td>Apa neve:</td><td>'.($ADAT['diakAdat']['apaNev']).'</td></tr>';
+ echo '<tr><td>Anya neve (születéskori):</td><td>'.($ADAT['diakAdat']['anyaNev']).'</td></tr>';
+ echo '</table>';
+ echo '</fieldset>';
+ formEnd();
+ echo '</div>';
+ }
+
+ function putDiakAdatForm($ADAT, $Szulok, $tanev) {
+
+
+ $diakAdat = $ADAT['diakAdat'];
+ $DIAKJOGVISZONY = $ADAT['diakJogviszony'];
+ $OSZTALYOK = $ADAT['osztalyok'];
+ foreach ($diakAdat as $key => $val) {
+ if (is_string($diakAdat[$key])) $diakAdat[$key] = htmlspecialchars($val);
+ }
+
+ $cssClass = array(
+ 'felvételt nyert' => 'felveteltNyert',
+ 'magántanuló' => 'magantanulo',
+ 'vendégtanuló' => 'vendegtanulo',
+ 'jogviszonya lezárva' => 'jogviszonyLezarva',
+ 'jogviszonya felfüggesztve' => 'jogviszonyFelfuggesztve',
+ );
+
+ $cssClass2 = (_MODOSITHAT===true) ? "":" readonly";
+
+ echo '<a href="#diakNyelvvizsgaAdatok">'._DIAK_NYELVVIZSGA_ADATOK.'</a>';
+
+ echo '<div class="'.$cssClass[$diakAdat['statusz']].$cssClass2.'" >';
+ for ($i=0; $i<=count($ADAT['diakKepzes'][$ADAT['diakId']]); $i++) {
+ $_DK = $ADAT['diakKepzes'][$ADAT['diakId']][$i];
+ $_title .= $_DK['kepzesNev'].' '.$_DK['tolDt'].'-'.$_DK['igDt'].' ';
+ }
+ echo '<div class="diakStatusz" title="'.$_title.'">';
+ echo '<a href="#osztalyai" style="color:black;">'.$diakAdat['statusz'].'</a>';
+ echo '</div>';
+
+ $POSTTHESE = array('tanev'=>$tanev,'osztalyId'=>$ADAT['osztalyId']);
+
+ putDiakAlapadatok($diakAdat, $POSTTHESE, $DIAKJOGVISZONY, $ADAT['diakKepzes'][$ADAT['diakId']]);
+ if (_MODOSITHAT===true) putDiakKepUpload($diakAdat['diakId'],$POSTTHESE);
+ putDiakSzuletesiAdatok($diakAdat, $POSTTHESE);
+ putDiakElerhetoseg($diakAdat, $POSTTHESE);
+
+ putDiakSzulo($diakAdat, $Szulok, $POSTTHESE);
+ putDiakCim($diakAdat, 'lakhely', $POSTTHESE);
+ putDiakCim($diakAdat, 'tart', $POSTTHESE);
+ putDiakTanulmanyiAdatok($diakAdat, $POSTTHESE, $OSZTALYOK, $ADAT);
+ putDiakNyelvvizsga($ADAT, $POSTTHESE);
+ putDiakSzocialisAdatok($diakAdat, $POSTTHESE);
+
+ echo '</div>';
+ }
+
+ function _postThese($POSTTHESE) {
+ if (is_array($POSTTHESE)) foreach($POSTTHESE as $k => $v) {
+ echo '<input type="hidden" name="'.$k.'" value="'.$v.'" />'."\n";
+ }
+ }
+
+ function putDiakKepUpload($diakId,$POSTTHESE) {
+ formBegin(array('enctype'=>"multipart/form-data",'class'=>'diak'));
+ echo '<fieldset><legend>'._DIAK_FENYKEPE.'</legend>'."\n";
+ _postThese($POSTTHESE);
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="action" value="diakKepUpload" />';
+ echo '<input type="file" name="upfile" />';
+ echo '<input type="submit" class="diakSubmit" value="ok" />';
+ echo '</fieldset>';
+ formEnd();
+ }
+
+ function putDiakAlapadatok($diakAdat, $POSTTHESE, $DIAKJOGVISZONY, $KEPZES = '') {
+ global $DIAKADAT_DISABLE;
+ if (!is_array($DIAKADAT_DISABLE)) $DIAKADAT_DISABLE = array();
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+
+ if (_KERELMEZHET===true) echo '<input type="hidden" id="kerelmezhet" name="kerelmezhet" value="1" />';
+ else echo '<input type="hidden" id="kerelmezhet" name="kerelmezhet" value="0" />';
+
+ echo '<input type="hidden" name="action" value="diakAlapadatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_ALAPADATAI.'</legend>'."\n";
+
+ echo '<table class="'.ekezettelen($diakAdat['nem']).'">'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td colspan="5">';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$diakAdat['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="20" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$diakAdat['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="20" name="viseltUtonev" value="'.$diakAdat['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($diakAdat['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ if ($diakAdat['nem'] == 'lány') echo '<span class="icon-female"></span>';
+ elseif ($diakAdat['nem'] == 'fiú') echo '<span class="icon-male"></span>';
+ echo '</td>'."\n";
+
+ echo '</tr><tr>';
+
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$diakAdat['oId'].'" maxlength="11" />';
+ echo '</td>'."\n";
+
+ echo '</tr><tr>';
+ echo '<th>'."\n";
+ echo '<label for="torzslapszam">'._TORZSLAPSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('torzslapszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="torzslapszam" name="torzslapszam" value="'.$diakAdat['torzslapszam'].'" maxlength="32" '.$_ro.'/>';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th>';
+ echo '<label for="statusz"><a href="#osztalyai" tabindex="-1">'._STATUSZ.'</a></label>';
+ echo '</th>'."\n";
+ echo '<td colspan="3">';
+ // echo $diakAdat['jogviszonyStatusz'].' ('.$diakAdat['jogviszonyDt'].')';
+ echo '<ul>';
+ for ($i=0; $i<count($DIAKJOGVISZONY); $i++) {
+ echo '<li>'.$DIAKJOGVISZONY[$i]['dt'].': '.$DIAKJOGVISZONY[$i]['statusz'].'</li>';
+ }
+ echo '</ul>';
+
+ if (is_array($KEPZES) && count($KEPZES)>0) {
+ echo '<ul>';
+ for ($i=0; $i<count($KEPZES); $i++) {
+ echo '<li>'.$KEPZES[$i]['kepzesNev'].': '.$KEPZES[$i]['tolDt'].'</li>';
+ }
+ echo '</ul>';
+ }
+
+ echo '</td>'."\n";
+ echo '<th>'."\n";
+ if ($diakAdat['gondozasiSzam']!='')
+ echo '<label for="gondozasiSzam">'._GONDOZASISZAM.':</label> '."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ if ($diakAdat['gondozasiSzam']!='')
+ echo $diakAdat['gondozasiSzam'];
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$diakAdat['tajSzam'].'" maxlength="9" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('allampolgarsag',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$diakAdat['allampolgarsag'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="adoazonosito">'._ADOAZONOSITO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('adoazonosito',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="adoazonosito" name="adoazonosito" value="'.$diakAdat['adoazonosito'].'" maxlength="10" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('diakigazolvanyszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$diakAdat['diakigazolvanySzam'].'" maxlength="11" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szemelyiIgazolvanySzam">'._SZEMELYIIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('szemelyiigazolvanyszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="szemelyiIgazolvanySzam" name="szemelyiIgazolvanySzam" value="'.$diakAdat['szemelyiIgazolvanySzam'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="tartozkodasiOkiratSzam">'._TARTOZKODASIOKIRATSZAM.':</label> '."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('tartozkodasiokiratszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="16" id="tartozkodasiOkiratSzam" name="tartozkodasiOkiratSzam" value="'.$diakAdat['tartozkodasiOkiratSzam'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><label for="NEKAzonosito">'._NEKAZONOSITO.'<label></th>'."\n";
+ echo '<td colspan="5">';
+ $_ro = (in_array('nekazonosito',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="20" maxlength="16" name="NEKAzonosito" id="NEKAzonosito" value="'.$diakAdat['NEKAzonosito'].'" '.$_ro.'/>';
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<th><label for="megjegyzes">'._MEGJEGYZES.'<label></th>'."\n";
+ echo '<td colspan="3">';
+ echo '<input type="text" name="megjegyzes" id="megjegyzes" value="'.$diakAdat['megjegyzes'].'" />';
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakSzuletesiAdatok($diakAdat, $POSTTHESE) {
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakSzuletesiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_SZULETESI_ADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="szuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$diakAdat['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$diakAdat['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$diakAdat['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="szuletesiHely">'._SZULETESIHELY.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="szuletesiHely" name="szuletesiHely" value="'.$diakAdat['szuletesiHely'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="szuletesiIdo" name="szuletesiIdo" value="'.$diakAdat['szuletesiIdo'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakCim($diakAdat, $tipus = 'lakhely', $POSTTHESE) {
+
+ global $ADAT;
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakCimModositas" />'."\n";
+ echo '<input type="hidden" name="tipus" value="'.$tipus.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'.constant('_DIAK_CIM_'.strtoupper($tipus)).'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'Orszag">'._ORSZAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Orszag" name="'.$tipus.'Orszag" value="'.$diakAdat[$tipus.'Orszag'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Irsz">'._IRSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Irsz" name="'.$tipus.'Irsz" value="'.$diakAdat[$tipus.'Irsz'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Helyseg">'._HELYSEG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Helyseg" name="'.$tipus.'Helyseg" value="'.$diakAdat[$tipus.'Helyseg'].'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'KozteruletNev">'._KOZTERULETNEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'KozteruletNev" name="'.$tipus.'KozteruletNev" value="'.$diakAdat[$tipus.'KozteruletNev'].'" />';
+ echo '<select name="'.$tipus.'KozteruletJelleg">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($diakAdat[$tipus.'KozteruletJelleg'] => ' selected="selected" ');
+ foreach ($ADAT['kozteruletJelleg'] as $jelleg) {
+ echo '<option value="'.$jelleg.'"'.$SEL[$jelleg].'>'.$jelleg.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Hazszam">'._HAZSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Hazszam" name="'.$tipus.'Hazszam" value="'.$diakAdat[$tipus.'Hazszam'].'" title="'._HAZSZAM.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'Emelet">'._EMELET.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Emelet" name="'.$tipus.'Emelet" value="'.$diakAdat[$tipus.'Emelet'].'" title="'._EMELET.'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Ajto">'._AJTO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Ajto" name="'.$tipus.'Ajto" value="'.$diakAdat[$tipus.'Ajto'].'" title="'._AJTO.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakElerhetoseg($diakAdat, $POSTTHESE) {
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakElerhetosegModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_ELERHETOSEG.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="mobil">'._MOBIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone-alt"></span>';
+ echo '<input type="text" id="mobil" name="mobil" value="'.$diakAdat['mobil'].'" />';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="email">'._EMAIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-envelope"></span>';
+ echo '<input type="text" id="email" name="email" value="'.$diakAdat['email'].'" />';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="telefon">'._TELEFON.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone"></span>';
+ echo '<input type="text" id="telefon" name="telefon" value="'.$diakAdat['telefon'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakTanulmanyiAdatok($diakAdat, $POSTTHESE, $OSZTALYOK, $ADAT) {
+
+ $tanev = $POSTTHESE['tanev'];
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakTanulmanyiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_TANULMANYI_ADATOK.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ $voltOsztaly = $Osztaly = array();
+// $Be = $Ki = array();
+ for ($i = 0; $i < count($diakAdat['osztaly']); $i++) {
+ $_osztalyId = ($diakAdat['osztaly'][$i]['osztalyId']);
+ $voltOsztalyIds[] = $_osztalyId;
+ $_O = $OSZTALYOK[$_osztalyId];
+ $Osztaly[] = '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=osztaly&osztalyId='.$_osztalyId).'">'.$diakAdat['osztaly'][$i]['osztalyJel'].' ['.$_O['kezdoTanev'].'/'.$_O['vegzoTanev'].'.'.$_O['jel'].' '.$_O['leiras'].' ('.$_O['osztalyfonokNev']
+ .')] '.$diakAdat['osztaly'][$i]['beDt'].' &rarr; '.($diakAdat['osztaly'][$i]['kiDt']=='' ?'-':$diakAdat['osztaly'][$i]['kiDt'] ).' <span class="naploSorszam">'._NAPLOSORSZAM.': '.$diakAdat['osztaly'][$i]['naploSorszam'].'</a></span>';
+// $Be[] = $diakAdat['osztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['osztaly'][$i]['kiDt'];
+ }
+ for ($i = 0; $i < count($diakAdat['mindenOsztaly']); $i++) {
+ $_osztalyId = $diakAdat['mindenOsztaly'][$i]['osztalyId'];
+ if (is_array($voltOsztalyIds) && !in_array($_osztalyId, $voltOsztalyIds)) {
+ $_O = $OSZTALYOK[$_osztalyId];
+
+ $VoltOsztaly[] = $diakAdat['mindenOsztaly'][$i]['osztalyJel'].' ['.$_O['kezdoTanev'].'/'.$_O['vegzoTanev'].'.'.$_O['jel'].' '.$_O['leiras'].' ('.$_O['osztalyfonokNev']
+ .')] '.$diakAdat['mindenOsztaly'][$i]['beDt'].' &rarr; '.($diakAdat['mindenOsztaly'][$i]['kiDt']=='' ?'-':$diakAdat['mindenOsztaly'][$i]['kiDt'] ).' <span class="naploSorszam">'._NAPLOSORSZAM.': '.$diakAdat['osztaly'][$i]['naploSorszam'].'</span>';
+// $Be[] = $diakAdat['mindenOsztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['mindenOsztaly'][$i]['kiDt'];
+ }
+ }
+ echo '<tr>'."\n";
+ echo '<th id="osztalyai">';
+ echo _DIAK_OSZTALYA." (".$tanev.")\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<ul>';
+ for ($i=0; $i<count($Osztaly); $i++) {
+ echo '<li>'.$Osztaly[$i].'</a></li>';
+ }
+ for ($i=0; $i<count($VoltOsztaly); $i++) {
+ echo '<li class="volt">'.$VoltOsztaly[$i].'</li>';
+ }
+ echo '</ul>';
+ echo '</td>'."\n";
+
+// echo '<td>';
+// echo implode('<br />', $Be);
+// echo '</td>'."\n";
+// echo '<td>'."\n";
+// echo implode('<br />', $Ki);
+// echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="jogviszonyKezdete">'._JOGVISZONY_KEZDETE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+// echo '<input type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.$diakAdat['jogviszonyKezdete'].'" />';
+ echo $diakAdat['jogviszonyKezdete'];
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="jogviszonyVege">'._JOGVISZONY_VEGE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+// echo '<input type="text" id="jogviszonyVege" name="jogviszonyVege" value="'.$diakAdat['jogviszonyVege'].'" />';
+ echo $diakAdat['jogviszonyVege'];
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="kezdoTanev">'._KEZDO_TANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoTanev" name="kezdoTanev" value="'.$diakAdat['kezdoTanev'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoSzemeszter">'._KEZDO_SZEMESZTER.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoSzemeszter" name="kezdoSzemeszter" value="'.$diakAdat['kezdoSzemeszter'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="elozoIskolaOMKod">'._ELOZOISKOLAOMKOD.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="elozoIskolaOMKod" name="elozoIskolaOMKod" value="'.$diakAdat['elozoIskolaOMKod'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="lakohelyiJellemzo">'._LAKOHELYIJELLEMZO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="lakohelyiJellemzo" id="lakohelyiJellemzo">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($diakAdat['lakohelyiJellemzo'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['lakohelyiJellemzo']); $i++)
+ echo '<option value="'.$ADAT['lakohelyiJellemzo'][$i].'"'.$SEL[$ADAT['lakohelyiJellemzo'][$i]].'>'.$ADAT['lakohelyiJellemzo'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putDiakSzocialisAdatok($diakAdat, $POSTTHESE) {
+
+ global $ADAT;
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakSzocialisAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_SZOCIALIS_ADATOK.'</legend>'."\n";
+ echo '<table>'."\n";
+
+// Ez mi????
+// $Osztaly = $Be = $Ki = array();
+// for ($i = 0; $i < count($diakAdat['osztaly']); $i++) {
+// $Osztaly[] = $diakAdat['osztaly'][$i]['osztalyJel'];
+// $Be[] = $diakAdat['osztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['osztaly'][$i]['kiDt'];
+// }
+ echo '<tr>'."\n";
+ echo '<td class="top" colspan="2">'."\n";
+ echo '<fieldset><legend>'._DIAK_TORVENYES_KEPVISELO.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['torvenyesKepviselo']); $i++) {
+ $CHK = (strpos($diakAdat['torvenyesKepviselo'], $ADAT['torvenyesKepviselo'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="torvenyesKepviselo'.$i.'" name="torvenyesKepviselo[]" value="'.$ADAT['torvenyesKepviselo'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="torvenyesKepviselo'.$i.'">'.$ADAT['torvenyesKepviselo'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '</td>'."\n";
+ echo '<td rowspan="3" class="top">'."\n";
+ echo '<fieldset><legend>'._DIAK_SZOCIALIS_HELYZET.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['szocialisHelyzet']); $i++) {
+ $CHK = (strpos($diakAdat['szocialisHelyzet'], $ADAT['szocialisHelyzet'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="szocialisHelyzet'.$i.'" name="szocialisHelyzet[]" value="'.$ADAT['szocialisHelyzet'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="szocialisHelyzet'.$i.'">'.$ADAT['szocialisHelyzet'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo '</td>'."\n";
+
+ echo '<td class="top" rowspan="3">'."\n";
+ echo '<fieldset><legend>'._DIAK_FOGYATEKOSSAG.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['fogyatekossag']); $i++) {
+ $CHK = (strpos($diakAdat['fogyatekossag'], $ADAT['fogyatekossag'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="fogyatekossag'.$i.'" name="fogyatekossag[]" value="'.$ADAT['fogyatekossag'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="fogyatekossag'.$i.'">'.$ADAT['fogyatekossag'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '<a href="'.href('index.php?page=naplo&sub=sni&diakId='.$ADAT['diakId']).'">SNI</a>';
+ echo '</td>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="penzugyiStatusz">'._DIAK_PENZUGYI_STATUSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="penzugyiStatusz" id="penzugyiStatusz">'."\n";
+ $SEL = array($diakAdat['penzugyiStatusz'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['penzugyiStatusz']); $i++)
+ echo '<option value="'.$ADAT['penzugyiStatusz'][$i].'"'.$SEL[$ADAT['penzugyiStatusz'][$i]].'>'.$ADAT['penzugyiStatusz'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="gondozasiSzam">'._DIAK_GONDOZASISZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="gondozasiSzam" name="gondozasiSzam" value="'.$diakAdat['gondozasiSzam'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+
+ function putDiakSzulo($diakAdat, $Szulok, $POSTTHESE) {
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'), 'class'=>'diak onChangeRequest 0onSubmitUpdate'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'), 'class'=>'diak onSubmitUpdate'));
+ echo '<fieldset><legend>'._DIAK_SZULO.'</legend>'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<input type="submit" name="anya" value="'._ANYA.': '.$Szulok[$diakAdat['anyaId']]['szuloNev'];
+ if (isset($diakAdat['anyaId'])) echo ' ('.$diakAdat['anyaId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="apa" value="'._APA.': '.$Szulok[$diakAdat['apaId']]['szuloNev'];
+ if (isset($diakAdat['apaId'])) echo ' ('.$diakAdat['apaId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="gondviselo" value="'._GONDVISELO.': '.$Szulok[$diakAdat['gondviseloId']]['szuloNev'];
+ if (isset($diakAdat['gondviseloId'])) echo ' ('.$diakAdat['gondviseloId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="nevelo" value="'._NEVELO.': '.$Szulok[$diakAdat['neveloId']]['szuloNev'];
+ if (isset($diakAdat['neveloId'])) echo ' ('.$diakAdat['neveloId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+
+ function putUjDiak($ADAT) {
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="ujDiak" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<fieldset><legend>'._UJ_DIAK.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="felvetelTipus">'._BEKERULES_MODJA.'</label>'."\n";
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="felvetelTipus" id="felvetelTipus">'."\n";
+ foreach ($ADAT['bekerulesModja'] as $tipus) {
+ //foreach ($ADAT['zaradek'] as $tipus => $zaradekIndex) {
+ echo '<option value="'.$tipus.'">'.$tipus.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '<th>';
+ echo _OSZTALY;
+ echo '</th>';
+ echo '<td>';
+ if (is_array($ADAT['osztaly'])) {
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztaly']['osztalyId'].'" />'."\n";
+ echo $ADAT['osztaly']['kezdoTanev'].'-'.($ADAT['osztaly']['kezdoTanev']+1).'/'.$ADAT['osztaly']['jel'];
+ if (isset($ADAT['osztaly']['osztalyJel'])) echo ' ('.$ADAT['osztaly']['osztalyJel'].')';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev" class="kotelezo">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="2" name="viseltNevElotag" value="'.$diakAdat['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$diakAdat['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="20" name="viseltUtonev" value="'.$diakAdat['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($diakAdat['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$diakAdat['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$diakAdat['tajSzam'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$diakAdat['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$diakAdat['diakigazolvanySzam'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="jogviszonyKezdete" class="kotelezo">'._JOGVISZONY_KEZDETE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.date('Y-m-d').'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoTanev" class="kotelezo">'._TERVEZETT_KEZDO_TANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoTanev" name="kezdoTanev" value="'.$diakAdat['kezdoTanev'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoSzemeszter" class="kotelezo">'._KEZDO_SZEMESZTER.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoSzemeszter" name="kezdoSzemeszter" value="'.$diakAdat['kezdoSzemeszter'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th><label for="NEKAzonosito">'._NEKAZONOSITO.'<label></th>'."\n";
+ echo '<td colspan="5">';
+ echo '<input type="text" size="20" maxlength="16" name="NEKAzonosito" id="NEKAzonosito" value="'.$diakAdat['NEKAzonosito'].'" />';
+ echo '</td>';
+ echo '</tr>';
+
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" style="width:100%;" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakJogviszonyValtozas($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak'));
+ echo '<fieldset><legend>'._JOGVISZONY_VALTAS.'</legend>'."\n";
+
+ echo '<h1>'._JOGVISZONY_VALTAS.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="jogviszonyValtas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['diakJogviszony']); $i++) {
+ echo '<li>'.$ADAT['diakJogviszony'][$i]['dt'].': '.$ADAT['diakJogviszony'][$i]['statusz'].'</li>';
+ }
+ echo '</ul>';
+
+ echo '<label for="jogviszonyValtasSelect">'._UJ_STATUSZ.'</label>';
+ echo '<select name="statusz" id="jogviszonyValtasSelect">'."\n";
+ echo '<option value=""> -- '._UJ_JOGVISZONY_STATUSZ.' -- </option>'."\n";
+ foreach ($ADAT['valthatoStatusz'] as $key => $statusz) {
+ $_SEL = (count($ADAT['valthatoStatusz']) == 1) ? ' selected="selected"':'';
+ echo '<option value="'.$statusz.'" '.$_SEL.'>'.$statusz.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br/>';
+ echo '<label for="jvd">'._JOGVISZONY_VALTAS_DT.'</label>'."\n";
+ echo '<input class="date" id="jvd" type="text" name="jogviszonyValtasDt" value="'.date('Y-m-d').'" />'."\n";
+ echo '<br/>';
+ echo '<label for="iktatoszam">'._IKTATOSZAM.'</label>'."\n";
+ echo '<input type="text" name="iktatoszam" />'."\n";
+ echo '<br/>';
+
+ echo '<div class="rejtett" id="felfuggesztes">';
+ echo '<label for="felfuggesztesOk">'._FELFUGGESZTES_OK.'</label>';
+ echo '<input type="text" name="felfuggesztesOk" id="felfuggesztesOk" value="" />';
+ echo '<br />'."\n";
+ echo '<label for="felfuggesztesIgDt">'._FELFUGGESZTES_IG_DT.'</label>';
+ echo '<input type="text" name="felfuggesztesIgDt" id="felfuggesztesIgDt" value="" class="date" />';
+ echo '</div>'."\n";
+ echo '<div class="rejtett" id="lezaras">';
+ echo '<select name="lezarasZaradekIndex" id="lezarasZaradek">'."\n";
+ echo '<option value=""> -- '._JOGVISZONY_LEZARAS_ZARADEK.' -- </option>';
+ foreach ($ADAT['jogviszonyLezarasZaradek'] as $zaradekIndex => $zAdat)
+ echo '<option value="'.$zaradekIndex.'">'.$zAdat['szoveg'].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '<span id="igazolatlan" class="rejtett">';
+ echo '<label for="lezarasIgazolatlan">'._LEZARAS_IGAZOLATLAN_ORAK_SZAMA.'</label>'."\n";
+ echo '<input type="text" name="lezarasIgazolatlanOrakSzama" id="lezarasIgazolatlan" value="" />';
+ echo '</span>'."\n";
+ echo '<span id="iskola" class="rejtett">';
+ echo '<label for="lezarasIskola">'._LEZARAS_ISKOLA.'</label>'."\n";
+ echo '<input type="text" name="lezarasIskola" id="lezarasIskola" value="" />';
+ echo '</span>'."\n";
+ echo '</div>'."\n";
+
+ echo '<input type="submit" value="'._MODOSITAS.'" title="'._BIZTOS_MODOSITJA.'" class="confirm" />'."\n";
+
+ echo '</fieldset>';
+ formEnd();
+
+
+ /* ----------------------- */
+
+
+ formBegin(array('method'=>'post', 'class'=>'diak hozottHianyzas'));
+ echo '<fieldset><legend>'._HOZOTT_HIANYZASOK.'</legend>'."\n";
+
+ echo '<h1>'._HOZOTT_HIANYZASOK.'</h1>';
+
+ if (is_array($ADAT['hozottHianyzas']) && count($ADAT['hozottHianyzas'])>0) {
+ echo '<ul>';
+ foreach ($ADAT['hozottHianyzas'] as $statusz => $db) {
+ echo '<li>'.$statusz.': '.$db['db'].'</li>';
+ }
+ echo '</ul>';
+ } else {
+ echo '<input type="hidden" name="action" value="diakHozottHianyzas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo _IGAZOLT.'<input type="text" name="hozottHianyzasIgazolt" />';
+ echo '<br/>';
+ echo _IGAZOLATLAN.'<input type="text" name="hozottHianyzasIgazolatlan" />';
+ echo '<input type="submit" />';
+
+ }
+/*
+| diakId | int(10) unsigned | NO | MUL | NULL | |
+| statusz | enum('igazolt','igazolatlan') | YES | | NULL | |
+| dbHianyzas | tinyint(3) unsigned | YES | | NULL | |
+| dt | date | YES | | NULL | |
+*/
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakExportForm($ADAT) {
+ echo "\n\n";
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=export&f=diakExport'), 'class'=>'diak'));
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="submit" value="'._EXPORT.'" class="onClickUpdate2" />'."\n";
+ formEnd();
+
+ }
+
+ function putDiakNyomtatForm($osztalyId,$diakId) {
+ echo "\n\n";
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=nyomtatas&f=diakAdatlap'), 'class'=>'diak'));
+ if (isset($diakId)) echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ else echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="submit" value="'._PRINT.'" class="onClickUpdate2" />'."\n";
+ formEnd();
+ }
+
+
+ function putDiaktorol($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak'));
+
+ echo '<fieldset><legend>'._JOGVISZONY_TOROL.'</legend>'."\n";
+ echo '<h1>'._JOGVISZONY_TOROL.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="diakTorol" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_TORLI.'" class="confirm" />'."\n";
+ echo '</fieldset>';
+
+ formEnd();
+ }
+
+ function putSuliXRESTForm($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak rest'));
+ echo '<fieldset><legend>'._FELHASZNALOI_AZONOSITO.'</legend>'."\n";
+
+ echo '<h1>'._FELHASZNALOI_AZONOSITO.'</h1>';
+
+ echo '<input type="hidden" name="action" value="sulixREST" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<input title="'._BIZTOSAN_LETREHOZ_E.'" class="confirm" id="createAccount" type="submit" name="createAccount" value="'._AZONOSITO_LETREHOZASA.'" />'."\n";
+ echo '<input title="'._BIZTOSAN_TOROL_E.'" class="confirm" id="deleteAccount" type="submit" name="deleteAccount" value="'._AZONOSITO_TORLESE.'" />'."\n";
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+
+ function putDiakNyelvvizsga($ADAT, $POSTTHESE) {
+
+ $diakAdat = $ADAT['diakAdat'];
+
+ $tanev = $POSTTHESE['tanev'];
+
+ formBegin(array('method'=>'post', 'class'=>'diak'));
+
+ echo '<input type="hidden" name="action" value="diakNyelvvizsgaFelvesz" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+
+ echo '<fieldset id="diakNyelvvizsgaAdatok"><legend>'._DIAK_NYELVVIZSGA_ADATOK.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td colspan="2">';
+ // echo '<span class="icon-globe"></span>';
+
+ $NY = $ADAT['diakAdat']['diakNyelvvizsga'];
+ if (count($NY)>0) {
+ echo '<table class="diakNyelvvizsgak">';
+ echo '<tr>';
+ echo '<th><span class="icon-trash-alt"></span></th>';
+ echo '<th>Nyelv</th>';
+ echo '<th>Szint</th>';
+ echo '<th>Típus</th>';
+ echo '<th>Intézmény</th>';
+ echo '<th>Bizonyítvány szám</th>';
+ echo '<th>Kiállítás dátuma</th>';
+ echo '</tr>';
+ for ($i=0; $i<count($NY); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="checkbox" name="nyelvvizsgaTorol[]" value="'.$NY[$i]['nyelvvizsgaId'].'">';
+ echo '</td>';
+ echo '<td>';
+ for ($j=0; $j<count($ADAT['nyelviTargyak']); $j++) {
+ if ($ADAT['nyelviTargyak'][$j]['targyId'] == $NY[$i]['targyId'])
+ echo $ADAT['nyelviTargyak'][$j]['targyNev'];
+ }
+ echo '</td>';
+ echo '<td>'.$NY[$i]['vizsgaSzint'].'</td>';
+ echo '<td>'.$NY[$i]['vizsgaTipus'].'</td>';
+ echo '<td>'.$NY[$i]['vizsgaIntezmeny'].'</td>';
+ echo '<td>'.$NY[$i]['vizsgaBizonyitvanySzam'].'</td>';
+ echo '<td>'.$NY[$i]['vizsgaDt'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th>';
+ echo '<label for="">'._UJ_NYELVVIZSGA.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="targyId" id="targyId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['nyelviTargyak']); $i++)
+ echo '<option value="'.$ADAT['nyelviTargyak'][$i]['targyId'].'">'.$ADAT['nyelviTargyak'][$i]['targyNev'].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '<select name="vizsgaSzint" id="vizsgaSzint">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['vizsgaSzintek']); $i++)
+ echo '<option value="'.$ADAT['vizsgaSzintek'][$i].'">'.$ADAT['vizsgaSzintek'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '<select name="vizsgaTipus" id="vizsgaTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['vizsgaTipusok']); $i++)
+ echo '<option value="'.$ADAT['vizsgaTipusok'][$i].'">'.$ADAT['vizsgaTipusok'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '<input type="text" name="vizsgaIntezmeny" placeholder="Vizsgáztató Intézmény">';
+ echo '<input type="text" name="vizsgaBizonyitvanySzam" placeholder="Bizonyítványszám">';
+ echo '<input type="text" name="vizsgaDt" class="datum date" placeholder="Vizsgadátum">';
+
+
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml
new file mode 100644
index 00000000..51665213
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml
@@ -0,0 +1,93 @@
+<?php
+
+ function putDiakExportForm($ADAT) {
+
+ global $skin, $exportFormatum;
+
+ if ($skin != 'ajax') formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diakExport'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakExport" />'."\n";
+
+ foreach ($exportFormatum as $formatum => $mezok) {
+ $format = ekezettelen($formatum);
+ echo '<input type="button" name="'.$format.'" value="'.$formatum.'" class="onClickMezoSelect" />'."\n";
+ echo '<input type="hidden" name="'.$format.'Lista" id="'.$format.'Lista" value="'.implode(',', $mezok).'" />'."\n";
+ }
+
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['dt'])) echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+/*
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="szulovel">'._SZULO_ADATOKKAL.'</label>';
+ echo '<input type="checkbox" id="szulovel" name="tabla[]" value="szulo" />';
+ echo '</th>'."\n";
+ echo '<th>';
+ echo '<label for="osztallyal">'._OSZTALY_ADATOKKAL.'</label>';
+ echo '<input type="checkbox" id="osztallyal" name="tabla[]" value="osztaly" />';
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+*/
+
+ if (strstr($_SERVER["HTTP_USER_AGENT"], 'Linux')) $CHK = array('csv' => ' checked="checked" ');
+ else $CHK = array('xml' => ' checked="checked" ');
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv"'.$CHK['csv'].' />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml"'.$CHK['xml'].' />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+// echo '<td>';
+// echo '<input type="radio" name="formatum" value="pdf" id="pdf"'.$CHK['pdf'].' />'."\n";
+// echo '<label for="pdf">'._PDF.'</label>'."\n";
+// echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+
+ if (is_array($ADAT['export'])) {
+ echo '<tr>';
+ echo '<td colspan="20">'."\n";
+ putExportMezok($ADAT['mezok']);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+ function putExportMezok($Mezok) {
+
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ foreach ($Mezok as $attr => $attrNev) {
+ echo '<tr>'."\n";
+ echo '<td>';
+ echo '<input type="checkbox" name="mezok[]" id="'.$attr.'" checked="checked" value="'.$attr.'" />'."\n";
+ echo '<label for="'.$attr.'">'.$attrNev.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</thead>'."\n";
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml
new file mode 100644
index 00000000..884c6923
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml
@@ -0,0 +1,225 @@
+<?php
+
+ global $ADAT;
+
+
+ function putDiakFelmentesForm($ADAT) {
+
+ echo '<div class="FM FM1">';
+ echo '<h2>1. '._FELMENTES_TARGY_ERTEKELES_ALOL.'</h2>';
+ formBegin();
+
+ echo '<label for="T1targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T1targy');
+
+ echo '<select name="t1altipus" id="t1altipus">';
+ echo '<option value="1">'._EGESZ_EVRE.'</option>';
+ echo '<option value="2">'._RESZBEN.'</option>';
+ echo '</select>'."\n";
+ echo '<label for="T1tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T1tol');
+
+ echo '<div class="rejtett" id="T1b">';
+ echo '<label>'._ZARADEK.'</label>';
+ echo '<input type="text" name="zaradekTxt1" value="" />'._ZARADEK1;
+ echo '<input type="text" name="zaradekTxt2" value="" />'._ZARADEK2;
+
+ echo '</div>'."\n";
+
+ echo '<label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ echo '<input type="hidden" name="action" value="tipus1" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+
+ echo '<div class="FM FM2">';
+ echo '<h2>2. '._FELMENTES_TANKOR_ORALATOGATASA_ALOL.'</h2>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus2" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<label for="T2ovi">'._OVIKOTELES.'</label>';
+ echo '<input type="checkbox" id="T2ovi" name="ovi" value="1" /><br/>';
+
+ echo '<label for="T2tankor">'._TANKOR.'</label>';
+ _putDiakTankor($ADAT['diakTankor'], 'T2tankor');
+
+ echo '<label for="T2tol">'._TOL_DT.'</label>';
+ _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true, 'igDt'=>true),'T2tol');
+ echo '<br/><label>'._NAPORAOPT.'</label>';
+ _putHetNapjai();
+ _putOrak();
+
+ echo '<br/><label for="T2forceDel">'._TORLESKENYSZERITES.'</label>';
+ echo '<input type="checkbox" id="T2forceDel" name="forceDel" value="1" />';
+
+ echo '<br/><label for="T2skipZaradek">'._ZARADEKNELKUL.'</label>';
+ echo '<input type="checkbox" id="T2skipZaradek" name="skipZaradek" value="1" />';
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<div class="FM FM3">';
+ echo '<h2>3. '._FELMENTES_TARGY_TANULASA_ALOL.'</h2>';
+ echo '<div>'._TIPUS3.'</div>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus3" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<label for="T3targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T3targy'); echo '<br/>';
+ echo '<label for="T3tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T3tol');
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>';
+
+ if (count($ADAT['diakZaradek'])>0) _putZaradek($ADAT['diakZaradek']);
+ if (count($ADAT['tankorDiakFelmentes'])>0) {
+
+ echo '<div class="FM FMTAN">';
+ formBegin();
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor']);
+
+ echo '<input type="hidden" name="action" value="tankorDiakFelmentesTorol" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit('A kijelölt felmentéseket '.$ADAT['dt'].'-i hatállyal (-1nap) lezárjuk (végdátumot erre módosítjuk), ezzel a felmentés megszűnik. A tranzakcióhoz módosító záradék is készül.' );
+
+ formEnd();
+ echo '</div>';
+ }
+
+
+ }
+
+ function putDiakFelmentesAdatok($ADAT) {
+ echo '<div class="FM FMTAN">';
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor'],true);
+ echo '</div>';
+ }
+
+ function _putDiakTargy($DIAKTARGY,$varId) {
+ if (count($DIAKTARGY)>0) {
+ echo '<select id="'.$varId.'" name="targyId">';
+ for($i=0; $i<count($DIAKTARGY); $i++) {
+ echo '<option value="'.$DIAKTARGY[$i]['targyId'].'">'.$DIAKTARGY[$i]['targyNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putDiakTankor($DATA,$varId) {
+ if (count($DATA)>0) {
+ echo '<select id="'.$varId.'" name="tankorId">';
+ for($i=0; $i<count($DATA); $i++) {
+ echo '<option value="'.$DATA[$i]['tankorId'].'">'.$DATA[$i]['tankorNev'].' ('.$DATA[$i]['tankorId'].')</option>';
+ }
+ echo '</select>';
+ }
+ }
+
+ function _putTolIgDt($tolDt,$igDt=null,$ALLOW=array('tolDt','igDt'),$tolId) {
+
+ if ($ALLOW['tolDt']) echo '<input type="text" id="'.$tolId.'" name="tolDt" value="'.$tolDt.'" readonly="readonly" title="a dátum a referenciadátummal együtt mozog" />';
+ if ($ALLOW['igDt']) echo '<input type="text" name="igDt" />';
+
+ }
+
+
+ function _putSubmit($DESC = '') {
+ echo '<div class="submit">';
+ echo '<span>'.$DESC.'</span><br/>';
+ echo '<input type="submit" />';
+ echo '<input type="reset" />';
+ echo '</div>';
+ }
+
+
+ function _putHetNapjai() {
+ global $aHetNapjai;
+ if (count($aHetNapjai)>0) {
+ echo '<select name="nap">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($aHetNapjai); $i++) {
+ echo '<option value="'.($i+1).'">'.$aHetNapjai[$i].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putOrak() {
+ echo '<select name="ora">';
+ echo '<option value=""></option>';
+ for($i=0; $i<20; $i++) {
+ echo '<option value="'.($i).'">'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+ function _putZaradek($Z) {
+
+ echo '<div class="FM FMZAR">';
+ echo '<h2>'._ROGZITETT_ZARADEKOK.'</h2>';
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th>Dátum</th><th>Sorszám</th><th>Záradék szövege</th><th>Dokumentumok</th><th>Id</th><th>'._IKTATOSZAM.'</th>'."\n";
+ for ($i=0; $i<count($Z); $i++) {
+ echo '<tr>';
+ echo '<td>'.$Z[$i]['dt'].'</td>';
+ echo '<td>'.$Z[$i]['sorszam'].'</td>';
+ echo '<td>'.$Z[$i]['szoveg'].'</td>';
+ echo '<td>'.$Z[$i]['dokumentum'].'</td>';
+ echo '<td>'.$Z[$i]['zaradekId'].'</td>';
+ echo '<td>'.$Z[$i]['iktatoszam'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function _putTankorDiakFelmentes($F,$TANKOR, $readonly=false) {
+
+ global $aHetNapjai;
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th></th><th>Tankör</th><th>Felmentés típus</th><th>'._IKTATOSZAM.'</th><th>Tól</th><th>Ig</th><th colspan="2"></th><th>Id</th>'."\n";
+ for ($i=0; $i<count($F); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ if ($readonly===false) echo '<input type="checkbox" name="DELFM[]" value="'.$F[$i]['tankorDiakFelmentesId'].'" />';
+ echo '</td>';
+ for ($j=0; $j<count($TANKOR); $j++) if ($TANKOR[$j]['tankorId']==$F[$i]['tankorId']) break;
+ echo '<td>'.$TANKOR[$j]['tankorNev'].'</td>';
+ echo '<td>'.$F[$i]['felmentesTipus'].'</td>';
+ echo '<td>'.$F[$i]['iktatoszam'].'</td>';
+ echo '<td>'.$F[$i]['beDt'].'</td>';
+ echo '<td>'.$F[$i]['kiDt'].'</td>';
+ echo '<td>'.(is_numeric($F[$i]['nap']) ? $aHetNapjai[$F[$i]['nap']-1]:'').'</td>';
+ echo '<td>'.$F[$i]['ora'].'</td>';
+ echo '<td>'.$F[$i]['tankorDiakFelmentesId'].'</td>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml
new file mode 100644
index 00000000..8d282c62
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml
@@ -0,0 +1,97 @@
+<?php
+
+ function putDiakJogviszonyForm($ADAT) {
+
+ global $Zaradek;
+
+ echo '<div class="dj">'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="diakAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<label for="jogviszonyKezdete">'._JOGVISZONY_KEZDETE.'</label>';
+ echo '<input type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.$ADAT['diakAdat']['jogviszonyKezdete'].'" class="date" />';
+ echo '<label for="jogviszonyVege">'._JOGVISZONY_VEGE.'</label>';
+ echo '<input type="text" id="jogviszonyVege" name="jogviszonyVege" value="'.$ADAT['diakAdat']['jogviszonyVege'].'" class="date" />';
+ echo '<p>'._JELENLEGI_STATUSZ.': '.$ADAT['diakAdat']['statusz'].'</p>';
+ echo '<input type="submit" value="'._OK.'" title="'._BIZTOS_MODOSIT.'" class="confirm" />'."\n";
+ formEnd();
+
+ echo '<hr />';
+
+ echo '<p>'._JOGVISZONYVALTOZASOK.'</p>';
+ echo '<ul>'."\n";
+ foreach ($ADAT['diakStatusz'] as $i => $djAdat) {
+ echo '<li>';
+
+ formBegin(array('class'=>'statusz'));
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_TOROL.'" class="confirm" />'."\n";
+ echo '<p><span class="dt">'.$djAdat['dt'].': '.$djAdat['statusz'].'</span></p>'."\n";
+ echo '<input type="hidden" name="action" value="diakJogviszonyTorles" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$djAdat['dt'].'" />'."\n";
+ echo '<input type="hidden" name="statusz" value="'.$djAdat['statusz'].'" />'."\n";
+ if (is_array($djAdat['zaradek'])) echo '<input type="hidden" name="zaradekId" value="'.$djAdat['zaradek']['zaradekId'].'" />'."\n";
+ formEnd();
+
+ formbegin(array('class'=>'zaradek'));
+ echo '<input type="hidden" name="action" value="diakZaradek" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$djAdat['dt'].'" />'."\n";
+ echo '<input type="hidden" name="zaradekId" value="'.$djAdat['zaradek']['zaradekId'].'" />'."\n";
+ echo '<h2>'._JELENLEGI_ZARADEK.'</h2><p>';
+ if (is_array($djAdat['zaradek'])) echo $djAdat['zaradek']['szoveg'].' ['.$djAdat['zaradek']['sorszam'].'/'.$djAdat['zaradek']['zaradekId'].']';
+ else echo _NINCS;
+ echo '</p>'."\n";
+ echo '<input type="submit" value="'._MEHET.'" style="display: none;" />'."\n";
+ echo '<h2>'._UJ_MODOSITOTT_ZARADEK.'</h2>'."\n";;
+ echo '<select name="zaradekIndex" class="zaradek" id="s'.$i.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['statusz2zaradek'][ $djAdat['statusz'] ] as $zaradekIndex) {
+ echo '<option value="'.$zaradekIndex.'">'.$Zaradek[$zaradekIndex]['szoveg'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<div></div>';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+
+ echo '<hr />';
+
+ echo '<p>'._KIMARADT_JOGVISZONY_ZARADEKOK.'</p>';
+ echo '<ul>'."\n";
+ foreach ($ADAT['diakZaradekok'] as $dt => $dtAdat) {
+ foreach ($dtAdat as $j => $dzAdat) {
+ if (in_array($dzAdat['zaradekIndex'], $ADAT['jogviszonyZaradekok'])) {
+ echo '<li>';
+ echo $dzAdat['dt'].': ['.$dzAdat['sorszam'].'/'.$dzAdat['zaradekId'].']'.$dzAdat['szoveg'].' ('.$dzAdat['dokumentum'].')';
+ echo '</li>'."\n";
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ echo '</div>'."\n"; // class="dj"
+
+ }
+
+ function putHibasJogviszony($ADAT) {
+
+ if (count($ADAT['hibas']['tobbszoros']) == 0) return;
+ echo '<h2>'._HIBAS_JOGVISZONYU_DIAKOK.'</h2>';
+ echo '<h3>'._TOBBSZOROS_JOGVISZONY.'</h3>'; // egy stártusz egymás követlenül után többször is szerepel
+
+ foreach ($ADAT['hibas']['tobbszoros'] as $i => $diakId) {
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=diakStatusz&diakId='.$diakId).'">';
+ echo $diakId;
+ echo '</a>, ';
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml
new file mode 100644
index 00000000..78bd4f5f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml
@@ -0,0 +1,300 @@
+<?php
+
+
+ function putDiakSzulo($diakAdat, $Szulok, $tipus, $ADAT) {
+
+ global $skin;
+ $ktJelleg = $ADAT['kozteruletJelleg'];
+
+ // ajax esetén nem rakja ki a <form> elemet!!
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'),'class'=>"diak"));
+ if ($skin == 'ajax') {
+ $class = 'onClickUpdate';
+ }
+ echo '<input type="hidden" name="action" value="diakSzuloModositas" />'."\n";
+ echo '<input type="hidden" name="tipus" value="'.$tipus.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="szuloId" value="'.$diakAdat[$tipus.'Id'].'" />'."\n";
+ echo '<fieldset><legend>'._DIAK_SZULO.'</legend>'."\n";
+
+ $SEL = array($tipus => ' kiemelt');
+ echo '<input type="submit" name="semmi" value="" class="" style="display: none;" />';
+ echo '<input type="submit" name="anya" value="'._ANYA.': '.$Szulok[$diakAdat['anyaId']]['szuloNev'].' ('.$diakAdat['anyaId'].')" class="'.$class.$SEL['anya'].'" />';
+ echo '<input type="submit" name="apa" value="'._APA.': '.$Szulok[$diakAdat['apaId']]['szuloNev'].' ('.$diakAdat['apaId'].')" class="'.$class.$SEL['apa'].'" />';
+ echo '<input type="submit" name="gondviselo" value="'._GONDVISELO.': '.$Szulok[$diakAdat['gondviseloId']]['szuloNev'].' ('.$diakAdat['gondviseloId'].')" class="'.$class.$SEL['gondviselo'].'" />';
+ echo '<input type="submit" name="nevelo" value="'._NEVELO.': '.$Szulok[$diakAdat['neveloId']]['szuloNev'].' ('.$diakAdat['neveloId'].')" class="'.$class.$SEL['nevelo'].'" />';
+
+ if ($tipus != '') {
+
+ echo '<table border="0" class="reszletek">'."\n";
+
+ if ($diakAdat[$tipus.'Id'] != '') {
+ $szAdat = $Szulok[$diakAdat[$tipus.'Id']];
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._SZULO_ADAT_MODOSITAS.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ } else {
+ $szAdat = array();
+ // Új szülő hozzárendelése
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<input type="hidden" name="ajaxOption" class="ajaxOption" value="onChangeRequestStop" />';
+ echo '<h1>'._SZULO_HOZZARENDELESE.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ echo '<select name="ujSzuloId" class="onChangeUpdate">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($Szulok['szuloIds'] as $index => $szuloId) {
+ if (
+ $Szulok[$szuloId]['nem']=='' ||
+ ($tipus=='anya' && $Szulok[$szuloId]['nem']=='lány') ||
+ ($tipus=='apa' && $Szulok[$szuloId]['nem']=='fiú') ||
+ !in_array($tipus,array('anya','apa'))
+ )
+ echo '<option value="'.$szuloId.'">'.$Szulok[$szuloId]['szuloNev'].' ('.$szuloId.')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<hr />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._UJ_SZULO.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="Csaladinev">'._NEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ echo '<input type="text" size="4" name="nevElotag" value="'.$szAdat['nevElotag'].'" title="'._NEVELOTAG.'" />';
+ echo '<input type="text" id="Csaladinev" name="csaladinev" value="'.$szAdat['csaladinev'].'" title="'._CSALADINEV.'" />';
+ echo '<input type="text" name="utonev" value="'.$szAdat['utonev'].'" title="'._UTONEV.'" />';
+ echo '</td>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="szuloNem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ if ($szAdat['nem']!='') $_SEL[$szAdat['nem']] = ' selected="selected" ';
+ elseif ($tipus=='anya') $_SEL['lány'] = ' selected="selected" ';
+ elseif ($tipus=='apa') $_SEL['fiú'] = ' selected="selected" ';
+ echo '<select name="nem" id="szuloNem">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$_SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$_SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="foglalkozas">'._FOGLALKOZAS.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" name="foglalkozas" id="foglalkozas" value="'.$szAdat['foglalkozas'].'" title="'._FOGLALKOZAS.'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="szuloSzuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$szAdat['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuloSzuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$szAdat['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$szAdat['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="szuletesiEv">'._SZULETESIEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuletesiEv" id="szuletesiEv" value="'.$szAdat['szuletesiEv'].'" title="'._SZULETESIEV.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="munkahely">'._MUNKAHELY.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" name="munkahely" id="munkahely" value="'.$szAdat['munkahely'].'" title="'._MUNKAHELY.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="userAccount">';
+ echo _SZULOACCOUNT;
+ echo '</label>'."\n";
+ echo '</th>';
+ echo '<td colspan="1">';
+ if (__NAPLOADMIN) {
+ $inNev=(($szAdat['nevElotag']!='')?$szAdat['nevElotag'].' ':'').$szAdat['csaladinev'].' '.$szAdat['utonev'];
+ if ($szAdat['userAccount']=='') {
+ $inUsername=$szAdat['csaladinev'].'.';
+ $inUsername .= (mb_strpos($szAdat['utonev'],' ')!=0)?mb_substr($szAdat['utonev'], 0, mb_strpos($szAdat['utonev'],' '), 'UTF-8'):$szAdat['utonev'];
+ if ($inUsername == '.') $inUsername = '';
+ } else {
+ $inUsername=$szAdat['userAccount'];
+ }
+ $inJelszo = sprintf('%u', crc32($szAdat['csaladinev']));
+ $inEmail = $szAdat['email'];
+ $inTel = $szAdat['mobil'];
+ // kódold
+ echo '<input type="text" id="userAccount" name="userAccount" value="'.$szAdat['userAccount'].'" />';
+ if ($szAdat['userAccount']=='') echo '<a title="'.$inUsername.'" class="gotoCreateAccount" href="'.href("index.php?page=session&f=createAccount&toPolicy=parent&userCn=$inNev&userPassword=$inJelszo&email=$inEmail&tel=$inTel&userAccount=$inUsername", array('policy','lang','sessionID')).'" target="_blank">@</a> ';
+ echo ' ('.$inJelszo.')';
+ } else
+ echo '<input readonly="readonly" type="text" id="userAccount" name="userAccount" value="'.$szAdat['userAccount'].'" />';
+ echo '</td>';
+ echo '<th colspan="1">';
+ echo '<label for="szStatusz">'._SZULOSTATUSZTIPUSOK.'</label>';
+ echo '</th>';
+ echo '<td colspan="3">';
+ $_SEL[$szAdat['statusz']] = ' selected="selected" ';
+ echo '<select name="statusz" id="szStatusz">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['statuszTipusok']); $i++) {
+ echo '<option value="'.$ADAT['statuszTipusok'][$i].'"'.$_SEL[$ADAT['statuszTipusok'][$i]].'>'.$ADAT['statuszTipusok'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6">'."\n";
+ echo '<fieldset><legend>'._LAKHELY.'</legend>'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="orszag">'._ORSZAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="orszag" name="cimOrszag" value="'.$szAdat['cimOrszag'].'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimIrsz">'._IRSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimIrsz" name="cimIrsz" value="'.$szAdat['cimIrsz'].'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimHelyseg">'._HELYSEG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimHelyseg" name="cimHelyseg" value="'.$szAdat['cimHelyseg'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="cimKozteruletNev">'._KOZTERULETNEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimKozteruletNev" name="cimKozteruletNev" value="'.$szAdat['cimKozteruletNev'].'" />';
+ echo '<select name="cimKozteruletJelleg">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($szAdat['cimKozteruletJelleg'] => ' selected="selected" ');
+ foreach ($ktJelleg as $jelleg) {
+ echo '<option value="'.$jelleg.'"'.$SEL[$jelleg].'>'.$jelleg.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimHazszam">'._HAZSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimHazszam" name="cimHazszam" value="'.$szAdat['cimHazszam'].'" title="'._HAZSZAM.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="cimEmelet">'._EMELET.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimEmelet" name="cimEmelet" value="'.$szAdat['cimEmelet'].'" title="'._EMELET.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimAjto">'._AJTO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimAjto" name="cimAjto" value="'.$szAdat['cimAjto'].'" title="'._AJTO.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ echo '</filedset>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloMobil">'._MOBIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone-alt"></span>';
+ echo '<input type="text" id="szuloMobil" name="mobil" value="'.$szAdat['mobil'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloEmail">'._EMAIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">'."\n";
+ echo '<span class="icon-envelope"></span>';
+ echo '<input type="text" id="szuloEmail" name="email" value="'.$szAdat['email'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloTelefon">'._TELEFON.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone"></span>';
+ echo '<input type="text" id="szuloTelefon" name="telefon" value="'.$szAdat['telefon'].'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ if ($diakAdat[$tipus.'Id'] == '') {
+ echo '<input type="submit" name="modositas" value="'._FELVESZ.'" class="onClickUpdate" />';
+ echo '<input type="hidden" name="subaction" value="felvesz" />';
+ } else {
+ echo '<input type="submit" name="modositas" value="'._MODOSITAS.'" class="onClickUpdate" />';
+ echo '<input type="hidden" name="subaction" value="modosit" />';
+ }
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if ($diakAdat[$tipus.'Id'] != '') {
+ // Hozzárendelés törlése
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._SZULO_HOZZARENDELES_TORLESE.'</h1>';
+ echo '</td>'."\n";
+ echo '<tr>'."\n";
+ echo '</tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ echo '<input type="submit" name="torles" value="'._SZULO_HOZZARENDELES_TORLESE.'" class="onClickUpdate" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ } // isset($tipus)
+
+ echo '</fieldset>'."\n";
+
+ if ($skin != 'ajax') {
+ echo '<input type="hidden" name="szuloId" value="'.$szAdat['szuloId'].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['szuloDiakjai']); $i++) {
+ echo '<button type="submit" name="diakId" value="'.$ADAT['szuloDiakjai'][$i]['diakId'].'" >'.$ADAT['szuloDiakjai'][$i]['diakNev'].'</button>';
+ }
+ }
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml
new file mode 100644
index 00000000..bca9028f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml
@@ -0,0 +1,84 @@
+<?php
+
+ function putDiakTankorForm($ADAT) {
+
+ formBegin(array('method'=>'post', 'action'=>''));
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ $BENNE[$ADAT['tankorok']['diake'][$i]['tankorId']] = true;
+ }
+
+ echo '<table align="center">'; /* container */
+ echo '<tr><td style="vertical-align: top">';
+ if ($ADAT['diakOsszOraszam']>0) {
+ echo '<table class="tankor">';
+ echo '<thead><tr><th colspan="2">'._TANKOR_ORASZAMOK.'</th></tr></thead>';
+ echo '<tfoot><tr><th>'._OSSZESEN.'</th><th> '.$ADAT['diakOsszOraszam']."</th></tr></tfoot>\n";
+ echo '<tbody>';
+ foreach($ADAT['diakTankorOraszam'] as $tankorTipus => $oraszam) {
+ echo '<tr><td>'.$tankorTipus.'</td><td>'.$oraszam.'</td></tr>';
+ }
+ echo '</tbody></table>';
+ }
+ echo '</td><td style="vertical-align: top">'."\n";
+ echo '<table class="tankor">';
+ echo '<tfoot><tr><td colspan="7">';
+ if (__MODOSITHATO) {
+ echo '<label for="forceDel">'._HIANYZASOK_JEGYEK_TOROLHETOK.'</label>';
+ echo '<input type="checkbox" name="forceDel" id="forceDel" value="1" /><br />';
+ echo '<input type="submit" value="'._OK.'" />';
+ }
+// else echo _LEZART;
+ echo '</tfoot></th></tr>';
+
+/* Osztályonként */
+ for ($j=0; $j<count($ADAT['osztalyok']); $j++) {
+ $_osztalyId = $ADAT['osztalyok'][$j]['osztalyId'];
+ $_osztalyJel = $ADAT['osztalyok'][$j]['osztalyJel'];
+ echo '<tr><th colspan="7">'._OSZTALYTANKOROK.' '.$_osztalyJel.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['osztalye'][$_osztalyId]); $i++) {
+ _row($ADAT['tankorok']['osztalye'][$_osztalyId][$i],$BENNE,$i.$j.'1');
+ }
+ }
+/* Diáké */
+ echo '<tr><th colspan="7">'._DIAKTANKOROK.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ _row( $ADAT['tankorok']['diake'][$i] ,$BENNE,$i.$j.'2');
+ }
+ echo '</table>';
+ formEnd();
+ echo '</td></tr></table>'; /* container */
+ }
+
+ function _row($D,$BENNE,$id) {
+
+ $_benne = ($BENNE[$D['tankorId']]) ? true: false;
+ $_class = ($_benne) ? ' class="benne" ':'';
+ $_chk = ($_benne) ? ' checked="checked" ':'';
+ $_dsb = (__MODOSITHATO) ? '': ' disabled="disabled" readonly="readonly" ';
+ echo '<tr'.$_class.'>';
+ if (!$_benne)
+ echo '<td><input type="checkbox" id="C'.$id.'" name="UJtankorId[]" value="'.$D['tankorId'].'" '.$_chk.$_dsb.'/></td><td></td>'."\n";
+ else
+ echo '<td></td><td><input type="checkbox" id="C'.$id.'" name="DELtankorId[]" value="'.$D['tankorId'].'" '.$_dsb.'/></td>'."\n";
+ echo '<td>'.$D['tankorId'].'</td>'."\n";
+ echo '<td><label for="C'.$id.'">'.$D['tankorNev'].'</label></td>'."\n";
+ echo '<td>'; /* tervezett heti oraszam */
+ echo $D['tankorTipus'].' ';
+ if ($D['hetiOraszam']>0) echo number_format($D['hetiOraszam'],1);
+ echo '</td>';
+ echo '<td>';
+ for ($k=0; $k<count($D['tanarok']); $k++) echo $D['tanarok'][$k]['tanarNev'].' ';
+ echo '</td>'."\n";
+ echo '<td>';
+ if ($D['felveheto']==1) echo 'o'; //else echo '&bull;';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml
new file mode 100644
index 00000000..b55f2684
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml
@@ -0,0 +1,167 @@
+<?php
+
+ function putDiakTankorJelentkezesForm($ADAT) {
+ global $TBLOKKOK,$TID2TBLOKK;
+ $TBLOKKOK = $ADAT['tankorBlokkok'];
+
+ // $ARR[tankorId]=tankorBlokk
+ for ($i=0; $i<count($ADAT['tankorok']['valaszthato']); $i++) {
+ for ($j=0; $j<count($ADAT['tankorok']['valaszthato'][$i]['blokkIdk']); $j++) {
+ $_tankorId = $ADAT['tankorok']['valaszthato'][$i]['tankorId'];
+ $_blokkId = $ADAT['tankorok']['valaszthato'][$i]['blokkIdk'][$j];
+ if (!@in_array($_blokkId, $TID2TBLOKK[$_tankorId])) $TID2TBLOKK[$_tankorId][] = $_blokkId;
+ }
+ }
+
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />';
+
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ $_tankorId = $ADAT['tankorok']['diake'][$i]['tankorId'];
+ $BENNE[$_tankorId] = true;
+ for ($j=0; $j<count($TID2TBLOKK[$_tankorId]); $j++) {
+ $TBENNE[$TID2TBLOKK[$_tankorId][$j]] = $_tankorId;
+ }
+ }
+ echo '<table align="center"><tr><td>'; /* konténer */
+ echo '<tr><td style="vertical-align:top">';
+ /* Összesítő, tájékoztató táblázat */
+/*
+ echo '<table class="tankor" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="2">'._KEPZES_ORASZAM.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="2"></td></tr></tfoot>';
+ if (is_array($ADAT['diakKepzes'])) foreach($ADAT['diakKepzes'] as $diakId => $DO) {
+ for($i=0; $i<count($DO); $i++) {
+ $_kepzesId = $DO[$i]['kepzesId'];
+ $ORASZAMOK = $ADAT['kepzesOraszam'][$_kepzesId];
+ echo '<tbody>';
+ echo '<tr><th colspan="2">'.$DO[$i]['kepzesNev'].'/'.$DO[$i]['tanev'].'</th></tr>';
+ echo '<tr><td class="k">'.
+ _KOTELEZOEN_VALASZTHATO.'</td><td>'.intval($ORASZAMOK['kötelezően választható']['sum']).' '._ORA.'</td>';
+ echo '<tr><td class="k">'.
+ _SZABADON_VALASZTHATO.'</td><td>'.intval($ORASZAMOK['szabadon választható']['sum']).' '._ORA.
+ '</td></tr>';
+ echo '</tbody>';
+ }
+ }
+
+ echo '<tbody>';
+ echo '<tr><th colspan="2">'._VALASZTOTT.'</th></tr>';
+ echo '<tr><td>'.
+ _VALASZTOTT.'</td><td>'.intval(0).' '._ORA.
+ '</td></tr>';
+ echo '</tbody>';
+
+ echo '</table>'."\n";
+*/
+ echo '</td><td style="vertical-align: top">'; /* konténer */
+ echo '<table class="tankor" align="center" >';
+ echo '<thead>';
+ echo '<tr><th colspan="9">'._VALASZTHATO.'</th></tr>';
+ echo '<tr class="small"><th colspan="2">'._JELENTKEZ.'</th><th>'._ID.'</th><th>'._BLOKK.'</th><th>'._ORASZAM.'</th><th>'._TANKOR.'</th><th>'._LETSZAM.'</th><th>'._KERETLETSZAM.'</th><th>'.ucfirst(_TANAR).'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="9">';
+ //if (__) echo '<input type="submit" value="'._OK.'" />';
+ //else echo _LEZART;
+ if (__TARGYVALASZTAS===false) echo _NINCSTV;
+ elseif (__MINCONTROL===false) echo _ELOTV;
+ else echo _TV;
+
+ echo '</td></tr>';
+ echo '</tfoot>'."\n";
+
+ if ( (!__DIAK && !__NAPLOADMIN && !__VEZETOSEG) ||
+ (__TARGYVALASZTAS!==true || !isset($ADAT['diakId'])) ) { $GVal = false; $GMutat = false;}
+ else {$GVal = true; $GMutat = true;}
+
+// for ($j=0; $j<count($ADAT['osztalyok']); $j++) {
+// $_osztalyId = $ADAT['osztalyok'][$j]['osztalyId'];
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['tankorok']['valaszthato']); $i++) {
+ $_tankorId = $ADAT['tankorok']['valaszthato'][$i]['tankorId'];
+ $_blokkIdk = $ADAT['tankorok']['valaszthato'][$i]['blokkIdk'];
+ $_valaszthato=$GVal;
+
+ for ($k=0; $k<count($_blokkIdk); $k++) {
+ if ($TBENNE[$_blokkIdk[$k]]!='' && $TBENNE[$_blokkIdk[$k]]!=$_tankorId) $_valaszthato=false;
+ }
+ _row($ADAT['tankorok']['valaszthato'][$i],$BENNE,$i.$j.'1', $_valaszthato, $GMutat, $_oraszam);
+ }
+
+/*
+// Ha meg akarnánk mutatni az összes felvett tankörét:
+
+ echo '<tr><th colspan="9">'._OSSZESFELVETT.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ _row( $ADAT['tankorok']['diake'][$i] ,$BENNE,$i.$j.'2',false,false);
+ }
+*/
+ echo '</tbody>';
+// }
+ echo '</table>';
+ echo '</td></tr></table>'; /* konténer */
+ formEnd();
+
+ }
+
+ function _row($D,$BENNE,$id,$MODOSITHATO,$showbutton=true) {
+
+ global $TBLOKKOK,$TID2TBLOKK;
+
+ $_benne = ($BENNE[$D['tankorId']]) ? true: false;
+ $_class = ($_benne) ? 'benne ':'';
+ $_chk = ($_benne) ? ' checked="checked" ':'';
+ $_dsb = ($MODOSITHATO && $D['max']>$D['letszam']) ? '': ' disabled="disabled" readonly="readonly" ';
+ $_dsbLE = ($MODOSITHATO && (__MINCONTROL===false || (__MINCONTROL===true && $D['min']<$D['letszam'])) ) ? '': ' disabled="disabled" readonly="readonly" ';
+
+ if ($D['min']<$D['letszam'] && $D['max']>$D['letszam']) $_letszamClass = 'lok';
+ elseif ($D['min']==$D['letszam']) $_letszamClass = 'lok lokbottom';
+ elseif ($D['max']==$D['letszam']) $_letszamClass = 'lok loktop';
+ elseif ($D['min']>$D['letszam']) $_letszamClass = 'lkeves';
+ elseif ($D['min']<$D['letszam']) $_letszamClass = 'lsok';
+
+ for ($i=0; $i<count($D['blokkIdk']); $i++) {
+ $_class .= " B".$D['blokkIdk'][$i];
+ }
+ echo "\n\n".'<tr class="'.$_class.'">';
+ if (!$_benne) {
+ echo '<td>';
+ if ($showbutton) echo '<input type="submit" class="felvesz" id="C'.$id.'" name="UJtankorId'.$D['tankorId'].'" value="'._FELVESZ.'" '.$_chk.$_dsb.'/>';
+ else echo '&nbsp;'; // for IE
+ echo '</td><td>&nbsp;</td>';
+ } else {
+ echo '<td>&nbsp;</td><td>';
+ if ($showbutton) echo '<input type="submit" class="lead" id="C'.$id.'" name="DELtankorId'.$D['tankorId'].'" value="'._LEAD.'" '.$_dsbLE.'/>';
+ else echo '&nbsp;'; // for IE
+ echo '</td>';
+ }
+ echo '<td>'.( (is_array($D['blokkIdk']))?implode('|',$D['blokkIdk']).'/':'' ).$D['tankorId'].'</td>';
+ echo '<td>';
+ for ($i=0; $i<count($D['blokkIdk']); $i++) {
+ echo $TBLOKKOK['blokkNevek'][$D['blokkIdk'][$i]];
+ if ($i<count($D['blokkIdk'])-1) echo ', ';
+ }
+ if (count($D['blokkIdk'])==0)
+ echo '&nbsp;';
+ echo '</td>';
+ echo '<td class="szam">'.$D['oraszam'].'</label></td>';
+ echo '<td>'.$D['tankorNev'].'</td>';
+ //echo '<td><input type="radio" name="B|'.$D['blokkIdk'][0].'" value="'.$D['tankorId'].'" /></td>';
+ echo '<td class="szam">'.$D['letszam'].'</td>';
+ echo '<td class="'.$_letszamClass.'" style="text-align: center">'.$D['min'].'-'.$D['max'].'</td>';
+ echo '<td>';
+ for ($k=0; $k<count($D['tanarok']); $k++) { echo $D['tanarok'][$k]['tanarNev']; if ($k<count($D['tanarok'])-1) echo ', ';}
+ if (count($D['tanarok'])==0) echo '&nbsp;';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml
new file mode 100644
index 00000000..b4e5e234
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml
@@ -0,0 +1,261 @@
+<?php
+
+ function putFelmentes($ADAT) {
+ echo '<div class="FM FM1">';
+ echo '<h2>'._FELMENTESEK.'</h2>';
+ formBegin();
+ echo '<table cellspacing="1">';
+ for ($i=0; $i<count($ADAT['felmentes']); $i++) {
+ $D = $ADAT['felmentes'][$i];
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=diakFelmentes&diakId='.$D['diakId']).'">';
+ echo $ADAT['diakAdat'][$D['diakId']]['diakNev'];
+ echo ' ('.$ADAT['diakAdat'][$D['diakId']]['diakId'].')';
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo ($D['felmentesTipus']);
+ echo '</td>';
+ echo '<td>';
+ echo ($D['tankorId']);
+ echo '</td>';
+ echo '<td>';
+ echo $D['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['kiDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['nap'].'/'.$D['ora'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['iktatoszam'];
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ formEnd();
+ }
+
+
+ function putDiakFelmentesForm($ADAT) {
+
+ echo '<div class="FM FM1">';
+ echo '<h2>1. '._FELMENTES_TARGY_ERTEKELES_ALOL.'</h2>';
+ formBegin();
+
+ echo '<label for="T1targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T1targy');
+
+ echo '<select name="t1altipus" id="t1altipus">';
+ echo '<option value="1">'._EGESZ_EVRE.'</option>';
+ echo '<option value="2">'._RESZBEN.'</option>';
+ echo '</select>'."\n";
+ echo '<label for="T1tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T1tol');
+
+ echo '<div class="rejtett" id="T1b">';
+ echo '<label>'._ZARADEK.'</label>';
+ echo '<input type="text" name="zaradekTxt1" value="" />'._ZARADEK1;
+ echo '<input type="text" name="zaradekTxt2" value="" />'._ZARADEK2;
+
+ echo '</div>'."\n";
+
+ echo '<label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ echo '<input type="hidden" name="action" value="tipus1" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+
+ echo '<div class="FM FM2">';
+ echo '<h2>2. '._FELMENTES_TANKOR_ORALATOGATASA_ALOL.'</h2>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus2" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<label for="T2ovi">'._OVIKOTELES.'</label>';
+ echo '<input type="checkbox" id="T2ovi" name="ovi" value="1" /><br/>';
+
+ echo '<label for="T2tankor">'._TANKOR.'</label>';
+ _putDiakTankor($ADAT['diakTankor'], 'T2tankor');
+
+ echo '<label for="T2tol">'._TOL_DT.'</label>';
+ _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true, 'igDt'=>true),'T2tol');
+ echo '<br/><label>'._NAPORAOPT.'</label>';
+ _putHetNapjai();
+ _putOrak();
+
+ echo '<br/><label for="T2forceDel">'._TORLESKENYSZERITES.'</label>';
+ echo '<input type="checkbox" id="T2forceDel" name="forceDel" value="1" />';
+
+ echo '<br/><label for="T2skipZaradek">'._ZARADEKNELKUL.'</label>';
+ echo '<input type="checkbox" id="T2skipZaradek" name="skipZaradek" value="1" />';
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<div class="FM FM3">';
+ echo '<h2>3. '._FELMENTES_TARGY_TANULASA_ALOL.'</h2>';
+ echo '<div>'._TIPUS3.'</div>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus3" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<label for="T3targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T3targy'); echo '<br/>';
+ echo '<label for="T3tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T3tol');
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>';
+
+ if (count($ADAT['diakZaradek'])>0) _putZaradek($ADAT['diakZaradek']);
+ if (count($ADAT['tankorDiakFelmentes'])>0) {
+
+ echo '<div class="FM FMTAN">';
+ formBegin();
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor']);
+
+ echo '<input type="hidden" name="action" value="tankorDiakFelmentesTorol" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit('A kijelölt felmentéseket '.$ADAT['dt'].'-i hatállyal (-1nap) lezárjuk (végdátumot erre módosítjuk), ezzel a felmentés megszűnik. A tranzakcióhoz módosító záradék is készül.' );
+
+ formEnd();
+ echo '</div>';
+ }
+
+
+ }
+
+ function putDiakFelmentesAdatok($ADAT) {
+ echo '<div class="FM FMTAN">';
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor'],true);
+ echo '</div>';
+ }
+
+ function _putDiakTargy($DIAKTARGY,$varId) {
+ if (count($DIAKTARGY)>0) {
+ echo '<select id="'.$varId.'" name="targyId">';
+ for($i=0; $i<count($DIAKTARGY); $i++) {
+ echo '<option value="'.$DIAKTARGY[$i]['targyId'].'">'.$DIAKTARGY[$i]['targyNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putDiakTankor($DATA,$varId) {
+ if (count($DATA)>0) {
+ echo '<select id="'.$varId.'" name="tankorId">';
+ for($i=0; $i<count($DATA); $i++) {
+ echo '<option value="'.$DATA[$i]['tankorId'].'">'.$DATA[$i]['tankorNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+
+ function _putTolIgDt($tolDt,$igDt=null,$ALLOW=array('tolDt','igDt'),$tolId) {
+
+ if ($ALLOW['tolDt']) echo '<input type="text" id="'.$tolId.'" name="tolDt" value="'.$tolDt.'" readonly="readonly" title="a dátum a referenciadátummal együtt mozog" />';
+ if ($ALLOW['igDt']) echo '<input type="text" name="igDt" />';
+
+ }
+
+
+ function _putSubmit($DESC = '') {
+ echo '<div class="submit">';
+ echo '<span>'.$DESC.'</span><br/>';
+ echo '<input type="submit" />';
+ echo '<input type="reset" />';
+ echo '</div>';
+ }
+
+
+ function _putHetNapjai() {
+ global $aHetNapjai;
+ if (count($aHetNapjai)>0) {
+ echo '<select name="nap">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($aHetNapjai); $i++) {
+ echo '<option value="'.($i+1).'">'.$aHetNapjai[$i].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putOrak() {
+ echo '<select name="ora">';
+ echo '<option value=""></option>';
+ for($i=0; $i<20; $i++) {
+ echo '<option value="'.($i).'">'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+ function _putZaradek($Z) {
+
+ echo '<div class="FM FMZAR">';
+ echo '<h2>'._ROGZITETT_ZARADEKOK.'</h2>';
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th>Dátum</th><th>Sorszám</th><th>Záradék szövege</th><th>Dokumentumok</th><th>Id</th><th>'._IKTATOSZAM.'</th>'."\n";
+ for ($i=0; $i<count($Z); $i++) {
+ echo '<tr>';
+ echo '<td>'.$Z[$i]['dt'].'</td>';
+ echo '<td>'.$Z[$i]['sorszam'].'</td>';
+ echo '<td>'.$Z[$i]['szoveg'].'</td>';
+ echo '<td>'.$Z[$i]['dokumentum'].'</td>';
+ echo '<td>'.$Z[$i]['zaradekId'].'</td>';
+ echo '<td>'.$Z[$i]['iktatoszam'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function _putTankorDiakFelmentes($F,$TANKOR, $readonly=false) {
+
+ global $aHetNapjai;
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th></th><th>Tankör</th><th>Felmentés típus</th><th>'._IKTATOSZAM.'</th><th>Tól</th><th>Ig</th><th colspan="2"></th><th>Id</th>'."\n";
+ for ($i=0; $i<count($F); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ if ($readonly===false) echo '<input type="checkbox" name="DELFM[]" value="'.$F[$i]['tankorDiakFelmentesId'].'" />';
+ echo '</td>';
+ for ($j=0; $j<count($TANKOR); $j++) if ($TANKOR[$j]['tankorId']==$F[$i]['tankorId']) break;
+ echo '<td>'.$TANKOR[$j]['tankorNev'].'</td>';
+ echo '<td>'.$F[$i]['felmentesTipus'].'</td>';
+ echo '<td>'.$F[$i]['iktatoszam'].'</td>';
+ echo '<td>'.$F[$i]['beDt'].'</td>';
+ echo '<td>'.$F[$i]['kiDt'].'</td>';
+ echo '<td>'.(is_numeric($F[$i]['nap']) ? $aHetNapjai[$F[$i]['nap']-1]:'').'</td>';
+ echo '<td>'.$F[$i]['ora'].'</td>';
+ echo '<td>'.$F[$i]['tankorDiakFelmentesId'].'</td>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml
new file mode 100644
index 00000000..9274c725
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml
@@ -0,0 +1,121 @@
+<?php
+
+ function putUjKepesites($ADAT) {
+
+ formBegin(array('class'=>'kepesites'));
+
+ echo '<input type="hidden" name="action" value="ujKepesites" />';
+
+ echo '<h2>Alapadatok</h2>';
+ echo '<label for="kepesitesNev">Képesítés megnevezése:</label>';
+ echo '<input type="text" name="kepesitesNev" id="kepesitesNev" value="" />';
+ echo '<br />';
+
+ echo '<label for="vegzettseg">Végzettség:</label>';
+ echo '<select name="vegzettseg" id="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg) {
+ echo '<option value="'.$vegzettseg.'">'.$vegzettseg.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="fokozat">Fokozat:</label>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat) {
+ echo '<option value="'.$fokozat.'">'.$fokozat.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="specializacio">Specializáció</label>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio) {
+ echo '<option value="'.$specializacio.'">'.$specializacio.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Módosít" />';
+ echo '<br />';
+
+ formEnd();
+
+ }
+
+ function putKepesitesAdat($ADAT) {
+
+ formBegin(array('class'=>'kepesites','id'=>'kepesitesForm'));
+
+ echo '<input type="hidden" name="action" value="kepesitesModositas" />';
+ echo '<input type="hidden" name="kepesitesId" value="'.$ADAT['kepesitesId'].'" />';
+
+ echo '<h2>Alapadatok</h2>';
+ echo '<label for="kepesitesNev">Képesítés megnevezése:</label>';
+ echo '<input type="text" name="kepesitesNev" id="kepesitesNev" value="'.$ADAT['kepesitesAdat']['kepesitesNev'].'" />';
+ echo '<br />';
+
+ echo '<label>Képesités azonosítója:</label>'.$ADAT['kepesitesAdat']['kepesitesId'];
+ echo '<label for="vegzettseg">Végzettség:</label>';
+ echo '<select name="vegzettseg" id="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg) {
+ $SEL = ($vegzettseg==$ADAT['kepesitesAdat']['vegzettseg']?' selected="selected" ':'');
+ echo '<option value="'.$vegzettseg.'"'.$SEL.'>'.$vegzettseg.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="fokozat">Fokozat:</label>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat) {
+ $SEL = ($fokozat==$ADAT['kepesitesAdat']['fokozat']?' selected="selected" ':'');
+ echo '<option value="'.$fokozat.'"'.$SEL.'>'.$fokozat.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="specializacio">Specializáció</label>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio) {
+ $SEL = ($specializacio==$ADAT['kepesitesAdat']['specializacio']?' selected="selected" ':'');
+ echo '<option value="'.$specializacio.'"'.$SEL.'>'.$specializacio.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Módosít" />';
+ echo '<br />';
+
+ echo '<h2>Hozzárendelt tárgyak:</h2>';
+ echo '<ul>';
+// foreach ($ADAT['kepesitesAdat']['targyak'] as $idx => $tAdat) {
+ foreach ($ADAT['kepesitesAdat']['targyak'] as $idx => $tAdat) {
+ echo '<li>';
+ echo $tAdat['targyNev'].' ('.$tAdat['targyId'].')';
+ echo ' '.$tAdat['targyJelleg'];
+ echo '<span id="delTargy-'.$tAdat['targyId'].'" data-kepesitesid="'.$ADAT['kepesitesId'].'" data-targyid="'.$tAdat['targyId'].'" class="icon-remove-circle delTargy"></span>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '<select name="targyId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $idx => $tAdat) {
+ echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Tárgy hozzárendelése" />';
+ echo '<br />';
+
+ echo '<h2>Hozzárendelt tanárok:</h2>';
+ echo '<ul>';
+ foreach ($ADAT['kepesitesAdat']['tanarok'] as $idx => $tAdat) {
+ echo '<li>'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')<span id="delTanar-'.$tAdat['tanarId'].'" data-kepesitesid="'.$ADAT['kepesitesId'].'" data-tanarid="'.$tAdat['tanarId'].'" class="icon-remove-circle delTanar"></span></li>';
+ }
+ echo '</ul>';
+ echo '<select name="tanarId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['tanarok'] as $idx => $tAdat) {
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Tanár hozzárendelése" />';
+ echo '<br />';
+
+
+//dump($ADAT['kepesitesAdat']);
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml
new file mode 100644
index 00000000..d3a79358
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml
@@ -0,0 +1,143 @@
+<?php
+
+ function ujKepzesForm($ADAT) {
+
+ formBegin(array('class'=>'kepzes'));
+ echo '<input type="hidden" name="action" value="ujKepzes" />'."\n";
+
+ echo '<h1>'._UJ_KEPZES.'</h1>'."\n";
+
+ echo '<label for="kepzesNev">'._KEPZES_NEVE.'</label>'."\n";
+ echo '<input id="kepzesNev" type="text" name="kepzesNev" value="" />'."\n";
+
+ echo '<label for="tolTanev">'._BEVEZETES_EVE.'</label>'."\n";
+ echo '<select id="tolTanev" name="tolTanev">'."\n";
+ $aktTanev = date('Y'); $SEL = array($aktTanev => ' selected="selected" ');
+ for ($tanev = $aktTanev-10; $tanev < $aktTanev+11; $tanev++) {
+ echo '<option value="'.$tanev.'"'.$SEL[$tanev].'>'.$tanev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+ echo '<label for="osztalyJellegId">'._OSZTALY_JELLEG.'</label>'."\n";
+ echo '<select id="osztalyJellegId" name="osztalyJellegId">'."\n";
+ $SEL = array($ADAT['kepzesAdat']['osztalyJellegId'] => ' selected="selected" ');
+ echo '<option>'.$ADAT['osztalyJellegId'].'</option>';
+ foreach($ADAT['osztalyJelleg'] as $_k => $_v) {
+ if ($_v['osztalyJellegEles']==1) echo '<option value="'.$_v['osztalyJellegId'].'"'.$SEL[$_v['osztalyJellegId']].'>'.$_v['osztalyJellegNev'].' {'.$_v['osztalyJellegId'].'}</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<p><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ }
+
+ function kepzesElesForm($ADAT) {
+
+ if (($kepzesEles = $ADAT['kepzesAdat']['kepzesEles'])==1) {
+ $_class="kepzes hibernalt";
+ $_TXT = _KEPZES_HIBERNAL;
+ $_GOMB_TXT = _HIBERNAL;
+ } else {
+ $_class="kepzes eles";
+ $_TXT = _KEPZES_ELESIT;
+ $_GOMB_TXT = _ELESIT;
+ }
+
+ formBegin(array('class'=>$_class));
+ echo '<input type="hidden" name="action" value="kepzesEles" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesAdat']['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesEles" value="'.$ADAT['kepzesAdat']['kepzesEles'].'" />'."\n";
+ echo '<h1>'.$_TXT.'</h1>'."\n";
+ echo '<p><input type="submit" value="'.$_GOMB_TXT.'" /></p>'."\n";
+ formEnd();
+
+ }
+
+ function putKepzesForm($ADAT) {
+
+ if (($kepzesEles = $ADAT['kepzesAdat']['kepzesEles'])==1) {
+ $_class="kepzes eles";
+ } else {
+ $_class="kepzes hibernalt";
+ }
+
+ formBegin(array('class'=>$_class));
+ echo '<input type="hidden" name="action" value="kepzesModositas" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesAdat']['kepzesId'].'" />'."\n";
+
+ echo '<h1>'._KEPZES_ADATAI.'</h1>'."\n";
+
+ echo '<label for="kepzesNev">'._KEPZES_NEVE.'</label>'."\n";
+ echo '<input id="kepzesNev" type="text" name="kepzesNev" value="'.$ADAT['kepzesAdat']['kepzesNev'].'" />'."\n";
+
+ echo '<label for="tolTanev">'._BEVEZETES_EVE.'</label>'."\n";
+ echo '<select id="tolTanev" name="tolTanev">'."\n";
+ $aktTanev = date('Y'); $SEL = array($ADAT['kepzesAdat']['tanev'] => ' selected="selected" ');
+ for ($tanev = $aktTanev-10; $tanev < $aktTanev+11; $tanev++) {
+ echo '<option value="'.$tanev.'"'.$SEL[$tanev].'>'.$tanev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+
+ echo '<label for="osztalyJellegId">'._OSZTALY_JELLEG.'</label>'."\n";
+ echo '<select id="osztalyJellegId" name="osztalyJellegId">'."\n";
+ $SEL = array($ADAT['kepzesAdat']['osztalyJellegId'] => ' selected="selected" ');
+ echo '<option>'.$ADAT['osztalyJellegId'].'</option>';
+ foreach($ADAT['osztalyJelleg'] as $_k => $_v) {
+ if ($_v['osztalyJellegEles']==1) echo '<option value="'.$_v['osztalyJellegId'].'"'.$SEL[$_v['osztalyJellegId']].'>'.$_v['osztalyJellegNev'].' {'.$_v['osztalyJellegId'].'}</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+
+ echo '<div>';
+ echo '<span class="minih">'._MAR_RESZTVEVO_OSZTALYOK.'</span>';
+ echo '<select class="osztalySel" name="delOsztalyId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['kepzesAdat']['osztalyIds']); $i++) {
+ $OA = $ADAT['osztalyok'][ $ADAT['kepzesAdat']['osztalyIds'][$i] ];
+ echo '<option value="'.$OA['osztalyId'].'">';
+ echo $OA['osztalyJel'].' ';
+ echo $OA['leiras'];
+ echo ' {'.$OA['osztalyJellegId'].'}';
+ echo '</option>';
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div><span class="icon-retweet"></span></div>';
+
+ echo '<div>';
+ echo '<span class="minih">'._OSZTALYOK.'</span>';
+ echo '<select class="osztalySel" name="osztalyId[]" multiple="multiple">'."\n";
+ echo '<optgroup label="társítható osztályok">';
+ foreach ($ADAT['osztalyok'] as $osztalyId => $oAdat) {
+ if (!in_array($osztalyId, $ADAT['kepzesAdat']['osztalyIds'])) {
+ if ($ADAT['kepzesAdat']['osztalyJellegId']==$oAdat['osztalyJellegId']) {
+ echo '<option value="'.$osztalyId.'">';
+ echo $oAdat['osztalyJel'].' '.$oAdat['leiras'].' {'.$oAdat['osztalyJellegId'].'}';
+ echo '</option>'."\n";
+ }
+ }
+ }
+ echo '</optgroup>';
+ echo '<optgroup label="további osztályok">';
+ foreach ($ADAT['osztalyok'] as $osztalyId => $oAdat) {
+ if ($ADAT['kepzesAdat']['osztalyJellegId']!=$oAdat['osztalyJellegId']) {
+ echo '<option disabled="disabled" value="'.$osztalyId.'">';
+ echo $oAdat['osztalyJel'].' '.$oAdat['leiras'].' {'.$oAdat['osztalyJellegId'].'}';
+ echo '</option>'."\n";
+ }
+ }
+ echo '</optgroup>';
+ echo '</select>'."\n";
+ echo '</div>';
+
+
+ echo '<p><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml
new file mode 100644
index 00000000..fb10c6c4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml
@@ -0,0 +1,271 @@
+<?php
+
+ function _format($szam) {
+ return (substr($szam,strpos($szam,'.'),3)=='.00') ? intval($szam):$szam;
+ }
+
+ function putKepzesInfo($ADAT) {
+
+ dump($ADAT['kepzesAdat']);
+
+ echo $ADAT['kepzesAdat']['kepzesNev'];
+ //echo $ADAT['kepzesAdat']['tanev']; // indulo
+ if (count($ADAT['kepzesAdat']['osztalyIds'])>0) {
+
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['kepzesAdat']['osztalyIds']); $i++) {
+ $_osztalyId = $ADAT['kepzesAdat']['osztalyIds'][$i];
+ echo '<li>';
+ echo $ADAT['osztalyok'][$_osztalyId]['osztalyJel'];
+ echo $ADAT['osztalyok'][$_osztalyId]['leiras'];
+ echo $ADAT['osztalyok'][$_osztalyId]['kezdoTanev'].'-';
+ echo $ADAT['osztalyok'][$_osztalyId]['vegzoTanev'];
+ echo $ADAT['osztalyok'][$_osztalyId]['kezdoEvfolyamSorszam'];
+ echo '['.$_osztalyId.']';
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+ }
+
+ function putOratervMasolas($ADAT) {
+
+ formBegin(array('id'=>'oratervMasolas'));
+
+ echo '<h1>Képzés óratervének átvétele</h1>';
+ echo '<input type="hidden" name="action" value="oratervMasolas" />';
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />';
+
+ echo '<select name="masolandoKepzesId">';
+ foreach ($ADAT['hasonloKepzesek'] as $idx => $kAdat) if ($kAdat['kepzesId'] != $ADAT['kepzesId']) {
+
+ echo '<option value="'.$kAdat['kepzesId'].'">'.$kAdat['kepzesNev'].' ('.$kAdat['tanev'].') ['.$kAdat['kepzesId'].']</option>';
+
+ }
+ echo '</select>';
+ echo '<input title="Biztosan átveszi a kiválasztott képzés óratervét?" class="confirm" type="submit" value="óraterv átvétele..." />';
+ formEnd();
+
+ }
+
+ function putKepzesOraterv($ADAT) {
+
+ $kepzesId = $ADAT['kepzesId'];
+
+ $EVFOLYAMJELEK = $ADAT['kepzesAdat']['osztalyEvfolyamJelek'];
+ if (!is_array($EVFOLYAMJELEK)) {
+ return true;
+ }
+
+
+ /* KÉPZÉS ÓRASZÁMOK POST
+ ---------------- ----
+ *kepzesId
+ *evfolyamJel
+ kotelezoOraszam KO_[kepzesId]_[evfolyamJel]
+ maximalisOraszam MO_[kepzesId]_[evfolyamJel]
+ */
+ formBegin(array('name'=>'kepzesOraterv','class'=>'kepzesOraterv'));
+ echo '<input type="hidden" name="kepzesId" value="'.$kepzesId.'" />';
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<table align="center" cellspacing="1">';
+
+ echo '<thead>';
+ //FEJLÉC
+ echo '<tr class="evfolyamJel"><th>'._EVFOLYAMJEL.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<th>'.$_evfolyamJel.'.</th>';
+ }
+ echo '<th rowspan="2">';
+ echo '<span id="felevValtas"><span class="felev1" title="váltás a 2. félévre...">1.&nbsp;félév</span><span class="felev2" title="váltás az 1. félévre...">2.&nbsp;félév</span> <span class="icon-refresh"></span></span><br /><br />';
+ echo '<span id="oraszamKovetelmeny"><span class="oraszam" title="váltás a követelményekre...">óraszám</span><span class="kovetelmeny" title="váltás az óraszámokra">követelmény</span> <span class="icon-refresh"></span></span>';
+ echo '</th>';
+ echo '</tr>';
+ // ÉVFOLYAMONKÉNTI ÓRASZÁMOK
+ echo '<tr><th>'._KOTELEZO_ORASZAM.'-'._MAXIMALIS_ORASZAM.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<td>';
+ echo '<input type="text" size="3" maxlength="5" name="KO_'.$_evfolyamJel.'" title="'._KOTELEZO_ORASZAM.'" value="'.$ADAT['oraszam'][$_evfolyamJel]['kotelezoOraszam'].'" />'; // KO = kötelező óraszám
+ echo '-<input type="text" size="3" maxlength="5" name="MO_'.$_evfolyamJel.'" title="'._MAXIMALIS_ORASZAM.'" value="'.$ADAT['oraszam'][$_evfolyamJel]['maximalisOraszam'].'" />'; // MO = maximális óraszám
+ echo '</td>';
+ }
+ echo '</tr>';
+
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ //LÁBLEC
+ echo '<tr><th class="evfolyamJel">'._EVFOLYAMJEL.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<th>'.$_evfolyamJel.'.</th>';
+ }
+ echo '<th>&nbsp;</th>';
+ echo '</tr>';
+ echo '<tr><td>Még hiányzó / Max választható</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ $min = $ADAT['oraszam'][$_evfolyamJel]['kotelezoOraszam']; //--TODO $i->$evfolyamJel
+ $max = $ADAT['oraszam'][$_evfolyamJel]['maximalisOraszam'];
+ $sum=0;
+ reset($ADAT['oraterv']);
+ if (is_array($ADAT['oraterv'])) foreach($ADAT['oraterv'] as $tipus=>$DT) foreach($DT as $targyId => $D) {
+ $sum+=($D[$_evfolyamJel][1][0]['hetiOraszam']+$D[$_evfolyamJel][2][0]['hetiOraszam']) / 2;
+ }
+ $_class = ($min<=$sum && $sum<=$max) ? 'class="ok"':$_class = ($max-$sum<0) ? 'class="alert"' : '';;
+ echo '<td '.$_class.'>';
+ echo ($min-$sum) . "&laquo;". ($max - $sum);
+ echo '</td>';
+ }
+ echo '<th>&nbsp;</th>';
+ echo '</tr>';
+ // EGY UJ:
+ echo '<tr class="ures">';
+ echo '<th>';
+ _put_targy_select($ADAT['targyak'],$ADAT['kepzesOraterv.tipus'],'UJ_targyTipusId','targyId','targyNev',null);
+ //_put_targy_select($ADAT['targyak'],$ADAT['kepzesOraterv.tipus'],'UJ_targyId','targyId','targyNev',$targyId);
+ echo '</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<td>';
+ //$i;
+ echo '<div>';
+ echo '<input type="text" size="3" maxlength="4" name="UJ_O_'.$_evfolyamJel.'_1" />';
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'UJ_K_'.$_evfolyamJel.'_1',null);
+ echo '<br/>';
+ echo '<input type="text" size="3" maxlength="4" name="UJ_O_'.$_evfolyamJel.'_2" />';
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'UJ_K_'.$_evfolyamJel.'_2',null);
+ echo '<br/>';
+ echo '</div>';
+ echo '</td>';
+ }
+ echo '<th>';
+ echo '<input type="submit" />';
+ echo '</th>';
+ echo '</tr>';
+ // -- idáig EGY UJ
+ echo '</tfoot>'."\n";
+
+
+ // KÉPZÉS ÓRATERV
+ /* --------------
+ *kepzesOratervId
+ kepzesId
+ targyId
+ evfolyamJel
+ szemeszter
+ hetiOraszam
+ kovetelmeny enum('jegy','négyszintű (szöveges minősítés)','százalékos','aláírás','háromszintű','egyedi felsorolás','szöveges szempontrendszer','nincs') DEFAULT null
+ tipus enum('első nyelv','második nyelv','kötelezően választható','szabadon választható','mintatantervi')
+ */
+ flush();
+ echo '<tbody>';
+
+ $ADAT['targyak'][] = array('targyId'=>''); // a tárgy-típusok esetén nincs targyId - ezt is vegyük ide bele
+ if (is_array($ADAT['oraterv']))
+ foreach($ADAT['oraterv'] as $tipus => $X)
+// foreach($X as $targyId => $DI) {
+ foreach($ADAT['targyak'] as $idx => $tAdat) // a névsor miatt a $ADAT['targyak']-on megyünk végig
+ if (is_array($X[$tAdat['targyId']])) { // megnézzük, hogy az adott targyTipusban szerepel-e
+ $targyId = $tAdat['targyId']; // kiolvassuk a targyId-t (hogy a korábbi kódot ne kelljen átírni)
+// $D = $DI;
+ $D = $X[$targyId]; // beállítjuk $D-t
+
+ // TOMEG:
+ $targyIdEsc = _escape($tipus).'_'.$targyId;
+ $_class = ($tipus!='mintatantervi') ? 'class="nm"' : '';
+ echo '<tr class="rogzitett">';
+ echo '<th '.$_class.'>';
+ echo '<span title="'.$tAdat['targyJelleg'].' '.$tAdat['evkoziKovetelmeny'].' '.$tAdat['zaroKovetelmeny'].'">';
+ echo $tAdat['targyNev'];
+ echo ' ('._unescape($targyIdEsc).')';
+ echo '</span>';
+ echo '</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ $up1 = ($D[$_evfolyamJel][1][0]['kovetelmeny']!='');
+ $up2 = ($D[$_evfolyamJel][2][0]['kovetelmeny']!='');
+ $_class = ($D[$_evfolyamJel][1][0]['hetiOraszam']+$D[$_evfolyamJel][2][0]['hetiOraszam'] > 0) ? ' class="nn" ' : '';
+ echo '<td'.$_class.'>';
+ echo '<div class="felev1">';/* első félévi */
+ echo '<input class="oraszam" type="text" size="3" maxlength="4" name="T_'.$targyIdEsc.'_O_'.$_evfolyamJel.'_1" value="'._format($D[$_evfolyamJel][1][0]['hetiOraszam']).'" />';
+ echo '<span class="oraszam">'._format($D[$_evfolyamJel][1][0]['hetiOraszam']).'</span>';
+
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'T_'.$targyIdEsc.'_K_'.$_evfolyamJel.'_1',$D[$_evfolyamJel][1][0]['kovetelmeny']);
+ echo '<span class="kovetelmeny">'.$D[$_evfolyamJel][1][0]['kovetelmeny'].'</span>';
+ echo '</div>';
+
+ echo '<div class="felev2">';/* második félévi */
+ echo '<input type="text" size="3" maxlength="4" name="T_'.$targyIdEsc.'_O_'.$_evfolyamJel.'_2" value="'._format($D[$_evfolyamJel][2][0]['hetiOraszam']).'" />';
+ echo '<span class="oraszam">'._format($D[$_evfolyamJel][2][0]['hetiOraszam']).'</span>';
+
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'T_'.$targyIdEsc.'_K_'.$_evfolyamJel.'_2',$D[$_evfolyamJel][2][0]['kovetelmeny']);
+ echo '<span class="kovetelmeny">'.$D[$_evfolyamJel][2][0]['kovetelmeny'].'</span>';
+ echo '<br/>'; // placeholder
+ echo '</div>';
+/*
+ echo '<span>';
+ echo _format($D[$_evfolyamJel][1][0]['hetiOraszam'])." ";
+ echo $D[$_evfolyamJel][1][0]['kovetelmeny'];
+ echo '<br/>';
+ echo _format($D[$_evfolyamJel][2][0]['hetiOraszam']).' ';
+ echo $D[$_evfolyamJel][2][0]['kovetelmeny'];
+ echo '</span>';
+*/
+ echo '</td>';
+ }
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" class="felvesz" />';
+ echo '<input type="submit" name="torol_'._escape($tipus).'_'.$targyId.'" value="X" class="torol" />';
+
+ echo '</th>';
+ echo '</tr>'."\n";
+ // -- idáig TOMEG
+ flush();
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+ function _put_simple_select($VALUES,$name,$selected) {
+
+ echo '<select name="'.$name.'">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($VALUES); $i++) {
+ $_SEL = ($selected==$VALUES[$i]) ? 'selected="selected"':'';
+ echo '<option value="'.$VALUES[$i].'" '.$_SEL.'>';
+ echo $VALUES[$i];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+
+ function _put_targy_select($VALUES1,$VALUES2,$name,$keyname,$valuename,$selected) { // immáron speciális, feleslegessé vált a key, value
+
+// global $FOGLALT;
+// if (in_array( $key, $FOGLALT )) echo $key;
+
+ echo '<select id="targySel" name="'.$name.'">';
+ echo '<option value="0">'._VALASSZ.'</option>';
+ echo '<optgroup label="'._TARGYAK.'">';
+ for($i=0; $i<count($VALUES1); $i++) {
+ $key= $VALUES1[$i][$keyname];
+ $value= $VALUES1[$i][$valuename];
+ $_SEL = ($selected==$key) ? 'selected="selected" ':'';
+ echo '<option value="'._escape('mintatantervi').'_'.$key.'" '.$_SEL.' data-kovetelmeny="'.$VALUES1[$i]['zaroKovetelmeny'].'" >';
+ echo $value;
+ if ($VALUES1[$i]['targyJelleg']!='') echo ' ('.$VALUES1[$i]['targyJelleg'].')';
+ echo '</option>';
+ }
+ echo '</optgroup>';
+ echo '<optgroup label="'._EGYEB.'">';
+ for($i=0; $i<count($VALUES2); $i++) {
+ $key=$value=$VALUES2[$i];
+ $_SEL = ($selected==$key) ? 'selected="selected" ':'';
+ echo '<option value="'._escape($key).'_" '.$_SEL.'>';
+ echo $value;
+ echo '</option>';
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
new file mode 100644
index 00000000..b35f799e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
@@ -0,0 +1,316 @@
+<?php
+
+/*
+* Munkaközösség
+*/
+
+ function putUjMunkakozossegForm($TANAROK) {
+ formBegin(array('id'=>'ujMkForm','class'=>'uj mk'));
+ echo '<div>';
+ echo '<h2>Új munkaközösség felvétele</h2>';
+
+ echo '<input type="hidden" name="action" value="ujMunkakozosseg" />'."\n";
+ echo '<label for="leiras">'. _MUNKAKOZOSSEGNEV . ': </label>';
+ echo '<input type="text" id="leiras" name="leiras" value="" />'."\n";
+
+ echo '<label for="mkVezId">'. _MUNKAKOZOSSEGVEZETO . ': </label>';
+ echo '<select id="mkVezId" name="mkVezId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAROK); $i++) {
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'">'.$TANAROK[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</div>';
+ formEnd();
+ }
+
+ function putMunkakozossegForm($MKADAT,$TANAROK,$TANAROK_INMK) {
+
+ formBegin(array('id'=>'MkForm', 'class'=>'mk'));
+
+ echo '<h2>Munkaközösség</h2>';
+
+ echo '<input type="hidden" name="action" value="modMunkakozosseg" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$MKADAT['mkId'].'" />'."\n";
+ echo '<label for="leiras">'. _MUNKAKOZOSSEGNEV . ': </label>';
+ echo '<input type="text" id="leiras" name="leiras" value="'.$MKADAT['leiras'].'" />'."\n";
+
+ echo '<label for="mkVezId">'. _MUNKAKOZOSSEGVEZETO . ': </label>';
+ echo '<select id="mkVezId" name="mkVezId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAROK); $i++) {
+ $_SEL = ($MKADAT['mkVezId']==$TANAROK[$i]['tanarId']) ? ' selected="selected"' : '';
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br/>';
+
+ echo '<div class="tagok">';
+ echo '<div class="header"><label for="mkTagok">'. _MUNKAKOZOSSEGTAGOK . ': </label></div>';
+ echo '<select id="mkTagok" name="mkTagok[]" multiple="multiple" size="10">';
+ for($i=0; $i<count($TANAROK_INMK); $i++) {
+ echo '<option value="'.$TANAROK_INMK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK_INMK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div class="submit"><button type="submit"><span class="icon-arrow-left"></span></button></div>';
+
+ echo '<div class="tagok">';
+ echo '<div class="header"><label for="mkUjTagok">'. _UJTAGOK . ': </label></div>';
+ echo '<select id="mkUjTagok" name="mkUjTagok[]" multiple="multiple" size="10">';
+ for($i=0; $i<count($TANAROK); $i++) {
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '<div style="text-align:center; width:100%;">';
+ for($i=0; $i<count($TANAROK_INMK); $i++) {
+ //echo '<img value="'.$TANAROK_INMK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK_INMK[$i]['tanarNev'].'</option>'."\n";
+ putFace($TANAROK_INMK[$i]['tanarId'],'tanar',32);
+ }
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+
+
+
+
+
+
+
+
+ function putMunkakozossegTorolForm($mkId) {
+
+ formBegin(array('id'=>'mkTorolForm', 'class'=>'mk torol'));
+ echo '<h2>A munkaközösség törlése</h2>';
+
+ echo '<input type="hidden" name="action" value="munkakozossegTorol" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+
+ echo '<label for "mktorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="mktorolg" class="confirm" title="Biztos töröljük a munkaközösséget és tárgyait?" value="'._DELETE.'" />';
+
+ formEnd();
+ }
+
+
+
+
+
+
+ function putUjTargyForm($mkId, $ADAT) {
+ formBegin(array('id'=>"ujTargyForm", 'class'=>"uj mk"));
+
+ echo '<h2>Új tárgy felvétele a munkaközösséghez</h2>';
+
+ echo '<input type="hidden" name="action" value="ujTargy" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<label for="targyleiras">'._TARGYNEV . ': </label>';
+ echo '<input type="text" id="targyleiras" name="targyleiras" value="" />'."\n";
+
+ _putTargyJellegSelect($ADAT); // not selected
+
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyValtoztatForm($ADAT) {
+
+ formBegin(array('id'=>'targyValtoztatForm', 'class'=>'mk'));
+
+ echo '<h2>Tárgy változtatása: <span>'.$ADAT['targyAdat']['targyNev'].'</span></h2>';
+
+ echo '<input type="hidden" name="action" value="targyValtoztat" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['targyAdat']['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyAdat']['targyId'].'" />'."\n";
+ //echo '<label for="targyleiras">'._TARGYNEV . ': </label>';
+ echo '<ul><li>';
+ echo _TARGY_JELLEG.': ';
+ _putTargyJellegSelect($ADAT); // not selected
+ echo '</li><li>';
+ echo _EVKOZI_KOVETELMENY.': ';
+ _putTargyKovetelmenySelect($ADAT,'evkozi');
+ echo '</li><li>';
+ echo _ZARO_KOVETELMENY.': ';
+ _putTargyKovetelmenySelect($ADAT,'zaro');
+ echo '</li><li>';
+ echo _TARGY_ROVID_NEVE.': <input type="text" maxlength="64" size="64" name="targyRovidNev" value="'.$ADAT['targyAdat']['targyRovidNev'].'" />'."\n";
+ echo '</li><li>';
+ echo _KIRTARGY.': ';
+ putKirTargySelect($ADAT['kirTargyak'],$ADAT['targyAdat']['kirTargyId']);
+ echo '</li></ul>';
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ }
+
+ function _putTargyJellegSelect($ADAT) {
+ echo '<select name="targyJelleg">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT['targyJellegENUM']); $i++) {
+ $_SEL = ($ADAT['targyAdat']['targyJelleg']==$ADAT['targyJellegENUM'][$i]) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT['targyJellegENUM'][$i].'" '.$_SEL.'>'.$ADAT['targyJellegENUM'][$i].'</option>';
+ }
+ echo '</select>';
+ }
+ function _putTargyKovetelmenySelect($ADAT,$melyik) {
+ $kov = $melyik.'Kovetelmeny';
+ echo '<select name="'.$kov.'">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT['targy.'.$kov]); $i++) {
+ $_SEL = ($ADAT['targyAdat'][$kov]==$ADAT['targy.'.$kov][$i]) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT['targy.'.$kov][$i].'" '.$_SEL.'>'.$ADAT['targy.'.$kov][$i].'</option>';
+ }
+ echo '</select>';
+ }
+
+ function putTargyTorolForm($targyId,$mkId) {
+ formBegin(array('id'=>"targyTorolForm", 'class'=>"mk torol"));
+
+ echo '<h2>A kijelölt tárgy törlése</h2>';
+
+ echo '<input type="hidden" name="action" value="targyTorol" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+
+ echo '<label for="targytorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="targytorolg" value="'._DELETE.'" />';
+
+ formEnd();
+ }
+
+
+ function putKirTargySelect($ADAT,$kirTargyId) {
+
+ echo '<select name="kirTargyId" id="kirTargyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT); $i++) {
+ $_SEL = ($ADAT[$i]['kirTargyId'] == $kirTargyId) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT[$i]['kirTargyId'].'" '.$_SEL.'>'.$ADAT[$i]['kirTargyNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo _KIRTARGY_MEGJ;
+ }
+
+ function putTargyAtnevezes($ADAT) {
+
+ formBegin(array('id'=>'targyAtnevezes','class'=>'mk'));
+
+ echo '<h2>'._TARGY_ATNEVEZES.'</h2>';
+
+ echo '<div class="leiras">'._ATNEVEZES_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyAtnevezes" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="ujTargyNev">'._UJ_TARGY_NEV.'</label>';
+ echo '<input type="text" id="ujTargyNev" name="ujTargyNev" value="" />'."\n";
+
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyMkValtas($ADAT) {
+
+ formBegin(array('id'=>'targyMkValtas','class'=>'mk'));
+
+ echo '<h2>'._TARGY_MK_VALTAS.'</h2>';
+
+ echo '<div class="leiras">'._MK_VALTAS_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyMkValtas" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="befogadoMkId">'._BEFOGADO_MK.'</label>';
+ echo '<select id="befogadoMkId" name="befogadoMkId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['munkakozossegek'] as $mAdat) {
+ if ($ADAT['mkId'] != $mAdat['mkId']) echo '<option value="'.$mAdat['mkId'].'">'.$mAdat['mkNev'].' ('.$mAdat['mkId'].')'.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyBeolvasztasForm($ADAT) {
+
+ global $TANKOR_TIPUS;
+
+ formBegin(array('id'=>'targyBeolvasztas','class'=>'mk'));
+
+ echo '<h2>'._TARGY_BEOLVASZTASA.'</h2>';
+
+ echo '<div class="leiras">'._BEOLVASZTAS_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyBeolvasztas" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="befogadoTargyId">'._BEFOGADO_TARGY.'</label>';
+ echo '<select id="befogadoTargyId" name="befogadoTargyId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $tAdat) {
+ if ($ADAT['targyId'] != $tAdat['targyId']) echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')'.'</option>';
+ }
+ echo '</select>';
+ echo '<label for="tankorJeloles">'._TANKOR_JELOLES.'</label>';
+ echo '<select id="tankorJeloles" name="tankorJeloles">';
+ echo '<option value=""> - </option>';
+ foreach ($TANKOR_TIPUS as $nev => $jel) {
+ echo '<option value="'.$jel.'">'.$nev.' ('.$jel.')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyTargyForm($ADAT) {
+
+ formBegin(array('id'=>'targyTargy','class'=>'mk'));
+
+ echo '<h2>'._TARGY_KAPCSOLATOK.'</h2>';
+
+ echo '<div class="leiras">'._TARGYTARGY_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyTargy" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="alTargyId">'._ALTARGY.'</label>';
+ echo '<select id="alTargyId" name="alTargyId">';
+ echo '<option value=""> - </option>';
+/* for ( $i=0; $i<count($ADAT['targyTargy'][$ADAT['targyId']]); $i++) {
+ $T = $ADAT['targyTargy'][$ADAT['targyId']][$i];
+ $tAdat = $ADAT['targyAdat'][$T['targyId']];
+ //if ($ADAT['targyId'] != $tAdat['targyId'])
+ echo '<option value="'.$T['targyId'].'">'.$tAdat['targyNev'].' ('.$T['targyId'].')'.'</option>';
+ }
+*/
+ if (is_array($ADAT['targyak'])) foreach ($ADAT['targyak'] as $tAdat) {
+ $_plusz = (in_array($tAdat['targyId'],$ADAT['targyTargy']['FOal'][$ADAT['targyId']])) ? '+':'';
+ if ($ADAT['targyId'] != $tAdat['targyId']) echo '<option value="'.$tAdat['targyId'].'">'.$_plusz.$tAdat['targyNev'].' ('.$tAdat['targyId'].')'.'</option>';
+ }
+
+ echo '</select>';
+
+ echo '<input type="submit" id="targyTargy" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml
new file mode 100644
index 00000000..b476482c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml
@@ -0,0 +1,427 @@
+<?php
+
+require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+function putUjOsztalyForm($ADAT) {
+
+ $Tanev = $ADAT['tanevek']; $tanev = $ADAT['tanev'];
+
+ formBegin(array('class'=>'osztalyForm uj'));
+
+ echo '<h1>'._UJOSZTALY.'</h1>';
+ echo '<input type="hidden" name="action" value="ujOsztaly" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<div id="divOsztalyJelleg">';
+
+ echo '<label for="osztalyJellegId">'._OSZTALYJELLEG.'</label>';
+ putOsztalyJellegek($ADAT['osztalyJellegek'],$ADAT['osztalyAdat']['osztalyJellegId']);
+
+ echo '</div>';
+
+ echo '<div id="divKezdoTanev" style="display: none;">';
+ echo '<label for="kezdoTanev">'._KEZDOTANEV . ':</label>';
+ echo '<select tabindex="2" id="kezdoTanev" name="kezdoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Tanev); $i++) {
+ echo '<option value="'.$Tanev[$i].'">'.$Tanev[$i].'/'.($Tanev[$i]+1).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div id="divVegzoTanev" style="display: none;">';
+ echo '<label for="vegzoTanev">'._VEGZOSTANEV . ':</label>';
+ echo '<select tabindex="3" id="vegzoTanev" name="vegzoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Tanev); $i++) {
+ echo '<option value="'.$Tanev[$i].'">'.$Tanev[$i].'/'.($Tanev[$i]+1).'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ echo '</div>';
+
+ echo '<div id="divJel" style="display: none;">';
+ echo '<label for="jel">Osztaly jele induláskor</label>';
+ echo '<span id="kezdoEvfolyamJel"></span>.&nbsp;';
+ echo '<input tabindex="4" type="text" id="jel" name="jel" size="2" value="" />'."\n";
+ echo '</div>';
+
+ echo '<div id="divKezdoEvfolyamSorszam">';
+ echo '</div>';
+
+
+ echo '<div id="divLeirasTelephely">';
+ echo '<label for="leiras">'._LEIRAS . ':</label>';
+ echo '<input tabindex="6" type="text" id="leiras" name="leiras" value="" />'."\n";
+
+ echo '<label for="telephely">'._TELEPHELY . ':</label>';
+ echo '<select tabindex="6" id="telephely" name="telephelyId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['telephely']); $i++) {
+ echo '<option value="'.$ADAT['telephely'][$i]['telephelyId'].'">'.$ADAT['telephely'][$i]['telephelyNev'].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '</div>';
+
+ echo '<br/><input type="submit" value="'._OK.'" />';
+
+ formEnd();
+}
+
+/*
+// Már nem léptetünk osztályt...
+function putOsztalyLeptetes($ADAT) {
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<h1>'._OSZTALY_LEPTETES.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="nyekOsztalyLeptetes" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+
+ echo '<label for="osztalyJel">'._OSZTALY_UJ_JELE.'</label>: &nbsp;&nbsp;&nbsp';
+// echo $ADAT['osztalyAdat']['kezdoEvfolyam'].'. <input type="text" name="osztalyJel" id="osztalyJel" size="10" />';
+
+ echo '<label for="vegzoTanev">'._VEGZOSTANEV . ':</label>';
+ echo '<select id="vegzoTanev" name="vegzoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanevek']); $i++) {
+ echo '<option value="'.$ADAT['tanevek'][$i].'">'.$ADAT['tanevek'][$i].'/'.($ADAT['tanevek'][$i]+1).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+}
+*/
+
+function putOsztalyAdatokForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<h1>'._OSZTALY_ADATAI.' ('.$ADAT['osztalyAdat']['osztalyId'].')</h1>'."\n";
+ echo '<input type="hidden" name="action" value="osztalyAdatModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+
+ echo _KEZDOTANEV.'/'._VEGZOSTANEV.': <span class="data">'.$ADAT['osztalyAdat']['kezdoTanev'].'/'.($ADAT['osztalyAdat']['kezdoTanev']+1).' - '.$ADAT['osztalyAdat']['vegzoTanev'].'/'.($ADAT['osztalyAdat']['vegzoTanev']+1).'</span>';
+
+ echo '<ul>';
+ for ($_ev = $ADAT['osztalyAdat']['kezdoTanev']; $_ev<=$ADAT['osztalyAdat']['vegzoTanev']; $_ev++) {
+ echo '<li>'.$_ev."/".($_ev+1).' - '.$ADAT['osztalyJelek'][$_ev].'</li>';
+ }
+ echo '</ul>';
+
+ echo '<label for="kepzesId">'._KEPZES.'</label>'."\n";
+ $KepzesStr = array();
+ for ($i = 0; $i < count($ADAT['kepzesek']); $i++) {
+ if (is_array($ADAT['osztalyAdat']['kepzesIds']) && in_array($ADAT['kepzesek'][$i]['kepzesId'], $ADAT['osztalyAdat']['kepzesIds']))
+ $KepzesStr[] = $ADAT['kepzesek'][$i]['kepzesNev'].' - '.$ADAT['kepzesek'][$i]['tanev'].' ('.$ADAT['kepzesek'][$i]['kepzesId'].')';
+ }
+ if (is_array($KepzesStr) && count($KepzesStr) > 0) echo '<span class="data">'.implode(' / ', $KepzesStr).'</span><br />';
+ else echo '<span class="data">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;</span><br />';
+
+ echo '<hr />';
+ echo '<label for="leiras">'._LEIRAS.'</label>'."\n";
+ echo '<input type="text" id="leiras" name="leiras" value="'.$ADAT['osztalyAdat']['leiras'].'" />'."\n";
+
+ echo '<br/><label for="telephely">'._TELEPHELY.'</label>'."\n";
+ echo '<select id="telephely" name="telephelyId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['osztalyAdat']['telephelyId'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['telephely']); $i++) {
+ echo '<option value="'.$ADAT['telephely'][$i]['telephelyId'].'"'.$SEL[$ADAT['telephely'][$i]['telephelyId']].'>'.$ADAT['telephely'][$i]['telephelyRovidNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br/><label for="osztalyJellegId">'._OSZTALYJELLEG.'</label> ';
+ putOsztalyJellegek($ADAT['osztalyJellegek'],$ADAT['osztalyAdat']['osztalyJellegId']);
+ echo '<br/><label for="kezdoEvfolyamSorszam">'._KEZDO_EVFOLYAM_SORSZAMA.'</label> ';
+ echo '<select name="kezdoEvfolyamSorszam">';
+ for ($i=1; $i <= count($ADAT['osztalyAdat']['evfolyamJelek'])-$ADAT['osztalyAdat']['vegzoTanev']+$ADAT['osztalyAdat']['kezdoTanev']; $i++) {
+ $SEL = ($i == $ADAT['osztalyAdat']['kezdoEvfolyamSorszam'])?' selected="selected" ':'';
+ echo '<option value="'.$i.'"'.$SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+ echo '<hr />';
+
+ echo '<table cellspacing="1" cellpadding="0">'."\n";
+ echo '<tr><th colspan="3">'._OSZTALYFONOKOK.'</th></tr>'."\n";
+ echo '<tr><th>'._TANARNEVE.'</th><th>'._BEDT.'</th><th>'._KIDT.'</th></tr>'."\n";
+
+ if (is_array($ADAT['osztalyAdat']['osztalyfonokok'])) {
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['osztalyfonokok']); $i++) {
+ $O = $ADAT['osztalyAdat']['osztalyfonokok'][$i];
+ echo '<tr>';
+ echo '<td>';
+ // echo $ADAT['osztalyAdat']['osztalyfonokok'][$i]['tanarNev'];
+ echo $O['tanarNev'];
+ if ($ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'] == '') {
+ echo '<input type="hidden" name="ofoTanarId[]" value="'.$O['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="ofoBeDt[]" value="'.$O['beDt'].'" />'."\n";
+ }
+ echo '</td>';
+ echo '<td>'.$ADAT['osztalyAdat']['osztalyfonokok'][$i]['beDt'].'</td>';
+ if ($ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'] == '') {
+ echo '<td><input type="text" class="date" name="ofoKiDt[]" value="" placeholder="dátum" /></td>';
+ } else {
+ echo '<td>'.$ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'].'</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ }
+
+ echo '<tr><td>';
+ echo '<select name="tanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'">'.$ADAT['tanarok'][$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td><td>';
+ echo '<input class="date" type="text" name="beDt" value="" placeholder="dátum" />'."\n";
+ echo '</td><td>';
+# kiDt jobb ha nincs # echo '<input class="date" type="text" name="kiDt" value="" />'."\n";
+ echo '</td></tr>'."\n";
+
+ echo '<tr><th colspan="3"><input type="submit" value="'._OK.'" /></th></tr>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+
+
+
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<input type="hidden" name="action" value="osztalyJelVegzesModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<h1>'._MODOSITAS.'</h1>';
+
+ echo '<label for="ujOsztalyJel">'._UJOSZTALYJEL.'</label>';
+ echo '<input type="text" id="ujOsztalyJel" name="ujOsztalyJel" value="" /></label>';
+
+ echo '<label for="ujKezdoTanev">'._KEZDOTANEV.'</label>';
+ echo '<select name="ujKezdoTanev" id="ujKezdoTanev">';
+ for ($kezd=$ADAT['osztalyAdat']['kezdoTanev']-12; $kezd<=$ADAT['osztalyAdat']['vegzoTanev']; $kezd++) {
+ $_SEL = ( $kezd == $ADAT['osztalyAdat']['kezdoTanev'] ) ? ' selected="selected" ':'';
+ echo '<option value="'.$kezd.'" '.$_SEL.'>'.$kezd.'/'.($kezd+1).'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="ujVegzoTanev">'._VEGZOSTANEV.'</label>';
+ echo '<select name="ujVegzoTanev" id="ujVegzoTanev">';
+ for ($veg=$ADAT['osztalyAdat']['kezdoTanev']; $veg<=$ADAT['osztalyAdat']['kezdoTanev']+12; $veg++) {
+ $_SEL = ( $veg == $ADAT['osztalyAdat']['vegzoTanev'] ) ? ' selected="selected" ':'';
+ echo '<option value="'.$veg.'" '.$_SEL.'>'.$veg.'/'.($veg+1).'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+
+
+}
+
+function osztalyTorlesForm($osztalyId) {
+
+ global $tanev;
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._OSZTALY_TORLESE.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="osztalyTorles" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" title="'._OSZTALY_TORLES_TITLE.'" class="confirm" />'."\n";
+
+ formEnd();
+}
+
+function putOsztalyNevsor($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._OSZTALYNEVSOR.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="osztalyNevsor" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ if (is_array($ADAT['osztalyAdat']['kepzes'])) for ($j = 0; $j < count($ADAT['osztalyAdat']['kepzes']); $j++) {
+ echo '<input type="hidden" name="kepzesIds[]" value="'.$ADAT['osztalyAdat']['kepzes'][$j]['kepzesId'].'" />'."\n";
+ }
+
+
+ echo '<ol>';
+
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $value) {
+
+ echo '<li>';
+ // Képzés
+ echo '<div class="kepzes">'; $CHK = array();
+ if (is_array($ADAT['diakKepzes'][$diakId]))
+ foreach ($ADAT['diakKepzes'][$diakId] as $index => $kAdat) {
+ $kepzesId = $kAdat['kepzesId'];
+ if (in_date_interval($ADAT['dt'], $kAdat['tolDt'], $kAdat['igDt'])) {
+ $CHK[ $kepzesId ] = ' checked="checked" ';
+ if (!in_array($kepzesId, $ADAT['osztalyAdat']['kepzesIds'])) {
+ echo '<span class="chk mas">';
+ echo '<input type="checkbox" id="k-'.intval($_loop).'" name="diakKepzes[]" value="'."$diakId/$kepzesId".'" checked="checked" />'."\n";
+ echo '<label for="k-'.intval($_loop++).'" class="chk" >'.$kAdat['kepzesNev'].' ('.$kepzesId.')</label>';
+ echo '</span>';
+ }
+ }
+ }
+ if (is_array($ADAT['osztalyAdat']['kepzes'])) {
+ for ($j = 0; $j < count($ADAT['osztalyAdat']['kepzes']); $j++) {
+ $kepzesId = $ADAT['osztalyAdat']['kepzes'][$j]['kepzesId'];
+ $_class = ($CHK[$kepzesId]!='')? 'chk':'';
+ echo '<span class="'.$_class.'">';
+ echo '<input type="checkbox" id="k-'.intval($_loop).'" name="diakKepzes[]" value="'."$diakId/$kepzesId".'"'.$CHK[$kepzesId].' />'."\n";
+ echo '<label for="k-'.intval($_loop++).'" class="'.$_class.'" >'.$ADAT['osztalyAdat']['kepzes'][$j]['kepzesNev'].' ('.$kepzesId.')</label>';
+ echo '</span>';
+ if ($CHK[$kepzesId]!='') $_KEPZESDB[$kepzesId]++;
+ }
+ }
+
+ echo '<div class="hideShowContainer">';
+ echo '<span class="onClickHideShow icon-chevron-down"></span>'; // &dArr;
+ if (is_array($ADAT['diakKepzes'][$diakId])) {
+ echo '<ul class="openable" style="display: none">';
+ echo '<li class="close onClickHideShow">[X] '._BEZAR.'</li>';
+ foreach ($ADAT['diakKepzes'][$diakId] as $index => $kAdat) {
+ echo '<li>';
+ echo $kAdat['kepzesNev'].': ';
+ echo '<span class="datum">';
+ echo $kAdat['tolDt'].' - ';
+ if (is_null($kAdat['igDt'])) echo '????-??-??';
+ else echo $kAdat['igDt'];
+ echo '</span>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n";
+
+ echo '</div>'."\n";
+
+ if ($value['diakNaploSorszam']!='') echo '<span class="diakNaploSorszam">'.$value['diakNaploSorszam'].'</span>';
+ echo '<span class="diakNev" data-diakid="'.$value['diakId'].'">'.$value['diakNev'].'</span>';
+ if ($value['statusz'][0]['statusz'] != 'jogviszonyban van') echo '<span class="diakJogviszony">'.$value['statusz'][0]['statusz'].'</span>';
+
+ $tmp = array();
+ if (is_array($value['osztalyDiak'])) foreach ($value['osztalyDiak'] as $dts) $tmp[] = $dts['beDt'].'-'.(($dts['kiDt'] == '' || $dts['kiDt'] == '0000-00-00') ? '?' : $dts['kiDt']);
+ echo '<span class="diakNev datumok">('.implode(', ', $tmp).')</span>';
+
+ echo '</li>'."\n";
+ }
+ echo '</ol>';
+ echo '<div class="datum">'._REFERENCIA_DATUM.': <input class="date" readonly="readonly" type="text" name="dt" value="'.$ADAT['dt'].'" maxlength="10" size="10" /></div>'."\n";
+ echo '<div style="text-align:center"><input type="submit" value="'._OK.'" /></div>'."\n";
+
+ if (count($ADAT['kepzesek'])>0) {
+ echo '<table>';
+ echo '<tr><th>'._KEPZES.'</th><th>'._LETSZAM.'</th></tr>';
+ for ($i = 0; $i < count($ADAT['kepzesek']); $i++) {
+ if (is_array($ADAT['osztalyAdat']['kepzesIds']) && in_array($ADAT['kepzesek'][$i]['kepzesId'], $ADAT['osztalyAdat']['kepzesIds'])) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['kepzesek'][$i]['kepzesNev'].' - '.$ADAT['kepzesek'][$i]['tanev'].' ('.$ADAT['kepzesek'][$i]['kepzesId'].')'.'</td>';
+ echo '<td id="kepzesLetszam_'.$ADAT['kepzesek'][$i]['kepzesId'].'">'.$_KEPZESDB[ $ADAT['kepzesek'][$i]['kepzesId'] ].'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+ }
+
+ formEnd();
+
+ echo '<div style="width: 100%; text-align:center; margin:0px; padding-top:20px;">';
+ echo '<h1>';
+ echo ($ADAT['osztalyAdat']['osztalyJel']);
+ echo '</h1>';
+ echo '<h2>'.($ADAT['osztalyAdat']['leiras']).'</h2>';
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $value) {
+ putFace($diakId,'diak',80);
+ }
+ echo '</div>';
+
+
+}
+
+function putUjTagForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._UJ_TAG.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujTag" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<select name="diakId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'">'.$ADAT['diakok'][$i]['diakNev'].' ('.$ADAT['diakok'][$i]['diakId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input class="date" type="text" name="beDt" value="'.date('Y-m-d').'" size="10" maxlength="10" />'."\n";
+ echo '<input class="date" type="text" name="kiDt" value="" size="10" maxlength="10" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putTagTorlesForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._TAG_TORLES.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="tagTorles" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<select name="diakId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $dAdat) {
+ echo '<option value="'.$diakId.'">'.$dAdat['diakNev'].' ('.$diakId.')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input class="date" type="text" name="tolDt" value="'.date('Y-m-d').'" size="10" maxlength="10" />'."\n";
+ echo '<input class="date" type="text" name="igDt" value="" size="10" maxlength="10" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putOsztalyJellegek($ADAT,$osztalyJellegId) {
+
+ echo '<select tabindex="1" name="osztalyJellegId" id="osztalyJellegId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT as $_ojId => $oAdat) {
+ $evfolyamJelek = explode(',', $oAdat['evfolyamJelek']);
+ if ($_ojId == $osztalyJellegId) {
+ $_SEL = ' selected="selected" ';
+ } else {
+ $_SEL = '';
+ if ($oAdat['osztalyJellegEles']==0) continue;
+ }
+ //$_eles = ($oAdat['osztalyJellegEles']==1) ? '':'- ';
+
+ echo '<option value="'.$_ojId.'" '.$_SEL.' data-evfolyamjelek=\''.json_encode($evfolyamJelek).'\'>'.$_eles.$oAdat['osztalyJellegNev'].' ['.$_ojId.']</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+}
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
new file mode 100644
index 00000000..563f2bd6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
@@ -0,0 +1,419 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+ function putTanarAdatForm($ADAT) {
+
+// if (
+// $tanarAdat['jogviszonyVege'] != ''
+// && strtotime($tanarAdat['jogviszonyVege']) < time()
+// ) $disabled = ' disabled="disabled" ';
+// else $disabled = '';
+
+ putTanarAlapadatok($ADAT);
+ putTanarSzuletesiAdatok($ADAT);
+ putKepUpload($ADAT['tanarId']);
+// putTanarCim($tanarAdat, 'lakhely');
+// putTanarCim($tanarAdat, 'tart');
+// putTanarElerhetoseg($tanarAdat);
+// putTanarSzulo($tanarAdat, $Szulok);
+ putTanarJogviszonyAdatok($ADAT);
+ putTanarKepesites($ADAT);
+ }
+
+ function putTanarAlapadatok($ADAT) {
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarAlapadatModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_ALAPADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$ADAT['tanarAdat']['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$ADAT['tanarAdat']['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="12" name="viseltUtonev" value="'.$ADAT['tanarAdat']['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+/*
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($ADAT['tanarAdat']['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
+ echo '</td>'."\n";
+
+/*
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$ADAT['tanarAdat']['diakigazolvanySzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="email">'._TITULUS.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="32" id="titulus" name="titulus" value="'.$ADAT['tanarAdat']['titulus'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="email">'._TITULUSROVID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="10" id="titulusRovid" name="titulusRovid" value="'.$ADAT['tanarAdat']['titulusRovid'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="email">'._EMAIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="4">'."\n";
+ echo '<input type="text" size="64" id="email" name="email" value="'.$ADAT['tanarAdat']['email'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="">'._KRETANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="4">'."\n";
+ echo '<input type="text" size="64" id="kretaNev" name="kretaNev" value="'.$ADAT['tanarAdat']['kretaNev'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ echo '<input type="submit" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putTanarSzuletesiAdatok($ADAT) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarSzuletesiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_SZULETESI_ADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="szuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$ADAT['tanarAdat']['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$ADAT['tanarAdat']['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$ADAT['tanarAdat']['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="szuletesiHely">'._SZULETESIHELY.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="szuletesiHely" name="szuletesiHely" value="'.$ADAT['tanarAdat']['szuletesiHely'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="szuletesiIdo" name="szuletesiIdo" value="'.$ADAT['tanarAdat']['szuletesiIdo'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putTanarJogviszonyAdatok($ADAT) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarJogviszonyModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_JOGVISZONYA.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="beDt">'._BEDT.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input class="date" type="text" size="10" id="beDt" name="beDt" value="'.$ADAT['tanarAdat']['beDt'].'" title="'._BEDT.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="kiDt">'._KIDT.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input class="date" type="text" size="10" id="kiDt" name="kiDt" value="'.$ADAT['tanarAdat']['kiDt'].'" title="'._KIDT.'" />';
+ echo ' '; _inlineHelp(_KIDT_HELP);
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="hetiMunkaora">'._HETI_MUNKAORA.'</label>';
+ echo '</th>';
+ echo '<td style="white-space: nowrap;">';
+ echo '<table style="background-color:#eee; display: inline-table;">';
+ echo '<tr><th>55%</th><th>65%</th><th>80%</th><th>100%</th></tr>'."\n";
+ echo '<tr>';
+ echo '<td><input type="text" size="4" id="hetiLekotottMinOraszam" name="hetiLekotottMinOraszam" value="'.$ADAT['tanarAdat']['hetiLekotottMinOraszam'].'" title="'._HETILEKOTOTTMINORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiLekotottMaxOraszam" name="hetiLekotottMaxOraszam" value="'.$ADAT['tanarAdat']['hetiLekotottMaxOraszam'].'" title="'._HETILEKOTOTTMAXORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiKotottMaxOraszam" name="hetiKotottMaxOraszam" value="'.$ADAT['tanarAdat']['hetiKotottMaxOraszam'].'" title="'._HETIKOTOTTMAXORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiMunkaora" name="hetiMunkaora" value="'.$ADAT['tanarAdat']['hetiMunkaora'].'" title="'._HETIMUNKAORA.'" /></td>';
+ echo '</tr>';
+ echo '</table> ';
+ _inlineHelp(_HETI_MUNKAORA_HELP);
+ echo '</td>';
+ echo '<th><label for="hetiMunkaora">'._HETI_KOTELEZOORASZAM.'</label>';
+ echo '</th>';
+ echo '<td>';
+ echo '<input type="text" size="4" id="hetiKotelezoOraszam" name="hetiKotelezoOraszam" value="'.$ADAT['tanarAdat']['hetiKotelezoOraszam'].'" title="'._HETIKOTELEZOORASZAM.'" /> ';
+ echo _ORA.' ';
+ _inlineHelp(_HETI_KOTELEZOORASZAM_HELP);
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<th><label for="statusz">'._STATUSZ.'</label>';
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="statusz" id="statusz">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['statuszok'] as $idx => $statusz) {
+ $SEL = ($ADAT['tanarAdat']['statusz'] == $statusz?' selected="selected" ':'');
+ if ($statusz == 'jogviszonya lezárva' && $SEL=='') echo '<option value="'.$statusz.'" id="jogviszonyaLezarva" disabled="disabled">'.$statusz.'</option>';
+ else echo '<option value="'.$statusz.'"'.$SEL.'>'.$statusz.'</option>';
+ }
+ echo '</select>';
+ echo ' '; _inlineHelp(_STATUSZ_HELP);
+ echo '</td>';
+ echo '<th><label for="besorolas">Besorolás</label></th>';
+ echo '<td>';
+ echo '<select name="besorolas" id="besorolas">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['besorolasok'] as $idx => $besorolas) {
+ $SEL = ($besorolas==$ADAT['tanarAdat']['besorolas']?' selected="selected" ':'');
+ echo '<option value="'.$besorolas.'"'.$SEL.'>'.$besorolas.'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr><th><a href="'.href('index.php?page=naplo&sub=intezmeny&f=tovabbkepzes').'">'._TOVABBKEPZES_FORDULO_DT.'</a></th>';
+ echo '<td>';
+ echo '<input type="text" class="date datum" name="tovabbkepzesForduloDt" value="'.$ADAT['tanarAdat']['tovabbkepzesForduloDt'].'" />';
+ echo ' ';
+ _inlineHelp(_TOVABBKEPZES_FORDULO_DT_HELP);
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putTanarKepesites($ADAT) {
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar"));
+
+ echo '<input type="hidden" name="action" value="tanarKepesitesModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_KEPESITESE.'</legend>'."\n";
+ echo '<table id="kepesites">'."\n";
+ echo '<tr><th>végzettség</th><th>fokozat</th><th>specializáció</th><th>képesítés megnevezése</th></tr>';
+ echo '<tbody>';
+ if (is_array($ADAT['tanarAdat']['kepesites']) && count($ADAT['tanarAdat']['kepesites'])>0)
+ foreach ($ADAT['tanarAdat']['kepesites'] as $idx => $kAdat) {
+ echo '<tr>';
+ echo '<td>'.$kAdat['vegzettseg'].'</td>';
+ echo '<td>'.$kAdat['fokozat'].'</td>';
+ echo '<td>'.$kAdat['specializacio'].'</td>';
+ echo '<td>'.$kAdat['kepesitesNev'].' ('.$kAdat['kepesitesId'].')</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '<tr id="hozzarendel"><th colspan="4">';
+ echo '<label for="addKepesites">Képesítés hozzárendelése</label>';
+ echo '<select name="addKepesitesId" id="addKepesites">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['kepesitesek'] as $idx => $kAdat) {
+ echo '<option value="'.$kAdat['kepesitesId'].'">'.$kAdat['kepesitesNev'].' ('.$kAdat['kepesitesId'].') - '.$kAdat['vegzettseg'].' '.$kAdat['fokozat'].'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</th></tr>';
+
+ echo '<tr id="uj"><td colspan="4" class="slideUj"><span class="icon-plus-sign"></span> Új képesítés <span class="icon-chevron-down"></span></td></tr>';
+
+ echo '<tr id="ujKepesites">';
+ echo '<td>';
+ echo '<select name="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg)
+ echo '<option value="'.$vegzettseg.'">'.$vegzettseg.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_VEGZETTSEG_HELP);
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat)
+ echo '<option value="'.$fokozat.'">'.$fokozat.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_FOKOZAT_HELP);
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio)
+ echo '<option value="'.$specializacio.'">'.$specializacio.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_SPECIALIZACIO_HELP);
+ echo '</td>';
+ echo '<td id="kepesitesNev">';
+ echo '<input type="text" name="kepesitesNev" value="" />';
+ echo ' '; _inlineHelp(_KEPESITESNEV_HELP);
+ echo '<input type="submit" value="'._OK.'" style="margin-right: -50px;" />';
+ echo '</td>';
+ echo '</tr>';
+
+
+
+ echo '</table>'."\n";
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putUjTanar() {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar"));
+
+ echo '<input type="hidden" name="action" value="ujTanar" />'."\n";
+ echo '<fieldset><legend>'._UJ_TANAR.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev" class="kotelezo">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$ADAT['tanarAdat']['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$ADAT['tanarAdat']['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="12" name="viseltUtonev" value="'.$ADAT['tanarAdat']['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+
+/*
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($ADAT['tanarAdat']['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="beDt">'._BEDT.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="beDt" name="beDt" value="'.date('Y-m-d').'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putKepUpload($tanarId) {
+ formBegin(array('enctype'=>"multipart/form-data",'class'=>'tanar'));
+ echo '<fieldset><legend>'._FENYKEPE.'</legend>'."\n";
+ echo '<div style="float:right; background-color: #eee;">'.
+ putFace($tanarId,'tanar',"100",false);
+ echo '</div>';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="action" value="kepUpload" />';
+ echo '<input type="file" name="upfile" />';
+ echo '<input type="submit" class="tanarSubmit" value="ok" />';
+ echo '</fieldset>';
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
new file mode 100644
index 00000000..2401da8f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
@@ -0,0 +1,376 @@
+<?php
+
+ function putTankornevForm($ADAT) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKORNEV_MODOSITAS.'</h2>';
+
+ echo '<div style="padding:15px 15px 0px 15px; float:left; font-size: 60px; line-height:60px;"><span class="icon-pencil-alt"></span></div>';
+ echo '<p>'._TANKORNEV_MODOSITAS_HELP.'</p>';
+
+ echo '<input type="hidden" name="action" value="setTankorNev" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="ujTargy">'._TAGOK_ALAPJAN.': </label>';
+
+ echo '<input type="checkbox" id="setTankorNevTagokAlapjan" name="setTankorNevTagokAlapjan" value="true" checked="checked" />';
+ echo '<input type="submit" name="nevValtoztatas" value="Tankörnév frissítés" />';
+
+ echo '</p>';
+ formEnd();
+
+ }
+
+
+ function putUjTankorForm($MK,$TARGY,$TANAR,$OSZTALY,$SZEMESZTER,$TOPOST,$ADAT) {
+
+ global $TANKOR_TIPUS;
+ /* $TOPOST['tankoradat'] */
+
+ if (!is_array($TARGY)) return false;
+ $SZEMCHECK = array();
+ for ($i=0; $i<count($TOPOST['szemeszterek']); $i++) {
+ $SZEMCHECK[] = $TOPOST['szemeszterek'][$i]['tanev'].'/'.$TOPOST['szemeszterek'][$i]['szemeszter'];
+ $SZEMORASZAM[$TOPOST['szemeszterek'][$i]['tanev'].'/'.$TOPOST['szemeszterek'][$i]['szemeszter']]=
+ $TOPOST['szemeszterek'][$i]['oraszam'];
+ }
+ $OSZTCHECK=array();
+
+ for ($i=0; $i<count($TOPOST['osztalyok']); $i++) {
+ $OSZTCHECK[] = $TOPOST['osztalyok'][$i]['osztalyId'];
+ }
+
+ if ( isset($TOPOST['tankorId']) && $TOPOST['tankorId']!='')
+ $_formClass = 'meglevo ';
+ else
+ $_formClass = '';
+
+
+ formBegin(array('class'=>$_formClass.'tankor', 'method'=>'post', 'action'=>''));
+ echo '<input type="hidden" name="action" value="ujTankor" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$TOPOST['tankorId'].'" />'."\n";
+ foreach($TOPOST as $_t => $_v)
+ echo '<input type="hidden" name="'.$_t.'" value="'.$_v.'" />'."\n";
+ echo '<h2>'._TANKOR.' ';
+ echo $MK['leiras'].'/'.$TARGY['targyNev'];
+ if ($TARGY['targyJelleg']!='') echo ' ('.$TARGY['targyJelleg'].')';
+ for ($i=0; $i<count($TOPOST['tankortanar']); $i++) {
+ echo ' ';
+ echo '<span class="tanarNev" data-tanarid="'.$TOPOST['tankortanar'][$i]['tanarId'].'" >';
+ echo $TOPOST['tankortanar'][$i]['tanarNev'];
+ echo '</span>';
+ }
+ echo '</h2>'."\n";
+
+ echo '<table>';
+
+ echo '<tr>'."\n";
+ echo '<th>'._ELNEVEZES.'</th>';
+ echo '<td>';
+ echo $ADAT['tanev'];
+ echo '</td>';
+ echo '<td>';
+ /*
+ 12.abcd angol nyelv II-ALAP óra
+ évfolyam(ok), osztály, tárgy, (extra tankorJel), elnevezés (tankorNevCimke)
+ */
+ // találjuk ki az elnevezést!
+ if ($TOPOST['tankorId']!='') {
+ $tankorNev = $TOPOST['tankoradat']['tankorNev'];
+ foreach ($TANKOR_TIPUS as $_k=>$_v) {
+ // ha a név utolsó egyésége megegyezik a jelöléssel...
+ if (substr($tankorNev, -strlen($_v)) == $_v) { $_tipus = $_v; break; }
+ }
+ } elseif ($TOPOST['tankoradat']['tipus']!='') {
+ $_tipus=$TOPOST['tankoradat']['tipus'];
+ }
+ echo '<select name="tipus">';
+ foreach ($TANKOR_TIPUS as $_k=>$_v) {
+ $_SEL = ($_v==$_tipus) ? ' selected="selected"':'';
+ echo '<option value="'.$_v.'"'.$_SEL.'>'.$_k.' - '.$_v.'</option>';
+ }
+ echo '</select>';
+ if (defined('__AKG_TANKORNEV') && __AKG_TANKORNEV === true) {
+ echo '<input type="checkbox" name="tankorNevMegorzes" value="true" />';
+ }
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<th>'._TANKORCN.'</th>';
+ echo '<td colspan="2">';
+ echo '<input type="text" name="tankorCn" value="'.$TOPOST['tankoradat']['tankorCn'].'" />';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+
+ echo '<h2>'._ALTALANOS.'</h2>'."\n";
+
+ echo '<table>';
+ echo '<tr>'."\n";
+ echo '<th>'._TIPUS.'</th>';
+ echo '<td>';
+ echo '<label for="tipus">'.'</label>';
+
+ echo '<select name="tankorTipusId">';
+ foreach ($ADAT['tankorTipusok'] as $_k=>$_v) {
+ $_SEL = ($_k==$TOPOST['tankoradat']['tankorTipusId']) ? ' selected="selected"':'';
+ echo '<option value="'.$_k.'"'.$_SEL.'>';
+ echo $_k.": ";
+ echo $_v['rovidNev'].": ";
+ echo $_v['leiras'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '<br/>';
+ echo 'Megváltoztassam a tankörhöz tartozó összes - már rögzített - hiányzás típusát
+ <br/>ebben a tanévben('.$ADAT['tanev'].')?';
+ echo '<input type="checkbox" name="forceTankorTipusValtas" value="1" />';
+ echo '<input type="submit" />';
+
+ echo '</td>';
+if (count($TOPOST['tankorcsoport']['idk'])>1) {
+ echo '<td rowspan="5" class="tankorCsoportok">';
+ echo '<div class="header">'._TANKORCSOPORTOK.'</div>';
+ echo '<ul>';
+ for ($i=0; $i<count($TOPOST['tankorcsoport']['idk']); $i++){
+ $_TA = $TOPOST['tankorcsoport']['adat'][$TOPOST['tankorcsoport']['idk'][$i]][0];
+ if ($_TA['tankorId']!=$ADAT['tankorId'])
+ echo '<li><a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_TA['tankorId']).'">'.($_TA['tankorNev']).'</a></li>';
+ else
+ echo '<li>'.$_TA['tankorNev'].'</li>';
+ }
+ echo '</ul>';
+ echo '</td>'."\n";
+}
+ echo '</tr><tr>';
+
+ echo '<th>'._VALASZTHATO.'</th>'."\n";
+
+ echo '<td>';
+ if (isset($TOPOST['tankoradat']['felveheto'])) $_CHK[$TOPOST['tankoradat']['felveheto']] = ' checked="checked"';
+ else $_CHK[0] = ' checked="checked"';
+
+ echo '<span class="dob">';
+ echo '<input type="radio" id="szabValI" name="felveheto" value="1" '.$_CHK[1].' />';
+ echo '<label for="szabValI">'._IGEN.'</label>';
+ echo '</span>';
+
+ echo '<span class="dob">';
+ echo '<input type="radio" id="szabValN" name="felveheto" value="0" '.$_CHK[0].' />';
+ echo '<label for="szabValN">'._NEM.'</label>';
+ echo '</span>'."\n";
+
+ echo '<label for="min">'._MIN_LSZ.'</label>';
+ echo '<select id="min" name="min">';
+ for ($i=0; $i<100; $i++) {
+ $_SEL = ($TOPOST['tankoradat']['min'] ==$i) ? ' selected="selected" ': '';
+ echo '<option value="'.$i.'"'.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '<label for="min">'._MAX_LSZ.'</label>';
+ echo '<select id="max" name="max">';
+ for ($i=0; $i<100; $i++) {
+ $_SEL = ($TOPOST['tankoradat']['max'] ==$i) ? ' selected="selected" ': '';
+ echo '<option value="'.$i.'"'.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<th>'._EVKOZI_KOVETELMENY.'</th>';
+
+ echo '<td>';
+
+ if (isset($TOPOST['tankoradat']['kovetelmeny'])) {
+ $_CHK[$TOPOST['tankoradat']['kovetelmeny']] = ' checked="checked"';
+ $_CLASS[$TOPOST['tankoradat']['kovetelmeny']]=' class="sel"';
+ } else {
+ $_CHK['jegy'] = ' checked="checked"';
+ }
+
+ foreach ( $ADAT['tankor.kovetelmeny'] AS $i => $kovetelmeny) {
+ echo '<div '.$_CLASS[$kovetelmeny].'>';
+ echo '<input type="radio" id="kov'.$kovetelmeny.'" name="kovetelmeny" value="'.$kovetelmeny.'" '.$_CHK[$kovetelmeny].' />';
+ echo '<label for="kov'.$kovetelmeny.'">'.$kovetelmeny.'</label>';
+ echo '</div>';
+ }
+
+/* echo '<label for="kovJegy">'._JEGY.'</label>';
+ echo '<input type="radio" id="kovJegy" name="kovetelmeny" value="jegy" '.$_CHK['jegy'].' />';
+ echo '<label for="kovAi">'._ALAIRAS.'</label>';
+ echo '<input type="radio" id="kovAi" name="kovetelmeny" value="aláírás" '.$_CHK['aláírás'].' />';
+*/ echo '</td>';
+
+ echo '</tr>';
+/* REV 2185++ - tól nem kell, nem lehet. A típus determinál
+ echo '<tr>';
+
+ echo '<th>'._JELENLET.'</th>';
+
+ echo '<td>';
+ if (isset($TOPOST['tankoradat']['jelenlet'])) $_CHK[$TOPOST['tankoradat']['jelenlet']] = ' checked="checked"';
+ else $_CHK['kötelező'] = ' checked="checked"';
+ echo '<label for="jelKot">'._KOTELEZO.'</label>';
+ echo '<input type="radio" id="jelKot" name="jelenlet" value="kötelező" '.$_CHK['kötelező'].' />';
+ echo '<label for="jelNemKot">'._NEMKOTELEZO.'</label>';
+ echo '<input type="radio" id="jelNemKot" name="jelenlet" value="nem kötelező" '.$_CHK['nem kötelező'].' />';
+ echo '</td>';
+
+ echo '</tr>';
+*/
+ echo '</table>';
+ echo '<input type="hidden" id="jelKot" name="jelenlet" value="kötelező" />';
+
+ $_CHK = array();
+
+ echo '<h2>'._SZEMESZTEREK.'</h2>';
+ echo '<table class="szemeszter" cellspacing="1" cellpadding="1">';
+ echo '<tr><th>'._SZEMESZTER.'</th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<th class="sz'.($i%2).'">';
+ echo $SZEMESZTER[$i]['tanev'].' '.$SZEMESZTER[$i]['szemeszter'];
+ echo '</th>'."\n";
+ }
+ echo '</tr>'."\n";
+
+ echo '<tr><th></th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<td class="sz'.($i%2).'">';
+ $_RO = ($SZEMESZTER[$i]['statusz']=='lezárt') ? ' readonly="readonly" onclick="return false;" class="lezart" ':'';
+ $_CHK = (is_array($SZEMCHECK) && in_array($SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'],$SZEMCHECK))? ' checked="checked"':'';
+ $_ID = 'c'.$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'];
+ echo '<input id="'.$_ID.'" type="checkbox" name="szemeszterek[]" value="'.$SZEMESZTER[$i]['szemeszterId'].'"'.$_CHK.$_RO.' />';
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+
+ echo '</tr><tr><th>'._HETI_ORASZAM.'</th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<td class="sz'.($i%2).'">';
+ $_RO = ($SZEMESZTER[$i]['statusz']=='lezárt') ? ' readonly="readonly" class="lezart" ':'';
+ $_val = $SZEMORASZAM[$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter']];
+ $_ID = 't'.$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'];
+ echo '<input id="'.$_ID.'" type="text" size="2" maxlength="4" name="SZ'.$SZEMESZTER[$i]['szemeszterId'].'" value="'.$_val.'" '.$_RO.'/>';
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+ echo '</table>'."\n\n";
+
+ echo '<h2>'._RESZTVEVO_OSZTALYOK.'</h2>';
+ echo '<table>';
+ echo '<tr><th>'._OSZTALYJELE.'</th><th></th><th>'._LEIRAS.'</th></tr>'."\n";
+ for ($i=0; $i<count($OSZTALY); $i++) {
+ if (is_array($ADAT['tankorOsztalyok']) && in_array($OSZTALY[$i]['osztalyId'],$ADAT['tankorOsztalyok'])) $_class="vanTag"; else $_class="";
+
+ echo '<tr class="'.$_class.'">';
+ echo '<th><label for="o'.$i.'">'.$OSZTALY[$i]['osztalyJel'].'</label></th>';
+ echo '<td>';
+ $_CHK = (is_array($TOPOST['osztalyok']) && in_array($OSZTALY[$i]['osztalyId'],$OSZTCHECK))? ' checked="checked"':'';
+ echo '<input type="checkbox" id="o'.$i.'" name="osztalyok[]" value="'.$OSZTALY[$i]['osztalyId'].'"'.$_CHK.' />';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<label for="o'.$i.'">';
+ echo $OSZTALY[$i]['kezdoTanev'].'/'.$OSZTALY[$i]['vegzoTanev'];
+ echo '.'.$OSZTALY[$i]['jel'];
+ echo ' ('.$OSZTALY[$i]['leiras'].')';
+ echo '</label>';
+
+
+ echo '</td>'."\n";
+
+ echo '</tr>';
+ }
+ echo '</table>';
+
+ if ($TOPOST['tankorId']=='') { // engedélyezzüz a tanár felvételét
+
+ echo '<h2>'._MEGJELOLTIDOSZAKBANTANAR.'</h2>';
+ echo '<select name="tanarId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAR); $i++) {
+ echo '<option value="'.$TANAR[$i]['tanarId'].'">'.$TANAR[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ }
+
+
+ echo '<input type="submit" />';
+
+ formEnd();
+
+ }
+
+ function putTankorLezarForm($tankorId, $mkId, $targyId, $tanev = __TANEV) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_LEZARAS.'</h2>';
+
+ echo '<p>'._TANKOR_LEZARAS_HELP.'</p>';
+ echo '<p><label for="biztosLezar">Biztos benne?</label>';
+ echo '<input type="checkbox" id="biztosLezar" name="biztosLezar" value="1" />'."</p>\n";
+ echo '<input type="hidden" name="action" value="tankorLezar" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="lezardt">'._LEZARAS_DT.': </label>';
+ echo '<input type="text" id="lezarDt" name="lezarDt" class="date" value="'.date('Y-m-d').'" />';
+ echo '<input type="submit" id="lezarg" value="'._LEZAR.'" />';
+ echo '</p>';
+ formEnd();
+ }
+
+
+ function putTankorTorolForm($tankorId, $mkId, $targyId, $tanev = __TANEV) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_TORLES.'</h2>';
+
+ echo '<p>'._TANKOR_TORLES_HELP;
+
+ echo '<input type="checkbox" name="biztosTorol" value="1" />'."</p>\n";
+ echo '<input type="hidden" name="action" value="tankorTorol" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<p>';
+ echo '<label for="targytorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="torolg" value="'._DELETE.'" />';
+ echo '</p>';
+ formEnd();
+ }
+
+ function putTankorTargyForm($ADAT) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_TARGY_MODOSITAS.'</h2>';
+
+ echo '<p>'._TANKOR_TARGY_HELP.'</p>';
+
+ echo '<input type="hidden" name="action" value="tankorTargyModositas" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="ujTargy">'._UJ_TARGY.': </label>';
+ echo '<select id="ujTargy" name="ujTargyId" class="">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $tAdat) {
+ if ($tAdat['targyId'] != $ADAT['targyId'])
+ echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyMod" value="'._OK.'" />';
+ echo '</p>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml
new file mode 100644
index 00000000..272d6908
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml
@@ -0,0 +1,310 @@
+<?php
+
+ function putTankorDiakTablazat($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+ $TT = array();
+ for ($i = 0; $i < count($ADAT['tankor']['tanarai']); $i++) {
+ $TT[] = $ADAT['tankor']['tanarai'][$i]['tanarNev'];
+ }
+
+ formBegin(array('method'=>'post', 'action'=>'', 'class'=>'tankor'));
+ echo '<h2>'.ucfirst(_TANAR).': '.implode(', ',$TT).'</h2>';
+
+ echo '<h2>'._DIAKOK.'</h2>';
+
+ if ($ADAT['tankor']['diakjai']['nevek']!==false) {
+
+ echo '<table cellpadding="1" cellspacing="1">';
+ __tableHeadFoot();
+ echo '<tbody>';
+ $i=1;
+ if (is_array($ADAT['tankor']['diakjai']['nevek']))
+ foreach ($ADAT['tankor']['diakjai']['nevek'] as $diakId=>$DIAK) {
+ $_D = $ADAT['tankor']['diakjai']['adatok'][$diakId];
+ $_db = count($_D);
+ $_CHK = (is_array($ADAT['diakSelected']) && in_array($diakId,$ADAT['diakSelected'])) ? 'checked="checked"':'';
+ echo '<tr>';
+ echo '<td rowspan="'.$_db.'">';
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'">';
+ echo $i++;
+ echo '. '.$DIAK['diakNev'];
+ echo ' ';
+ $_osztalyId=$ADAT['diakOsztaly'][$diakId][0];
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel'])) echo '('.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].')';
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['kiDt'];
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'">';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$diakId][$k]['kepzesId']%2).'">';
+ echo $ADAT['diakKepzes'][$diakId][$k]['kepzesNev'];
+ echo '</span>';
+ }
+ echo '</td>';
+ echo '</tr>';
+ for ($k=1; $k<count($_D); $k++){
+ echo '<tr>';
+ echo '<td>';
+ echo $_D[$k]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[$k]['kiDt'];
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+
+ formEnd();
+
+ }
+
+ function __tableHeadFoot() {
+ echo '<thead>';
+ echo '<tr><th></th><th>'._NEV.'</th><th>'._METTOL.'</th><th>'._MEDDIG.'</th><th>'._NEME.'</th><th>'._KEPZES.'</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th></th><th>'._NEV.'</th><th>'._METTOL.'</th><th>'._MEDDIG.'</th><th>'._NEME.'</th><th>'._KEPZES.'</th></tr>'."\n";
+ echo '</tfoot>';
+ }
+
+ function putTankorDiakForm($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+ $TT = array();
+ for ($i = 0; $i < count($ADAT['tankor']['tanarai']); $i++) {
+ $TT[] = $ADAT['tankor']['tanarai'][$i]['tanarNev'];
+ }
+
+ formBegin(array('method'=>'post', 'id'=>'tankorDiak', 'class'=>'tankor', 'action'=>''));
+
+ if (count($TT)>0) echo '<h2>'.ucfirst(_TANAR).': '.implode(', ',$TT).'</h2>';
+
+ echo '<h2>'._DIAKOK.'</h2>';
+
+ if ($ADAT['tankor']['diakjai']['nevek']!==false) {
+
+ echo '<input type="hidden" name="action" value="tankorDiakMod" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+# echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+# echo '<input type="hidden" name="beDt" value="'.$ADAT['beDt'].'" />'."\n";
+# echo '<input type="hidden" name="kiDt" value="'.$ADAT['kiDt'].'" />'."\n";
+ echo '<table cellpadding="1" cellspacing="1" class="bentlevo">';
+ __tableHeadFoot();
+ echo '<tbody>';
+ $i=1;
+
+ if (is_array($ADAT['tankor']['diakjai']['nevek']))
+ foreach ($ADAT['tankor']['diakjai']['nevek'] as $diakId=>$DIAK) {
+ $_D = $ADAT['tankor']['diakjai']['adatok'][$diakId];
+ $_db = count($_D);
+ $_CHK = (is_array($ADAT['diakSelected']) && in_array($diakId,$ADAT['diakSelected'])) ? 'checked="checked"':'';
+ echo '<tr>';
+ echo '<td rowspan="'.$_db.'">';
+ echo '<input type="hidden" name="diakok[]" value="'.$diakId.'" />';
+ echo '<input type="checkbox" name="diaktorol[]" value="'.$diakId.'" '.$_CHK.'/>';
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'" class="diakNev" data-diakid="'.$diakId.'">';
+ echo $i++;
+ echo '. '.$DIAK['diakNev'];
+ echo ' ';
+ $_osztalyId=$ADAT['diakOsztaly'][$diakId][0];
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel'])) echo '('.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].')';
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['kiDt'];
+ echo '</td>';
+ echo '<td class="'.ekezettelen($ADAT['diakAdat'][$diakId]['nem']).'">';
+ echo ($ADAT['diakAdat'][$diakId]['nem']);
+ echo '</td>';
+
+ echo '<td>';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$diakId][$k]['kepzesId']%2).'">';
+ echo $ADAT['diakKepzes'][$diakId][$k]['kepzesNev'];
+ echo '</span>';
+ }
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" /> '.$ADAT['refDt'].' - ';
+ echo '<input class="date" type="text" name="kiDt" value="'.$ADAT['kiDt'].'" />';
+ if ($ADAT['voltUtkozes'] === true && __NAPLOADMIN) echo '<input id="utkozes" type="checkbox" name="utkozes" value="true" /><label for="utkozes">'._FORCE.'</label>';
+ echo '<input type="submit" id="tankorDiakMod" value="'._BUTTON_OK.'" class="confirm" title="'._BIZTOS_TANKORNEVSOR.'" />';
+ formEnd();
+ }
+ }
+
+ function putUjDiakForm($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+
+ formBegin(array('method'=>'post', 'id'=>'ujDiak', 'class'=>'tankor', 'action'=>''));
+
+ echo '<h2>'._UJDIAK.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorUjDiak" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ //echo '<input type="hidden" name="jelenlet" value="kötelező" />'."\n";
+ //echo '<input type="hidden" name="kovetelmeny" value="jegy" />'."\n";
+
+ echo '<select name="diakId">';
+ foreach($ADAT['diakok'] as $_osztalyId => $DADAT) {
+ echo '<optgroup label="'.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].'">';
+ for($i=0; $i<count($DADAT); $i++) {
+ echo '<option value="'.$DADAT[$i]['diakId'].'">'.$DADAT[$i]['diakNev'].' ('.$DADAT[$i]['diakId'].')</option>';
+ }
+ echo '</optgroup>';
+ }
+ echo '</select>';
+ echo '<label for="tolDt">'._BEDT.': </label>';
+ echo '<input class="date" type="text" id="refDt" name="refDt" value="'. $ADAT['refDt'] .'" />';
+ echo '<label for="igDt">'._KIDT.': </label>';
+ echo '<input class="date" type="text" id="igDt" name="igDt" value="" />';
+
+ echo '<input type="submit" id="ujDiak" value="'._OK.'" />';
+
+ formEnd();
+
+ }
+
+ function putUjDiakForm2($ADAT) {
+ $tankorId = $ADAT['tankorId'];
+
+ formBegin(array('method'=>'post', 'id'=>'ujDiak', 'class'=>'tankor', 'action'=>''));
+
+ echo '<h2>'._UJDIAK.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorUjDiakMulti" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ //echo '<input type="hidden" name="jelenlet" value="kötelező" />'."\n";
+ //echo '<input type="hidden" name="kovetelmeny" value="jegy" />'."\n";
+ $j=0;
+ $SORT = array();
+ foreach($ADAT['diakok'] as $_osztalyId => $___D) {
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel']))
+ $SORT[$ADAT['osztaly'][$_osztalyId]['osztalyJel']]=$_osztalyId;
+ else // Vendégtanulók miatt...
+ $SORT[constant('_'.strtoupper($_osztalyId))] = $_osztalyId;
+ }
+
+
+ ksort($SORT);
+ foreach($SORT as $_oJel => $_osztalyId) {
+ $DADAT = $ADAT['diakok'][$_osztalyId];
+
+ echo '<table style="float:left;" cellpadding="0" cellspacing="1">';
+ echo '<tr><th colspan="2">'.$_oJel.'</th></tr>';
+ echo '<tr>';
+ echo '<th class="setAll">'.$_oJel.'</th>'."\n";
+ echo '<td style="vertical-align: top">';
+ //**
+ echo '<table cellpadding="1" cellspacing="1" class="egyosztaly">';
+ for($i=0; $i<count($DADAT); $i++) {
+ $_diakId= $DADAT[$i]['diakId'];
+ $_neme = ($ADAT['diakAdat'][$_diakId]['nem']);
+ echo '<tr class="'.ekezettelen(str_replace(' ','',$DADAT[$i]['statusz'])).'">';
+ echo '<td><input type="checkbox" id="diakId__'.$j.'" name="diakId[]" value="'.$DADAT[$i]['diakId'].'" class="'.ekezettelen($_neme).'" /></td>';
+ echo '<td>'.($i+1).'.</td>';
+ echo '<td>';
+ echo '<label for="diakId__'.$j.'" title="'.$DADAT[$i]['statusz'].'">'.$DADAT[$i]['diakNev'].' ('.$DADAT[$i]['diakId'].')</label>';
+ // képzései:
+ echo '</td>';
+ echo '<td class="'.ekezettelen($_neme).' setAll'.ucfirst(ekezettelen($_neme)).'" >';
+ //echo '<label for="diakId__'.$j.'">'.$_neme.'</label>';
+ echo $_neme;
+ echo '</td>';
+ echo '<td>';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$_diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$_diakId][$k]['kepzesId']%2).'" title="['.$ADAT['diakKepzes'][$_diakId][$k]['tanev'].']">';
+ echo $ADAT['diakKepzes'][$_diakId][$k]['kepzesNev'];
+
+ echo '</span>';
+ }
+ echo '</td>';
+ // --
+ echo '</tr>'."\n";
+ $j++;
+ }
+ echo '</table>';
+ //**
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+
+ }
+ echo '<div style="clear:both"></div>';
+ echo '<label for="refDt">'._BEDT.': </label>';
+ echo '<input class="date" type="text" id="refDt" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<label for="igDt">'._KIDT.': </label>';
+ echo '<input class="date" type="text" id="igDt" name="igDt" value="" />';
+
+ echo '<input type="submit" id="ujDiakOk" value="'._OK.'" />';
+
+ formEnd();
+
+ }
+
+ function __n($D1,$D2) {
+ $kip = date('z',strtotime($D1));
+ $kop = date('z',strtotime($D2));
+ list($bY,$bM,$bD) = explode('-',$D1);
+ list($kY,$kM,$kD) = explode('-',$D2);
+ $px = $kop-$kip+($kY-$bY)*365-1;
+ return $px;
+ }
+
+ /* EZT TESSÉK SZÉPEN MEGÍRNI :) */
+ function _put_grafikon($ADAT,$TANEV) {
+
+ // el kellene még tolni a kezdes és zárás ismeretében!
+ $tanevN = __n($TANEV['kezdesDt'], $TANEV['zarasDt']);
+ // legyen 1 pixel, 1 nap
+ $pxx=0;
+ echo '<div style="width:370px; height:5px; background-color: lightgrey; border: solid 1px blue" alt="jelenlet grafikon">';
+
+ if (($px=__n($TANEV['kezdesDt'],$ADAT[0]['beDt']))>0) {
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gray-pixel.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px red;" alt="">';
+ $pxx+=$px;
+ } elseif ($px<0) { // hackit
+ $ADAT[0]['beDt']=$TANEV['kezdesDt'];
+ }
+ for($i=0; $i<count($ADAT); $i++) {
+ if (!is_null($ADAT[$i]['kiDt'])) {
+ $px = __n($ADAT[$i]['beDt'],$ADAT[$i]['kiDt']);
+ } else {
+ $px = 365-$pxx-1;
+ }
+ $pxx+=$px;
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gold_box.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px blue;" alt="">';
+ if (is_array($ADAT[$i+1])) {
+ $px = __n($ADAT[$i]['kiDt'],$ADAT[$i+1]['beDt']);
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gray-pixel.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px red;" alt="">';
+ $pxx+=$px;
+ }
+ }
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml
new file mode 100644
index 00000000..c7a935e8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml
@@ -0,0 +1,83 @@
+<?php
+
+ function putTankorLetszam($ADAT) {
+
+ echo '<table align="center" class="tankorLetszam" cellspacing="1">';
+ echo '<tr><th>'._TANKOR.'</th><th>'._TIPUS.'</th>';
+ echo '<th colspan="2">';
+ echo _LETSZAM;
+
+ formBegin();
+ $_CHK = ($ADAT['osztalyonkent']=='1') ? ' checked="checked" ':'';
+ echo '<input type="checkbox" name="osztalyonkent" value="1" '.$_CHK.' />';
+ _putLimit($ADAT['tankorLetszamLimit']);
+ echo '<input type="submit" />';
+ echo '<input type="hidden" name="mkId" value="'.$_POST['mkId'].'" />';
+ echo '<input type="hidden" name="targyId" value="'.$_POST['targyId'].'" />';
+ formEnd();
+ echo '</th>';
+ echo '<th>'._TANAROK.'</th></tr>'."\n";
+ for($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_D = $ADAT['tankorok'][$i];
+ if (!is_numeric($ADAT['tankorLetszamLimit']) || $ADAT['tankorLetszamLimit']>=$_D['letszam']) {
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_D['tankorId']).'">';
+ echo $_D['tankorNev'];
+ echo ' ('.$_D['tankorId'].')';
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo $_D['tankorTipus'];
+ echo '</td>';
+ echo '<td class="letszam">';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorDiak&tankorId='.$_D['tankorId']).'">';
+ echo $_D['letszam'];
+ echo '</a>';
+ echo '</td>';
+ echo '<td class="letszam">';
+
+ if (is_array($_D['letszamOsztaly']))
+ foreach(
+ $_D['letszamOsztaly'] as $osztalyJel => $db
+ ) {
+ echo '<span style="color: white; background-color: #565650; padding:0px 5px;margin:0px 5px;">';
+ echo $osztalyJel.':';
+ echo $db;
+ echo '</span>';
+ }
+
+ echo '</td>';
+ echo '<td class="tanar">';
+ for ($j=0; $j<count($_D['tanarai']); $j++) {
+ echo $_D['tanarai'][$j]['tanarNev'];
+ if ($j<count($_D['tanarai'])-1) echo ', ';
+ }
+ echo '</td>';
+/*
+ echo '<td class="osztaly">';
+ for ($j=0; $j<count($_D['osztalyai']); $j++) {
+ echo $ADAT['osztaly'][$_D['osztalyai'][$j]]['osztalyJel'];
+ if ($j<count($_D['osztalyai'])-1) echo ', ';
+ }
+ echo '</td>';
+*/ echo '</tr>';
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</table>';
+
+ }
+
+ function _putLimit($limit) {
+
+ echo '<select name="tankorLetszamLimit">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<=40; $i++) {
+ $_SEL = ($limit!==$i) ? '': ' selected = "selected" ';
+ echo '<option value="'.$i.'" '.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml
new file mode 100644
index 00000000..a98009fb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml
@@ -0,0 +1,101 @@
+<?php
+
+ function putTankorSzemeszterForm($ADAT) {
+
+ $tanev = $ADAT['tanev'];
+
+ // szemeszterek száma tanévenként
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) $Tanevek[$ADAT['szemeszterek'][$i]['tanev']]++;
+ formBegin(array('class'=>'tankorSzemeszter'));
+ echo '<input type="hidden" name="action" value="tankorSzemeszter" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+//hö?
+ if (isset($_POST['tanarId'])) echo '<input type="hidden" name="tanarId" value="'.$_POST['tanarId'].'" />'."\n";
+ if (isset($_POST['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$_POST['osztalyId'].'" />'."\n";
+ if (isset($_POST['mkId'])) echo '<input type="hidden" name="mkId" value="'.$_POST['mkId'].'" />'."\n";
+
+ echo '<table align="center">'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th rowspan="2" class="bigleft">'._TANKOR.' ('.$tanev.')</th>'."\n";
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) {
+ if ($szTanev != $ADAT['szemeszterek'][$i]['tanev']) {
+ $szTanev = $ADAT['szemeszterek'][$i]['tanev'];
+ $colspan = $Tanevek[$szTanev];
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$i]['statusz']);
+ if ($tanev == $szTanev) $_class[] = 'aktualis';
+ echo '<th class="'.implode(' ',$_class).'" colspan="'.$colspan.'">';
+ echo $szTanev;
+ echo '</th>'."\n";
+ }
+ }
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) {
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$i]['statusz']);
+ if ($tanev == $ADAT['szemeszterek'][$i]['tanev']) $_class[] = 'aktualis';
+ echo '<th class="'.implode(' ',$_class).'">'.$ADAT['szemeszterek'][$i]['szemeszter'].'</th>'."\n";
+ }
+ echo '</tr>'."\n";
+
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ echo '<tr>'."\n";
+
+ echo '<th title="'.substr($title,0,-2).'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorDiak&tankorId='.$ADAT['tankorok'][$i]['tankorId'].'&tanev='.$tanev).'">';
+ echo $ADAT['tankorok'][$i]['tankorNev'].' ('.$ADAT['tankorok'][$i]['tankorId'].')';
+ echo '</a>';
+ echo '<span class="tan">';
+ for ($j=0; $j<count($ADAT['tankorTanarok'][$tankorId]); $j++) {
+ echo '<br/>'.$ADAT['tankorTanarok'][$tankorId][$j]['tanarNev'].' ';
+ echo $ADAT['tankorTanarok'][$tankorId][$j]['minBeDt'].'--';
+ echo $ADAT['tankorTanarok'][$tankorId][$j]['maxKiDt'];
+ }
+ echo '</span>';
+ echo '</th>'."\n";
+ for ($j = 0; $j < count($ADAT['szemeszterek']); $j++) {
+ $szTanev = $ADAT['szemeszterek'][$j]['tanev'];
+ $szSzemeszter = $ADAT['szemeszterek'][$j]['szemeszter'];
+
+
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$j]['statusz']);
+ if ($tanev == $ADAT['szemeszterek'][$j]['tanev']) $_class[] = 'aktualis';
+ echo '<td class="'.implode(' ',$_class).'">';
+
+ if ($ADAT['szemeszterek'][$j]['statusz'] == 'lezárt') $disabled = ' disabled="disabled" ';
+ else $disabled = '';
+ $value = "$tankorId/$szTanev/$szSzemeszter";
+ $name = 'O_'.$tankorId.'_'.$szTanev.'_'.$szSzemeszter;
+ if (is_array($ADAT['tankorSzemeszter'][$tankorId][$szTanev][$szSzemeszter])) {
+ $szAdat = $ADAT['tankorSzemeszter'][$tankorId][$szTanev][$szSzemeszter];
+ $tankorNev = $szAdat['tankorNev'];
+ $title = $tankorNev;
+ echo '<input type="checkbox" name="T[]" value="'.$value.'" title="'.$title.'" checked="checked" '.$disabled.' />'."\n";
+ echo '<input size="1" maxlength="4" type="text" name="'.$name.'" value="'.$szAdat['oraszam'].'" '.$disabled.' />'."\n";
+ } else {
+ echo '<input type="checkbox" name="T[]" value="'.$value.'" title="" '.$disabled.' />'."\n";
+ echo '<input size="1" maxlength="4" type="text" name="'.$name.'" value="" '.$disabled.' />'."\n";
+ }
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<th colspan="'.(count($ADAT['szemeszterek'])+1).'"><input type="submit" value="'._OK.'" /></th>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml
new file mode 100644
index 00000000..78a9f417
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml
@@ -0,0 +1,103 @@
+<?php
+
+ function putTankorTanarForm($ADAT) {
+
+ if (!isset($ADAT['tankorok'])) return false;
+
+ formBegin(array('method'=>'post', 'id'=>'tankorTanarAssoc', 'class'=>'tankor', 'action'=>''));
+
+ //echo '<h2>'._TANTARGYFELOSZTAS.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorTanarAssoc" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+# echo '<input type="hidden" name="kiDt" value="'.$ADAT['kiDt'].'" />'."\n";
+
+ echo '<table class="felosztas">';
+ echo '<tr><th>'._TANKOR.'</th><th>'._ORASZAM.'</th><th>'._AKTUALIS_TANAR.'<th colspan="1">'._VALASZTOTT_TANAR.'</th><th>'._IDOSZAK.'</th></tr>'."\n";
+ echo '<tr>';
+ for($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $_D = $ADAT['tankorok'][$i];
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&tankorId='.$_D['tankorId'].'&mkId='.$ADAT['mkId'].'&refDt='.$ADAT['refDt'].'&tanev='.$ADAT['tanev']).'">';
+ echo $_D['tankorNev']. ' ('.$_D['tankorId'].')';
+ echo '</a>'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_D['tankorId']).'">';
+ echo sprintf('%01.1f',$_D['oraszam']);
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo '<ul>';
+ for($j = 0; $j < count($_D['tanarok']); $j++) {
+ echo '<li>';
+ echo $_D['tanarok'][$j]['tanarNev'];
+ echo '</li>'."\n";
+ }
+// for ($j=0; $j<count($ADAT['tankorTanarok'][$_D['tankorId']]); $j++) {
+// echo '<li>';
+// echo $ADAT['tankorTanarok'][$_D['tankorId']][$j]['tanarNev'];
+// echo ' ('.$ADAT['tankorTanarok'][$_D['tankorId']][$j]['minBeDt'].'--';
+// echo $ADAT['tankorTanarok'][$_D['tankorId']][$j]['maxKiDt'].')';
+// echo '</li>';
+// }
+ echo '</ul>';
+ echo '</td>';
+ // -- ELEJE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ if (count($ADAT['tankorok']) == 1) {
+ echo '<td>';
+ echo '<input type="hidden" name="tankorok[]" value="'.$_D['tankorId'].'" />';
+ _putTanarSelect('TA'.$_D['tankorId'], $ADAT['tanarok'], $_D['tanarok']);
+ echo '</td>';
+ echo '<td>';
+ echo '<ul>';
+ for ($j=0; $j<count($ADAT['tankorTanarBejegyzesek'][$_D['tankorId']]); $j++) {
+ $_kulcs = $_D['tankorId'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['tanarId'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['beDt'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']; // tankorId|tanarId|beDt|kiDt
+ echo '<li>';
+ echo $ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['tanarNev'];
+ echo ': '.str_replace('-','.',$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['beDt']).'. &ndash; ';
+ if ($ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']=='') {
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&action=tankorTanarJavit&kuuk='.$ADAT['kuuk'].'&tankorId='.$_D['tankorId'].'&tt='.$_kulcs).'"><span class="icon-wrench-alt"></span></a>';
+ } else {
+ echo str_replace('-','.',$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']).'.';
+ }
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&action=tankorTanarTorol&kuuk='.$ADAT['kuuk'].'&tankorId='.$_D['tankorId'].'&tt='.$_kulcs).'"><span class="icon-remove-circle"></span></a>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</td>';
+ }
+ // -- VÉGE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ echo '</tr>';
+ }
+ echo '</table>';
+ // -- ELEJE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ if (count($ADAT['tankorok']) == 1) {
+ echo '<label for="igDt">'.$ADAT['refDt'].' - </label><input class="date" type="text" id="igDt" name="igDt" value="" /> ';
+ echo '<input type="submit" id="tankortanarassoc" value=" '._OK.' " />';
+ }
+ // -- VÉGE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ formEnd();
+
+ }
+
+ function _putTanarSelect($name, $TANAROK, $TANITOK) {
+ for ($i = 0; $i < count($TANITOK); $i++) {
+ $TAN[] = $TANITOK[$i]['tanarId'];
+ $_class = "vantanara";
+ }
+ echo '<select name="'.$name.'[]" multiple="multiple" size="10" class="'.$_class.'">';
+ echo '<option value=""> - </option>';
+ for ($i = 0; $i < count($TANAROK); $i++) {
+ $_SEL = (is_array($TAN) && in_array($TANAROK[$i]['tanarId'], $TAN)) ? ' selected="selected" ' : '';
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'"'.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml
new file mode 100644
index 00000000..aa9747fc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml
@@ -0,0 +1,147 @@
+<?php
+
+ function putStatuszSor($ADAT) {
+
+ //TESZT echo '<img src="skin/classic/module-naplo/img/io/kreta.svg" style="height:24px; background-color:#30a8cb;">';
+
+ echo '<div id="statusz">';
+
+ echo '<span class="iicon-filter"></span>';
+
+ echo '<div id="limit">';
+ echo 'Elfogadható óraszám: '
+ .'<i>«kötelező óraszám»</i>'
+ .'<span class="icon-minus-sign" id="minusz"> 2'
+ .'<ul class="limit">'
+ .'<li class="setLimit">0</li><li class="setLimit">1</li><li class="setLimit selected">2</li><li class="setLimit">3</li><li class="setLimit">4</li>'
+ .'<li class="setLimit">5</li><li class="setLimit">6</li><li class="setLimit">7</li><li class="setLimit">8</li><li class="setLimit">9</li>'
+ .'</ul>'
+ .'</span>'
+ .' – '
+ .'<i>«kötelező óraszám»</i>'
+ .'<span class="icon-plus-sign" id="plusz"> 2'
+ .'<ul class="limit">'
+ .'<li class="setLimit">0</li><li class="setLimit">1</li><li class="setLimit selected">2</li><li class="setLimit">3</li><li class="setLimit">4</li>'
+ .'<li class="setLimit">5</li><li class="setLimit">6</li><li class="setLimit">7</li><li class="setLimit">8</li><li class="setLimit">9</li>'
+ .'</ul>'
+ .'</span>';
+ echo '</div>';
+
+ echo '<div id="stat">';
+ echo 'Tankörök száma: ';
+ echo '<span id="tankorDbKesz">'.$ADAT['tankorStat']['kesz'].'</span>/';
+ echo '<span id="tankorDbOsszes">'.$ADAT['tankorStat']['osszes'].'</span> = ';
+ echo '<span id="tankorDbSzazalek">'.number_format($ADAT['tankorStat']['kesz'] / $ADAT['tankorStat']['osszes'] * 100,1,',','').'%</span>';
+ echo '</div>';
+
+ echo '<div id="filter">';
+ echo '<span class="icon-search"></span>'
+ .' <span id="szuro" '.'data-szuro=\''.json_encode($ADAT['szuro']).'\' '.'>Szűrés</span> '
+ .'<span class="icon-chevron-right"></span>';
+ echo '</div>';
+
+
+
+ echo '</div>';
+
+ }
+
+ function putTankorTanarMatrix($ADAT) {
+
+ $COLORS = array(1=>'#198198',2=>'#298298',3=>'green',4=>'#ffaaaa',5=>'#aabbcc',6=>'#bbccaa',7=>'#ccaabb',8=>'#aaccbb',9=>'#aaccee','9Ny'=>'#ffccee',10=>'#ffaacc',11=>'#eeffbb',12=>'#ccddff');
+ $TANKOROK = $ADAT['tankorok'];
+ $TANAROK = $ADAT['tanarok'];
+ for ($i=0; $i<count($TANKOROK); $i++) {
+ $_T = $TANKOROK[$i];
+ $TARGYTANKOR[$_T['targyId']][] = $_T;
+ }
+
+ formBegin(array('id'=>'tantargyFelosztasForm'));
+ echo '<div style="100%;overflow-x:auto;overflow-y:auto" class="tanarTankor">';
+ echo '<table id="tt" cellpadding="1" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="toggleKesz"><span id="keszTankorDb">'.$ADAT['keszTankorDb'].'</span> db kész/<span id="osszTankorDb">'.count($TANKOROK).'</span> db tankör</th>';
+ echo '<th rowspan="3" class="oraszam">Óraszám</th>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $_TA) {
+ if ($first) { $class=' class="first targy" '; $first=false; }
+ else { $class=' class="targy" '; }
+ echo '<th id="thTargy-'.$_targyId.'" colspan="'.count($_TA).'" data-targyid="'.$_targyId.'" data-colspan="'.count($_TA).'"'.$class.'>';
+ echo $ADAT['targyAdat'][$_targyId]['targyNev'];
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th><span id="keszTanarDb">0</span> db kész/<span id="osszTanarDb">'.count($TANAROK).'</span> db tanár</th>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $TANKORSOR)
+ for ($i=0; $i<count($TANKORSOR); $i++) {
+ $_tankorAdat = $TANKORSOR[$i];
+ if ($first) { $class='first tankor'; $first=false; }
+ else { $class='tankor'; }
+ if (is_array($_tankorAdat['tanarIds'])) {
+ if (count($_tankorAdat['tanarIds']) > 1) $class .= ' tobb';
+ elseif (count($_tankorAdat['tanarIds']) == 1) $class .= ' kesz';
+ }
+ $class .= ' tdTargy-'.$_targyId;
+ if (!$_tankorAdat['bontasOk']) $class .= ' bontasHiba';
+ $color = $COLORS[substr($_tankorAdat['tankorNev'],0,strpos($_tankorAdat['tankorNev'],'.') )];
+ echo '<td id="col_'.$_tankorAdat['tankorId'].'" class="'.$class.'" style="background-color:'.$color.'"
+ data-tankorid="'.$_tankorAdat['tankorId'].'"
+ data-targyid="'.$_tankorAdat['targyId'].'"
+ data-tanardb="'.count($_tankorAdat['tanarIds']).'"
+ data-oraszam="'.number_format($_tankorAdat['hetiOraszam'],2,',','').'"
+ title="tankör óraszam: '.$_tankorAdat['tervezettOraszamok'][1]['tszOraszam'].', '.$_tankorAdat['tervezettOraszamok'][2]['tszOraszam']."\n"
+ .'bontás óraszam: '.$_tankorAdat['tervezettOraszamok'][1]['btOraszam'].', '.$_tankorAdat['tervezettOraszamok'][2]['btOraszam'].'"
+ >';
+ echo str_replace($ADAT['targyAdat'][$_tankorAdat['targyId']]['targyNev'].' ','',$_tankorAdat['tankorNev']);
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ for ($i=0; $i<count($TANAROK); $i++) { $_tanarAdat = $TANAROK[$i];
+ if ($i==0) $class='first tanar';
+ else $class='tanar';
+ foreach ($_tanarAdat['targyIds'] as $_targyId) $class .= ' targy'.$_targyId;
+ echo '<tr class="'.$class.'">';
+ echo '<th id="row_'.$_tanarAdat['tanarId'].'" data-tanarid="'.$_tanarAdat['tanarId'].'" class="tanarNev">';
+ echo $_tanarAdat['tanarNev'];
+ echo '('.$_tanarAdat['tanarId'].')'; // DEBUG TODO, legyen inkább a beépülő jobb sáv
+ echo '</th>';
+ echo '<td class="lekotott">';
+ echo '<span class="lekotott">'.number_format($_tanarAdat['lekotottOraszam'],2,',','').'</span>/';
+ echo '<span class="kotelezo">'.number_format($_tanarAdat['hetiKotelezoOraszam'],1,',','').'</span>';
+ echo '</td>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $TANKORSOR) {
+ for ($j=0; $j<count($TANKORSOR); $j++) {
+ $_tankorAdat = $TANKORSOR[$j];
+ if ($first) { $class='first tantan'; $first=false; }
+ else { $class='tantan'; }
+ $class .= ' col-'.$_tankorAdat['tankorId'].' row-'.$_tanarAdat['tanarId'];
+ if (in_array($_tankorAdat['targyId'], $_tanarAdat['targyIds'])) {
+ echo '<td id="cell_'.$_tanarAdat['tanarId'].'_'.$_tankorAdat['tankorId'].'" class="'.$class.'">';
+ $_CHK = in_array($_tanarAdat['tanarId'],$_tankorAdat['tanarIds']) ? 'checked="checked" ':'';
+ echo '<input type="checkbox" class="chkTT" name="tanarTankor[]" value="'.$_tanarAdat['tanarId'].'_'.$_tankorAdat['tankorId'].'" '.$_CHK.'/>';
+ echo '</td>';
+ } else {
+ echo '<td class="disable '. $class.'"></td>';
+ }
+ }}
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ echo '</div>'."\n";
+ formEnd();
+ }
+
+ function _inarray($tanarId,$tankorTanar) {
+ for ($i=0;$i<count($tankorTanar);$i++) {
+ if ($tankorTanar[$i]['tanarId']== $tanarId) return true;
+ }
+ return false;
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/terem.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/terem.phtml
new file mode 100644
index 00000000..68c826f9
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/terem.phtml
@@ -0,0 +1,101 @@
+<?php
+
+ function putTeremLista($ADAT) {
+
+ echo '<div class="terem">'."\n";
+
+ echo '<table cellpassing="1" cellspacing="1">'."\n";
+
+ echo '<thead><tr>';
+ echo '<th>'._TEREMID.'</th>';
+ echo '<th>'._LEIRAS.'</th>';
+ echo '<th>'._FEROHELY.'</th>';
+ echo '<th>'._TIPUS.'</th>';
+ echo '<th>'._TELEPHELY.'</th>';
+ echo '<th>'.'</th>';
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><tr>';
+ echo '<td colspan="6">';
+ echo '</td>';
+ echo '</tr></tfoot>'."\n";
+ echo '<tbody>';
+ foreach ($ADAT['teremAdat'] as $teremId => $tAdat) {
+ echo '<tr>';
+ echo '<td>'.$tAdat['teremId'].'</td>';
+ echo '<td><a href="'.href('index.php?page=naplo&sub=intezmeny&f=terem&teremId='.$tAdat['teremId'].'&telephelyId='.$ADAT['telephelyId']).'">';
+ echo '<span class="icon-pencil-alt" style="color:#aaa;"></span> ';
+ echo $tAdat['leiras'];
+ echo '</a></td>';
+ echo '<td>'.$tAdat['ferohely'].'</td>';
+ echo '<td>'.$tAdat['tipus'].'</td>';
+ echo '<td>'.$ADAT['telephelyAdat'][ $tAdat['telephelyId'] ]['telephelyRovidNev'].'</td>';
+ echo '<td>'.$tAdat['teremAllapot'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ echo '</div>'."\n";
+
+ }
+
+ function putTeremForm($ADAT) {
+
+ $tAdat = $ADAT['teremAdat'][ $ADAT['teremId'] ];
+
+ formBegin(array('class'=>'terem','action'=>href('index.php?page=naplo&sub=intezmeny&f=terem')));
+
+ if ($ADAT['teremId']=='') {
+ echo '<input type="hidden" name="action" value="ujTerem" />'."\n";
+ echo '<input type="hidden" name="teremId" value="" />'."\n";
+ echo '<h1>'._UJ_TEREM.'</h1>';
+ } else {
+ echo '<input type="hidden" name="action" value="teremAdatModositas" />'."\n";
+ echo '<input type="hidden" name="teremId" value="'.$ADAT['teremId'].'" />'."\n";
+ echo '<h1>'.$tAdat['leiras'].'</h1>';
+ }
+
+
+ echo '<div class="tipus">'."\n";
+ echo '<label for="tipus">'._TIPUS.'</label>'."\n";
+ echo '<select name="tipus" id="tipus" >'."\n";
+ $tipusok = explode(',', $tAdat['tipus']);
+ foreach ($tipusok as $tipus) $SEL[$tipus] = ' selected="selected" ';
+ foreach ($ADAT['teremTipusok'] as $tipus) echo '<option value="'.$tipus.'"'.$SEL[$tipus].'>'.$tipus.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</div>'."\n";
+
+ echo '<div style="background-color: #eeeeee; text-align:left;">';
+
+ echo '<label for="teremId">'._TEREMID.'</label>'."\n";
+ echo '<span id="teremId">'.$ADAT['teremId'].'</span><br />';
+
+ echo '<label for="leiras">'._LEIRAS.'</label>'."\n";
+ echo '<input type="text" size="64" name="leiras" id="leiras" value="'.$tAdat['leiras'].'" /><br />'."\n";
+
+ echo '<label for="ferohely">'._FEROHELY.'</label>'."\n";
+ echo '<select name="ferohely" id="ferohely">'."\n";
+ $SEL = array($tAdat['ferohely'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 1; $i<1001; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select><br />'."\n";
+
+ echo '<label for="telephely">'._TELEPHELY.'</label>'."\n";
+ echo '<select name="telephelyId" id="telephely">'."\n";
+ $SEL = array($tAdat['telephelyId'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['telephelyAdat'] as $telephelyId => $tAdat) {
+ echo '<option style="color: black" value="'.$telephelyId.'"'.$SEL[$telephelyId].'>'.$ADAT['telephelyAdat'][$telephelyId]['telephelyRovidNev'].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '</div>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml
new file mode 100644
index 00000000..cafddee2
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml
@@ -0,0 +1,479 @@
+<?php
+
+ putTovabbkepzesNavi();
+ function putTovabbkepzesNavi() {
+
+ echo '<div id="tovabbkepzesNavi">';
+
+ echo '<button type="button" data-nav="" class="icon-repeat-alt">'.'</button>';
+ echo '<button type="button" data-nav="tovabbkepzesTerv">'._TOVABBKEPZES_TERV.'</button>';
+ echo '<button type="button" data-nav="tanarTovabbkepzesek">'._TANAROK_TOVABBKEPZESEI.'</button>';
+ echo '<button type="button" data-nav="tanarTovabbkepzesForduloDt">'._TANAR.'</button>';
+ echo '<button type="button" data-nav="ujTovabbkepzes">'._TOVABBKEPZESEK.'</button>';
+
+ echo '</div>';
+
+ }
+
+ function putTovabbkepzesTerv($ADAT) {
+
+ if (count($ADAT['lehetsegesTovabbkepzesek'])==0) return false;
+
+ $TOVABBKEPZESEK = reindex($ADAT['tovabbkepzesek'],array('tovabbkepzesId'));
+ $TANAROK = reindex($ADAT['tanarok'],array('tanarId'));
+ $TE_STATUSZ = array('','terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített');
+ $TE_STATUSZ_INDIKATOR = array(
+ '' =>'<span class="icon-pause-alt" style="color:#777;"></span>',
+ 'terv' => '<span class="icon-ok-circle" style="color:cornflowerblue"></span>',
+ 'jóváhagyott' => '<span class="icon-ok-sign" style="color:green"></span>',
+ 'elutasított' => '<span class="icon-minus-sign" style="color:red"></span>',
+ 'megszakadt' => '<span class="icon-remove-sign" style="color:black"></span>',
+ 'megszűnt' => '<span class="icon-remove-sign" style="color:black"></span>',
+ 'teljesített' => '<span class="icon-star-alt" style="color:orange"></span>');
+
+ $TE = reindex($ADAT['tovabbkepzesTerv'],array('tovabbkepzesId','tanarId','tanev'));
+ formBegin(array('id'=>'tovabbkepzesTerv'));
+ echo '<h1>';
+ echo _TOVABBKEPZES_TERV.' – '.$ADAT['tanev'];
+ if (__TANAR) echo ' – '._USERCN;
+ if (__NAPLOADMIN || __VEZETOSEG || __TITKARSAG) echo ' – <a href="'.href('index.php?page=naplo&sub=nyomtatas&f=beiskolazasiTerv&tanev='.$ADAT['tanev']).'" class="icon-print" style="color:black"></a>';
+ echo '</h1>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzesTE" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ // Így is lehet, de inkább listázzuk ki az összes lehetséges továbbképzést
+ /*
+ echo '<select name="ujTovabbkepzesTanar">';
+ for ($i=0;$i<count($ADAT['lehetsegesTovabbkepzesek']); $i++) {
+ $_D = $ADAT['lehetsegesTovabbkepzesek'][$i];
+ echo '<option value="'.$_D['tovabbkepzesId'].'_'.$_D['tanarId'].'">'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].' '.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ */
+ echo '<table align="center" id="tovabbkepzesTerv" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="3">'._TOVABBKEPZES.'</th>';
+ echo '<th>'._TOVABBKEPZES_FORDULO_DT.'</th>';
+ echo '<th>'._RESZOSSZEG.'</th>';
+ echo '<th>'._TAMOGATAS.'</th>';
+ echo '<th>'._MEGJEGYZES.'</th>';
+ echo '<th colspan="2">'._STATUSZ.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ if (__MODOSITHAT) {
+ echo '<tfoot>';
+ echo '<tr><th colspan="4">'._TAMOGATASI_KERET.': <input type="text" class="currency" id="keretOsszeg" name="keretOsszeg" value="'.intval($ADAT['keretOsszeg']).'" /> Ft.-</th>';
+ echo '<td class="osszeg"><input type="text" class="sumCurrency" id="sumOsszeg_ok" disabled="disabled" value="0" /> Ft.-</td>';
+ echo '<td class="osszeg"><input type="text" class="sumCurrency" id="sumTamogatas_ok" disabled="disabled" value="0" /> Ft.-</td>';
+ echo '<th colspan="1" id="tamogatasInfo"></th>';
+ echo '<th colspan="2"><input type="submit" value="OK" /></th>';
+ echo '</th></tr></tfoot>';
+ }
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['lehetsegesTovabbkepzesek']); $i++) {
+ $_D = $ADAT['lehetsegesTovabbkepzesek'][$i];
+ $_D_TE = $TE[$_D['tovabbkepzesId']][$_D['tanarId']][$ADAT['tanev']][0];
+ $_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'].'_'.$ADAT['tanev'];
+ $_readOnly = (isset($_D_TE) && !in_array($_D_TE['tovabbkepzesStatusz'],array('terv'))) ? 'readonly="readonly"' : '';
+ if (!__MODOSITHAT && (!(__TANAR && $_D['tanarId']==__USERTANARID))) continue;;
+ echo '<tr class="tovabbkepzesTESor '.$_D_TE['tovabbkepzesStatusz'].'"
+ data-reszosszeg="'.$_D_TE['reszosszeg'].'"
+ data-tamogatas="'.$_D_TE['tamogatas'].'"
+ data-tanarnev="'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'"
+ >';
+ echo '<th>';
+ echo '<input type="hidden" name="TE[]" value="'.$_kulcs.'" />';
+ echo $TE_STATUSZ_INDIKATOR[$_D_TE["tovabbkepzesStatusz"]];
+ echo '</th>';
+ echo '<td>';
+ echo $TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].' ';
+ echo '</td>';
+ echo '<td data-tanarid='.$_D['tanarId'].' class="tanarNev">'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</td>';
+
+ echo '<td>';
+ echo $TANAROK[$_D['tanarId']][0]['tovabbkepzesForduloDt'];
+ echo '</td>';
+
+ echo '<td class="osszeg">';
+ echo '<input type="text" '.$_readOnly.' class="currency" id="reszosszeg_'.$_kulcs.'" name="reszosszeg_'.$_kulcs.'" value="'.intval($_D_TE['reszosszeg']).'" data-inputtype="reszosszeg" data-kulcs="'.$_kulcs.'" data-tovabbkepzesstatusz="'.$_D_TE['tovabbkepzesStatusz'].'" /> Ft.-';
+ echo '</td>';
+ echo '<td class="osszeg">';
+ echo '<input type="text" '.$_readOnly.' class="currency" id="tamogatas_'.$_kulcs.'" name="tamogatas_'.$_kulcs.'" value="'.intval($_D_TE['tamogatas']).'" data-inputtype="tamogatas" data-kulcs="'.$_kulcs.'" data-tovabbkepzesstatusz="'.$_D_TE['tovabbkepzesStatusz'].'" /> Ft.-';
+ echo '</td>';
+ /* más kontrollok is elképzelhetők, pl input gombok
+ echo '<td>';
+ echo '<input type="submit" name="terv_'.$_kulcs.'" value="tervbe vesz" />';
+ echo '<input type="submit" name="jovahagy_'.$_kulcs.'" value="jóváhagy" />';
+ echo '<input type="submit" name="elutasit_'.$_kulcs.'" value="elutasít" />';
+ echo '<input type="submit" name="megszuntet_'.$_kulcs.'" value="megszűntet" />';
+ echo '</td>';
+ */
+ echo '<td style="text-align:center;">';
+ echo '<span style="cursor:zoom-in; padding:0px 30px;" class="tovabbkepzesMegjegyzes icon-list-alt" data-kulcs="'.$_kulcs.'" data-tovabbkepzesid="'.$_D['tovabbkepzesId'].'" data-tanarid="'.$_D['tanarId'].'" data-tanev="'.$ADAT['tanev'].'" ></span>';
+ echo '<div id="tovabbkepzesMegjegyzes_'.$_kulcs.'" style="display:none">';
+ echo '<table>';
+ echo '<tr><th>'._TAVOLLET.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="tavollet_'.$_kulcs.'">'.$_D_TE['tavollet'].'</textarea></td></tr>';
+ echo '<tr><th>'._HELYETTESITES_RENDJE.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="helyettesitesRendje_'.$_kulcs.'" />'.$_D_TE['helyettesitesRendje'].'</textarea></td></tr>';
+ echo '<tr><th>'._PRIORITAS.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="prioritas_'.$_kulcs.'">'.$_D_TE['prioritas'].'</textarea></td></tr>';
+ echo '</table>';
+ echo '</div>';
+ echo '</td>';
+ echo '<td>';
+ if (__MODOSITHAT===true) {
+ echo '<select name="TE_statusz_'.$_kulcs.'">';
+ for ($j=0; $j<count($TE_STATUSZ); $j++) {
+ $_SEL = ($TE_STATUSZ[$j]==$_D_TE['tovabbkepzesStatusz']) ? 'selected="selected"':'';
+ echo '<option name="'.$TE_STATUSZ[$j].'" '.$_SEL.'>'.$TE_STATUSZ[$j].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $_D_TE['tovabbkepzesStatusz'];
+ }
+ echo '</td>';
+ echo '<th style="background-color:#888;">';
+ //$_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'].'_'.$ADAT['tanev'];
+ echo '<a href="'.href('index.php?page=naplo&sub=nyomtatas&f=tovabbkepzesHatarozat&tanarId='.$_D['tanarId'].'&tanev='.$ADAT['tanev'].'&tovabbkepzesId='.$_D['tovabbkepzesId']).'" class="icon-print" style="color:white;"></a>';
+ echo '</th>';
+
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>';
+ // extra: jovahagyasDt, teljesitesDt
+
+ if (count($ADAT['lehetsegesTovabbkepzesek'])>0) {
+ echo '<div id="grafikonTamogatas" style="width: 300px; height: 300px; display:table-cell"></div>';
+ echo '<div id="grafikonOsszegEloszlas" style="width: 550px; height: 300px; display:table-cell"></div>';
+ echo '<div style="clear:both"></div>';
+ }
+
+ formEnd();
+
+ }
+
+ function putTanarokTovabbkepzesAdatai($ADAT) {
+
+// $tovabbkepzesStatusz = array('terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített');
+ $tovabbkepzesStatusz = array('teljesített','jóváhagyott','terv');
+
+ formBegin(array('id'=>'tanarTovabbkepzesForduloDt'));
+ echo '<input type="hidden" name="action" value="modTanarTovabbkepzesForduloDt" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<table align="center" id="tanarAdatok" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="1">';
+ _inlineHelp('A teljesített, jóváhagyott és tervezett továbbképzések összegét a státuszaiknak megfelelő színnel jelezzük az aktuális hét éves ciklusban. A nem akkreditált képzésnél maximum 30 órát számítunk!');
+ echo '</th>';
+ echo '<th colspan="3">'._TANAR.' ';
+ _inlineHelp('A táblázatban a tanárokra vonatkozó státuszok olvashatók. Ha egy tanár továbbképzés forduló dátuma a következő két évben várható és nem éri el a 120 órányi továbbképzést, figyelmeztető felkiáltó jellel jelezzük.');
+ echo '</th>';
+ echo '<th>'._HETI_KOTELEZO_ORASZAM.'</th>';
+ echo '<th>'._HETI_MUNKAORA.'</th>';
+ echo '<th>'._STATUSZ.'</th>';
+ echo '<th>';
+ _inlineHelp('A hétéves ciklus végének számít.');
+ echo ' '._TOVABBKEPZES_FORDULO_DT.' ';
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="8"><input type="submit" value="OK" /></th>';
+ echo '</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ $_TTC = $ADAT['tanarTovabbkepzesCiklus'][$_D['tanarId']];
+ $_forduloEv = date('Y',strtotime($_D['tovabbkepzesForduloDt']));
+ $_timeframeAlert = ($_forduloEv<=date('Y')+2);
+ $_evdiff = ($_forduloEv-date('Y'));
+ $_sum = 0;
+ $_class = ($_timeframeAlert) ? 'alert':'';
+ echo '<tr>';
+ echo '<th class="tovabbkepzesCiklus '.$_class.'" ';
+ foreach($tovabbkepzesStatusz as $_status) {
+ echo 'data-'.$_status.'="'.$_TTC[$_status][0]['sumOraszam'].'" ';
+ }
+ echo '>';
+ echo '<div>';
+ foreach($tovabbkepzesStatusz as $_status) {
+ if (($_c = intval($_TTC[$_status][0]['sumOraszam']))>0)
+ echo '<span title="'.$_status.'" class="'.ekezettelen($_status).'" style="width:'.$_c.'px">'.$_c.'</span>';
+ $_sum += $_c;
+ }
+ echo '</div>';
+ echo '<span class="forduloEv left">'.($_forduloEv-8).'/'.($_forduloEv-7).'</span>';
+ echo '<span class="forduloEv right">'.($_forduloEv-1).'/'.($_forduloEv).'</span>';
+ echo '</th>';
+ echo '<th>';
+ if ($_timeframeAlert) {
+ if ($_sum<120) {
+ if ($_evdiff>=0) $_class='alert'.$_evdiff;
+ else $_class='alert';
+ echo '<span class="icon-warning-sign '.$_class.'"></span>';
+ } else {
+ echo '<span class="icon-ok kesz"></span>';
+ }
+ } else {
+ if (is_array($ADAT['tovabbkepzesFolyamat'][$_D['tanarId']]))
+ echo '<span class="icon-play folyamatban"></span>';
+ else
+ echo '<span class="icon-pause varakozik"></span>';
+ }
+ echo '</th>';
+ echo '<td class="oraszam">';
+ echo $_sum;
+ echo '</td>';
+ echo '<td class="tanarNev" data-tanarid="'.$_D['tanarId'].'">'.$_D['tanarNev'].'</td>';
+ echo '<td class="oraszam">'.$_D['hetiKotelezoOraszam'].'</td>';
+ echo '<td class="oraszam">'.$_D['hetiMunkaora'].'</td>';
+ echo '<td>'.$_D['statusz'].'</td>';
+ echo '<td>';
+ echo '<select "tovabbkepzesForduloDt_'.$_D['tanarId'].'" data-tanarid="'.$_D['tanarId'].'" >';
+ echo '<option value=""></option>';
+ for ($y=1990;$y<=2030;$y++) {
+ $_SEL = ($y==date('Y',strtotime($_D['tovabbkepzesForduloDt']))) ? ' selected="selected" ':'';
+ echo '<option value="'.$y.'-08-31" '.$_SEL.'>'.$y.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="text" class="datum" name="tovabbkepzesForduloDtTXT_'.$_D['tanarId'].'" value="'.$_D['tovabbkepzesForduloDt'].'" data-tanarid="'.$_D['tanarId'].'" readonly="readonly" />';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+ function putTovabbkepzesek($ADAT) {
+ /* tovabbkepzesTanar:
+ `tovabbkepzesId` smallint(5) unsigned NOT NULL,
+ `tanarId` int(10) unsigned NOT NULL,
+ `tolDt` date NOT NULL,
+ `igDt` date DEFAULT NULL,
+ `tanusitvanyDt` date DEFAULT NULL,
+ `tanusitvanySzam` varchar(255) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ */
+ if (count($ADAT['tovabbkepzesek'])==0) return false;
+
+ $TOVABBKEPZESEK = reindex($ADAT['tovabbkepzesek'],array('tovabbkepzesId'));
+ $TANAROK = reindex($ADAT['tanarok'],array('tanarId'));
+
+
+ /* Listázzuk a továbbképzések hozzárendelését egy tanárhoz, illetve új hozzárendelést is tehessünk */
+
+ formBegin(array('id'=>'tanarTovabbkepzesek'));
+ echo '<h1>'._TANAROK_TOVABBKEPZESEI.'</h1>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzesTanar" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ // legyen itt egy táblázat
+ echo '<table class="tovabbkepzes" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'.'</th>';
+ echo '<th>'._TANAR.'</th>';
+ echo '<th colspan="2">'._TOVABBKEPZES.'</th>';
+ echo '<th>'._TOLDT.'</th>';
+ echo '<th>'._IGDT.'</th>';
+ echo '<th>'._TANUSITVANYDT.'</th>';
+ echo '<th>'._TANUSITVANYSZAM.'</th>';
+ echo '<th>'.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ if (__MODOSITHAT) { // a táblázat első sora egy inputokból álló sor
+ echo '<tfoot>';
+ echo '<tr><th colspan="10">';
+ echo '<input type="submit" value="OK" />';
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th><span class="icon-pencil-alt"></span></th>';
+ echo '<td>';
+ echo '<select style="width:120px" name="tanarId">';
+ echo '<option value=""></option>';
+ for ($i=0;$i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ echo '<option value="'.$_D['tanarId'].'">'.$_D['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td colspan="2">';
+ echo '<select name="tovabbkepzesId" class="tovabbkepzesNev">';
+ echo '<option value=""></option>';
+ for ($i=0;$i<count($ADAT['tovabbkepzesek']); $i++) {
+ $_D = $ADAT['tovabbkepzesek'][$i];
+ echo '<option value="'.$_D['tovabbkepzesId'].'">'.$_D['tovabbkepzesNev'].' '.$_D['oraszam'].'ó</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td><input type="text" class="datum date" name="tolDt" /></td>';
+ echo '<td><input type="text" class="datum date" name="igDt" /></td>';
+ echo '<td><!--<input type="text" class="datum date" name="tanusitvanyDt" />--></td>';
+ echo '<td><!--<input type="text" class="" name="tanusitvanySzam" />--></td>';
+ echo '<th><input type="submit" value="+" /></th>';
+ echo '</tr>';
+ echo '</tbody>';
+ } // módosíthat
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['tovabbkepzesTanar']);$i++) {
+ $_D = $ADAT['tovabbkepzesTanar'][$i];
+ $_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'];
+ $_readonly = ($_D['tanusitvanyDt']!='0000-00-00' && $_D['tanusitvanyDt']!='') ? ' readonly="readonly" ':'';
+ echo '<tr class="tovabbkepzesTanarSor"
+ data-oraszam="'.intval($TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['oraszam']).'"
+ data-tanarnev="'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'"
+ data-toldt="'.$_D['tolDt'].'"
+ data-igdt="'.$_D['igDt'].'">';
+ echo '<td>';
+ echo $_D['tovabbkepzesId'];
+ echo '<input type="hidden" name="tovabbkepzesTanar[]" value="'.$_kulcs.'" />';
+ echo '</td>';
+ echo '<td class="tanarNev" data-tanarid="'.$_D['tanarId'].'" >'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</td>';
+ echo '<td>'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].'</td>';
+ echo '<td style="text-align:right;">'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['oraszam'].'</td>';
+ echo '<td><input type="text" class="date" '.$_readonly.' name="tolDt_'.$_kulcs.'" value="'.$_D['tolDt'].'" /></td>';
+ echo '<td><input type="text" class="date" '.$_readonly.' name="igDt_'.$_kulcs.'" value="'.$_D['igDt'].'" /></td>';
+ echo '<td><input type="text" class="date" name="tanusitvanyDt_'.$_kulcs.'" value="'.$_D['tanusitvanyDt'].'" /></td>';
+ echo '<td><input type="text" class="" name="tanusitvanySzam_'.$_kulcs.'" value="'.$_D['tanusitvanySzam'].'" /></td>';
+ echo '<th>';
+ if (__MODOSITHAT) echo '<input type="submit" class="" name="tovabbkepzesTorles_'.$_kulcs.'" value="-" />';
+ echo '</th>';
+ echo '</tr>';
+ if ($_D['tolDt']!='0000-00-00' && $_D['tolDt']!='') $dbSor++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ if (($dbSor)>0) { // esettleg darabszám alapjn növelhetjük a méretet
+ if ($dbSor<20) $_height=40*$dbSor + 70;
+ else $_height = 600;
+ echo "<div id=\"timeline\" style=\"height: ".$_height."px; width:95%; margin:40px;\"></div>";
+ }
+ //echo '<div class="separator"></div>';
+ formEnd();
+
+ }
+
+ function putUjTovabbkepzes($ADAT) {
+
+ $KAT = array('diploma','szakvizsga','akkreditált','egyéb');
+
+ echo '<div id="ujTovabbkepzes">';
+ echo '<h1>'._TOVABBKEPZESEK.'</h1>';
+
+ formBegin();
+ echo '<h2>'._UJ_TOVABBKEPZES.'</h2>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzes" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+
+ echo '<table>';
+
+ echo '<tfoot><tr>';
+ echo '<th colspan="2">'.'<input type="submit" value="OK" /></th>';
+ echo '</tr></tfoot>';
+
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th>';
+ echo _INTEZMENY;
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="tovabbkepzoIntezmenyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['tovabbkepzoIntezmenyek']); $i++) {
+ $_D = $ADAT['tovabbkepzoIntezmenyek'][$i];
+ echo '<option value="'.$_D['tovabbkepzoIntezmenyId'].'">'.$_D['intezmenyRovidNev'].'-'.$_D['intezmenyNev'].'</option>';
+ }
+ echo '</select> ';
+ //_inlineHelp(_TOVABBPEZOINTEZMENY_HELP);
+ echo ' <span class="icon-plus-sign ujIntezmeny"></span>';
+// _inlineHelp(_TOVABBPEZOINTEZMENY_HELP);
+
+ echo '</td></tr>';
+ echo '<tr>';
+ echo '<th>'._TOVABBKEPZES_NEV.'</th>';
+ echo '<td><input type="text" name="tovabbkepzesNev" style="width:350px;"/></td>';
+
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._ORASZAM.'</th>';
+ echo '<td>'.'<input type="text" name="oraszam" /></td>';
+
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._AKKREDITALT.'</th>';
+ echo '<td>';
+ // '<input type="checkbox" name="akkreditalt" value="1" />';
+ echo '<select name="kategoria_'.$_kulcs.'">';
+ for ($j=0;$j<count($KAT); $j++) {
+ echo '<option value="'.$KAT[$j].'">'.$KAT[$j].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+
+ if (count($ADAT['tovabbkepzesek'])>0) {
+
+ formBegin(array('id'=>'tovabbkepzesek'));
+ echo '<h2>'._FELVETT_TOVABBKEPZESEK.'</h2>';
+ echo '<input type="hidden" name="action" value="modTovabbkepzes" />';
+ echo '<table align="center" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead><tr>';
+ echo '<th>'._TOVABBKEPZES_NEV.'</th>';
+ echo '<th>'._ORASZAM.'</th>';
+ echo '<th>'._AKKREDITALT.'</th>';
+ echo '<th>'._INTEZMENY.'</th>';
+ echo '<th></th>';
+ echo '</tr></thead>';
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['tovabbkepzesek']); $i++) {
+ $_D = $ADAT['tovabbkepzesek'][$i];
+ $_kulcs = $_D['tovabbkepzesId'];
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="hidden" name="tovabbkepzesId[]" value="'.$_D['tovabbkepzesId'].'" />';
+ echo '<input style="width:100%" type="text" name="tovabbkepzesNev_'.$_kulcs.'" value="'.$_D['tovabbkepzesNev'].'"/>';
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo '<input type="text" name="oraszam_'.$_kulcs.'" value="'.$_D['oraszam'].'" / > óra';
+ echo '</td>';
+ echo '<td>';
+ //echo '<input type="checkbox" name="akkreditalt_'.$_kulcs'" value="" /> ';
+ echo '<select name="kategoria_'.$_kulcs.'">';
+ for ($j=0;$j<count($KAT); $j++) {
+ $_SEL = ($KAT[$j]==$_D['kategoria']) ? ' selected="selected" ':'';
+ echo '<option name="'.$KAT[$j].'" '.$_SEL.'>'.$KAT[$j].'</option>';
+ }
+ echo '</select>';
+ if ($_D['akkreditalt']==1) echo ' '._AKKREDITALT;
+ echo '</td>';
+ echo '<td>';
+ echo $_D['intezmenyRovidNev'];
+ echo ' ('.$_D['tovabbkepzoIntezmenyId'].')';
+ echo '</td>';
+
+ echo '<td>';
+ echo '<input type="submit" value="OK" />';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+ }
+
+ echo '</div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml
new file mode 100644
index 00000000..75e6f446
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml
@@ -0,0 +1,85 @@
+<?php
+
+function putTanarLista($ADAT) {
+
+ echo '<table class="tanarLista" align="center" cellpadding="1" cellspacing="1">';
+ echo '<tr>';
+ for($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $T = $ADAT['tanarok'][$i];
+ echo '<td>';
+ putFace($T['tanarId'],'tanar',30);
+ echo '</td><td>';
+ echo '<span class="tanarNev" data-tanarid="'.$T['tanarId'].'">'.$T['tanarNev'].'</span>';
+ if ($T['titulus']!='') echo '<div class="titulus">'.$T['titulus'].'</div>';
+ $osztalyai = ($ADAT['tanarOsztaly'][$T['tanarId']]);
+ for ($j=0; $j<count($osztalyai); $j++) {
+ $_osztalyId = $osztalyai[$j];
+ echo '<br/><div class="osztalyfonok" style="color:#aaa; font-size:smaller">osztályfőnök '.$ADAT['osztalyok'][$_osztalyId]['osztalyJel'];
+ echo ' ('.$ADAT['osztalyok'][$_osztalyId]['leiras'].')</div>';
+ }
+ $munkakozossegei = ($ADAT['tanarMunkakozosseg'][$T['tanarId']]); // vezetett
+ for ($j=0; $j<count($munkakozossegei); $j++) {
+ $_mkId = $munkakozossegei[$j];
+ echo '<div class="munkakozossegVezeto" style="color:#aaa; font-size:smaller">';
+ echo $munkakozossegei[$j]['munkakozossegNev']. ' munkaközösség-vezető';
+ echo '</div>';
+ }
+ echo '</td>';
+ if (($i+1) % 3 == 0 && $i!=count($ADAT['tanarok'])-1) echo '</tr><tr>';
+ }
+ echo '</tr>';
+ echo '</table>';
+}
+
+/*
+function putIntezmenyValaszto($Intezmenyek) {
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="intezmenyValasztas" />'."\n";
+
+ echo '<select name="intezmeny">'."\n";
+ $SEL = array(__INTEZMENY => ' selected="selected"');
+
+ for ($i = 0; $i < count($Intezmenyek); $i++) {
+
+ $rovidnev = $Intezmenyek[$i]['rovidNev'];
+ if ($Intezmenyek[$i]['alapertelmezett'] == 1)
+ echo '<option value="'.$rovidnev.'" class="default"'.$SEL[$rovidnev].'>';
+ else
+ echo '<option value="'.$rovidnev.'"'.$SEL[$rovidnev].'>';
+
+ echo $Intezmenyek[$i]['nev'].' ('.$Intezmenyek[$i]['OMKod'].')';
+ echo '</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putTanevValaszto($Tanevek) {
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="tanevValasztas" />'."\n";
+
+ echo '<select name="tanev">'."\n";
+ $SEL = array(__TANEV => ' selected="selected"');
+ for ($i = 0; $i < count($Tanevek); $i++) {
+ echo '<option value="'.$Tanevek[$i].'"'.$SEL[$Tanevek[$i]].'>';
+ echo $Tanevek[$i];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+}
+*/
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml
new file mode 100644
index 00000000..2dcd0d84
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml
@@ -0,0 +1,41 @@
+<?php
+
+function putVersenyek() {
+
+ echo '<h1>'._VERSENYEK.'</h1>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="no-action" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putUjVerseny($ADAT) {
+
+ formBegin();
+
+ echo _TARGY;
+ echo '<select name="targyId">';
+
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT); $i++) {
+ $targyId = $ADAT[$i]['targyId'];
+ $targyNev = $ADAT[$i]['targyNev'];
+ echo '<option value="'.$targyId.'">'.$targyNev.'</option>';
+ }
+
+ echo '</select>';
+
+ echo _VERSENYNEV;
+ echo '<input type="text" name="versenyNev" />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml
new file mode 100644
index 00000000..9382738e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml
@@ -0,0 +1,78 @@
+<?php
+
+ function putZaradekForm($ADAT) {
+ formBegin(array('class'=>'zaradek'));
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="zaradekIndex" value="'.$ADAT['zaradekIndex'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="zaradekRogzites" />'."\n";
+
+ $tmp = explode('%', $ADAT['zaradek']['szoveg']);
+ $szoveg = '<p>';
+ for ($i = 0; $i < count($tmp); $i++) {
+ if ($i % 2 == 0) {
+ $szoveg .= $tmp[$i];
+ } else {
+ $szoveg .= '<span id="param'.intval(($i+1)/2).'span">'.$tmp[$i].'</span>';
+ }
+ }
+ $szoveg .= '</p>';
+
+ echo $szoveg;
+ echo '<table>';
+ for ($i = 0; $i < count($ADAT['params']); $i++) {
+ echo '<tr>';
+ echo '<th><label for="param'.$i.'">'.$ADAT['params'][$i].'</label></th>'."\n";
+ echo '<td><input type="text" name="values[]" value="" id="param'.($i+1).'" class="onChangeReplaceSpan" /></td>'."\n";
+ echo '</tr>';
+ }
+ echo '<tr><th>'._IKTATOSZAM.'</th><td>';
+ echo '<input type="text" name="iktatoszam" />';
+ echo '</td></tr>';
+ echo '</table>';
+
+ echo '<div><input type="submit" value="'._OK.'" /></div>'."\n";
+
+ formEnd();
+ }
+
+ function putDiakZaradekok($ADAT) {
+
+ formBegin(array('class'=>'diakZaradek'));
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="action" value="zaradekTorles" />';
+ echo '<table>'."\n";
+
+ echo '<thead><tr>';
+ echo '<th>'._DATUM.'</th>';
+ echo '<th>'._SORSZAM.'</th>';
+ echo '<th>'._SZOVEG.'</th>';
+ echo '<th colspan="2">'._DOKUMENTUM.'</th>';
+ echo '</tr></thead>'."\n";
+ echo '<tfoot></tfoot>'."\n";
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['diakZaradekok']); $i++) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['dt'].'</td>';
+ echo '<td class="jobbra">'.$ADAT['diakZaradekok'][$i]['sorszam'].'</td>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['szoveg'].'</td>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['dokumentum'].'</td>';
+
+ echo '<td>';
+ if (__NAPLOADMIN) {
+ echo '<input class="confirm delZaradek" title="BIZTOS_TOROL_E" type="submit" value="X" name="del-'.$ADAT['diakZaradekok'][$i]['zaradekId'].'" />';
+ }
+ echo '</td>';
+
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml
new file mode 100644
index 00000000..b1483200
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml
@@ -0,0 +1,246 @@
+<?php
+
+ function putUjKosziEsemeny($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Új esemény</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziEsemeny">';
+
+ echo _TIPUS;
+ echo '<select name="kosziEsemenyTipus">';
+ for ($i=0; $i<count($ADAT['kosziEsemenyTipusok']); $i++) {
+ $K = $ADAT['kosziEsemenyTipusok'][$i];
+ echo '<option value="'.$K.'">'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+
+
+ echo '<br/>';
+ echo _NEV;
+ echo '<input type="text" name="kosziEsemenyNev" />';
+
+
+ echo '<br/>';
+ echo _LEIRAS;
+ echo '<input type="text" name="kosziEsemenyLeiras" size="88"/>';
+
+
+
+// echo _INTERVALLUM (igen/nem);
+
+ echo '<input type="submit" value="felvesz" />';
+
+ formEnd();
+ echo '</fieldset>'."\n";
+
+ }
+
+ function putKosziEsemenyek($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi esemény minták</legend>';
+
+ formBegin();
+
+ echo '<select name="kosziEsemenyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['kosziEsemenyek']); $i++) {
+ $K = $ADAT['kosziEsemenyek'][$i];
+ $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziEsemenyId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K['kosziEsemenyId'].'" '.$_SEL.'>'.$K['kosziEsemenyNev'].' ('.$K['kosziEsemenyLeiras'].')</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="submit" value="adatok »" />';
+
+ formEnd();
+ echo '</fieldset>';
+ }
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>'._UJ_ESEMENY.'</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi" style="width:100%">';
+ echo '<tr><th>'._DATUM.'</th><th>'._JELENTKEZES.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" value="" name="dt" class="date" />';
+ echo '<br/>Félév:<select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select>';
+
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="text" value="" name="tolDt" class="datetime" />-';
+ echo '<input type="text" value="" name="igDt" class="datetime" />';
+ echo '</td>';
+
+ echo '<td>';
+ // típus, aki igazolhat: diák osztályfőnöke
+ //echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<ul>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="dök" />diákönkörmányzat</li>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="tanár" />tanár</li>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök</li>';
+ echo '</ul>';
+ echo '</td>';
+
+/* echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+*/
+
+ echo '<td>';
+ echo '<select name="targyId">';
+ echo '<option value=""> - tanár esetén, tárgyra szűkítés - </option>';
+ for ($i=0; $i<count($ADAT['targyak']); $i++) {
+ $K = $ADAT['targyak'][$i];
+ echo '<option value="'.($K['targyId']).'">';
+ echo $K['targyNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/koszi.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/koszi.phtml
new file mode 100644
index 00000000..2b580a8b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/koszi.phtml
@@ -0,0 +1,277 @@
+<?php
+
+ function putKosziDiakLista($ADAT) {
+
+
+ if (count($ADAT['kosziDiakLista'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>Ezekre az eseményekre jelentkeztél</legend>';
+
+ echo '<table class="koszi" align="center" cellspacing="1">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th>';
+//<th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziDiakLista']); $i++) {
+ $K = $ADAT['kosziDiakLista'][$i];
+ if ($K['jovahagyva']==1) {
+ $pontsum += $K['pont'];
+ $_class = ' class="jovahagyva" ';
+ } else {
+ $_class='';
+ }
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+
+ echo '<tr '.$_class.'>';
+ echo '<td>'.date('Y.m.d. H:i',strtotime($K['rogzitesDt'])).'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td class="r">'.($K['pont']).'</td>';
+ echo '</tr>';
+ }
+ echo '<tr class="foot"><th colspan="4" class="r">'._IDEN_ENNYIT.':</th><th class="r">'.$pontsum.'</th>';
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+ function putKosziLista($ADAT) {
+
+/*
+mysql> desc kosziDiak;
++--------------+------------------+------+-----+---------------------+-------+
+| Field | Type | Null | Key | Default | Extra |
++--------------+------------------+------+-----+---------------------+-------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+| rogzitesDt | timestamp | NO | | CURRENT_TIMESTAMP | |
+| jovahagyasDt | timestamp | NO | | 0000-00-00 00:00:00 | |
+| kosziPontId | int(10) unsigned | NO | MUL | NULL | |
+| pont | int(10) unsigned | NO | | NULL | |
++--------------+------------------+------+-----+---------------------+-------+
+*/
+
+
+ echo '<fieldset class="koszi"><legend>Jelentkezz!</legend>';
+ echo '<div class="koszi">';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziDiak" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziId" class="onChangeSubmit">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ $_SEL = ($ADAT['kosziId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ $_leiras = $K['kosziEsemenyNev'].' '.$K['kosziEsemenyLeiras'].' '.$K['dt']. ' - '.$K['kosziEsemenyTipus'];
+ echo '<option value="'.$K['kosziId'].'" '.$_SEL.'>'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ if ($ADAT['kosziId']!='') {
+ echo '<select name="kosziPontId">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+ $_leiras = $K['kosziPontTipus'].' ('.$K['kosziPont'].'pont)';
+ if ($K['kosziHelyezes']>0) $_leiras .= ' '.$K['kosziHelyezes'].'. helyezés';
+ echo '<option value="'.$K['kosziPontId'].'">'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ }
+
+ echo '<input type="submit" value="köszi!" />';
+
+ formEnd();
+
+ echo '</div>';
+ echo '</fieldset>';
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// ------------
+
+
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td><input type="text" value="" name="dt" class="date" /></td>';
+ echo '<td><select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select></td>';
+/*
+ echo '<td>';
+ echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<input type="checkbox" name="igazolo[]" value="tanár" />tanár';
+ echo '<input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök';
+ echo '</td>';
+*/
+ echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml
new file mode 100644
index 00000000..4b02f29e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml
@@ -0,0 +1,331 @@
+<?php
+
+
+
+ function putKosziIgazolandoLista($ADAT) {
+
+ if (!is_array($ADAT['kosziIgazolando']) || count($ADAT['kosziIgazolando'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>'._IGAZOLANDO.'</legend>';
+
+ echo '<table class="koszi" align="center" cellspacing="1">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th><th>'._NEV.'</th>';
+ echo '<th>'._TEENDO.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziIgazolando']); $i++) {
+ $K = $ADAT['kosziIgazolando'][$i];
+ $_class = ($K['jovahagyva']==1) ? ' class="jovahagyva" ' : '';
+
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+ echo '<tr '.$_class.'>';
+ echo '<td>'.$K['rogzitesDt'].'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td>'.$K['pont'].'</td>';
+ echo '<td>'.$ADAT['diak'][$K['diakId']]['diakNev'].'</td>';
+ echo '<th>';
+//print_r($K);
+ formBegin();
+ echo '<input type="hidden" name="action" value="igazol" />';
+ echo '<input type="hidden" name="kosziId" value="'.$K['kosziId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$K['diakId'].'" />';
+ echo '<input type="submit" name="accept" value="'._JOVAHAGY.'" class="accept" />';
+ echo '<input type="submit" name="decline" value="'._ELUTASIT.'" class="decline" />';
+ formEnd();
+ echo '</th>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+
+
+//-.-------------------------------------------------------------------
+
+
+
+
+
+
+
+
+
+ function putKosziDiakLista($ADAT) {
+
+
+ if (count($ADAT['kosziDiakLista'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>Ezekre az eseményekre jelentkeztél</legend>';
+
+ echo '<table class="koszi" align="center">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th>';
+//<th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziDiakLista']); $i++) {
+ $K = $ADAT['kosziDiakLista'][$i];
+ $_class = ($K['jovahagyva']==1) ? ' class="jovahagyva" ' : '';
+
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+
+ echo '<tr '.$_class.'>';
+ echo '<td>'.$K['rogzitesDt'].'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td class="r">'.($pontsum+=$K['pont']).'</td>';
+ echo '</tr>';
+ }
+ echo '<tr class="foot"><th colspan="4" class="r">'._IDEN_ENNYIT.':</th><th class="r">'.$pontsum.'</th>';
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+ function putKosziLista($ADAT) {
+
+/*
+mysql> desc kosziDiak;
++--------------+------------------+------+-----+---------------------+-------+
+| Field | Type | Null | Key | Default | Extra |
++--------------+------------------+------+-----+---------------------+-------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+| rogzitesDt | timestamp | NO | | CURRENT_TIMESTAMP | |
+| jovahagyasDt | timestamp | NO | | 0000-00-00 00:00:00 | |
+| kosziPontId | int(10) unsigned | NO | MUL | NULL | |
+| pont | int(10) unsigned | NO | | NULL | |
++--------------+------------------+------+-----+---------------------+-------+
+*/
+
+
+ echo '<fieldset class="koszi"><legend>Jelentkezz ezekre az eseményekre!</legend>';
+ echo '<div class="koszi">';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziDiak" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziId" class="onChangeSubmit">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ $_SEL = ($ADAT['kosziId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ $_leiras = $K['kosziEsemenyNev'].' '.$K['kosziEsemenyLeiras'].' '.$K['dt']. ' - '.$K['kosziEsemenyTipus'];
+ echo '<option value="'.$K['kosziId'].'" '.$_SEL.'>'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ if ($ADAT['kosziId']!='') {
+ echo '<select name="kosziPontId">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+ $_leiras = $K['kosziPontTipus'].' ('.$K['kosziPont'].'pont)';
+ if ($K['kosziHelyezes']>0) $_leiras .= ' '.$K['kosziHelyezes'].'. helyezés';
+ echo '<option value="'.$K['kosziPontId'].'">'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ }
+
+ echo '<input type="submit" value="köszi!" />';
+
+ formEnd();
+
+ echo '</div>';
+ echo '</fieldset>';
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// ------------
+
+
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td><input type="text" value="" name="dt" class="date" /></td>';
+ echo '<td><select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select></td>';
+/*
+ echo '<td>';
+ echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<input type="checkbox" name="igazolo[]" value="tanár" />tanár';
+ echo '<input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök';
+ echo '</td>';
+*/
+ echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/naplo.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/naplo.phtml
new file mode 100644
index 00000000..e5d42bfc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/naplo.phtml
@@ -0,0 +1,33 @@
+<?php
+
+ function putBeirasiAdatok($ADAT) {
+
+ /* DASHBOARD */
+
+ global $UdvozloKep,$skin;
+
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ echo '<div class="beirasAdatok">';
+ if ($ADAT['beiratlan'] == 0) {
+ if ($skin!='ajax') { // :(
+ $i = rand(0, count($UdvozloKep)-1);
+ echo '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" />';
+ }
+ echo _MINDEN_BEIRVA;
+ if (__JATEK_INSTALLED===true) {
+ echo '<p style="text-align:center"><a href="'.href('index.php?page=jatek&f=2048').'"><img src="/skin/classic/module-jatek/img/2048.png" alt="2048" /></a></p>';
+ }
+ } else {
+ echo '<span><a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'">'._BEIRATLAN_ORAK_SZAMA.': '.$ADAT['beiratlan'].'</a></span>';
+ }
+ echo '</div>';
+
+ }
+
+ function putBeirasiAdatokDiak() {
+ if (__JATEK_INSTALLED===true) {
+ echo '<p style="text-align:center"><a href="'.href('index.php?page=jatek&f=2048').'"><img src="/skin/classic/module-jatek/img/2048.png" alt="2048" /></a></p>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml
new file mode 100644
index 00000000..ae808368
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml
@@ -0,0 +1,31 @@
+<?php
+
+ function putNyomtatasiBeallitasok($ADAT) {
+
+ formBegin(array('class'=>'nyomtat'));
+
+ echo '<input type="hidden" name="action" value="pdfGeneralas" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+
+ echo '<h3>'._OSZTALYOK.'</h3>'."\n";
+
+ foreach ($ADAT['osztalyok'] as $osztalyId => $osztalyAdat) {
+
+ echo '<input type="checkbox" name="osztalyId[]" id="osztalyId'.$osztalyId.'" value="'.$osztalyId.'" />';
+ echo '<label for="osztalyId'.$osztalyId.'">';
+ echo $osztalyAdat['osztalyJel'];
+ echo '</label>'."\n";
+
+ }
+
+ echo '<br />';
+ echo '<label for="hatarido">'._LEADASI_HATARIDO.'</label>';
+ echo '<input type="text" name="leadasiHatarido" value="" id="hatarido" class="date" />'."\n";
+
+ echo '<br />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml
new file mode 100644
index 00000000..8f83fe6e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml
@@ -0,0 +1,17 @@
+<?php
+
+ function putDownloadForm($tolDt, $igDt) {
+
+ formBegin(array('class'=>'letolt'));
+
+ echo '<input type="hidden" name="action" value="naploGeneralas" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />'."\n";
+
+ echo '<input type="submit" value="'._DOWNLOAD.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml
new file mode 100644
index 00000000..312b77d8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putLetoltesLink($ADAT) {
+
+ echo '<a href="'.href($ADAT['letoltes']).'" class="letoltes">'._LETOLTES.'</a>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml
new file mode 100644
index 00000000..b92337ce
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml
@@ -0,0 +1,127 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putOsztalyTankorei($osztalyId, $ADAT) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="tankorNaplohozRendeles" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '<th>'._JELOLT.'</th>';
+ echo '<th>'._NAPLO.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo _JELOLT_TANKOROK_SZAMA.': '.count($ADAT['naploTankorei'][$osztalyId]);
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['osztalyTankorei'][$osztalyId]); $i++) {
+ $tankorId = $ADAT['osztalyTankorei'][$osztalyId][$i];
+ $naplo = $ADAT['tankorNaploja'][$tankorId];
+ $tankorNev = $ADAT['tankorNeve'][$tankorId];
+ echo '<tr>';
+ echo '<th>'.$tankorNev.':'.$tankorId.'</th>';
+ if (isset($osztalyId)) {
+ echo '<td>';
+
+ if ($naplo == $osztalyId) $CHK = ' checked="checked" ';
+ else $CHK = '';
+
+ echo '<input type="checkbox" name="T[]" value="'."$tankorId/$osztalyId".'"'.$CHK.' />';
+
+ echo '</td>';
+ }
+ echo '<td>'.$ADAT['osztalyJele'][$naplo].'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putHozzarendelesekTorlese() {
+ formBegin();
+ echo '<div id="torlesForm">'."\n";
+ echo '<input type="hidden" name="action" value="hozzarendelesekTorlese" />'."\n";
+ echo '<input type="submit" value="'._HOZZARENDELES_ALAPHELYZETBE_ALLITASA.'">'."\n";
+ echo '</div>'."\n";
+ formEnd();
+ }
+
+ function putHianyzoTankorok($ADAT) {
+
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+
+ $Hianyzo = array();
+ for ($i = 0; $i < count($ADAT['tankorIds']); $i++) {
+ $tankorId = $ADAT['tankorIds'][$i];
+ if ($ADAT['tankorNaploja'][$tankorId] == '') $Hianyzo[] = $tankorId;
+ }
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="1">';
+ echo _HIANYZO_TANKOROK_SZAMA.': '.count($Hianyzo);
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ for ($i = 0; $i < count($Hianyzo); $i++) {
+ $tankorId = $Hianyzo[$i];
+ echo '<tr>';
+// echo '<th>'.($i+1).'</th>';
+ echo '<th>'.$ADAT['tankorNeve'][$tankorId].'</th>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ }
+
+ function putEloszlas($ADAT) {
+
+ if (!isset($osztalyId)) {
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th>'._OSZTALY.'</th><th>'._DB.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="2"></th></tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+ echo '<tr>';
+ echo '<th>'.$ADAT['osztalyok'][$i]['osztalyJel'].'</th>';
+ echo '<td>'.count($ADAT['naploTankorei'][ $ADAT['osztalyok'][$i]['osztalyId'] ]).'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ }
+
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/ascExport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/ascExport.phtml
new file mode 100644
index 00000000..0fee8df7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/ascExport.phtml
@@ -0,0 +1,142 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+
+ formBegin(array('class'=>'export ok'));
+
+ echo '<h1>'._EXPORTALAS.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ascExport" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ if (count($ADAT['orarendiHet']) > 0) {
+ echo '<fieldset><legend>'._EXPORTALANDO_HET.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['orarendiHet']); $i++) {
+ if ($ADAT['orarendiHet'][$i] == $ADAT['exportalandoHet'])
+ echo '<input id="het'.$i.'" type="radio" name="orarendiHet" value="'.$ADAT['orarendiHet'][$i].'" checked="checked" />'."\n";
+ else
+ echo '<input id="het'.$i.'" type="radio" name="orarendiHet" value="'.$ADAT['orarendiHet'][$i].'" />'."\n";
+ echo '<label for="het'.$i.'">'.$ADAT['orarendiHet'][$i].'</label>';
+ }
+ echo '</fieldset>'."\n";
+ }
+ echo '<br />';
+ if ($ADAT['szeminariumkent']==true) {
+ echo '<input type="checkbox" id="szeminariumkent" name="szeminariumkent" value="true" checked="checked" />';
+ } else {
+ echo '<input type="checkbox" id="szeminariumkent" name="szeminariumkent" value="true" />';
+ }
+ echo '<label for="szeminariumkent">'._EXPORT_SZEMINARIUMKENT_DIAKOKKAL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input type="checkbox" id="szakkorokkel" name="szakkorokkel" value="true" />';
+ echo '<label for="szakkorokkel">'._EXPORT_SZAKKOROKKEL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input id="blokkokNelkul" type="checkbox" name="blokkokNelkul" value="true" />';
+ echo '<label for="blokkokNelkul">'._BLOKKOK_NELKUL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input id="targyBontas" type="checkbox" name="targyBontas" value="true" />';
+ echo '<label for="targyBontas">'._TARGYAK_BONTASAVAL.'</label>'."\n";
+
+ echo '<br /><input type="submit" value="'._EXPORT.'" />'."\n";
+
+ echo '<br />'."\n";
+ echo '<a href="'
+ .href('index.php?page=session&f=download&download=true&dir=naplo/orarend/orarendBetolto&file=fromAsc.xml')
+ .'">'
+ .'<img src="skin/classic/module-session/img/download.gif" alt="Download" />'
+ ._EXPORT_SABLON_LETOLTESE
+ .'</a>'."\n";
+
+ if (defined('__LOADURL')) echo '<a href="'.__LOADURL.'" id="loadUrl" >'._DOWNLOAD.'</a>'."\n"; // Ha sikerült az export, akkor letöltés indítás
+ formEnd();
+ }
+
+
+ function putTobbszorosOraForm($ADAT) {
+
+ formBegin(array('class'=>'tobbszoros export'));
+
+ echo '<h1>'._TOBBSZOROS_ORAK.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="tobbszorosOra" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+// echo '<fieldset><legend>'._TOBBSZOROS_ORAK.'</legend>';
+ echo '<select name="bontasId">'."\n";
+ if (is_array($ADAT['tankorBlokk']['exportOraszam']))
+ echo '<option value=""> '._BONTANDO_TANKOR_BLOKK.' </option>'."\n";
+ echo '<optgroup label="'._BLOKKOK.'">';
+ foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) if ($oraszam > 0) {
+ $blokkNev = $ADAT['tankorBlokk']['blokkNevek'][$bId];
+ echo '<option value="b-'.$bId.'">'."$blokkNev ($bId) -- $oraszam "._ORA.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '<optgroup label="'._TANKOROK.'">';
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $tankorNev = $ADAT['tankorok'][$i]['tankorNev'];
+ $hetiOraszam = $ADAT['tankorok'][$i]['hetiOraszam'];
+ echo '<option value="t-'.$tankorId.'">'."$tankorNev ($tankorId) -- $hetiOraszam "._ORA.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '</select>'."\n";
+ echo '<label for="oraBontas">'._ORABONTAS.'</label>'."\n";
+ echo '<input id="oraBontas" type="text" name="oraBontas" value="" />'."\n";
+// echo '</fieldset>'."\n";
+
+ if (count($ADAT['bontas']) > 0) {
+ echo '<br />';
+ echo '<label for="torlendoBontas">'._TORLENDO_BONTAS.'</label><br />';
+ echo '<select id="torlendoBontas" name="torlendoBontas[]" multiple="multiple">'."\n";
+ foreach ($ADAT['bontas'] as $bontasId => $bontas) {
+ list($tipus, $id) = explode('-', $bontasId);
+ if ($tipus == 't') {
+ $tankorIndex = $ADAT['tankorIndex'][$id];
+ $bontasNev = $ADAT['tankorok'][$tankorIndex]['tankorNev'];
+ } elseif ($tipus == 'b') {
+ $bontasNev = $ADAT['tankorBlokk']['blokkNevek'][$id];
+ }
+ echo '<option value="'.$bontasId.'">'.$bontasNev.' ('.$bontasId.') -- '.$bontas.' '._ORA.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putBlokkOraszamForm($ADAT) {
+
+ formBegin(array('class'=>'blokk export'));
+
+ echo '<h1>'._ORARENDI_BLOKKOK.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="blokkOraszam" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<ul class="blokk">';
+ foreach ($ADAT['tankorBlokk']['blokkNevek'] as $bId => $bNev) {
+ echo '<li>';
+ echo ' <select name="blokkOraszam[]">'."\n";
+ $SEL = array(floatval($ADAT['tankorBlokk']['exportOraszam'][$bId]) => ' selected="selected" ');
+ for ($i = 0; $i <= ceil($ADAT['tankorBlokk']['maxOraszam'][$bId]); $i = $i + 0.5) {
+ echo '<option value="'."$bId:$i".'" '.$SEL[$i].'>'.$i.' (exportálva '.ceil($i).' kártya/hét)'.'</option>'."\n";
+ }
+ echo '</select>';
+ echo $bNev.' ('.$bId.')';
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml
new file mode 100644
index 00000000..1f2668aa
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml
@@ -0,0 +1,90 @@
+<?php
+
+ function putHelyettesitesTablazat($ADAT) {
+
+ if (count($ADAT['orak']['indexed'])==0) return false;
+
+ $TANAROK = $ADAT['tanarok'];
+ $TANKOROK = $ADAT['tankorok'];
+ echo '<h1 style="text-align: center">'.'</h1>';
+ // -----------------------------------------------
+ // FEJLÉC
+ // -----------------------------------------------
+ echo '<p><table align="center" class="helyettesitesek" >';
+ echo '<thead>'."\n";
+ echo '<tr >';
+ echo '<th colspan="5">Az órarendihez képest változó óra</th>';
+ echo '<th rowspan="2">A helyettesítés<br />jellege</th>';
+ echo '<th rowspan="2" style="background-color: #88aaa0">';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=3">';
+ echo 'Az órát tartó<br />tanár neve';
+ //if ($orderid==3) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr style="background-color: #99aab0;">';
+ echo '<th>óra</th>';
+ echo '<th>';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=1">';
+ echo 'osztály';
+ //if ($orderid==1) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '<th>tantárgy</th>';
+ echo '<th>';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=2">';
+ echo 'hiányzó';
+ //if ($orderid==2) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '<th>terem</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="7">'.date('Y-m-d H:i:s').'</th></tr>';
+ echo '</tfoot>';
+ //----------------------------------------------------------
+ echo '<tbody>';
+ for($i=0; $i<count($ADAT['orak']['indexed']); $i++) {
+ $sor = $ADAT['orak']['indexed'][$i];
+ if ($sor['tipus']=='összevonás') {
+ $_kidn= $sor['ki'];
+ $_dt = $sor['dt'];
+ $_ora = $sor['ora'];
+ } else {
+ }
+ // hack out ki=kit saját magával összevont óra!
+ if ($sor['ki'] != $sor['kit'] && $sor['feladatTipusId']=='') {
+ echo '<tr class="'.$sor['eredet'].'">';
+ echo '<td align="center">'.$sor['ora'].'.</td>';
+ echo '<td align="center" colspan="2" >'.$TANKOROK[$sor['tankorId']]['tankorNev'].'&nbsp;&nbsp;</td>';
+ echo '<td >&nbsp;'.$TANAROK[$sor['kit']]['tanarNev'].'</td>';
+ echo '<td align="center">'.$ADAT['termek'][$sor['teremId']]['leiras'].'</td>';
+ echo '<td align="center">';
+ if ($sor['eredet']=='plusz')
+ if (in_array($sor['tipus'],array('elmarad','elmarad máskor')))
+ echo 'elmarad (plusz)';
+ else
+ echo 'megtartva (plusz) '.$sor['tipus'];
+ else
+ echo $sor['tipus'];
+ echo '</td>';
+ if ($sor['ki'] == '') {
+ echo '<th height="35">-</th>';
+ } else {
+ echo '<td height="35">';
+ echo '&nbsp;'.$TANAROK[$sor['ki']]['tanarNev'];
+ if ($sor['terem']!=$_terem) echo ' ('.$_terem.')';
+ echo '</td>';
+ }
+ echo '</tr>';
+ } // end of hackout
+
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml
new file mode 100644
index 00000000..798c8e85
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml
@@ -0,0 +1,448 @@
+<?php
+
+ function csengetesiRend($csengetesiRendTipus, $telephelyId, $nap, $ora, $ADAT) {
+ $most = false;
+ if ($ADAT[$csengetesiRendTipus][$telephelyId][$nap][$ora]!='') $n = $nap;
+ elseif ($ADAT[$csengetesiRendTipus][$telephelyId][''][$ora]!='') $n = '';
+ else return array('kiir'=>'','most'=>false);
+ $b1 = explode(':',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['tolTime']);
+ $r = intval($b1[0]).':'.$b1[1];
+ $b2 = explode(':',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['igTime']);
+ $r .= '-'.intval($b2[0]).':'.$b2[1];
+ if ( ((date('H')*60+date('i')) >= ($b1[0]*60+$b1[1])) && ((date('H')*60+date('i')) <= ($b2[0]*60+$b2[1])) ) $most = true;
+ $R['kiir'] = $r;
+ $R['most'] = $most;
+ $R['dataTol'] = str_replace(':','',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['tolTime']);
+ $R['dataIg'] = str_replace(':','',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['igTime']);
+ return $R;
+ }
+
+ function putOrarend($ADAT) {
+ global $aHetNapjai,$skin;
+
+ /* Képzés-Mátrix */
+ //dump($ADAT['kepzesOraterv']);
+ if (is_array($ADAT['kepzesOraterv']) && count($ADAT['kepzesOraterv'])>0) {
+ $kepzes_figyel = true;
+ $KEPZES_MATRIX[2]=$ADAT['kepzesOraterv']['első nyelv']['sum'];
+ $KEPZES_MATRIX[3]=$ADAT['kepzesOraterv']['második nyelv']['sum'];
+ $KEPZES_MATRIX[1]=$ADAT['kepzesOraterv']['mintatantervi']['sum']
+ +$ADAT['kepzesOraterv']['kötelezően választható']['sum']
+ +$ADAT['kepzesOraterv']['szabadon választható']['sum']
+ ;
+ //dump($KEPZES_MATRIX);
+ } else $kepzes_figyel = false;
+ // ----------------
+ $multiTelephely = (count($ADAT['orarend']['telephelyIdk'])>1);
+ if ($multiTelephely) { echo '<!-- telephely debug info --'; var_dump($ADAT['orarend']['telephelyIdk']); echo '// -->'; }
+ for ($i=0; $i<count($ADAT['diakFelmentes']); $i++) {
+ $_D = $ADAT['diakFelmentes'][$i];
+ $FM[$_D['tankorId']][] = $_D;
+ }
+
+ // a lekérdezett órák között az órarendben szereplő órarendihetek
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ if (in_array($ADAT['orarend']['napok'][$nap]['tipus'],
+ array('tanítási nap','speciális tanítási nap'))) {$ERINTETTHETEK[$ADAT['orarend']['napok'][$nap]['het']] = true;
+ }
+ }
+ // --
+ // a haladási naplóban szereplő órarendi hetek
+ // ???
+ // --
+ // ==============================================================
+
+// if (is_array($ADAT['orarend']['assoc'])) {
+ if (TRUE) {
+ $T = $ADAT['orarend']['assoc'];
+
+ if (MAYOR_SOCIAL === true) {
+ echo '<h2 class="mayorSocialEdition">MaYoR Social Edition</h2>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="orarendiOraTeremModosit" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="teremId" value="'.$ADAT['teremId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />';
+ }
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+ echo '<table cellspacing="1" class="orarend '.$ADAT['orarendTipus'].'" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ if (is_array($ERINTETTHETEK)) {
+ echo '<th class="het">'.implode(',',array_keys($ERINTETTHETEK)).'.'._HET.'<br/><span style="font-size:xx-small">'.$ADAT['orarend']['db'].' '._ORA.'</span>'.'</th>';
+ } else {
+ echo '<th></th>';
+ }
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ // if ($skin=='pda'
+ // && in_array($ADAT['orarend']['napok'][$nap]['tipus'], array('tanítási nap','speciális tanítási nap'))
+ // && $ADAT['orarend']['napok'][$nap]['dt'] != date('Y-m-d')) continue;;
+ //
+
+ $_ma_class = ($nap==date('w') && $ADAT['orarend']['napok'][$nap]['dt']==date('Y-m-d')) ? 'ma': '';
+
+ $_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': ' spec ';
+ $_th_class .= $_ma_class;
+ $_th_class .= (in_array($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'],array('','normál'))) ? '': ' spec '.ekezettelen($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus']);
+
+ echo '<th class="'.$_th_class.'" data-napindex="'.$nap.'">';
+ $aznapErintettNap = array();
+ for ($b=0; $b<count($ADAT['napok'][$nap]); $b++) {
+ if ($ADAT['napok'][$nap][$b]['megjegyzes']!='') $aznapErintettNap['megjegyzes'][] = $ADAT['napok'][$nap][$b]['megjegyzes'];
+ }
+ if (!in_array($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'],array('normál',''))) $aznapErintettNap['megjegyzes'][] = $ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'].' csengetés';
+
+ echo '<span class="napLeiras" title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'">';
+ echo (count($aznapErintettNap['megjegyzes'])==0) ? $aHetNapjai[($nap-1)] : implode('; ',array_unique($aznapErintettNap['megjegyzes']));
+ echo '</span>';
+
+ if ($ADAT['orarend']['napok'][$nap]['dt']!='') {
+ echo '<div class="orarendTools">';
+ if (_POLICY=='public') {
+ echo ''.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'';
+ } else {
+ echo '<span class="icon-info-sign napAdat" data-napdt="'.$ADAT['orarend']['napok'][$nap]['dt'].'" title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'"></span>';
+ }
+ if (_POLICY=='private' && in_array(__JEGYZETSZEREPTIPUS,array('diak','tanar'))) echo '<span class="icon-file-edit-alt jegyzet jegyzetAdat" data-jegyzetdt="'.$ADAT['orarend']['napok'][$nap]['dt'].'" data-jegyzetid="-1" title="új jegyzet"></span>';
+ if (_POLICY=='private' && __TANAR===true) {
+ if ($ADAT['kivalasztott'][0] == 'tankor') {
+ $_href = 'index.php?page=naplo&sub=osztalyozo&f=dolgozat&tankorId='.$ADAT['kivalasztott'][1];
+ } else {
+ $_href = 'index.php?page=naplo&sub=osztalyozo&f=dolgozat';
+ }
+ echo '<a href="'.href($_href).'"><span class="icon-idea-alt dolgozat" title="új dolgozat"></span></a>'; // dolgozat
+ }
+ echo '<span class="icon-remove-sign bezar" title="elrejt"></span>';
+ echo '</div>';
+ } else {
+ echo '<div class="orarendTools">'.$aHetNapjai[($nap-1)].'</div>'; // default
+ }
+
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ if (__ALLOWSET===true) {
+ $_footclass = ($ADAT['publikusOrarend']) ? 'publikus' : 'nempublikus';
+ echo '<tfoot class="'.$_footclass.'">';
+ echo '<tr><th colspan="'.($ADAT['hetiMaxNap']+1).'">';
+ if ($ADAT['publikusOrarend']) {
+ echo 'Ez az órarend publikus.';
+ } else {
+ formBegin();
+ echo '<input type="submit" name="gomb" value="legyen publikus" />';
+ echo '<input type="hidden" name="action" value="setPublic" />';
+ formEnd();
+ }
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+ }
+ echo '<tbody>'."\n";
+// echo '<caption>'.$het.'. heti órarend</caption>';
+ if (count($ADAT['dolgozat']['tervezett'])>0 || count($ADAT['jegyzet'])>0) { $_jegyzetSorCss = ''; } else { $_jegyzetSorStyle = 'display:none;'; }
+ echo '<tr id="orarendJegyzetSor" class="orarendJegyzetSor" style="'.$_jegyzetSorStyle.'">';
+ echo '<th>';
+ echo 'dolgozatok, jegyzetek';
+ // echo '<span class="icon-info-sign"></span>';
+ echo '</th>';
+ for ($nap=1;$nap<=$ADAT['hetiMaxNap'];$nap++) {
+ $dt = $ADAT['NAPOK'][$nap-1];
+ $_ma_class = ($nap==date('w') && $ADAT['orarend']['napok'][$nap]['dt']==date('Y-m-d')) ? 'ma': '';
+ echo '<td class="jegyzetContainer" data-dt="'.$dt.'" data-napindex="'.$nap.'" class="'.$_ma_class.'">';
+ //dump($ADAT['dolgozat']['tervezett'][$dt]);
+ for ($d=0; $d<count($ADAT['dolgozat']['tervezett'][$dt]); $d++) {
+ $_dolgozatId = $ADAT['dolgozat']['tervezett'][$dt][$d];
+ echo '<div class="dolgozat dolgozatAdat" data-dolgozatid="'.$_dolgozatId.'">';
+ for ($t=0; $t<count($ADAT['dolgozat'][$_dolgozatId]['tankor']); $t++) {
+ echo $ADAT['dolgozat'][$_dolgozatId]['tankor'][$t]['tankorNev'].' ';
+ $TANKOR_DOLGOZAT[$ADAT['dolgozat'][$_dolgozatId]['tankor'][$t]['tankorId']][$dt] = $_dolgozatId;
+ }
+ echo '<br/>'.$ADAT['dolgozat'][$_dolgozatId]['dolgozatNev'];
+ echo '</div>';
+ // if (count($ADAT['dolgozat']['tervezett'][$dt])>$d+1) echo '<hr/>';
+ }
+ for ($d=0; $d<count($ADAT['jegyzet']); $d++) {
+ if ($ADAT['jegyzet'][$d]['dt']==$dt) {
+ $_JEGYZET = $ADAT['jegyzet'][$d];
+ $_jegyzetId = $_JEGYZET['jegyzetId'];
+ $_sajatJegyzet = ($_JEGYZET['userId'] === __JEGYZETSZEREPID && $_JEGYZET['userTipus']===__JEGYZETSZEREPTIPUS);
+ $_sajatJegyzetClass = $_sajatJegyzet ? '':'mase';
+ echo '<div class="jegyzet jegyzetAdat publikus'.$_JEGYZET['publikus'].' '.$_sajatJegyzetClass.'" data-jegyzetid="'.$_jegyzetId.'">';
+ // echo 'Jegyzet:';
+ echo makelinksclickable(supertext($_JEGYZET['jegyzetLeiras']));
+ if($_JEGYZET['userId']!=__JEGYZETSZEREPID || $_JEGYZET['userTipus']!=__JEGYZETSZEREPTIPUS) {
+ echo '<br/><i>@'.supertext($_JEGYZET['nev']).'</i>';
+ }
+ for ($_t=0; $_t<count($_JEGYZET['tankorok']); $_t++) {
+ $TANKOR_JEGYZET[$_JEGYZET['tankorok'][$_t]][$dt] = $_jegyzetId;
+ } // erre még nincs felkészítve a jegyzet.get
+ echo '</div>';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th data-oraindex="'.$ora.'">';
+ echo $ora;
+ /* az órarendben szereplő órákat vesszük csak figyelembe, a haladásit - egyelőre - nem */
+ //if (!$multiTelephely) // mindig az "elsőt" vesszük figyelembe!!!
+ $_telephelyId = $ADAT['orarend']['telephelyIdk'][0];
+ for ($nap=1;$nap<=7;$nap++) {
+ $_csengetesiRendTipus = $ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'];
+ $_display = ($nap!= date('w') ? 'style="display:none;"':'');
+ $_CSR = csengetesiRend($_csengetesiRendTipus,$_telephelyId,$nap,$ora,$ADAT['csengetesiRend']);
+ $_csrclass = ($_CSR['most']===true) ? 'most':'';
+ echo '<div class="csr_'.$nap.' '.$_csrclass.'" '.$_display.' data-tol="'.$_CSR['dataTol'].'" data-ig="'.$_CSR['dataIg'].'">';
+ echo $_CSR['kiir'];
+ echo '</div>';
+ }
+ echo '</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ //$dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ $dt = $ADAT['NAPOK'][$nap-1];
+ if ($skin=='pda'
+ && in_array($ADAT['orarend']['napok'][$nap]['tipus'], array('tanítási nap','speciális tanítási nap'))
+ && $dt != date('Y-m-d')) continue;;
+
+ $_eppTartClass = ($_CSR['most']===true && $nap==date('w')) ? 'eppTart':'';
+ $_ma_class = ($nap==date('w')) ? 'ma': '';
+
+ echo '<td class="csr '.$_eppTartClass.' '.$_ma_class.'" id="tdid_'.$het.'_'.$nap.'_'.$ora.'" data-napindex="'.$nap.'" data-oraindex="'.$ora.'">';
+ $het = 0;
+ $ORARENDI = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ // itt a MAI naphoz viszonyítjuk, holott lehet hogy inkább a refDt-hez kéne. Megfontolandó.
+ $_frissClass = (_datediff(date('Y-m-d'),$_T['tolDt'],date('Y-m-d'))<5) ? ' friss animated shake ':'';
+ $ORARENDI[] = $_T['tankorId'];
+ //
+ $het = $_T['het'];
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+
+ $_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
+
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+ $_tankorTipusId = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipusId'];
+ $_oraMostVan = (in_array($_ORA['oraId'],$ADAT['orakMost']));
+ //
+ if ($kepzes_figyel
+ &&$ADAT['tankorTipus'][$_tankorTipusId]['oratervi'] == 'óratervi'
+ && $ADAT['tankorTipus'][$_tankorTipusId]['jelenlet'] == 'kötelező') {
+ if ($_tankorTipusId>3) $_tankorTipusId=1;
+ $KEPZES_MATRIX[$_tankorTipusId]--;
+ }
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_oraMostVanClass = ($_oraMostVan) ? ' oraMostVan':'';
+ if ($_T['jelleg']=='osztályfüggetlen') {
+ $_tipusClass .= ' osztályfüggetlen';
+ }
+ $_oraAdat = (isset($_ORA['oo']) && _POLICY!='public') ? 'oraAdat' : ''; // haladási
+ $_hianyzasAdat = $ADAT['hianyzas'][$_ORA['oraId']][0];
+ $_hianyzasClass = (is_array($_hianyzasAdat) && $_hianyzasAdat['hTipus']=='hiányzás') ? ' nemVoltBent ':'';
+ echo '<div class="'.$_tipusClass.$_frissClass.$_oraMostVanClass.$_hianyzasClass.' '.$_oraAdat.'" data-oraid="'.$_ORA['oraId'].'" title="'.$_ORA['tipus'].'" >';
+
+ if (is_array($_hianyzasAdat)) {
+ echo '<span class="hianyzasTicker '.ekezettelen($_hianyzasAdat['hTipus']).' '.ekezettelen($_hianyzasAdat['statusz']).' '.ekezettelen($_hianyzasAdat['igazolas']).'">';
+ if ($_hianyzasAdat['hTipus']=='hiányzás')
+ echo '<span class="icon-hearing-impaired"></span>';
+ // echo '<span class="icon-bookmark"></span>';
+ if ($_hianyzasAdat['hTipus']=='késés') echo $_hianyzasAdat['perc'];
+ if ($_hianyzasAdat['hTipus']=='felszerelés hiány') echo 'fsz';
+ if ($_hianyzasAdat['hTipus']=='egyenruha hiány') echo 'eh';
+ if ($_hianyzasAdat['hTipus']=='felmentés') echo 'fm';
+ echo '</span>';
+ }
+
+ if (is_array($FM[$_T['tankorId']]) && count($FM[$_T['tankorId']])>0) {
+ $_FM = $FM[$_T['tankorId']];
+ for ($fm_i=0; $fm_i<count($_FM); $fm_i++) {
+ $__FM = $_FM[$fm_i];
+ if ($__FM['nap'] == $nap && ($__FM['ora']==$ora || is_null($__FM['ora'])) ) echo '<span style="float:left; background-color: lightgreen; border-radius:50%; padding:2px; font-size:smaller; color:white; border: solid 1px lime;">FM</span>';
+ }
+ }
+ if ($TANKOR_DOLGOZAT[$_T['tankorId']][$dt]>0) echo '<span style="color:orange;" class="icon-idea-alt" title="bejelentett dolgozat dolgozatAdat" data-dolgozatid="'.$TANKOR_DOLGOZAT[$_T['tankorId']][$dt].'"></span>';
+ if ($TANKOR_JEGYZET[$_T['tankorId']][$dt]>0) echo '<span style="color:lightgreen;" class="icon-file-edit-alt" title="jegyzet"></span>';
+ $_teremKiir = ($_T['teremId'] != $_valosTeremId) ? '<del>'.$ADAT['termek'][$_T['teremId']]['leiras'].'</del><ins>'.$ADAT['termek'][$_valosTeremId]['leiras'].'</ins>' : $ADAT['termek'][$_T['teremId']]['leiras'];
+ $_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span class="normalTerem" data-tmpid="'.intval(++$tmpid).'" title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$_teremKiir.'</span>';
+
+// mindenkinek módosítható (social edition)
+if (MAYOR_SOCIAL === true) {
+// if ($_valosTeremId == 0) {
+ // (`het`,`nap`,`ora`,`tanarId`,`tolDt` = teremId),
+ $_keyBase = 'OOM+'.$_T['het'].'+'.$nap.'+'.$ora.'+'.$_T['tanarId'].'+'.$_T['tolDt'].'+'.$_ORA['oraId'];
+ $_hidden = ($_valosTeremId > 0)?' style="display:none" ':'';
+ echo '<select class="teremModosit onChangeSubmit" data-tmpid="'.intval($tmpid).'" name="'.$_keyBase.'" '.$_hidden.'>';
+ if ($_valosTeremId!=0)
+ echo '<option value="teremTorol">-nem tudom, de nem ez-</option>';
+ else
+ echo '<option value="0">-</option>';
+ foreach ($ADAT['termek'] as $__teremId => $__teremAdat) {
+ $_SEL = ($_valosTeremId == $__teremId) ? ' selected="selected" ':'';
+ echo '<option value="'.$__teremId.'" '.$_SEL.'>'.$__teremAdat['leiras'].'</option>';
+ }
+ echo '</select>';
+// }
+}
+
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ if (isset($_ORA['oo'])) {
+ if ($_ORA['leiras']!='') echo '<sup title="adminisztrálva">&#9679;</sup>';
+ else echo '<sup title="betöltve">&#9675;</sup>'; // &deg;
+ }
+ if (in_array($_tankorTipus,array('délutáni','tanórán kívüli'))) {
+ echo ' &sup1';
+ }
+
+ echo '</div>';
+ if (count($T[$nap][$ora]['orak'])>$i+1)
+ //echo '<hr />';
+ echo '<div style="height:1px; width:80%; margin:auto; background-color: #ccc;"></div>';
+ }
+ /* !!! Az orarendTankor összerendezőhöz állnak csak rendelkezésre ezek a fals adatok, és csak tanárnál...
+ --> lásd még: share/orarend.php
+ if (count($T[$nap][$ora]['orak'])==0) {
+ $het = $ADAT['orarend']['napok'][$nap]['het'];
+ if (count($ADAT['orarend']['orarendiOra'][$het][$nap][$ora])>0) {
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ }
+ }
+ */
+ /* és ide jönnek a pluszok */
+ $j=0;
+ if (is_array($ADAT['haladasi']['orak'][$dt][$ora])) {
+ foreach ($ADAT['haladasi']['orak'][$dt][$ora] as $_tankorId => $__T) {
+ if (!is_array($ORARENDI) || !in_array($_tankorId,$ORARENDI)) {
+ if ($j!=0) echo '<hr/>'; $j++;
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora];
+ _putOra($_ORA,$_tankorId,$TANKOR_DOLGOZAT);
+ }
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '<tbody>';
+ if ($kepzes_figyel) {
+ echo '<tr><td colspan="6" style="font-weight:normal;height:14px; background-color:#6495ED; color:white;">';
+ //echo '<div style="margin:auto; border-top:0px; border-bottom: solid 1px #555555; border-left: solid 1px #555555; border-right: solid 1px #555555; background-color:#C71585; color:white;">';
+ if ($KEPZES_MATRIX[1]!=0) echo 'Képzéshez viszonyított óraszám hiány: '.$KEPZES_MATRIX[1].' ';
+ if ($KEPZES_MATRIX[2]!=0) echo 'Első nyelv: '.$KEPZES_MATRIX[2].' ';
+ if ($KEPZES_MATRIX[3]!=0) echo 'Második nyelv: '.$KEPZES_MATRIX[3].' ';
+ //echo '</div>';
+ echo '</td></tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+
+ if (MAYOR_SOCIAL === true) formEnd();
+
+// } // foreach
+
+ } else {
+ putOrarendPlain($ADAT);
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ if (is_array($ADAT['orarend']['orarendiOra'])) {
+ foreach($ADAT['orarend']['orarendiOra'] as $het => $T) {
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) { // FIXME (getMinOra, getMaxOra konstansok!???)
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ echo '<td>';
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+ }
+ }
+
+ function _putOra($ORA,$_tankorId,$TANKOR_DOLGOZAT) {
+ global $ADAT;
+ if ($_tankorId=='') return false;
+ $_ORA = $ORA[$_tankorId];
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_eredetClass = $_ORA['eredet'];
+ echo '<div class="'.$_tipusClass.' '.$_eredetClass.'" title="'.$_ORA['tipus'].'" >';
+ if ($TANKOR_DOLGOZAT[$_tankorId][$_ORA['dt']]>0) echo '<span style="color:orange;" class="icon-idea-alt"></span>';
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev'];
+ echo '</span>';
+
+ echo ', '.$ADAT['termek'][$_ORA['teremId']]['leiras'];
+
+ echo '<br/>';
+
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+
+ echo '</div>';
+
+ }
+
+ function _datediff($dt1,$dt2) {
+ return round(abs(strtotime($dt1)-strtotime($dt2))/86400);
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml
new file mode 100644
index 00000000..d6f037b0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml
@@ -0,0 +1,60 @@
+<?php
+
+ function putFileValaszto($ADAT) {
+
+ formBegin(array('class'=>'file'));
+
+ echo '<input type="hidden" name="action" value="fileBetoltes" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" />'."\n";
+ echo '<input type="hidden" name="orarendiHet" value="'.$ADAT['orarendiHet'].'" />'."\n";
+
+ echo '<label for="fileName">'._FILENAME.'</label>'."\n";
+ echo '<input type="text" id="fileName" name="fileName" value="'.$ADAT['fileName'].'" /><br />';
+ echo '<input type="checkbox" checked="checked" name="lezaras" value="true" id="lezaras" /><label for="lezaras">'._LEZARAS.'</label><br />';
+ echo '<select name="conv">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['conv'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['convert']); $i++) {
+ echo '<option value="'.$ADAT['convert'][$i].'"'.$SEL[ $ADAT['convert'][$i] ].'>'.$ADAT['convert'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ if ($ADAT['showForceOption']) {
+ echo '<br /><input id="force" type="checkbox" name="force" value="true" /><label for="force">'._FORCE.'</label>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ echo '<br />'."\n";
+ echo '<a href="'
+ .href('index.php?page=session&f=download&download=true&dir=naplo/orarend/orarendBetolto&file=fromAsc.xml')
+ .'">'
+ .'<img src="skin/classic/module-session/img/download.gif" alt="Download" />'
+ ._EXPORT_SABLON_LETOLTESE
+ .'</a>'."\n";
+
+ formEnd();
+ }
+
+ function putAdat($ORAK) {
+
+ echo '<table border="1">';
+
+ for ($i = 0; $i < count($ORAK); $i++) {
+ echo '<tr>';
+ for ($j = 0; $j < count($ORAK[$i]); $j++) {
+ echo '<td>';
+ echo $ORAK[$i][$j];
+ echo '</td>';
+ }
+
+ echo '</tr>';
+ }
+
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml
new file mode 100644
index 00000000..cb44176f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml
@@ -0,0 +1,88 @@
+<?php
+
+ function putEredmeny($ADAT) {
+
+ global $aHetNapjai;
+
+ formBegin(array('class'=>'orarend'));
+
+ echo '<ol>';
+
+ echo '<li>';
+ echo '<h1>'._ORARENDIORA_TANKOR_ELLENORZES.'</h1>';
+ if (count($ADAT['check']['orarendiOraTankor']) > 0) {
+ echo '<ol class="kritikus">';
+ for ($i = 0; $i < count($ADAT['check']['orarendiOraTankor']); $i++) {
+ $A = $ADAT['check']['orarendiOraTankor'][$i];
+ echo '<li>';
+ echo $ADAT['tanarok'][ $A['tanarId'] ]['tanarNev'].' '.$A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['osztalyJel'].' '.$A['targyJel'].'</strong>';
+ echo ' ('._ERVENYES.': '.$A['tolDt'].' - '.$A['igDt'].')';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._TANKOR_ORASZAM_ELLENORZES.'</h1>'."\n";
+ if (count($ADAT['check']['tankorOraszam']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['tankorOraszam']); $i++) {
+ $A = $ADAT['check']['tankorOraszam'][$i];
+ echo '<li>';
+ echo $A['tankorNev'].' ('.$A['tankorId'].'): <strong>'.$A['tankorHetiOraszam'].' != '.$A['orarendHetiOraszam'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._HIANYZO_TERMEK.'</h1>'."\n";
+ if (count($ADAT['check']['hianyzoTermek']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['hianyzoTermek']); $i++) {
+ $A = $ADAT['check']['hianyzoTermek'][$i];
+ echo '<li>';
+ echo $A['tanarNev'].' '.$A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['osztalyJel'].' '.$A['targyJel'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._TEREMUTKOZES.'</h1>'."\n";
+ if (count($ADAT['check']['teremUtkozes']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['teremUtkozes']); $i++) {
+ $A = $ADAT['check']['teremUtkozes'][$i];
+ echo '<li>';
+ echo $A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['teremId'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '</ol>';
+
+//echo '<hr><pre>';
+//var_dump($ADAT['check']['teremUtkozes']);
+//echo '</pre>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml
new file mode 100644
index 00000000..04a59fb4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml
@@ -0,0 +1,26 @@
+<?php
+
+ function putJelIdForm($ADAT) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="jelid" />';
+ for ($i=0; $i<count($ADAT['missing']); $i++) {
+ echo $ADAT['missing'][$i];
+
+ echo '<select name="jelid[]">';
+ echo '<option value=""></option>';
+ for ($j=0; $j<count($ADAT['tanarok']); $j++) {
+ echo '<option value="'.$ADAT['missing'][$i].'_'.$ADAT['tanarok'][$j]['tanarId'].'">'.$ADAT['tanarok'][$j]['tanarNev'].'</option>';
+ }
+ echo '</select>'."\n";
+
+ echo '<br/>';
+
+ }
+ echo '<input type="submit" />';
+
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml
new file mode 100644
index 00000000..468d11bf
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml
@@ -0,0 +1,313 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ echo '<div id="infoBox1"></div>';
+ echo '<div id="infoBox2"></div>';
+
+ global $aHetNapjai;
+ $TANKOROK = $ADAT['felvehetoTankorok'];
+ $BLOKKOK = $ADAT['felvehetoBlokkok'];
+ if (is_array($ADAT['felvehetoTankorok']) && count($ADAT['felvehetoTankorok']) > 0) {
+
+ $T = $ADAT['orarend']['assoc'];
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+ formBegin();
+
+ if (count($ADAT['vanHaladasi'])>0) {
+ $_class = ($ADAT['haladasiModositando']!=0) ? 'haladasiModositando':'';
+ echo '<div class="haladasi '.$_class.'">';
+# echo '<span class="icon-pencil-alt"></span> az órarendi módosítások a (már betöltött) haladási naplóval együtt módosítható';
+ echo '<span class="icon-pencil-alt"></span> az új - órarendbe felveendő - órák a már betöltött haladási naplóba is bekerülhetnek?';
+ $_CHK = ($ADAT['haladasiModositando']!=0) ? 'checked="checked"':'';
+ echo '<input type="checkbox" id="haladasiModositando" name="haladasiModositando" value="1" '.$_CHK.' />';
+ echo ' (a törlés és teremmódosítás nem vonatkozik a már betöltött órákra)';
+ echo '</div>';
+ }
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="refTolDt" value="'.$ADAT['refTolDt'].'" />';
+ echo '<input type="hidden" name="refIgDt" value="'.$ADAT['refIgDt'].'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />';
+
+ echo '<table id="orarend" class="orarend" align="center" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th></th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ //$_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': 'spec';
+ $_th_class = ($ADAT['vanHaladasi'][$dt]['db']>0) ? 'spec': '';
+ echo '<th class="'.$_th_class.'">';
+ if (count($ADAT['vanHaladasi'][$dt]['db'])>0) echo '<span class="icon-record" style="color: #E91E63" title="Már van betöltve haladási napló!"></span> ';
+ echo '<span>'.str_replace('-','.',$ADAT['orarend']['napok'][$nap]['dt']).'. ('.$ADAT['orarend']['napok'][$nap]['het'].')</span> ';
+ echo ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? $aHetNapjai[($nap-1)] : $ADAT['orarend']['napok'][$nap]['megjegyzes'];
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tbody>'."\n";
+// echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $CELLATANKORIDK=array();
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ $het = $ADAT['orarend']['napok'][$nap]['het'];
+ echo '<td id="tdid.'.$het.'.'.$nap.'.'.$ora.'_'.$ser++.'">';
+// $het = 0;
+ $ORARENDI = $__tanarIdk = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ $CELLATANKORIDK[] = $_T['tankorId'];
+ $ORARENDI[] = $_T['tankorId'];
+ $__tanarIdk[] = $_T['tanarId'];
+ //
+ //$het = $_T['het'];
+// $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ // -------------------------------------
+ /* Megjelenítési rétegé */
+ $_class = ($_T['teremId']=='') ? ' nincsTerem draggable':' draggable';
+ echo '<div id="draggable'.(++$sdokrand).'" class="'.$_tipusClass.$_class.'" title="'.$_ORA['tipus'].'" id="D'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'">';
+
+// Fejlesztés alatt, itt lehet majd felvenni az órát, ha már van órarend
+// Igaziból lehet, hogy ezt az órarend felületen célszerűbb lenne megcsinálni
+if ($ADAT['vanHaladasi'][$dt]>0) {
+ echo '<span style=" float:left; color:white; padding: 4px; ">';
+ if (isset($ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']]['oraId'])) {
+ echo '<span class="icon-ok-sign oraAdat" data-oraid="'.intval($ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']]['oraId']).'" title="ez az óra szerepel a haladási naplóban!"></span>';
+ } else {
+ echo '<span class="icon-minus-sign" title="ez az óra nem szerepel a haladási naplóban!"></span>';
+ // dt-ora-ki,tankorId,teremId,tipus,eredet,feladatTipusId,munkaido
+ }
+ echo '</span >';
+}
+ $_ferohely = $ADAT['termek'][$_T['teremId']]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ // HACK - találjuk ki, hogy mi a kulcsa a kártyának
+ for ($_k=0; $_k<count($ADAT['orarend']['orarendiOra'][$het][$nap][$ora]); $_k++) {
+ $_tmp = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora][$_k];
+ if ($_tmp['tanarId']==$_T['tanarId']) {
+ $_kulcsTolDt = $_tmp['tolDt'];
+ }
+ } unset($_tmp);
+ // -------
+ if ($_kulcsTolDt!='') echo '<input type="checkbox" class="minusz" name="ORARENDMINUSZ[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'.'.$dt.'.'.$_kulcsTolDt.'" title="'._TOROL.'" />'."\n";
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ //echo '<input type="checkbox" name="CSERE[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'" title="'._CSEREL.'" />'."\n";
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$ADAT['termek'][$_T['teremId']]['leiras'].'</span>';
+ _putTerem(array('name'=>'T_'.$het.'_'.$nap.'_'.$ora.'_'.$_T['tanarId'].'_'.$_kulcsTolDt, 'teremId'=>$_T['teremId']),$ADAT['termek']);
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ echo '</div>';
+ /* Egy egység */
+
+
+
+ // -------------------------------------
+
+ if (count($T[$nap][$ora]['orak'])>$i+1) echo '<hr/>';
+
+
+ }
+ if (isset($ADAT['haladasi']['orak'][$dt][$ora])) {
+ foreach($ADAT['haladasi']['orak'][$dt][$ora] as $__tankorId => $_O) {
+ if (!in_array($__tankorId,$CELLATANKORIDK)) {
+ //$_O = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ echo '<div class="haladasiOra oraAdat '.($_O['tipus']).'" data-oraid="'.$_O['oraId'].'">';
+ echo '<span class="icon-time" style="margin:3px 3px;color:white; float:left;"></span>';
+ if (!in_array($_O['tipus'],array('elmarad','elmarad_máskor')))
+ echo '<input type="checkbox" name="HALADASIORATOROL[]" value="'.$_O['oraId'].'" />';
+ echo $ADAT['tankorok'][ $__tankorId ][0]['tankorNev'];
+ // array(13) { ["oraId"]=> string(5) "37936" ["dt"]=> string(10) "2016-01-08" ["ora"]=> string(2) "10" ["ki"]=> string(2) "81" ["kit"]=> NULL ["tankorId"]=> string(4) "3086" ["teremId"]=> NULL ["leiras"]=> string(0) "" ["tipus"]=> string(6) "egyéb" ["eredet"]=> string(8) "órarend" ["feladatTipusId"]=> NULL ["munkaido"]=> string(10) "lekötött" ["oo"]=> bool(false)
+ echo '<br/>'.$_O['tipus'];
+ echo ' '.$_O['eredet'];
+ if ($_O['teremId']!='') echo ' '.$ADAT['termek'][$_O['teremId']]['leiras'];
+ if ($_O['leiras']!='') echo '<br/>'.$_O['leiras'];
+ echo '</div>';
+ }
+ }
+ }
+ if (count($T[$nap][$ora]['orak'])==0 || !in_array($ADAT['tanarId'],$__tanarIdk)) {
+ _putPluszOra($het,$nap,$ora,$TANKOROK,$BLOKKOK);
+ //echo '<input type="checkbox" name="CSERE[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'" />';
+ }
+ //echo '<div class="draggable" style="height:10px; font-size:1px;">&nbsp;</div>';
+
+/* ============== */
+for ($oi=0; $oi<count($ADAT['orarendioraTankor']['orarendiOra'][$het][$nap][$ora]); $oi++) {
+ $_TANKOROSSZE = $ADAT['orarendioraTankor']['orarendiOra'][$het][$nap][$ora][$oi];
+
+ if (is_null($_TANKOROSSZE['tankorId'])) {
+ echo '<div style="background-color: orange;">';
+
+ echo '<div style="background-color: red; border-bottom:solid 1px white;">'._LEBEGO_ORA.'</div>';
+ $__tanarId = $_TANKOROSSZE['tanarId'];
+ $__targyJel = $_TANKOROSSZE['targyJel'];
+ $__osztalyJel = $_TANKOROSSZE['osztalyJel'];
+ $__teremId = $_TANKOROSSZE['teremId'];
+ $__tolDt = $_TANKOROSSZE['tolDt'];
+
+ echo _TANAR.': '.$__tanarId.'<br/>';
+ echo _TARGYJEL.': '.$__targyJel.'<br/>';
+ echo _OSZTALYJEL.': '.$__osztalyJel.'<br/>';
+ //echo _TEREMID.': '.$__teremId.'<br/>';
+ echo _TOLDT.': '.$__tolDt.'<br/>';
+
+ //PRIMARY KEY (`het`,`nap`,`ora`,`tanarId`,`tolDt`),
+ echo '<input type="checkbox" name="ORARENDIORATOROL[]" value="'.$het.'%'.$nap.'%'.$ora.'%'.$__tanarId.'%'.$__tolDt.'" />';
+ echo _TOROL;
+
+ // és a hozzárendelt tankör:
+ echo '<div>';
+ echo '<select name="ORARENDIORAFELVESZ[]" class="orarendTankor" id="'."${het}:${nap}:${ora}_${__tanarId}_${__osztalyJel}_${__targyJel}".'">';
+ echo '<option value="">'._TANKOR_HOZZARENDELES.'</option>';
+// foreach($TANKOROK as $_tankorId => $_TANKOR) {
+ for ($oj=0; $oj<count($TANKOROK); $oj++) {
+ $__tankorId = $TANKOROK[$oj]['tankorId'];
+ $__TANKOR = $TANKOROK[$oj];
+ // figyelem, nem ugyanazon tömb $i. elemét hasonlítjuk össze! , vizsgáljuk!!!!!!!
+ // de a feltételben szerepelnie kell, így nem probléma. --FIXME
+ //$_SEL = ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) ? ' selected="selected" ': '';
+ //if ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) {
+ // $X[] = $_tankorId;
+ //}
+ echo '<option value="'.$__tanarId.'%'.$__osztalyJel.'%'.$__targyJel.'%'.$__tankorId.'"'.$__SEL.'>';
+ echo $__TANKOR['tankorNev'];
+ echo "($__tankorId)";
+ //if (is_array($X) && in_array($_tankorId,$X)) echo '+';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '</div>';
+
+
+ echo '</div>'."\n";
+ }
+}
+//--------------------------------------
+
+
+
+
+
+
+
+
+
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+// } // foreach
+
+ echo '<div class="button"><input type="submit" value="ok" /></div>';
+
+ if (count($ADAT['hibasOrak'])>0) {
+ echo '<div id="hibasOrak">';
+ for ($i=0; $i<count($ADAT['hibasOrak']); $i++) {
+ $__tanarId = $ADAT['hibasOrak'][$i]['tanarId'];
+ $__tankorId = $ADAT['hibasOrak'][$i]['tankorId'];
+ $__osztalyJel = $ADAT['hibasOrak'][$i]['osztalyJel'];
+ $__targyJel = $ADAT['hibasOrak'][$i]['targyJel'];
+ $__tolDt = $ADAT['hibasOrak'][$i]['tolDt'];
+ $__igDt = $ADAT['hibasOrak'][$i]['igDt'];
+ $__het = $ADAT['hibasOrak'][$i]['het'];
+ $__nap = $ADAT['hibasOrak'][$i]['nap'];
+ $__ora = $ADAT['hibasOrak'][$i]['ora'];
+ echo '<div class="hibas ora">';
+
+ echo '<input type="checkbox" name="ORARENDIORATOROL[]" value="'.$__het.'%'.$__nap.'%'.$__ora.'%'.$__tanarId.'%'.$__tolDt.'" checked="checked"/>';
+
+ echo $ADAT['tankorok'][$__tankorId][0]['tankorNev'].'<br/>';
+ echo $ADAT['tanarok'][$__tanarId]['tanarNev'];
+ echo '<div class="details">';
+ echo $__het.'/'.$__nap.'/'.$__ora.'<br/>';
+ echo $__tolDt.' '.$__igDt.'<br/>';
+ echo _TARGYJEL.': '.$__targyJel.'<br/>';
+ echo _OSZTALYJEL.': '.$__osztalyJel.'';
+ //echo _TEREMID.': '.$__teremId.'<br/>';
+ echo '</div>';
+ echo '</div>';
+ }
+ echo '</div>';
+
+ }
+ formEnd();
+
+ } else {
+// putOrarendPlain($ADAT);
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ }
+
+ function _putPluszOra($het,$nap,$ora,$TANKOROK,$BLOKKOK) {
+
+
+ echo '<select name="ORARENDPLUSZ[]">';
+ echo '<option value="">'."$het-$nap-$ora".'</option>';
+ echo '<optgroup class="tankor" label="'._TANKOR.'">';
+ for ($i=0; $i<count($TANKOROK); $i++) {
+ $key = "T.$het.$nap.$ora.".($_id = $TANKOROK[$i]['tankorId']).'.'.$TANKOROK[$i]['tanarok'][0]['tanarId'];
+ $value = $TANKOROK[$i]['tankorNev'].' ('.$_id.')';
+ for ($j=0; $j<count($TANKOROK[$i]['tanarok']);$j++)
+ $value .= ' '.$TANKOROK[$i]['tanarok'][$j]['tanarNev'];
+ echo '<option value="'.$key.'">'.$value.'</option>'."\n";
+ }
+ echo '</optgroup><optgroup class="blokk" label="'._BLOKK.'">';
+ for ($i=0; $i<count($BLOKKOK); $i++) {
+ $key = "B.$het.$nap.$ora.".($_id = $BLOKKOK[$i]['blokkId']);
+ $value = $BLOKKOK[$i]['blokkNev'].' ('.$_id.')';
+ echo '<option value="'.$key.'">'.$value.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '</select>';
+ }
+
+
+ function _putTerem($ADAT = array('name'=>'T_0_0_0','teremId'=>null), $TERMEK) {
+ echo '<select class="terem'.(($ADAT['teremId']=='') ? '" nincs"':'').'" name="'.$ADAT['name'].'">';
+ echo '<option value="NULL" >'.'</option>'."\n";
+ foreach ($TERMEK as $_teremId => $_T) { // leiras|ferohely|tipus|telephely
+ $_SEL = ($ADAT['teremId']==$_T['teremId']) ? ' selected="selected" ' : '';
+ if ($_T['tipus'] == $_T['leiras']) $_leiras = $_T['tipus']; else $_leiras = $_T['leiras'].' ('.$_T['tipus'].')';
+ if ($ADAT['teremId']==$_T['teremId']) {
+ echo '<option class="orig" value="" '.$_SEL.'>***'.$_T['leiras'].' ['.$_T['ferohely'].'] '.$_T['tipus'].'</option>'."\n";
+ } else {
+ echo '<option value="'.$_T['teremId'].'" '.$_SEL.'>'. $_leiras .' ['.$_T['ferohely'].']'.'</option>'."\n";
+ }
+ }
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml
new file mode 100644
index 00000000..08144c53
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml
@@ -0,0 +1,88 @@
+<?php
+
+ function putOrarend($ADAT,$TANKOROK,$tanarId) {
+
+ if (is_array($ADAT['orarendiOra'])) {
+
+ foreach($ADAT['orarendiOra'] as $het => $T) {
+ foreach($T as $nap => $REST) {
+ $NAP_SZAM2HET[$nap]=$het;
+ }
+ }
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="orarendiOraTankorAssoc" />';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$_POST['tolDt'].'" />';
+ echo '<input type="hidden" name="igDt" value="'.$_POST['igDt'].'" />';
+// echo '<input type="hidden" name="het" value="'.$het.'" />';
+ echo '<table class="orarend" align="center">'."\n";
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $het = $NAP_SZAM2HET[$nap];
+ $T = $ADAT['orarendiOra'][$het];
+ echo '<td style="width:18%">';
+ if (count($T[$nap][$ora])>=2) {
+ echo 'HIBA! -'.$T[$nap][$ora].' - adott napon több órája is van!';
+ } else {
+ for($i=0; $i<count($T[$nap][$ora]); $i++) {
+ if ($ADAT['napok'][$nap]['tipus']=='tanítási nap'
+// && (
+// is_array($ADAT['assoc'][$nap][$ora]['orak'][$i])
+// || is_array($ADAT['orarendiOra'][$het][$nap][$ora])
+// )
+ ) {
+ // Az órarendből a jelek:
+ $_targyJel = $T[$nap][$ora][$i]['targyJel'];
+ $_osztalyJel = $T[$nap][$ora][$i]['osztalyJel'];
+ $_teremId = ($T[$nap][$ora][$i]['teremId']=='')?'-':$T[$nap][$ora][$i]['teremId'];
+ echo '<pre style="text-align: left">';
+ echo "targyJel: $_targyJel\n";
+ echo "osztalyJel: $_osztalyJel\n";
+ echo "teremId: $_teremId\n";
+ echo "het/nap/ora: $het/$nap/$ora\n</pre>";
+
+ // és a hozzárendelt tankör:
+ echo '<select name="ORARENDKEY[]">';
+ echo '<option value="">'.'</option>';
+ foreach($TANKOROK as $_tankorId => $_TANKOR) {
+ // figyelem, nem ugyanazon tömb $i. elemét hasonlítjuk össze! , vizsgáljuk!!!!!!!
+ // de a feltételben szerepelnie kell, így nem probléma. --FIXME
+ $_SEL = ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) ? ' selected="selected" ': '';
+ if ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) {
+ $X[] = $_tankorId;
+ }
+ echo '<option value="'.$tanarId.'%'.$_osztalyJel.'%'.$_targyJel.'%'.$_tankorId.'"'.$_SEL.'>';
+ echo $_TANKOR[0]['tankorNev'];
+ echo "($_tankorId)";
+ $_blokkStr = array();
+ if (is_array($_TANKOR[0]['blokkAdat'])) {
+ for ($j=0; $j<count($_TANKOR[0]['blokkAdat']); $j++) {
+ $_blokkStr[] = $_TANKOR[0]['blokkAdat'][$j]['blokkNev'];
+ }
+ echo ' ['.implode(', ',$_blokkStr).'] ';
+ }
+ if (is_array($X) && in_array($_tankorId,$X)) echo '+';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="hidden" name="ORARENDKULCSOK[]" value="'.$tanarId.'%'.$_osztalyJel.'%'.$_targyJel.'" />';
+ } // if
+ } // for
+ } // else
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ echo '<div align="center"><input type="submit" class="sub" /></div>';
+ formEnd();
+ } else {
+ echo '<h2>Adj meg keresési feltételt!</h2>';
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml
new file mode 100644
index 00000000..9efa700e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml
@@ -0,0 +1,107 @@
+<?php
+
+ function putOrarendiOraValaszto($ADAT) {
+
+ global $aHetNapjai;
+
+ formBegin(array('class'=>'terem'));
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="orarendTeremModositas" />'."\n";
+
+ echo '<h1>'._ORARENDI_ORA_KIVALASZTASA.'</h1>'."\n";
+
+ $SEL = array($ADAT['tanarId'] => ' selected="selected" ');
+ echo '<label for="tanarId">'._TANAR.'</label>'."\n";
+ echo '<select name="tanarId" id="tanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['tanarok'] as $tanarId => $tAdat) {
+ echo '<option value="'.$tanarId.'"'.$SEL[$tanarId].'>'.$tAdat['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br />';
+ $SEL = array($ADAT['het'] => ' selected="selected" ');
+ echo '<label for="het">'._HET.'</label>'."\n";
+ echo '<select id="het" name="het">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['orarendiHetek']); $i++) {
+ $het = $ADAT['orarendiHetek'][$i];
+ echo '<option value="'.$het.'"'.$SEL[$het].'>'.$het.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ $SEL = array($ADAT['nap'] => ' selected="selected" ');
+ echo '<label for="nap">'._NAP.'</label>'."\n";
+ echo '<select id="nap" name="nap">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($aHetNapjai as $i => $napNev) {
+ $nap = $i+1;
+ echo '<option value="'.$nap.'"'.$SEL[$nap].'>'.$napNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ $SEL = array($ADAT['ora'] => ' selected="selected" ');
+ echo '<label for="ora">'._ORA.'</label>'."\n";
+ echo '<select id="ora" name="ora">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['orak']); $i++) {
+ $ora = $ADAT['orak'][$i];
+ echo '<option value="'.$ora.'"'.$SEL[$ora].'>'.$ora.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ }
+
+ function putTeremModosito($ADAT) {
+
+ formBegin(array('class'=>'terem'));
+
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<input type="hidden" name="het" value="'.$ADAT['het'].'" />'."\n";
+ echo '<input type="hidden" name="nap" value="'.$ADAT['nap'].'" />'."\n";
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+
+ echo '<input type="hidden" name="action" value="orarendTeremModositas" />'."\n";
+
+
+ echo '<h1>'._TEREM_MODOSITAS.'</h1>'."\n";
+
+ if (is_array($ADAT['orarendiOra']) && count($ADAT['orarendiOra'])>=1) {
+
+ echo '<strong>'.$ADAT['tankorok'][ $ADAT['tankorIndex'][ $ADAT['orarendiOra']['tankorId'] ] ]['tankorNev']
+ .' ('.$ADAT['orarendiOra']['tankorId'].') </strong>';
+ echo ' ['.$ADAT['orarendiOra']['osztalyJel'].', '.$ADAT['orarendiOra']['targyJel'].'] ';
+
+ $SEL = array($ADAT['orarendiOra']['teremId'] => ' selected="selected" ');
+ echo '<br /><select name="teremId" id="teremId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['termek'] as $teremId => $teremAdat) {
+ if ($teremId == $ADAT['orarendiOra']['teremId']) {
+ echo '<option value="'.$teremId.'" selected="selected" class="aktualis"> *** '.$teremAdat['leiras'].' ('.$teremId.') *** </option>'."\n";
+ } elseif (is_array($ADAT['foglaltTermek'][$teremId])) {
+ $foglaltAdat = $ADAT['foglaltTermek'][$teremId];
+ echo '<option value="'.$teremId.'"'.$SEL[$teremId].' class="foglalt">';
+ echo $teremAdat['leiras'].' ('.$teremId.')';
+ echo ' - '.$ADAT['tanarok'][ $foglaltAdat['tanarId'] ]['tanarNev'];
+ echo ', '.$ADAT['tankorok'][ $ADAT['tankorIndex'][$foglaltAdat['tankorId']] ]['tankorNev'].' ('.$foglaltAdat['tankorId'].')';
+ echo '</option>'."\n";
+ } else {
+ echo '<option value="'.$teremId.'"'.$SEL[$teremId].' class="szabad">'.$teremAdat['leiras'].' ('.$teremId.')</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ } else {
+ echo _NINCS_ORAJA;
+ }
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml
new file mode 100644
index 00000000..b4ab5bf0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml
@@ -0,0 +1,78 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ global $aHetNapjai;
+
+ if (is_array($ADAT['szabadTermek'])) {
+ $T = $ADAT['szabadTermek'];
+ $minOra=1;$maxOra=0;
+ $NAPOK = array();
+ foreach($T as $dt => $ORA) {
+ if(!in_array($dt,$NAPOK)) $NAPOK[] = $dt;
+ foreach ($ORA as $ora => $TERMEK) {
+ $X[$ora][$dt] = $TERMEK;
+ if ($maxOra<$ora) $maxOra = $ora;
+ if ($minOra>$ora) $minOra = $ora;
+ }
+ }
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+
+ formBegin(array('class'=>'teremKereso'));
+
+ echo '<span class="xsmall" data-c="xsmall">-10</span>';
+ echo '<span class="small" data-c="small">10-19</span>';
+ echo '<span class="normal" data-c="normal">20-29</span>';
+ echo '<span class="large" data-c="large">30-39</span>';
+ echo '<span class="xlarge" data-c="xlarge">40+</span>';
+
+ formEnd();
+
+ echo '<table class="orarend" align="center" cellpadding="0" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th></th>';
+ foreach ($NAPOK as $dt) {
+ $nap = date('w',strtotime($dt));
+ $_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': 'spec';
+ echo '<th class="'.$_th_class.'">';
+ echo $aHetNapjai[($nap-1)];
+ echo '<br/>'.$dt;
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tbody>'."\n";
+ for($ora=$minOra; $ora<=$maxOra; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ foreach ($NAPOK as $dt) {
+ echo '<td>';
+ for($i=0; $i<count($X[$ora][$dt]); $i++) {
+ $_teremId = $X[$ora][$dt][$i];
+ $ferohely = $ADAT['termek'][$_teremId]['ferohely'];
+ if ($ferohely>=40) $_class='xlarge';
+ elseif ($ferohely>=30) $_class='large';
+ elseif ($ferohely>=20) $_class='normal';
+ elseif ($ferohely>=10) $_class='small';
+ else $_class = 'xsmall';
+ if ($_teremId!='') {
+ $_title = 'Férőhely: '.($ADAT['termek'][$_teremId]['ferohely']); // ferohely, telephelyId, tipus
+ echo '<span class="teremAdat '.$_class.'" data-teremid="'.$_teremId.'" data-ferohely="'.$ferohely.'" title="'.$_title.'">';
+ echo $ADAT['termek'][$_teremId]['leiras'];
+ echo '</span> ';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml
new file mode 100644
index 00000000..c0968a52
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml
@@ -0,0 +1,38 @@
+<?php
+
+ function putTanarOrarend($Tanarok, $Orak, $napiMinOra, $napiMaxOra, $orarendiHet, $felev, $tolDt) {
+
+ formBegin(array('class'=>'orarend'));
+ echo '<input type="hidden" name="orarendiHet" value="'.$orarendiHet.'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$felev.'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="submit" name="csv" value="CSV" />'."\n";
+ echo '<input type="submit" name="xls" value="XLS" />'."\n";
+ echo '<input type="submit" name="txt" value="TXT" />'."\n";
+ echo '<input type="submit" name="html" value="HTML" />'."\n";
+ formEnd();
+
+/*
+ echo '<table>'."\n";
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ echo '<tr>'-"\n";
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+
+ echo '<th>'.$tanarNev.'</th>'."\n";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ echo '<td>'.$Ora['osztalyJel'].'<br />'.$Ora['targyJel'].'</td>'."\n";
+ }
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+*/
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/termez.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/termez.phtml
new file mode 100644
index 00000000..4d00f428
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/termez.phtml
@@ -0,0 +1,86 @@
+<?php
+
+ function putTermezo($ADAT) {
+
+ formBegin();
+ echo '<input type="submit" value="▁ ▂ ▃ ▄ ▅ ▆ ▇ do the magic thing! ♠ ♣ ♥ ♦" class="magic" />';
+ echo '<input type="hidden" name="action" value="magic" />';
+ formEnd();
+
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="beallitasokModositasa" />';
+
+ $P = $ADAT['teremPreferencia'];
+ echo '<table class="teremPreferencia" align="center" cellspacing="1">';
+ echo '<thead><tr><th>'._SORREND.'</th><th>'._TANAR.'</th><th>'._TARGY.'</th><th>'._TEREM_SORREND.'</th><th></th></tr>';
+ for ($i=0; $i<count($P); $i++) {
+ $_t = $P[$i];
+ $_order = $P[$i]['teremPreferenciaId'];
+ $_tanarId=$P[$i]['tanarId'];
+ $_targyId=$P[$i]['targyId'];
+ $_termek=explode(',',$P[$i]['teremStr']);
+
+ echo '<tr>';
+ echo '<td>';
+ $href = href('index.php?page=naplo&sub=orarend&f=termez&action=run&tolDt='.$ADAT['tolDt'].'&runTeremPreferenciaId='.$_order,array('sessionID','lang','policy'));
+ echo ' <a class="run" href="'.$href.'"><span class="icon-play-alt"></span></a>';
+ echo '<input type="text" name="teremPreferenciaId_'.$_order.'" value="'.$_order.'" />';
+ echo '</td>';
+ echo '<td>'.$ADAT['tanar'][$_tanarId]['tanarNev'] .' ('.$_tanarId.')</td>';
+ echo '<td>';
+ if ($_targyId>0) echo $ADAT['targy'][$_targyId][0]['targyNev']. ' ('.$_targyId.')';
+ echo '</td>';
+ echo '<td class="terem">';
+ echo str_replace(',',', ',$P[$i]['teremStr']);
+ /*
+ echo '<select multiple="multiple">';
+ for ($t=0; $t<count($_termek); $t++) {
+ echo '<option>';
+ echo $_termek[$t];
+ echo '</option>';
+ }
+ echo '</select>';
+ */
+ echo '</td>';
+ echo '<td>';
+ $href = href('index.php?page=naplo&sub=orarend&f=termez&action=del&delTeremPreferenciaId='.$_order,array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="ujTeremPreferenciaId" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="ujTanarId">';
+ foreach($ADAT['tanar'] as $__tanarId => $__tanarAdat) {
+ echo '<option value="'.$__tanarId.'">';
+ echo $__tanarAdat['tanarNev']. ' ('.$__tanarAdat['tanarId'].')';
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="ujTargyId">';
+ echo '<option value="NULL">-</option>';
+ foreach($ADAT['targy'] as $__targyId => $__targyAdat) {
+ echo '<option value="'.$__targyId.'">';
+ echo $__targyAdat[0]['targyNev']. ' ('.$__targyId.')';
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="text" name="ujTeremStr" value="" /> (termek vesszővel)';
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '<input type="submit" value="szabályrendszer módosítása" />';
+
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml
new file mode 100644
index 00000000..62a2de0c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml
@@ -0,0 +1,3 @@
+<?php
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml
new file mode 100644
index 00000000..c576c706
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml
@@ -0,0 +1,427 @@
+<?php
+
+ function putDiakTanulmanyiOsszesito($diakId, $ADAT) {
+
+ global $Honapok, $KOVETELMENY, $bizonyitvanyMegjegyzesek;
+
+ echo '<table class="tanuloBizonyitvany" align="center" cellpadding="0" cellspacing="0">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'.$ADAT['diakAdat']['viseltNevElotag'].' '.$ADAT['diakAdat']['viseltCsaladinev'].' '.$ADAT['diakAdat']['viseltUtonev'].'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="leiras" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._HIVATALOS_DT_SZERINT_CSOPORTOSITOTT.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="cim" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._TANULMANYI_OSSZESITOJE.'</th>';
+ echo '</tr>';
+ if (is_array($ADAT['diakKepzes'])) {
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ foreach($ADAT['diakKepzes'] as $index => $kepzesAdat) {
+ echo '<span title="['.$kepzesAdat['kepzesId'].']v'.$kepzesAdat['tanev'].'">'.$kepzesAdat['kepzesNev'].'</span> ';
+ }
+ echo '</th>';
+ echo '</tr>';
+ }
+ echo '<tr>';
+ echo '<th rowspan="2">'._TARGY.'</th>';
+ foreach ($ADAT['bizonyitvany']['tanevSzemeszterei'] as $tanev => $tAdat) echo '<th colspan="'.count($tAdat).'">'.$tanev.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['bizonyitvany']['tanevSzemeszterei'] as $tanev => $tAdat)
+ for ($i = 0; $i < count($tAdat); $i++) echo '<th>'.$tAdat[$i].'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<td colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ echo $ADAT['intezmeny']['cimHelyseg'].', ';
+ $ho = date('m');
+ echo date('Y').'. '.kisbetus($Honapok[--$ho]).' '.date('d').'.';
+ echo '</td>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody class="magatartasSzorgalom">';
+ echo '<tr>';
+ echo '<th class="magatartas">'._MAGATARTAS.'</th>';
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+ echo '<td class="biz magatartas">';
+ foreach ($ADAT['magatartasIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="szorgalom">'._SZORGALOM.'</th>';
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+ echo '<td class="biz szorgalom">';
+ foreach ($ADAT['szorgalomIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '<tbody>';
+
+ echo '<tr class="fejlec">';
+ echo '<th>'._TARGY.'</th>';
+ echo '<th colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._JEGY.'</th>';
+ echo '</tr>';
+
+ foreach ($ADAT['bizonyitvany']['jegyek'] as $targyId => $targyAdat) {
+
+ if (!in_array($targyId, array_merge($ADAT['magatartasIdk'],$ADAT['szorgalomIdk'])) ) {
+ // // $TARGYORATERV = $ADAT['kepzesOraterv'][$targyId];
+ echo '<tr>';
+ echo '<th>';
+ echo $ADAT['targyak'][$targyId]['targyNev'];
+ echo '<span class="noprint"> ('.$ADAT['targyak'][$targyId]['targyId'].')</span>';
+ echo '</th>';
+ /* Bizonyítvány kiírás */
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+
+ echo '<td class="biz">';
+ for ($j=0; $j<count($_jegyAdat); $j++) {
+ $jegyAdat = $_jegyAdat[$j];
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($jegyAdat['hivatalosDt'])) {
+ // // $_targyOraterv = $TARGYORATERV[$jegyAdat['evfolyamJel']][$jegyAdat['szemeszter']][0];
+ $_title = $jegyAdat['evfolyam'].'. évfolyam';
+ if ($jegyAdat['evfolyamJel']!='') $_title .= ' ('.$jegyAdat['evfolyamJel'].'. évfolyamjel)' ;
+ if ($_targyOraterv['kovetelmeny'] != $jegyAdat['jegyTipus']) {
+ $_title .= ' nem óraterv szerinti';
+ $_class = ' style="font-style:italic; color: #ffffff;" ';
+ } else {
+ $_class = '';
+ }
+ echo '<span title="'.$_title.'" '.$_class.'>';
+ echo $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'].'&nbsp;'.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ echo '</span>';
+
+ /* Ha ez vizsga volt, jegyezzük meg */
+ if (is_array($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']])) {
+ $_kiir = '('.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['tipus']
+ .', évfolyam:'.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['evfolyam']
+ .', évfolyamJel:'.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['evfolyamJel'].')- '.($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['szoveg']);
+ echo '<span title="'.$_kiir.'">&ordm;</span>';
+ $MEGJ[] = $_kiir;
+ }
+ $_kiir = '';
+ if ($j+1 < count($_jegyAdat)) echo '<br/>';
+ }
+ }
+
+ echo '</td>';
+ }
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ if (count($MEGJ)>0) {
+ echo '<tbody><tr><th colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ foreach ($MEGJ as $megj) echo $megj."<br />\n";
+ echo '</th></tr></tbody>';
+ }
+ echo '</table>'."\n";
+ }
+
+
+
+
+ function putDiakBizonyitvany($diakId, $ADAT) {
+
+ global $Honapok, $KOVETELMENY, $bizonyitvanyMegjegyzesek, $bizonyitvanyJegyzetek, $osztaly, $attrs;
+
+ echo '<table class="tanuloBizonyitvany" align="center" cellpadding="0" cellspacing="0">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th class="nev" colspan="2">'.$ADAT['diakAdat']['viseltNevElotag'].' '.$ADAT['diakAdat']['viseltCsaladinev'].' '.$ADAT['diakAdat']['viseltUtonev'].'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th class="leiras" colspan="2">'._AZ_OSZTALYZATOK_HIVATALOS_DT_SZERINTI.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="cim" colspan="2">'._ERTESITOJE.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _AZ.' '.$ADAT['intezmeny']['nev'].' ';
+ for ($i=0; $i<count($ADAT['diakAdat']['osztaly']); $i++) {
+ if ($i!=0) echo ' és';
+ echo $ADAT['diakAdat']['osztaly'][$i]['osztalyJel'];
+ }
+ echo ' '._OSZTALYABAN.'<br />';
+ echo ' '.$ADAT['szemeszterAdat']['tanev'].'-'.($ADAT['szemeszterAdat']['tanev']+1).' '._TANEV.' '.$ADAT['szemeszterAdat']['szemeszter'].'. '._SZEMESZTERBEN.' '._ELERT_EREDMENYEROL;
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo $ADAT['intezmeny']['cimHelyseg'].', ';
+ $ev = substr($ADAT['szemeszterAdat']['zarasDt'], 0, 4);
+ $ho = substr($ADAT['szemeszterAdat']['zarasDt'], 5, 2);
+ $nap = substr($ADAT['szemeszterAdat']['zarasDt'], 8, 2);
+ echo $ev.'. '.kisbetus($Honapok[--$ho]).' '.$nap.'.';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo '<table class="sign">';
+ echo '<tr>';
+ echo '<td class="vonal">&nbsp</td>';
+ echo '<td>'._PH.'</td>';
+ echo '<td class="vonal">&nbsp</td>';
+ echo '</tr><tr>';
+ echo '<td>'._OSZTALYFONOK.'</td>';
+ echo '<td>&nbsp;</td>';
+ echo '<td>'._SZULO.'</td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tfoot>'."\n";
+
+ echo '<tbody class="magatartasSzorgalom">'."\n";
+ echo '<tr>';
+ echo '<th class="magatartas">'._MAGATARTAS.'</th>';
+ echo '<td class="biz magatartas">';
+
+ foreach ($ADAT['magatartasIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th class="szorgalom">'._SZORGALOM.'</th>';
+ echo '<td class="biz szorgalom">';
+
+ foreach ($ADAT['szorgalomIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '<tbody>'."\n";
+
+ echo '<tr class="fejlec">';
+ echo '<th>'._TARGY.'</th>';
+ echo '<th>'._JEGY.'</th>';
+ if (defined('TANITASI_HETEK_SZAMA')) echo '<th>'._ORASZAM.'</th>';
+ echo '</tr>'."\n";
+ if (is_array($ADAT['bizonyitvany']['targyak']))
+ foreach ($ADAT['bizonyitvany']['targyak'] as $targyId => $targyAdat) {
+ $bizAdat = $ADAT['bizonyitvany']['jegyek'][$targyId];
+ if (!in_array($targyId, array_merge($ADAT['magatartasIdk'],$ADAT['szorgalomIdk']))) { // itt szűrendő ki a magatartás - szorgalom
+ $targyNev = $ADAT['targyak'][$targyId]['targyNev'];
+ // innen is lehetne // $targyNev = $targyAdat['targyNev'];
+ echo '<tr>';
+ echo '<th>';
+ echo $targyNev;
+ echo '</th>';
+
+ echo '<td class="biz">';
+
+ for ($_ji=0; $_ji<count($bizAdat); $_ji++) {
+ $jegyAdat = $bizAdat[$_ji];
+ /* Bizonyítvány kiírás */
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($jegyAdat['hivatalosDt'])) {
+ if ($_ji!=0) echo ', ';
+ echo $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ if (is_array($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']])) {
+ echo '<span title="'.($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['tipus']).'">&ordm;</span>';
+ }
+ if ($jegyAdat['megjegyzes'] != '') {
+ $jegyzetStr .= str_replace('%1%', $targyNev, $bizonyitvanyJegyzetek[$jegyAdat['megjegyzes']]).'<br />';
+ }
+ }
+ }
+ echo '</td>'."\n";
+
+ if (defined('TANITASI_HETEK_SZAMA')) {
+ // Óraszámok
+ echo '<td class="oraszam">';
+ echo $ADAT['bizonyitvany']['targyOraszam'][$targyId]['evesOraszam'];
+ echo '</td>';
+ }
+ /* ------------------- */
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</tbody>'."\n";
+
+ if (__ZARO_SZEMESZTER) {
+ $class = 'hianyzas';
+ $txt = '';
+ } else {
+ $class = 'hianyzas nemNyomtatando';
+ $txt = '<br /><span class="megj">'._IGAZOLATLAN_SZAM_MEGJEGYZES.'</span>';
+ }
+ echo '<tbody class="'.$class.'">';
+ echo '<tr class="fejlec">';
+ echo '<th colspan="2">'._MULASZTOTT_ORAK_SZAMA.$txt.'</th>';
+ echo '<th>'._MULASZTOTT_ELMELET_GYAKORLAT.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.'</th>';
+ echo '<td class="biz">';
+ echo intval($ADAT['hianyzas']['igazolt']);
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo intval($ADAT['hianyzas']['elmélet']['igazolt']);
+ echo '-';
+ echo intval($ADAT['hianyzas']['gyakorlat']['igazolt']);
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ echo '<td class="biz">';
+ echo intval($ADAT['hianyzas']['igazolatlan']);
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo intval($ADAT['hianyzas']['elmélet']['igazolatlan']);
+ echo '-';
+ echo intval($ADAT['hianyzas']['gyakorlat']['igazolatlan']);
+ echo '</td>';
+
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._KESESPERC.'</th>';
+ echo '<td class="biz">';
+ echo floor(($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] + $ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']) / 45)
+ .' ('.intval($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] + $ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']).' '._PERC.')';
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo floor($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] / 45).' ('.intval($ADAT['hianyzas']['elmélet']['kesesPercOsszeg']).' '._PERC.')';
+ echo '-';
+ echo floor($ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg'] / 45).' ('.intval($ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']).' '._PERC.')';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+ echo '<tbody class="jegyzet">'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo $jegyzetStr;
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ }
+
+////////////////////////////////!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+ function putZaroJegyModosito($diakId, $ADAT) {
+
+ global $KOVETELMENY;
+ global $_EVFOLYAMJEL_BETUVEL;
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ formBegin(array('class'=>'modosit'));
+
+ echo '<h1>'._JEGYMODOSITAS.' (csak speciális esetben!)</h1>';
+ echo '<input type="hidden" name="action" value="zaroJegyModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ //EZNEMJO echo '<input type="hidden" name="osztalyId" value="'.$ADAT['diakAdat']['osztaly'][0]['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="targySorrend" value="'.$ADAT['targySorrend'].'" />'."\n";
+
+
+ echo '<table class="jegy" cellspacing="1" cellpadding="1">';
+
+ echo '<tfoot><tr><th colspan="2">';
+ echo '<input type="submit" class="confirm" title="'._BIZTOS_E.'" value="'._OK.'" />'."\n";
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody><tr>';
+ echo '<th>'._TARGY.'</th>';
+ echo '<td>';
+ // tárgy kiválasztása
+ echo '<select name="targyId">'."\n";
+ echo '<option value="">-</option>'."\n";
+ foreach ($ADAT['targyak'] as $targyId => $targyAdat) {
+ echo '<option value="'.$targyId.'">'.$targyAdat['targyNev'].' ('.$targyAdat['zaroKovetelmeny'].') ['.$targyId.']</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._EVFOLYAM.'</th>';
+ echo '<td>';
+
+ // évfolyam kiválasztás:
+ if (count($ADAT['diakEvfolyamJel'])>0) {
+ echo '<select name="evfolyam">';
+ // foreach ($ADAT['diakEvfolyamJel'] as $_evfolyamJel) echo '<option value="'.$_evfolyamJel.'">'.$_evfolyamJel.'</option>';
+ foreach($_EVFOLYAMJEL_BETUVEL as $_evfolyamJel => $_betuvel) {
+ $_SEL = (in_array($_evfolyamJel,$ADAT['diakEvfolyamJel'])) ? 'selected="selected"':'';
+ echo '<option value="'.$_evfolyamJel.'" '.$_SEL.'>'.$_evfolyamJel.' - '.$_betuvel.'</option>';
+ }
+ echo '</select>';
+ } else { // csak egy van (vagy egy se ... :(
+ echo ($evfolyamJel = $ADAT['diakEvfolyamJel'][0]).". ".((_EVFOLYAM));
+ }
+ echo '</td>';
+ echo '</tr>';
+
+
+ echo '<tr>';
+ echo '<th>'._JEGY.'</th>';
+ echo '<td>';
+
+ // jegy kiválsztása
+ $JEGYSELECT = array(
+ 'variable' => 'zaroJegy',
+ 'zaroJegyTipusok' => $ADAT['zaroJegyTipusok'],
+ 'diakId' => $diakId,
+// 'evfolyam' => $evfolyam, // nem biztos hogy van evfolyamunk, lehet hogy a select-ben definiált
+ 'targyId' => null, // nincs targyId-nk. Ez az előző select kimenete
+ 'tanev'=>$ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter'=>$ADAT['szemeszterAdat']['szemeszter'],
+ );
+ putJegySelect($JEGYSELECT); // használjuk a shared könyvtár függvényeit
+
+ echo '</td></tr></tbody>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
new file mode 100644
index 00000000..79c33e0f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
@@ -0,0 +1,235 @@
+<?php
+/*
+ Module: naplo
+*/
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putTanuloJegyek($diakId, $diakNev, $Jegyek, $tolDt = '', $igDt = '', $ADAT) {
+
+ global $_TANEV, $Honapok, $Osztalyzatok, $bizonyitvanyMegjegyzesek, $KOVETELMENY, $SULYOZAS;
+ $_SULYTOMB = explode(':',$ADAT['sulyozas']);
+
+ if ($tolDt == '') $tolDt=$_TANEV['kezdesDt'];
+ if ($igDt == '') $igDt=$_TANEV['zarasDt'];
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $Targyak = $Jegyek['targyak'];
+ $Dolgozatok = $Jegyek['dolgozat'];
+ $hianyzoDolgozatok = $Jegyek['hianyzoDolgozatok'];
+ // ----------------------------------------
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'év' => $ev,
+ 'hó' => $ho
+ );
+ $HO['count']++;
+ $aktDt = date('Y-m-01',strtotime('next month',strtotime($aktDt)));
+ }
+
+ formBegin();
+ echo '<table class="osztalyozo" align="center" cellpadding="0" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ if (__SHOW_FACES_TF) {
+ echo '<th id="virtualJegyEasterEgg">';
+ echo '</th>';
+ $_sub=-1;
+ } else $_sub=0;
+ echo '<th class="nev diakNev" data-diakid="'.$diakId.'" colspan="'.($HO['count']+count($_TANEV['szemeszter'])-1+$_sub).'">';
+ putFace($diakId,'diak');
+ echo ' '.$diakNev.' '.$_osztalystr;
+ echo '</th>'."\n";
+
+ if (__ATLAG_MUTATAS !== false) {
+ if (__DEFAULT_SULYOZAS == $ADAT['sulyozas']) $_class="defaultSulyozas";
+ echo '<th class="'.$_class.'">';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ $SEL = array($ADAT['sulyozas'] => ' selected="selected"');
+ echo '<select name="sulyozas" id="sulyozas" class="XXXonChangeSubmit">';
+ echo '<option value=""></option>';
+ if (is_array($SULYOZAS) && count($SULYOZAS) > 0) {
+ for ($i = 0; $i < count($SULYOZAS); $i++)
+ echo '<option value="'.$SULYOZAS[$i].'"'.$SEL[$SULYOZAS[$i]].'>'.$SULYOZAS[$i].'</option>';
+ } else {
+ // ide nem jöhetünk. vizsgáljuk meg feljebb
+ echo '<option value="1:1:1:1:1"'.$SEL['1:1:1:1:1'].'>'.'1:1:1:1:1</option>';
+ echo '<option value="1:1:1:2:2"'.$SEL['1:1:1:2:2'].'>'.'1:1:1:2:2</option>';
+ echo '<option value="1:2:2:4:4"'.$SEL['1:2:2:4:4'].'>'.'1:2:2:4:4</option>';
+ echo '<option value="1:1:2:2:4"'.$SEL['1:1:2:2:4'].'>'.'1:1:2:2:4'.'</option>';
+ }
+ echo '</select>';
+
+ echo '</th>';
+ }
+
+ echo '<th class="biz" colspan="2">'._BIZONYITVANY.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th rowspan="2">'._TARGY.'</th>'."\n";
+ for ($i = 0; $i < $HO['count']; $i++) {
+ echo '<td class="ho">';
+ echo '<span class="roman">'.decimal_to_roman($HO[$i]['hó']).'.</span>';
+ echo '<span class="literal">'.$Honapok[$HO[$i]['hó']-1].'</span>';
+ echo '</td>'."\n";
+ }
+ if (__ATLAG_MUTATAS !== false) echo '<th>'._ATLAG.'</th>'."\n";
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ echo '<th class="biz">'.$szemeszterAdat['szemeszter'].'</th>'."\n";
+ }
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.($HO['count']+2).'">';
+ echo '<span class="jegy0"></span>';
+ echo '<span class="jegy1">'._KIS_JEGY.'</span>';
+ echo '<span class="jegy2">'._NORMAL_JEGY.'</span>';
+ echo '<span class="jegy3">'._DOLGOZAT.'</span>';
+ echo '<span class="jegy4">'._TEMAZARO.'</span>';
+ echo '<span class="jegy5">'._VIZSGAJEGY.'</span>';
+ echo '</th>'."\n";
+ echo '<th colspan="2">&nbsp;</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+// foreach ($Targyak as $targyId => $targyAdat) {
+ for ($t=0; $t<count($ADAT['diakTargy']); $t++) {
+ $targyId = $ADAT['diakTargy'][$t]['targyId'];
+ $targyNev= $ADAT['diakTargy'][$t]['targyNev'];
+ $targyAdat = $Targyak[$targyId];
+
+ if (in_array($ADAT['diakTargy'][$t]['evkoziKovetelmeny'],array('','nincs')) && in_array($ADAT['diakTargy'][$t]['zaroKovetelmeny'],array('','nincs'))) continue;
+ $_title = $ADAT['diakTargy'][$t]['evkoziKovetelmeny'].'/'.$ADAT['diakTargy'][$t]['zaroKovetelmeny'].'['.$targyId.']';
+
+ echo '<tr>'."\n";
+ echo '<th class="t" title="'.$_title.'">';
+ if (count($ADAT['targyTankor'][$targyId]) == 1) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$ADAT['targyTankor'][$targyId][0]['tankorId']).'">'.$targyNev.'</a>';
+ } else
+ echo $targyNev;
+ /* VIRTUAL */
+ echo ' <select class="eeHidden" style="display:none"><option value="1">kis</option><option value="2">normál</option><option value="3">dolgozat</option><option value="4">témazáró</option><option value="5">vizsga</option></select>';
+ putJegySelect(array(
+ 'class'=>'eeHidden',
+ 'style'=>'display:none',
+ 'jegySelectTipus'=>'jegy',
+ 'targyId'=>$targyId,
+ 'jegyTipus'=>$ADAT['diakTargy'][$t]['evkoziKovetelmeny']
+ ));
+ echo '<span class="addVirtualJegy eeHidden icon-plus-sign" style="display:none"></span>';
+ // ----------
+ echo '</th>'."\n";
+ for ($j = 0; $j < $HO['count']; $j++) {
+ echo '<td>';
+ $honapJegyei = $targyAdat[$HO[$j]['év']][$HO[$j]['hó']];
+ for ($k = 0; $k < count($honapJegyei); $k++) {
+ $jegyAdat = $Jegyek['jegyek'][$honapJegyei[$k]];
+ if ($KOVETELMENY[$jegyAdat['jegyTipus']]['átlagolható']===true) {
+ $JEGYATLAG[$j][$jegyAdat['jegyTipus']]['normal'][] = $jegyAdat['jegy']; // kulcsok szerinti átlag
+ $JEGYATLAG[$j][$jegyAdat['jegyTipus']]['jegyAdat'][] = $jegyAdat;
+ }
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegyAdat['jegyId']);
+ $_jegyShow = $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['rovid'];
+ if ($jegyAdat['tipus'] < 3) $title = $jegyAdat['tankorNev'].' ('.$jegyAdat['dt'].') '.$jegyAdat['megjegyzes'];
+ else $title = $Dolgozatok[$jegyAdat['dolgozatId']]['dolgozatNev'].' ('.$jegyAdat['dt'].')'.' - '.$jegyAdat['tankorNev'].' '.$jegyAdat['megjegyzes'];
+ echo '<a onclick="return false;" class="jegyAdat jegy jegy'.$jegyAdat['tipus'].'" href="'.$href.'" title="'.htmlspecialchars($title).'"
+ data-targyid="'.$targyId.'"
+ data-jegyid="'.$jegyAdat['jegyId'].'"
+ data-jegy="'.$jegyAdat['jegy'].'" data-jegytipus="'.$jegyAdat['jegyTipus'].'" data-tipus="'.$jegyAdat['tipus'].'">';
+ echo ($_jegyShow!='') ? $_jegyShow.'' : '?';
+ if ($jegyAdat['dt']!=date('Y-m-d',strtotime($jegyAdat['modositasDt']))) echo '<sup title="Módosítva: '.$jegyAdat['modositasDt'].'">*</sup>';
+ echo ' </a>';
+ }
+ if (is_array($hianyzoDolgozatok[$targyId][$HO[$j]['év']][$HO[$j]['hó']])) {
+ $honapDolgozatai = $hianyzoDolgozatok[$targyId][$HO[$j]['év']][$HO[$j]['hó']];
+ for ($k = 0; $k < count($honapDolgozatai); $k++) {
+ $dolgozatAdat = $Dolgozatok[$honapDolgozatai[$k]];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$dolgozatAdat['dolgozatId']);
+ $title = $dolgozatAdat['dolgozatNev'].' ('.$dolgozatAdat['bejelentesDt'].')';
+ echo '<a class="jegy4" href="'.$href.'" title="'.htmlspecialchars($title).'" data-dolgozatid="'.$dolgozatAdat['dolgozatId'].'"> – </a>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ if (__ATLAG_MUTATAS !== false) {
+ echo '<th class="atlag" id="targyAtlag_'.$targyId.'" data-targyid="'.$targyId.'">'.(($ADAT['sulyozas']!='')?$targyAdat['atlag']:'').'</th>'."\n";
+ }
+
+ /* Bizonyítvány kiírás */
+ // Ehelyett használható lenne a share putJegySelect() is! --TODO 2016-2017
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ $tanev = $szemeszterAdat['tanev'];
+ $szemeszter = $szemeszterAdat['szemeszter'];
+ $_BIZ = $ADAT['zaroJegyek'][$diakId][$targyId][$tanev][$szemeszter];
+ echo '<td class="biz">'."\n";
+ for ($ji=0; $ji<count($_BIZ); $ji++) {
+ $zaroJegy = $_BIZ[$ji]['jegy'];
+ $megjegyzes = $_BIZ[$ji]['megjegyzes'];
+ $jegyTipus= $_BIZ[$ji]['jegyTipus'];
+ $jegy= $_BIZ[$ji]['jegy'];
+ if ($KOVETELMENY[$jegyTipus]['átlagolható']===true) {
+ $ZJATLAG[$tanev][$szemeszter][] = $jegy;
+ }
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($szemeszterAdat['zarasDt'])) {
+ $_sikertelenClass = (in_array( $jegy, $KOVETELMENY[$jegyTipus]['sikertelen']))? ' class="sikertelen" ': '';
+ echo '<span title="évfolyam:'.$_BIZ[$ji]['evfolyam'].' jel:'.$_BIZ[$ji]['evfolyamJel'].'" '.$_sikertelenClass.' >';
+ echo $KOVETELMENY[$jegyTipus][$jegy]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$megjegyzes];
+ echo '</span>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+
+ /* ------------------- */
+
+ echo '</tr>'."\n";
+ }
+ //----------
+ echo '<tr><th style="text-align:right;">'._ATLAG.':</th>';
+ for ($j = 0; $j < $HO['count']; $j++) {
+ echo '<th>';
+ foreach (array('féljegy','jegy') as $atlagolhatoJegyTipus) {
+ // if (count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal'])>0) {
+ // echo $s[$j] = number_format( (array_sum($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal']) / count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal'])),2);
+ // if (intval($s[$j-1])!=0 && ($s[$j-1]-$s[$j])<-0.2) echo ' <span style="color:lightgreen" class="icon-chevron-up"></span>';
+ // elseif (intval($s[$j]!=0) && ($s[$j-1]-$s[$j])>0.2) echo ' <span style="color:red" class="icon-chevron-down"></span>';
+ // }
+ if (count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat'])>0) {
+ $_J = $JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat'];
+ $_haviSulyoz = 0;
+ $_haviOszto = 0;
+ for ($x=0; $x<count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat']); $x++) {
+ $_haviSulyoz += $_J[$x]['jegy'] * $_SULYTOMB[($_J[$x]['tipus']-1)];
+ $_haviOszto += $_SULYTOMB[($_J[$x]['tipus']-1)];
+ }
+ if ($_haviOszto>0) {
+ echo $s[$j] = number_format( ($_haviSulyoz/$_haviOszto), 2, ',','.');
+ if (intval($s[$j-1])!=0 && ($s[$j-1]-$s[$j])<-0.2) echo ' <span style="color:lightgreen" class="icon-chevron-up"></span>';
+ elseif (intval($s[$j]!=0) && ($s[$j-1]-$s[$j])>0.2) echo ' <span style="color:red" class="icon-chevron-down"></span>';
+ }
+ }
+ }
+ echo '</th>';
+ }
+ echo '<th></th>';
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ echo '<th>';
+ if (count($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']])>0) {
+ echo number_format(array_sum($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']]) / count($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']]),2,',','.');
+ }
+ echo '</th>';
+ }
+ echo '</tr>';
+ // -------
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+ formEnd();
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml
new file mode 100644
index 00000000..e145b5fc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml
@@ -0,0 +1,313 @@
+<?php
+/*
+ module: naplo
+ function putDolgozatLista($DOLGOZAT)
+ function putDolgozat($DOLGOZAT,$TANAR_NEVSOR)
+*/
+
+ function putDolgozatLista($Dolgozat) {
+
+ global $tanarId, $diakId, $tankorId, $osztalyId;
+ global $aHetNapjai;
+
+ echo '<table class="dolgozatLista" align="center" cellspacing="1">';
+
+ echo '<thead><tr>';
+ echo '<th colspan="5">'._DOLGOZATOK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="2">'._DOLGOZAT.'</th>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '</tr></thead><tfoot><tr><th colspan="5"></th></tfoot>';
+
+ echo '<tbody>';
+ $kuszob=false;
+
+ if (count($Dolgozat['dolgozatIds']) > 0) {
+ for ($i = count($Dolgozat['dolgozatIds'])-1; $i >= 0; $i--) {
+ $dolgozatId = $Dolgozat['dolgozatIds'][$i];
+ if (!$kuszob && strtotime($Dolgozat[$dolgozatId]['tervezettDt'])<=time()) {
+ echo '<tr><th class="kuszob" colspan="5">'.'</th></tr>';
+ $kuszob=true;
+ }
+ echo '<tr>';
+ echo '<th>';
+ if (__MODOSITHAT) {
+ // ide jön a form action=dolgozatTorles
+ echo 'x';
+ } else {
+ echo ($i+1).'.';
+ }
+ echo '</th>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='."$dolgozatId&tanarId=$tanarId&osztalyId=$osztalyId&diakId=$diakId&tankorId=$tankorId").'">';
+ if ($Dolgozat[$dolgozatId]['dolgozatNev'] != '') echo $Dolgozat[$dolgozatId]['dolgozatNev'];
+ else echo _NINCS_KITOLTVE;
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+
+ $Tankorok = $Dolgozat[$dolgozatId]['tankor'];
+ $TankorLista = array();
+ for ($t = 0; $t < count($Tankorok); $t++) $TankorLista[] = $Tankorok[$t]['tankorNev'];
+ echo implode('<br />',$TankorLista);
+
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['bejelentesDt'];
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['tervezettDt'];
+ if ($_dt != '0000-00-00' && $_dt != '') {
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ }
+
+ echo '<div class="dolgozatDATA" style="display:none"
+ data-dolgozatadat="'.implode('+',$TankorLista).':'.$Dolgozat[$dolgozatId]['bejelentesDt'].':'.$Dolgozat[$dolgozatId]['tervezettDt'].'"></div>';
+
+ echo '</td>';
+ echo '</tr>';
+ flush();
+ }
+ } else {
+ echo '<tr>';
+ echo '<td colspan="5" class="nincsdolgozat">'._NINCS_DOLGOZAT.'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ echo '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>';
+ echo '<div id="chart_div"></div>';
+ }
+
+ function putDolgozat($Dolgozat, $valaszthatoTankorok, $Tanarok, $ADAT) {
+
+ global $_TANEV, $KOVETELMENY;
+
+ if (__MODOSITHAT) $disabled = '';
+ else $disabled=' disabled="disabled" ';
+
+ $kepMutat = $ADAT['kepMutat'];
+
+ // -------------- A dolgozat adatai -------------- //
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatModositas" />';
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />';
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="4">'._DOLGOZAT_ADATAI.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ if (__MODOSITHAT) echo '<input type="submit" value="'._OK.'" />';
+ if (__TOROLHET) echo '<input type="submit" name="dolgozatTorles" value="'._DOLGOZAT_TOROL.'" class="confirm" title="'._BIZTOS_DOLGOZAT_TOROL.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody class="hideShowContainer">';
+ echo '<tr>';
+ echo '<th>'._MEGNEVEZES.'</th>';
+ echo '<td colspan="3"><input class="hosszu" type="text" name="dolgozatNev" value="'.$Dolgozat['dolgozatNev'].'" '.$disabled.' /></td>';
+ echo '</tr><tr>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<td>'.$Dolgozat['bejelentesDt'].'</td>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '<td>';
+ echo '<input type="text" class="date" name="tervezett-dt" value="'.$Dolgozat['tervezettDt'].'" '.$disabled.' />';
+ echo '<span title="'._BEJELENTETT_DOLGOZATOK.'" class="onClickHideShow openable">&uarr;</span>';
+ echo '<span title="'._BEJELENTETT_DOLGOZATOK.'" class="onClickHideShow openable" style="display: none;">&darr;</span>';
+ echo'</td>';
+ echo '</tr>';
+ echo '<tr class="openable" style="display: ;">'."\n";
+ echo '<th>'._BEJELENTETT_DOLGOZATOK.'</th>';
+ echo '<td colspan="3">';
+ echo '<ul class="openableee">';
+ foreach ($Dolgozat['utkozoDolgozatok']['tervezett'] as $dt => $dAdat) {
+ foreach ($dAdat as $index => $did) {
+ echo '<li>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did).'">';
+ echo $Dolgozat['utkozoDolgozatok'][$did]['tervezettDt'];
+ echo ' - ';
+ echo $Dolgozat['utkozoDolgozatok'][$did]['dolgozatNev'];
+ echo ' ('.$Dolgozat['utkozoDolgozatok'][$did]['tankor'][0]['tankorNev'].')';
+ echo '</a>';
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+
+ echo '<thead>'."\n";
+ echo '<tr><th>'._TANKOROK.'</th></tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot><tr><td></td></tr></tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+
+ // tankör választás
+ echo '<td>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatTankorHozzarendeles" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<select name="tankorIds[]" multiple="multiple" class="multiple"'.$disabled.'>'."\n";
+ for ($i = 0;$i < count($valaszthatoTankorok); $i++) {
+ if (in_array($valaszthatoTankorok[$i]['tankorId'], $Dolgozat['tankorIds']))
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'" selected="selected">';
+ else
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'">';
+ echo $valaszthatoTankorok[$i]['tankorNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ if (__MODOSITHAT) echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ // -------------- A dolgozat jegyei -------------- //
+
+ if (__NAPLOADMIN || __VEZETOSEG || __TANAR) {
+
+ $colspan = count($Dolgozat['tankor'])*2;
+ $_colspan=2;
+ if ($kepMutat) {
+ $colspan+=(count($Dolgozat['tankor']));
+ $_colspan++;
+ }
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="dolgozatJegyekTorlese" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<table align="center" class="dolgozatJegyek" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="'.$colspan.'">'._JEGYEK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ $maxDiakSzam = 0;
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ if ($maxDiakSzam < ($_count = count($Dolgozat['tankor'][$j]['diakok']['idk'])))
+ $maxDiakSzam = $_count;
+ echo '<th colspan="'.$_colspan.'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$Dolgozat['tankor'][$j]['tankorId']).'">';
+ echo $Dolgozat['tankor'][$j]['tankorNev'];
+ echo '</a>';
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ if ($kepMutat) echo '<th></th>';
+ echo '<th>'._NEV.'</th>';
+ echo '<th>'._JEGY.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ echo '<th colspan="'.$_colspan.'">';
+ echo '<input type="submit" name="tankorId'.$tankorId.'" value="'._TOROL.'" class="confirm" title="'._BIZTOS_TOROLE.'" />'."\n";
+ echo '</th>';
+ }
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ echo '<tbody>'."\n";
+ for ($i = 1; $i <= $maxDiakSzam; $i++) {
+ echo '<tr>'."\n";
+
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ if (is_array($Dolgozat['tankor'][$j]['diakok']['nevek'])) {
+ reset($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ for ($d = 0; $d < $i; $d++)
+ list($diakId, $diakAdat) = each($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ $diakNev = $diakAdat['diakNev'];
+ } else { $diakNev = ''; }
+
+ if ($kepMutat) {
+ echo '<td class="diakNev" data-diakid="'.$diakId.'">';
+ putFace($diakId,'diak');
+ echo '</td>';
+ }
+ echo '<th><a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">'.$diakNev.'</a></th>'."\n";
+ echo '<td>';
+ if (is_array($tankorAdat['jegyek'][$diakId])) {
+ for ($k = 0; $k < count($tankorAdat['jegyek'][$diakId]);$k++) {
+ $jegy = $tankorAdat['jegyek'][$diakId][$k];
+ if ($KOVETELMENY[ $jegy['jegyTipus'] ]['átlagolható']===true) $ATLAG[$jegy['jegyTipus']][] = $jegy['jegy'];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegy['jegyId']);
+ $title = $jegy['dt'].' '.$jegy['megjegyzes'];
+ echo '<a href="'.$href.'" class="jegy'.$jegy['tipus'].'" title="'.htmlspecialchars($title).'">';
+ echo $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['rovid'].' ';
+ echo '</a>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ if (is_array($ATLAG) && count($ATLAG)>0) {
+ foreach ($ATLAG as $jegyTipus => $A) {
+ echo '<tr class="atlag">';
+ echo '<th colspan="2">';
+ echo $jegyTipus;
+ echo '</th>';
+ echo '<td>'.number_format(array_sum($ATLAG[$jegyTipus])/count($ATLAG[$jegyTipus]),2).'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ } // csak admin, tanár és igazgató láthatja az összes jegyet!
+
+
+ }
+
+ function putDolgozatBejelento($tankorId) {
+
+ formBegin(array('class'=>'dolgozat'));
+ echo '<input type="hidden" name="action" value="dolgozatBejelentes" />';
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />';
+ echo '<input type="submit" value="'._DOLGOZAT_BEJELENTES.'" />';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml
new file mode 100644
index 00000000..b24e8b43
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml
@@ -0,0 +1,164 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putJegyInfo($jegy, $Orak, $Dolgozatok, $ADAT) {
+
+ global $jegyTipusok, $aHetNapjai, $skin;
+ global $KOVETELMENY;
+
+ if (_MODOSITHAT) $DIS=''; else $DIS=' disabled="disabled"';
+ $kepMutat = $ADAT['kepMutat'];
+
+ $colspan=5;
+ $_colspan=1;
+ if ($kepMutat) {
+ $colspan++;
+ $_colspan++;
+ }
+
+ formBegin(array('method' => 'post', 'id' => 'jegyMod', 'action' => href('index.php?page=naplo&sub=osztalyozo&f=jegy')), array('skipFormTag'=>$skin == 'ajax','print'=>true));
+ echo '<input type="hidden" name="action" value="jegyModositas" />'."\n";
+ echo '<input type="hidden" id="jegyId" name="jegyId" value="'.$jegy['jegyId'].'" />'."\n";
+ echo '<table align="center" cellspacing="1" cellpadding="0" class="jegyInfo">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.$colspan.'">';
+
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$jegy['diakId']).'">';
+ echo $jegy['diakNev'];
+ echo '</a>';
+
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.$colspan.'">'."\n";
+ if (_MODOSITHAT) {
+ echo '<input type="submit" class="modosit" id="jegyModositas" value="'._ROGZIT.'" />'."\n";
+ echo '<input type="submit" id="jegyTorles" name="jegyTorles" class="confirm onClickUpdateAction torol" value="'._TOROL.'" title="'._BIZTOSE.'" />'."\n";
+ }
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ putFace($jegy['diakId'],'diak');
+ echo '</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$jegy['tankorId'])).'">';
+ $tanarLista = '';
+ for ($i = 0; $i < count($jegy['tanár']['idk']); $i++) $tanarLista .= $jegy['tanár'][$i]['tanarNev'].', ';
+ echo $jegy['tankör'][0]['tankorNev'].' ('.substr($tanarLista, 0, -2).')';
+ echo '</a>'."\n";
+ echo '<br/>'.$jegy['dt'].' ('.$aHetNapjai[(date('w',strtotime($jegy['dt']))+6) % 7].')'."\n";
+ if ($jegy['modositasDt']!='0000-00-00 00:00:00')
+ echo '<br/>'.$jegy['modositasDt'].' ('.$aHetNapjai[(date('w',strtotime($jegy['modositasDt']))+6) % 7].')'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th></th>';
+ echo '<td>'."\n";
+ $SEL = array($jegy['jegy'] => ' selected="selected" ');
+ $_ok = false;
+ echo '<select id="jegyValaszto" name="jegy"'.$DIS.'>'."\n";
+ foreach ($KOVETELMENY as $jegyTipus => $jAdat) {
+ if ($jegyTipus == $jegy['jegyTipus'] || (__JEGYTIPUS_VALTHATO === true && in_array($jegyTipus, $ADAT['jegyTipusok']))) {
+ echo '<optgroup label="'.$jegyTipus.'">';
+ if ($jegyTipus == $jegy['jegyTipus']) $SEL = array($jegy['jegy'] => ' selected="selected" ');
+ else $SEL = array();
+ for ($i = 0; $i < count($KOVETELMENY[$jegyTipus]['értékek']); $i++) {
+ $j = $KOVETELMENY[$jegyTipus]['értékek'][$i];
+ $_jegyShow = $KOVETELMENY[$jegyTipus][$j]['rovid'];
+ echo '<option value="'."$jegyTipus:$j".'" '.$SEL[$j].'>'.$_jegyShow.'</option>'."\n";
+ if ($SEL[$j]!='') $_ok = true;
+ }
+ echo '</optgroup>'."\n";
+ }
+ }
+ if ($_ok===false)
+ echo '<option value="'.$jegy['jegy'].'" selected="selected" >'.$jegy['jegy'].$jegy['jegyTipus'].' (!hibás!)</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ $SEL = array($jegy['tipus'] => ' selected="selected"');
+ echo '<select id="jegyTipus" name="tipus"'.$DIS.'>'."\n";
+ echo '<option value="0">'.$jegyTipusok[0].'</option>'."\n";
+ if ($jegy['dolgozatId'] == '') {
+ echo '<option value="1"'.$SEL[1].'>'.$jegyTipusok[1].'</option>'."\n";
+ echo '<option value="2"'.$SEL[2].'>'.$jegyTipusok[2].'</option>'."\n";
+ } else {
+ echo '<option value="3"'.$SEL[3].'>'.$jegyTipusok[3].'</option>'."\n";
+ echo '<option value="4"'.$SEL[4].'>'.$jegyTipusok[4].'</option>'."\n";
+ echo '<option value="5"'.$SEL[5].'>'.$jegyTipusok[5].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._MEGJEGYZES.'</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<input type="text" name="megjegyzes" value="'.$jegy['megjegyzes'].'" '.$DIS.'/>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+
+ // -------- Óra hozzárendelés -------- //
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._HOZZARENDELT_ORA.'</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ $SEL = array($jegy['oraId'] => ' selected="selected"');
+ echo '<select name="oraId"'.$DIS.'>'."\n";
+ echo '<option value="NULL">'._NINCS.'</option>';
+ for ($i = 0;$i < count($Orak); $i++) {
+ echo '<option value="'.$Orak[$i]['oraId'].'" '.$SEL[$Orak[$i]['oraId']].'>';
+ echo $Orak[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6) % 7].') '
+ .$Orak[$i]['ora'].'. '._ORA;
+ echo ': '.$Orak[$i]['leiras'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ // -------- Ha dolgozat jegy - a dolgozat adatai -------- //
+
+ if ($jegy['tipus'] > 2) {
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$jegy['dolgozatId'])).'">'.ucfirst(_DOLGOZAT).'</a></th>'."\n";
+ echo '<td colspan="2">'."\n";
+ $SEL = array($jegy['dolgozatId'] => ' selected="selected"');
+ echo '<select name="dolgozatId"'.$DIS.'>';
+ for ($i = 0;$i < count($Dolgozatok['dolgozatIds']);$i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ echo '<option value="'.$dolgozatId.'" '.$SEL[$dolgozatId].'>';
+ echo $Dolgozatok[$dolgozatId]['dolgozatNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ }
+ echo '</table>';
+
+ if ($skin != 'ajax') formEnd();
+
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
new file mode 100644
index 00000000..4ede6060
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
@@ -0,0 +1,691 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putIskolaStatisztika($ADAT) {
+
+ echo '<table class="iskolaStatisztika" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._SZEMPONT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $nyekClass = in_array($ADAT['osztaly'][$i]['osztalyJellegId'],$ADAT['nyekJellegu']) ? ' style="background-color: #f60"':'';
+ echo '<th '.$nyekClass.'>';
+ if ($ADAT['osztaly'][$i]['osztalyJel'] != '') echo $ADAT['osztaly'][$i]['osztalyJel'];
+ else echo $ADAT['osztaly'][$i]['kezdoTanev'].'/'.$ADAT['osztaly'][$i]['jel'];
+ echo '</th>';
+ }
+ echo '<th>'._OSSZESITES.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '</tfoot>';
+
+ echo '<tbody class="hianyzas">';
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $SUM['igazolt'] += $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolt'];
+ echo '<td>'.($ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolt']).'</td>';
+ }
+ echo '<th class="ossz">';
+ echo $SUM['igazolt'].'/';
+ echo $ADAT['hianyzas']['']['igazolt'];
+ echo '</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+//2013NKT if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $title = $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlan'].'+'
+ .intval($ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlanKesesbol']);
+ $SUM['igazolatlan']+= $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['osszesIgazolatlan'];
+ echo '<td title="'.$title.'">'.$ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['osszesIgazolatlan'].'</td>';
+//2013NKT } else {
+//2013NKT echo '<td>'.$ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlan'].'</td>';
+//2013NKT }
+ }
+ echo '<th class="ossz">';
+ echo $SUM['igazolatlan']."/";
+ echo $ADAT['hianyzas']['']['igazolatlan'];
+ echo '</th>';
+ echo '</tr>';
+ echo '</tbody>'."\n";
+
+ echo '<tbody>';
+
+ echo '<tr>';
+ echo '<th>'._KITUNO.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['kituno'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['kituno'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._JELES.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['jeles'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['jeles'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._BUKOTT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['bukott'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['bukott'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._BUKAS.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['bukas'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['bukas'].'</th>';
+ echo '</tr>';
+
+ echo '</tbody>';
+ echo '<tbody class="atlag">';
+
+ echo '<tr class="ossz">';
+ echo '<th>'._ÁTLAG.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ if (isset($ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['atlag'])) {
+ echo '<td>'.number_format($ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['atlag'], 2, ',', ' ').'</td>';
+ } else {
+ echo '<td></td>';
+ }
+ }
+ echo '<th class="ossz">'.number_format($ADAT['jegyek']['intezmeny']['atlag'], 2, ',', ' ').'</th>';
+ echo '</tr>';
+
+ if (is_array($ADAT['targyak'])) {
+ foreach ($ADAT['targyak'] as $i => $targyAdat) {
+ echo '<tr>';
+ echo '<th>'.$targyAdat['targyNev'];
+ if ($targyAdat['targyJelleg']!='') echo ' ('.$targyAdat['targyJelleg'].')';
+ echo '</th>';
+ $_c = 0;$_sum=0;
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ if ($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ] != 0) {
+ $_sum += $ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ];
+ $_c++;
+ echo '<td>'.number_format($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ], 2, ',', ' ').'</td>';
+ } else {
+ echo '<td></td>';
+ }
+ }
+ echo '<th class="ossz">';
+ echo '<span title="átlag">';
+ $_avg_iskolai = '<span title="osztályzatok átlaga">'.number_format($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ]['iskola'] , 2, ',', ' ').'</span>';
+ if ($_c!=0) {
+ $_avg = ($_sum/($_c));
+ $_txt_avg = '<span title="átlagok átlaga">'.number_format($_avg,2,',',' ').'</span>';
+ if ($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ]['iskola']!=$_avg) {
+ echo $_txt_avg . '('.$_avg_iskolai.')';
+ } else {
+ echo $_avg_iskolai;
+ }
+ } else {
+ echo $_avg_iskolai;
+ }
+ echo '</span>';
+ echo ' / ';
+ echo '<span title="bukás">'.intval($ADAT['jegyek']['intezmeny']['targy'][ $targyAdat['targyId'] ]).'</span>';
+ echo '</th>';
+ echo '</tr>';
+ }
+ //echo '<tr><th>__</th></tr>';
+ }
+
+ echo '</tbody>';
+
+ $_nyvColor = array('#8bc34a','#2196f3','#e91e63','#263238');
+ if (is_array($ADAT['targyak'])) {
+ $_szintIndex=0;
+ foreach($ADAT['vizsgaSzint'] as $vizsgaSzint) {
+ echo '<tbody>';
+ echo '<th style="color:white; background-color: '.$_nyvColor[($_szintIndex)].'" colspan="'.(count($ADAT['osztaly'])+1).'">Nyelvvizsgák – '.$vizsgaSzint.' <span class="icon-globe-alt"></span></th>';
+ foreach ($ADAT['mindenTargy'] as $_index => $targyAdat) {
+ if ($targyAdat['targyJelleg'] == 'nyelv' && count($ADAT['nyelvvizsgak'][$targyAdat['targyId']])>0) {
+ echo '<tr>';
+ echo '<td>';
+ echo $targyAdat['targyNev'];
+ echo '</td>';
+ $_c = 0;$_sum=0;
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $_db = count($ADAT['nyelvvizsgak'][$targyAdat['targyId']][$ADAT['osztaly'][$i]['osztalyId']][$vizsgaSzint]);
+ if ($_db>0) {
+ $nyekClass = in_array($ADAT['osztaly'][$i]['osztalyJellegId'],$ADAT['nyekJellegu']) ? ' style="color: white; background-color: #f60"':'style="color:white; background-color: #648c82"';
+ echo '<td '.$nyekClass.'>';
+ }
+ else echo '<td>';
+ if ($_db>0) echo $_db;
+ echo '</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</tbody>';
+ $_szintIndex++;
+ }
+ }
+
+ echo '</table>';
+
+ }
+
+
+ function putOsztalyBizonyitvany($ADAT) {
+
+ global $aHetNapjai, $Honapok, $bizonyitvanyMegjegyzesek;
+ global $KOVETELMENY, $ZaradekIndex, $_EVFOLYAMJEL_BETUVEL;
+// global $targySorrend;
+ $MAGSZORGIDK = array_merge($ADAT['magatartasTargyIdk'],$ADAT['szorgalomTargyIdk']);
+
+ $colSpan = count($ADAT['targyak']);
+
+ // Bizonyítvány-hoz tartozó változók beállítása
+ $plusCols = 6 + 2;
+ $colSpan += $plusCols; // további column-nal bővül a táblázat
+ $rowSpan = 3;
+
+ // ------------------------
+ // Design
+ $img1 = 'skin/classic/module-naplo/img/osztalyozo/node-minus.gif';
+ $img2 = 'skin/classic/module-naplo/img/osztalyozo/node-plus.gif';
+
+// putNyomtatasForm($ADAT);
+
+ formBegin(array('name'=>'beir', 'method'=>'post', 'action'=>''));
+
+ echo '<input type="hidden" name="action" value="jegyLezaras" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztaly']['osztalyId'].'" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />';
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />';
+ echo '<input type="hidden" name="targySorrend" value="'.$targySorrend.'" />';
+ echo '<input type="hidden" name="actionID" value="'.substr(uniqid("", true),0,23).'" />';
+
+ echo '<table class="osztalyozo hideShowContainer" align="center" cellspacing="1" >';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="beallitasok">';
+ //echo '<img class="onClickHideShow" src="skin/classic/module-naplo/img/toggle.png" alt="+/-" />';
+ //echo '<div class="onClickHideShow icon-zoom-in" alt="+/-"></div>';
+ //echo '<div style="background-color: #213876; border-bottom: solid 1px blue;">
+ echo '<span class="icon-adjust toggleBeallitasok" style="float:right; padding:2px;"></span>';
+ _putBeallitasCheckbox('targyak',$ADAT['beallitasok']);
+ _putBeallitasCheckbox('oraszamok',$ADAT['beallitasok']);
+ _putBeallitasCheckbox('zaradek',$ADAT['beallitasok']);
+ echo '</th>';
+ echo '<th class="nev" colspan="'.($colSpan-1).'">';
+ echo _BIZONYITVANY;
+ echo ': '.$ADAT['osztaly']['osztalyJel'].' ('.$ADAT['osztaly']['kezdoTanev'].'-'.($ADAT['osztaly']['vegzoTanev']+1).') - '.$ADAT['osztaly']['osztalyfonok']['tanarNev'];
+ echo '</th>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th rowspan="'.$rowSpan.'">'._NEV.'</th>';
+ // Tárgyanként
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_class = '';
+ $_data = '';
+ // FŐTÁRGY
+ if (is_array($ADAT['targyTargy']['FOal'][$ADAT['targyak'][$j]['targyId']])) {
+ $_class = "foTargy";
+ $_data = 'data-targyid="'
+ .$ADAT['targyak'][$j]['targyId']
+ .'" data-altargyidk="[&'
+ .implode('&',$ADAT['targyTargy']['FOal'][$ADAT['targyak'][$j]['targyId']])
+ .'&]"';
+ }
+ // ALTÁRGY
+ if (is_array($ADAT['targyTargy']['alFO'][$ADAT['targyak'][$j]['targyId']])) {
+ $_class = "alTargy";
+ $_data = 'data-targyid="'
+ .$ADAT['targyak'][$j]['targyId']
+ .'" data-fotargyidk="[&'
+ .implode('&',$ADAT['targyTargy']['alFO'][$ADAT['targyak'][$j]['targyId']])
+ .'&]"';
+
+ }
+ echo '<td id="targy'.$id.'" '.$_data.' rowspan="'.$rowSpan.'" class="openable tglTargy t'.$id.' '.$_class.'" title="'.$ADAT['targyak'][$j]['targyId'].'">';
+ echo $ADAT['targyak'][$j]['targyNev'];
+ echo '</td>';
+ $id++;
+ }
+ echo '<th rowspan="'.$rowSpan.'">';
+ echo _ATLAG;
+ echo '</th>';
+
+ // magatartás, szorgalom
+ echo '<th colspan="'.($plusCols-2).'">'.$ADAT['szemeszterAdat']['tanev'].'/'.$ADAT['szemeszterAdat']['szemeszter'].'</th>';
+ echo '<td class="openable bizZaradek" style="display:none" rowspan="3">'._ZARADEK.' <span class="icon-file-edit" title="az első lehetőséget kiválasztja" ></span></td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo _MULASZTAS;
+ echo '</th>';
+ echo '<th rowspan="2">'._MAGATARTAS.'</th>';
+ echo '<th rowspan="2">'._SZORGALOM.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ echo '<th>'._IGAZOLT.'</th>';
+ echo '<th rowspan="2">'._FELSZ.'</th>';
+ echo '<th rowspan="2">'._KESES.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+
+ echo '<tr>';
+ echo '<th>'.ucfirst(_TANAR).'</th>';
+ // Tárgyanként
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ echo '<td id="tanar'.$id.'" rowspan="'.$rowSpan.'" class="openable tglTargy t'.$id.'">';
+ if (is_array($ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ])) {
+ for ($t=0; $t<($tdb=count($ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ])); $t++) {
+ echo $ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ][$t]['tanarNev'];
+ if ($t<$tdb-1) echo ',<br/>';
+ }
+ }
+ echo '</td>';
+ $id++;
+ }
+ echo '<th colspan="'.($plusCols-1).'">&nbsp;</th>';
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ // ---------- Tanulónként a jegyek ------------- //
+
+ echo '<tbody>';
+
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+
+ $_class = array(); // reset
+ $D = $ADAT['diakok'][$i];
+ $diakId = $D['diakId'];
+ $DA = $ADAT['diakAdat'][$diakId];
+ $jegyek = $ADAT['jegyek'][$diakId];
+ $hianyzas = $ADAT['hianyzas'][$diakId];
+ $atlag = $ADAT['atlag'][$diakId];
+ $msz_beirhato = ($D['aktualisStatusz'] != 'magántanuló')
+ && (!isset($D['kiDt']) || is_null($D['kiDt']) || (strtotime($D['kiDt'])>=time()));
+
+ $zaraskoriTag = in_array($diakId, $ADAT['zaraskoriDiakIds']);
+
+ if (!$zaraskoriTag) echo '<tr class="elment">'; else echo '<tr>';
+
+ $_class[] = ekezettelen(str_replace(' ', '', $D['aktualisStatusz']));
+ if ($DA['bukott']===true) $_class[] = 'bukott';
+ elseif ($DA['jeles']===true) $_class[] = 'jeles';
+ elseif ($DA['kituno']===true) $_class[] = 'kituno';
+
+ echo '<th class="'.implode(' ',$_class).'">';
+ if ($D['diakNaploSorszam']!='') echo '<div class="naploSorszam">'.$D['diakNaploSorszam'].'</div>';
+ echo '<div style="display: table-cell;"><a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'" title="'.$D['aktualisStatusz'].'">';
+ echo $D['diakNev'];
+ echo '</a></div>';
+ echo '</th>';
+
+ // Tárgyanként végigmenve
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_targyId=$ADAT['targyak'][$j]['targyId'];
+ $jegyAdat = $jegyek[$ADAT['targyak'][$j]['targyId']]; // EZ INDEXELT TÖMB! Több jegy is lehet!
+ $_vanosztalyzat=false;
+ echo '<td class="jegyek openable tglTargy t'.$id.'" id="jegy'.$i.'a'.$id.'">';
+ for ($k=0; $k<count($jegyAdat); $k++) {
+ $_jegyAdat = $jegyAdat[$k];
+ if ($_jegyAdat['felev'] != $ADAT['szemeszterAdat']['szemeszter']) { // ilyen elvileg már nem lehet; - de lehet félévkor záruló tárgyak!
+ echo '<span title="'.$_jegyAdat['felev'].'. '._FELEV.'" class="masikFelev">';
+ echo $KOVETELMENY[$_jegyAdat['jegyTipus']][$_jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_jegyAdat['megjegyzes']];
+ echo '</span>';
+ } else {
+ echo '<div class="zaroJegyAdat" data-zarojegyid="'.$_jegyAdat['zaroJegyId'].'">';
+ echo $KOVETELMENY[$_jegyAdat['jegyTipus']][$_jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_jegyAdat['megjegyzes']];
+ if (in_array($_jegyAdat['jegyTipus'], array('jegy','féljegy'))) {
+ if ( ($_jegyAdat['jegy']-$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'])>0.5)
+ echo '<span title="'.$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'].'">*</span>';
+ elseif ( ($_jegyAdat['jegy']-$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'])<-0.5)
+ echo '<span title="'.$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'].'">!</span>';
+
+ }
+ if (0<($_evesOraszam=$ADAT['targyOraszam'][$diakId][$_jegyAdat['targyId']]['evesOraszam']))
+ echo '<div class="osz">'.($_evesOraszam).'</div>';
+ $_vanosztalyzat=true;
+ echo '</div>';
+ }
+ }
+
+ if ($_vanosztalyzat===false && $ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag']!='') echo '<span title="volt jegye">÷</span>';
+ echo '</td>';
+ $id++;
+ }
+
+ if (isset($ADAT['atlagok'][$diakId])) {
+ $atlag = number_format($ADAT['atlagok'][$diakId], 2, ',', '');
+ $_class[] = 'atlag ';
+ } else {
+ $atlag = '';
+ }
+ // Tanuló átlaga:
+ echo '<th class="'.implode(' ',$_class).'">'.$atlag;
+
+ echo '</th>';
+
+ // Tanuló hiányzásai
+ echo '<th class="ni">';
+ echo intval($hianyzas['igazolatlan']);
+ echo '</th>';
+ echo '<th class="i">';
+ echo intval($hianyzas['igazolt']);
+ echo '</th>';
+
+ echo '<th>';
+ echo ($ADAT['hianyzas'][$diakId]['felszerelesHianyDb']);
+ echo '</th><th>';
+ echo intval($ADAT['hianyzas'][$diakId]['kesesDb']);
+ echo '/'.intval($ADAT['hianyzas'][$diakId]['kesesPercOsszeg']).'\'';
+ echo '</th>';
+
+ echo '<td class="biz">';
+
+ $_magatartasTargyId = $ADAT['magatartasTargyIdk'][0];
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+
+ if (!isset($jegyek[ $_magatartasTargyId ][0]['targyId']))
+ $jegyek[ $_magatartasTargyId ][0]['targyId'] = $_magatartasTargyId;
+ $J = $jegyek[ $_magatartasTargyId ][0];
+ $_JEGY_S = array(
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $_magatartasTargyId,
+ 'tanev'=> $ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter'],
+ 'evfolyam'=> $J['evfolyam'],
+ 'evfolyamJel'=> $J['evfolyamJel'],
+ 'zaroJegyId' => $J['zaroJegyId'],
+ 'jegy' => $J['jegy'],
+ 'jegyTipus' => $ADAT['targyAdat'][ $_magatartasTargyId ]['zaroKovetelmeny'], // fixen
+ 'megjegyzes' => $J['megjegyzes'],
+ 'tabindex' => ($i+count($ADAT['diakok']))
+ );
+ putJegySelect($_JEGY_S);
+
+ } else {
+ echo $KOVETELMENY['magatartás'][$jegyek[ $_magatartasTargyId ][0]['jegy']]['hivatalos'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td class="biz">';
+
+ $_szorgalomTargyId = $ADAT['szorgalomTargyIdk'][0];
+
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+ if (!isset($jegyek[$_szorgalomTargyId][0]['targyId'])) $jegyek[$_szorgalomTargyId][0]['targyId'] = $_szorgalomTargyId;
+ $J = $jegyek[$_szorgalomTargyId][0];
+ $_JEGY_S = array(
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $_szorgalomTargyId,
+ 'tanev'=> $ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter'],
+ 'evfolyam'=> $J['evfolyam'],
+ 'evfolyamJel'=> $J['evfolyamJel'],
+ 'zaroJegyId' => $J['zaroJegyId'],
+ 'jegy' => $J['jegy'],
+ 'jegyTipus' => $ADAT['targyAdat'][ ($_szorgalomTargyId) ]['zaroKovetelmeny'], // fixen
+ 'megjegyzes' => $J['megjegyzes'],
+ 'tabindex' => ($i+count($ADAT['diakok']))
+ );
+
+ putJegySelect($_JEGY_S);
+
+ } else {
+ echo $KOVETELMENY['szorgalom'][$jegyek[ $_szorgalomTargyId ][0]['jegy']]['hivatalos'];
+ }
+ echo '</td>'."\n";
+
+ // Záradékok
+ echo '<td class="bizZaradek openable" style="display:none">';
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+ if ($DA['bukott']) $adhatoZaradekok = array_values($ZaradekIndex['konferencia bukás']);
+ else $adhatoZaradekok = array_values($ZaradekIndex['konferencia']);
+ echo '<select name="zaradekAdat[]"><option value=""> - </option>'."\n";
+ if (is_array($ADAT['zaradekok'][$diakId])) {
+ echo '<option value="" selected="selected">'.$ADAT['zaradekok'][$diakId]['szoveg'].'</option>'."\n";
+ }
+ // itt okosítható az algoritmus a következőképp:
+ // ha bukás van, a javítóviszgást kéne ajánlani,
+ // ha végző évfolyam, akkor a befejezte ajánlani,
+ // ha nem osztályozható egy tárgyból, akkor azt (de készségtárgyak?)
+ foreach ($adhatoZaradekok as $zaradekIndex) {
+ $zAdat = $ADAT['adhatoZaradekok'][$zaradekIndex];
+ if ($DA['bukott']) {
+ $csere = array('%évfolyam%'=>$ADAT['evfolyamJel'],'%évfolyam betűvel%'=>$_EVFOLYAMJEL_BETUVEL[ $ADAT['evfolyamJel'] ],'%tantárgy%'=>implode(', ',$DA['bukottTargy']));
+ } else {
+ $csere = array('%évfolyam%'=>$ADAT['kovetkezoEvfolyamJel'],'%évfolyam betűvel%'=>$_EVFOLYAMJEL_BETUVEL[ $ADAT['kovetkezoEvfolyamJel'] ],'%tantárgy%'=>$DA['zaradekStr']);
+ }
+ $torzsSzoveg = $zAdat['szoveg'].' ['.$zAdat['sorszam'].'/'.$zaradekIndex.']';
+ echo '<option value="'.$diakId.'/'.$zaradekIndex.'/'.$ADAT['zaradekok'][$diakId]['zaradekId'].'/'.implode('=',$DA['bukottTargy']).'">';
+ echo str_replace(array_keys($csere), array_values($csere), $torzsSzoveg );
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['zaradekok'][$diakId]['szoveg'];
+ }
+ echo '</td>'."\n";
+
+ echo '</tr>';
+
+ }
+
+ // Tantárgyi átlagok
+ echo '<tr>';
+ echo '<th colspan="'.$_colSpan.'" class="dolgozat">'._ATLAG.'</th>';
+ $id=0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ echo '<th id="atlag'.$id.'" class="openable tglTargy" title="'.$ADAT['targyak'][$j]['targyNev'].'">';
+// if (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])) {
+ $atlag = number_format($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']], 2, ',', '');
+ echo $atlag;
+// } else { $atlag=0; }
+ echo '</th>'."\n";
+ $id++;
+ }
+ echo '<th class="dolgozat">';
+ echo '<span title="'._OSZTALYATLAGA.'">'.number_format($ADAT['atlagok']['osztaly'], 2, ',', '.').'</span>';
+ echo '/';
+ echo '<span title="'._OSSZES_JEGY_ATLAGA.'">'.number_format($ADAT['tantargyiAtlagok']['osztaly'], 2, ',', '.').'</span>';
+ echo '</th>';
+
+ // Félévi átlagok
+ echo '<th colspan="'.($plusCols-2).'" class="atlag">';
+ if (_BEIRHATO) echo '<input type="submit" class="felev1" name="tipus" value="'._BEIR.'" />';
+ echo '</th>';
+
+ echo '</tr>';
+ // Tárgyi eloszlás
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+ foreach ($KOVETELMENY['jegy']['értékek'] as $_jegy) {
+ echo '<tr>';
+ echo '<th colspan="'.$_colSpan.'">'.$KOVETELMENY['jegy'][$_jegy]['hivatalos'].'</th>';
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_targyId = $ADAT['targyak'][$j]['targyId'];
+ echo '<td class="targyEloszlas openable tglTargy">';
+ echo $ADAT['jegyEloszlas'][$_targyId][$_jegy];
+ echo '</td>';
+ }
+ echo '<th>';
+ echo $ADAT['jegyEloszlas']['osszes'][$_jegy];
+ echo '</th>';
+ echo '</tr>';
+ }
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ putOsztalyStatisztika($ADAT);
+
+ }
+
+ function putOsztalyStatisztika($ADAT) {
+
+// echo '<h2>'._OSZTALYSTATISZTIKA.'</h2>';
+
+ echo '<table class="bizstat floatleft">';
+ echo '<caption>'._BIZONYITVANY.'</caption>';
+ echo '<tr>';
+ echo '<th>'. _DICSERETES .'</th>';
+ echo '<td>'.$ADAT['stat']['dicséret'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _FIGYELMEZTETOS .'</th>';
+ echo '<td>'.$ADAT['stat']['figyelmeztető'].'</td>';
+ echo '</tr>';
+// echo '<tr>';
+// echo '<th>'. _NYELVVIZSGAS .'</th>';
+// echo '<td>'.$STAT['nyelvvizsga'].'</td>';
+// echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'. _KITUNO .'</th>';
+ echo '<td>'.$ADAT['stat']['kituno'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _JELES .'</th>';
+ echo '<td>'.$ADAT['stat']['jeles'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _BUKASOK .'</th>';
+ echo '<td>'.$ADAT['stat']['bukas'].'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'. _BUKOTTAK .'</th>';
+ echo '<td>'.$ADAT['stat']['bukott'].'</td>';
+ echo '</tr>';
+ //+ részletezés
+ echo '<tr>';
+ echo '<th>1 '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][1].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>2 '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][2].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>3+ '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][3].'</td>';
+ echo '</tr>';
+
+ echo '</table>';
+
+ // $HIANYZASOK['átlag'][$felev]['igazolt|igazolatlan']
+ // $HIANYZASOK['összesen'][$felev]['igazolt|igazolatlan' = $status]
+ // $HIANYZASOK['ötnél több igazolatlan'][$felev|'összesen']
+ // $HIANYZASOK['tíznél több igazolatlan'][$felev|'összesen']
+ // $HIANYZASOK['nincs igazolatlanja'][$felev]
+ echo '<table class="bizstat">';
+ echo '<caption>'.ucfirst(_HIANYZASOK).'</caption>';
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolt'],0,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolatlan'],0,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._HIANYZAS.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format((($ADAT['stat']['igazolt']+$ADAT['stat']['igazolatlan'])),0,',','.').'</td>';
+ echo '</tr>';
+
+ $letszam = count($ADAT['zaraskoriDiakIds']);
+ if ($letszam != 0) {
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolt']/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolatlan']/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._HIANYZAS.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format(($ADAT['stat']['igazolt']+$ADAT['stat']['igazolatlan'])/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._NINCS.' '._IGAZOLATLANJA.'</th>';
+ echo '<td>'.$ADAT['stat']['nincs'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._OT.' '._VAGY.' '._OTNEL.' '._TOBB.' '._IGAZOLATLAN.'</th>';
+ echo '<td>'.$ADAT['stat']['otnel tobb'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._TIZ.' '._VAGY.' '._TIZNEL.' '._TOBB.' '._IGAZOLATLAN.'</th>';
+ echo '<td>'.$ADAT['stat']['tiznel tobb'].'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._LETSZAM.'</th>';
+ echo '<td>'.$letszam.'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+ function _putBeallitasCheckbox($var,$ADAT) {
+ $CHK = ($ADAT[$var]==true) ? ' checked="checked" ':'';
+ echo '<div><input '.$CHK.' type="checkbox" name="beallitasok_'.$var.'" id="beallitasok_'.$var.'" value="1" /><label for="beallitasok_'.$var.'">'.constant('_'.strtoupper($var)).'</label></div>';
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml
new file mode 100644
index 00000000..b01a7d16
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml
@@ -0,0 +1,75 @@
+<?php
+
+ function putUjSzempontRendszerForm($ADAT) {
+
+ formBegin(array('class'=>"szr"));
+
+ echo '<input type="hidden" name="action" value="ujSzempontRendszer" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+
+ echo '<br /><textarea name="txt" id="txt"></textarea>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putSzempontRendszer($ADAT) {
+
+ formBegin(array('class'=>'szr'));
+ echo '<ol>'."\n";
+ foreach ($ADAT['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ echo '<li>'."\n";
+ echo $szAdat['szempont'];
+ if (is_array($ADAT['szempontRendszer']['minosites'][$szempontId])) {
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['szempontRendszer']['minosites'][$szempontId]); $i++) {
+ echo '<li>';
+ echo $ADAT['szempontRendszer']['minosites'][$szempontId][$i]['minosites'];
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="szrId" value="'.$ADAT['szempontRendszer']['szrId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="szempontRendszerTorles" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" class="confirm" title="'._BIZTOS_TOROL.'" />'."\n";
+ formEnd();
+ }
+
+ function putSzempontRendszerLista($ADAT) {
+
+ echo '<table class="lista">'."\n";
+
+ echo '<tr><th>'._ID.'</th><th>'._SZEMESZTER.'</th><th>'._TARGY.'</th><th>'._TARGYTIPUS.'</th><th>'._KEPZES.'</th></tr>';
+
+ for ($i = 0; $i < count($ADAT['szempontRendszerek']); $i++) {
+ $A = $ADAT['szempontRendszerek'][$i];
+ echo '<tr>';
+ echo '<td>'.$A['szrId'].'</td>';
+ echo '<td>'.$A['tanev'].'/'.$A['szemeszter'].'</td>';
+ echo '<td>';
+ if (isset($A['targyId'])) echo $A['targyNev'].' ('.$A['targyId'].')';
+ echo '</td>';
+ echo '<td>'.$A['targyTipus'].'</td>';
+ echo '<td>';
+ if (isset($A['kepzesId'])) echo $A['kepzesNev'].' - '.$A['kepzesTanev'].' ('.$A['kepzesId'].')';
+ echo '</td>';
+ echo '</tr>';
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml
new file mode 100644
index 00000000..b81c5ca5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml
@@ -0,0 +1,70 @@
+<?php
+
+ function putErtekeloForm($ADAT) {
+
+ if (isset($ADAT['szemeszterId'])) $class=' zaro';
+ formBegin(array('class'=>"ertekeles$class"));
+
+ echo '<input type="hidden" name="action" value="ujErtekeles" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyam" value="'.$ADAT['evfolyam'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="szrId" value="'.$ADAT['szempontRendszer']['szrId'].'" />'."\n";
+
+//echo '<pre>'; var_dump($ADAT); echo '</pre>';
+
+ echo '<h1>';
+ echo $ADAT['diakTargyak'][ $ADAT['targyId'] ]['targyNev'];
+ if ($class == ' zaro') echo ' - '._SZEMESZTER_ERTEKELES;
+ echo '</h1>'."\n";
+ if (isset($ADAT['szovegesErtekeles']['szeId'])) echo '<h2>'._LEGUTOBBI_ERTEKELES.': '.$ADAT['szovegesErtekeles']['dt'].'</h2>';
+ else echo '<h2>'._MEG_NEM_ERTEKELT.'</h2>'."\n";
+
+ echo '<ol>'."\n";
+ foreach ($ADAT['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ echo '<li>'."\n";
+ echo $szAdat['szempont']."\n";
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['szempontRendszer']['minosites'][$szempontId]); $i++) {
+ $mAdat = $ADAT['szempontRendszer']['minosites'][$szempontId][$i];
+ if (
+ is_array($ADAT['szovegesErtekeles']['minosites'])
+ && in_array($mAdat['minositesId'], $ADAT['szovegesErtekeles']['minosites'])
+ ) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>'."\n";
+ echo '<input id="m'.$mAdat['minositesId'].'" type="checkbox" name="minosites[]" value="'.$mAdat['minositesId'].'"'.$CHK.' />'."\n";
+ echo '<label for="m'.$mAdat['minositesId'].'">'.$mAdat['minosites'].'</label>'."\n";
+ echo '</li>'."\n";
+ }
+ if (__MODOSITHAT) {
+ echo '<li>'."\n";
+ echo '<input type="hidden" name="szempontId[]" value="'.$szempontId.'" />'."\n";
+ echo '<input type="text" name="egyediMinosites[]" value="'.$ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'].'" />'."\n";
+ echo '</li>'."\n";
+ } elseif ($ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'] != '') {
+ echo '<li>'."\n";
+ echo '<span class="egyediMinosites">'.$ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'].'</span>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+
+ if (__MODOSITHAT) echo '<input type="submit" class="szoveges" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+//echo '<pre>';
+//var_dump($ADAT['szovegesErtekeles']);
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml
new file mode 100644
index 00000000..cbac5b68
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml
@@ -0,0 +1,550 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putTankorJegyek($tankorId, $Diakok, $Jegyek, $Orak, $Dolgozatok, $sulyozas = __DEFAULT_SULYOZAS, $tolDt = '', $igDt = '', $nevsor, $ADAT) {
+
+ global $ADAT; // ????????????????
+ global $aHetNapjai, $Honapok, $Osztalyzatok, $diakId, $tanarId, $osztalyId, $_TANEV;
+ global $bizonyitvanyMegjegyzesek, $tanevIdoszak, $SULYOZAS;
+ global $KOVETELMENY;
+
+ $kepMutat=$ADAT['kepMutat'];
+
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $SULYOK = explode(':',$ADAT['sulyozas']);
+
+ // Keressük meg az első érintett szemesztert...
+ reset($_TANEV['szemeszter']); $szAdat = current($_TANEV['szemeszter']);
+ while (strtotime($szAdat['zarasDt']) < strtotime($kDt)) $szAdat = next($_TANEV['szemeszter']);
+ $szemeszter = $szAdat['szemeszter'];
+
+ $tanev = $_TANEV['tanev'];
+
+ $targyId = $Jegyek['tankörök'][$tankorId]['targyId'];
+ $_zarojegyGomb = false;
+ $evkoziKovetelmeny = $ADAT['tankorAdat']['kovetelmeny'];
+ $zaroKovetelmeny = $ADAT['tankorAdat']['zaroKovetelmeny'];
+ $tankorJelleg = $ADAT['tankorAdat2'][$tankorId][0]['jelleg']; // első szemeszter
+
+ // A jegybeíráshoz külön oszlop lesz + bizonyítvány 2 oszlop
+ $_colSpan = count($_TANEV['szemeszter']);
+ $colSpan = 3 + $_colSpan;
+ $rowSpan = 2; // első és második félév kiírása miatt...
+
+ if ($kepMutat) {
+ $_colSpan++;
+ $colSpan++;
+ }
+
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'szemeszter' => $szemeszter,
+ 'év' => $ev,
+ 'hó' => $ho,
+ 'colspan' => 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho])
+ );
+ $HO['count']++;
+ $colSpan += 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho]);
+ $aktDt = date('Y-m-01',strtotime('+1 month',strtotime($aktDt)));
+ if (strtotime($aktDt) > strtotime($szAdat['zarasDt'])) {
+ $szAdat = next($_TANEV['szemeszter']); $szemeszter = $szAdat['szemeszter'];
+ if ($szAdat !== false) {
+ $HO[] = array(
+ 'szemeszter' => $szemeszter,
+ 'év' => $ev,
+ 'hó' => $ho,
+ 'colspan' => 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho])
+ );
+ $HO['count']++;
+ $colSpan += 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho]);
+ }
+ }
+ }
+
+ // svgClose(array('id'=>'closeLayer','alt'=>_CLOSE,'title'=>_CLOSE,'size'=>20));
+ formBegin(array('style'=>'display:none;','name'=>'jegyAdat', 'id'=>'jegyAdat', 'method'=>'post', 'action'=>href('index.php?page=naplo&sub=osztalyozo&f=jegy'), 'class'=>'onSubmitUpdate'));
+ echo '<input type="hidden" id="jegyId" value="" name="jegyId" />';
+ formEnd();
+
+ formBegin(array('name' => 'beir', 'method' => 'post', 'action' => ''));
+ echo '<input type="hidden" name="action" value="jegyBeiras" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="actionId" value="'.substr(uniqid( '', true),0,23).'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />'."\n";
+
+ echo '<table class="osztalyozo" align="center" cellspacing="1">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th class="nev" colspan="'.($colSpan+1).'">'."\n";
+ echo $Jegyek['tankörök'][$tankorId]['tankorNev'];
+ //_inlineHelp('');
+ echo ' ('.implode(', ',$Jegyek['tanárok']['tanarNevek']).')';
+ echo '</th>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th colspan="'.($_colSpan+1).'" rowspan="'.$rowSpan.'">';
+ $SEL = array($nevsor => ' selected="selected" ');
+ echo '<select name="nevsor" class="onChangeSubmit">';
+ echo '<option value="aktualis"'.$SEL['aktualis'].'>'._AKTUALIS_NEVSOR.'</option>';
+ echo '<option value="teljes"'.$SEL['teljes'].'>'._TELJES_NEVSOR.'</option>';
+ echo '</select>';
+ if ($kepMutat!='') $_CHK='checked="checked"'; else $_CHK='';
+ echo '<input type="checkbox" class="onChangeSubmit" name="kepMutat" value="1" '.$_CHK.' />';
+
+ echo '</th>';
+ // Hónaponként végigmenve
+ $szemeszter = 0;
+ for ($j=0;$j<$HO['count'];$j++) {
+ if ($szemeszter != $HO[$j]['szemeszter']) {
+ if (isset($db)) {
+ echo $db.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</td>'."\n";
+ }
+ if ($szemeszter != 0) echo '<td class="ujSzemeszter" colspan="';
+ else echo '<td colspan="';
+ $szemeszter = $HO[$j]['szemeszter'];
+ $db = 0;
+ }
+ $db += $HO[$j]['colspan'];
+ }
+ echo $db.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</td>';
+
+ if ($sulyozas == __DEFAULT_SULYOZAS) $_sulyClass = "defaultSulyozas";
+
+ echo '<th rowspan="'.$rowSpan.'" class="'.$_sulyClass.'">';
+ echo _ATLAG.'<br />';
+ $SEL = array($sulyozas => ' selected="selected"');
+ echo '<select name="sulyozas" class="onChangeSubmit sulyozas">';
+ if (is_array($SULYOZAS) && count($SULYOZAS) > 0) {
+ for ($i = 0; $i < count($SULYOZAS); $i++)
+ echo '<option value="'.$SULYOZAS[$i].'"'.$SEL[$SULYOZAS[$i]].'>'.$SULYOZAS[$i].'</option>';
+ } else {
+ echo '<option value="1:1:1:1:1"'.$SEL['1:1:1:1:1'].'>'._EGYSZERU_ATLAG.'</option>';
+ echo '<option value="1:1:1:2:2"'.$SEL['1:1:1:2:2'].'>'._TEMAZAROVAL_SULYOZOTT.'</option>';
+ echo '<option value="1:2:2:4:4"'.$SEL['1:2:2:4:4'].'>'._KISJEGY_TEMAZARO.'</option>';
+ echo '<option value="1:1:2:2:4"'.$SEL['1:1:2:2:4'].'>'.'1:1:2:2:4'.'</option>';
+ }
+ echo '</select>';
+ echo '</th>';
+
+ // bizonyítvány
+ echo '<th colspan="'.count($_TANEV['szemeszter']).'">'._BIZONYITVANY.'</th>';
+
+ echo '</tr>';
+ echo '<tr>';
+ $szemeszter = 0;
+ for ($j=0;$j<$HO['count'];$j++) {
+ if ($szemeszter != $HO[$j]['szemeszter']) {
+ if ($szemeszter != 0) echo '<td class="ho ujSzemeszter" colspan="'.$HO[$j]['colspan'].'">';
+ else echo '<td class="ho" colspan="'.$HO[$j]['colspan'].'">';
+ $szemeszter = $HO[$j]['szemeszter'];
+ } else {
+ echo '<td class="ho" colspan="'.$HO[$j]['colspan'].'">';
+ }
+// echo $Honapok[$HO[$j]['hó']-1];
+// echo '<td class="ho">';
+ echo '<span class="roman">'.decimal_to_roman($HO[$j]['hó']).'.</span>';
+ echo '<span class="literal">'.$Honapok[$HO[$j]['hó']-1].'</span>';
+// echo '</td>'."\n";
+
+ echo '</td>';
+
+ }
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ echo '<th class="felevLezar" data-szemeszter="'.$szemeszter.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+
+ echo '<tr>';
+ echo '<th colspan="'.($colSpan+1).'">';
+
+ if (__EVKOZI_JEGYET_ADHAT) {
+
+ echo '<label for="megjegyzes">'._MEGJEGYZES.'</label>';
+ echo '<input type="text" name="megjegyzes" id="megjegyzes" value="" />';
+ echo '<br />'."\n";
+
+ echo '<select name="oraId">'."\n";
+ echo '<option value="">'._ORAHOZ_RENDELES.'</option>'."\n";
+ for ($i = 0; $i < count($Orak); $i++) {
+ $napNev = $aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6)%7];
+ echo '<option value="'.$Orak[$i]['oraId'].'">'.$Orak[$i]['dt']." ($napNev) ".$Orak[$i]['ora'].'. '._ORA.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" class="jegy1" name="jegy1" value="'._KIS_JEGY.'" />'."\n";
+ echo '<input type="submit" class="jegy2" name="jegy2" value="'._NORMAL_JEGY.'" />'."\n";
+ echo '<input type="submit" class="jegy3 check" name="jegy3" value="'._DOLGOZAT.'" />'."\n";
+ echo '<input type="submit" class="jegy4 check" name="jegy4" value="'._TEMAZARO.'" />'."\n";
+ echo '<input type="submit" class="jegy5 check" name="jegy5" value="'._VIZSGAJEGY.'" />'."\n";
+
+ echo '<select name="dolgozatId" id="did" title="'._VALASSZ_DOLGOZATOT.'">'."\n";
+ echo '<option value="">'._DOLGOZATHOZ_RENDELES.'</option>'."\n";
+ echo '<option value="uj">'._UJ_DOLGOZAT.'</option>'."\n";
+ for ($i = 0; $i < count($Dolgozatok['dolgozatIds']); $i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ // $Dolgozatok[$dolgozatId] ===>>> megjegyzés|bejelentés|tervezett|tankör(array)[]['leírás'|'cn']
+ echo '<option value="'.$dolgozatId.'">'.$Dolgozatok[$dolgozatId]['dolgozatNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+
+ // ---------- Tanulónként a jegyek ------------- //
+
+ echo '<tbody>';
+ $db = 0;
+ if (is_array($Diakok['nevek'])) foreach ($Diakok['nevek'] as $diakId => $DIAKADAT) {
+
+ $JEGYET_KAP = (
+ in_array($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz'],array('jogviszonyban van','vendégtanuló'))
+ ||
+ ($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz']=='magántanuló' && $tankorJelleg == 'gyakorlat')
+ );
+ $__JEGYEK = array();
+ //$diakKovetelmeny = $Diakok['adatok'][$diakId][count($Diakok['adatok'][$diakId])-1]['kovetelmeny']; (ezt nem használjuk!!!)
+ echo '<tr class="'.str_replace(' ', '', ekezettelen($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz'])).'">';
+
+ echo '<th class="diakNev c" data-diakid="'.$diakId.'">';
+ echo '<span class="sorszam">'.(++$db).'.</span>';
+ echo '</th>';
+
+ if ($kepMutat) {
+ echo '<th class="face">';
+ putFace($diakId,'diak',30);
+ echo '</th>';
+ }
+
+ echo '<th class="diakNev diakNevTxt" '.((!__EVKOZI_JEGYET_ADHAT) ? 'colspan="2"':'').'>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">';
+ echo '<span title="['.$diakId.'] '._KOVETELMENY.': '.$ADAT['tankorAdat']['kovetelmeny'].', '._EVFOLYAMA.': '.$ADAT['diakEvfolyamJel']['aktualis'][$diakId].'">';
+ echo $DIAKADAT['diakNev'];
+ echo '</span>';
+ echo '</a>';
+ if ($ADAT['diakEvfolyamJel']['aktualis'][$diakId]=='' && function_exists('putAlertImage')) putAlertImage('Nem határozható meg az évfolyama! Vendégtanuló, vagy már nem tagja a megfelelő osztálynak?');
+ echo '</th>';
+ if (__EVKOZI_JEGYET_ADHAT ) {
+ echo '<th>';
+ if (
+ (!is_array($ADAT['diakFelmentes'][$diakId]) || !in_array($tankorId,$ADAT['diakFelmentes'][$diakId])) && $JEGYET_KAP===true
+ ) {
+
+ // Ez még nem használható! DE NAGYON JÓ LENNE ÁM - 2016 --TODO
+ /*
+ $_JEGY = array('jegySelectTipus'=>'jegy',
+ 'evfolyam'=>$evfolyam,
+ 'diakId'=>$diakId,
+ 'targyId'=>$targyId,
+ 'jegyTipus'=>$evkoziKovetelmeny
+ );
+ putJegySelect($_JEGY);
+ */
+ echo '<select name="jegy[]" tabindex="'.($db+1).'">';
+ echo '<option value="">-</option>';
+ for ($o=0;$o<count($KOVETELMENY[$evkoziKovetelmeny]['értékek']);$o++) {
+ $_osztalyzat = $KOVETELMENY[$evkoziKovetelmeny]['értékek'][$o];
+ echo '<option value="'.$diakId.'|'.$evkoziKovetelmeny.'|'.$_osztalyzat.'">'.$KOVETELMENY[$evkoziKovetelmeny][$_osztalyzat]['rovid'].'</option>';
+ }
+ echo '</select>'."\n";
+
+ } else {
+ echo '-';
+ }
+ echo '</th>'."\n";
+ }
+ // Hónaponként végigmenve
+ $elozoHo = 0;
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_szemeszter = $HO[$j]['szemeszter'];
+ $elozoHo = $_ho;
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+ $_JEGYEK = $Jegyek[$diakId][$_szemeszter][$_ev][$_ho]['jegyek'];
+ $_DOGA = $Jegyek[$diakId][$_szemeszter][$_ev][$_ho]['dolgozat'];
+
+ if ($elozoHo == $_ho) echo '<td class="jegyek ujSzemeszter">';
+ else echo '<td class="jegyek">';
+ for ($k = 0; $k < count($_JEGYEK); $k++) {
+ $title = '';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_JEGYEK[$k]['jegyId']);
+ if ($_JEGYEK[$k]['tankorId'] == $tankorId) {
+ $class = 'jegy'.$_JEGYEK[$k]['tipus'];
+ $__JEGYEK['sajat'][] = $_JEGYEK[$k];
+ } else {
+ $class = 'jegy'.$_JEGYEK[$k]['tipus'].'mase';
+ $__JEGYEK['mase'][] = $_JEGYEK[$k];
+ }
+ $title .= str_replace('-', '.', $_JEGYEK[$k]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_JEGYEK[$k]['megjegyzes'];
+ echo '<a id="jegy-'.$_JEGYEK[$k]['jegyId'].'" title="'.htmlspecialchars($title).'" href="'.$href.'" class="onClickUpdateWindow '.$class.'">';
+ echo (($_jegyShow=$KOVETELMENY[$_JEGYEK[$k]['jegyTipus']][$_JEGYEK[$k]['jegy']]['rovid'])!='') ? $_jegyShow:'?';
+
+ if ($_JEGYEK[$k]['modositasDt']!='0000-00-00 00:00:00' && $_JEGYEK[$k]['dt']!=date('Y-m-d',strtotime($_JEGYEK[$k]['modositasDt']))) echo '<sup>*</sup>';
+ echo '</a> ';
+ }
+ echo '</td>';
+
+ for ($k = 0; $k < count($Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho]); $k++) {
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho][$k];
+ if (in_array($tankorId, $Jegyek['dolgozatok'][$did]['tankorIds'])) echo '<td id="td-'.$diakId.'-'.$did.'" class="dolgozat d'.$did.'">';
+ else echo '<td id="td-'.$diakId.'-'.$did.'" class="dolgozatMase d'.$did.'">';
+ for ($l = 0; $l < count($_DOGA[$did]); $l++) {
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_DOGA[$did][$l]['jegyId']);
+ if ($_DOGA[$did][$l]['tankorId'] == $tankorId) {
+ $class = 'jegy'.$_DOGA[$did][$l]['tipus'];
+ $__JEGYEK['sajat'][] = $_DOGA[$did][$l];
+ } else {
+ $class = 'jegy'.$_DOGA[$did][$l]['tipus'].'mase';
+ $__JEGYEK['mase'][] = $_DOGA[$did][$l];
+ }
+ $title = $Dolgozatok[$did]['dolgozatNev'].' - '.str_replace('-', '.', $_DOGA[$did][$l]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_DOGA[$did][$l]['megjegyzes'];
+ echo '<a id="jegy-'.$_DOGA[$did][$l]['jegyId'].'" title="'.htmlspecialchars($title).'" href="'.$href.'" class="onClickUpdateWindow '.$class.'">';
+ echo $KOVETELMENY[$_DOGA[$did][$l]['jegyTipus']][$_DOGA[$did][$l]['jegy']]['rovid'];
+ if ($_DOGA[$did][$l]['modositasDt']!='0000-00-00 00:00:00' && $_DOGA[$did][$l]['dt']!=date('Y-m-d',strtotime($_DOGA[$did][$l]['modositasDt']))) echo '<sup>*</sup>';
+ echo '</a> ';
+ }
+ echo '</td>';
+ }
+
+ }
+
+ if ($Jegyek[$diakId]['átlag'] != 0) {
+ $atlag = number_format($Jegyek[$diakId]['átlag'],2,',','');
+ $class = 'atlag';
+ } else {
+ $atlag = '';
+ $class = '';
+ }
+
+ echo '<th class="'.$class.'">';
+ $atlag_title = '';
+
+ $_jegyOsszeg = 0;
+ $_szlo = $_sumsuly = 0;
+ for ($i=0; $i<count($__JEGYEK['sajat']); $i++) {
+ $_szlo += ($__JEGYEK['sajat'][$i]['jegy']) * $SULYOK[$__JEGYEK['sajat'][$i]['tipus']-1];
+ $_sumsuly += $SULYOK[$__JEGYEK['sajat'][$i]['tipus']-1];
+ if ($KOVETELMENY[$__JEGYEK['sajat'][$i]['jegyTipus']]['összeadható']===true) $_osszegMutat = true;
+ if ($KOVETELMENY[$__JEGYEK['sajat'][$i]['jegyTipus']]['átlagolható']===true) $_atlagMutat = true;
+ }
+ if ($_sumsuly!=0) $atlag_title .= number_format($_szlo/$_sumsuly,2,',','');
+ $_jegyOsszeg += $_szlo;
+
+ $_szlo=$_sumsuly = 0;
+ for ($i=0; $i<count($__JEGYEK['mase']); $i++) {
+ $_jegyOsszeg += $_szlo += ($__JEGYEK['mase'][$i]['jegy']) * $SULYOK[$__JEGYEK['mase'][$i]['tipus']-1];
+ $_sumsuly += $SULYOK[$__JEGYEK['mase'][$i]['tipus']-1];
+ if ($KOVETELMENY[$__JEGYEK['mase'][$i]['jegyTipus']]['összeadható']===true) $_osszegMutat = true;
+ if ($KOVETELMENY[$__JEGYEK['mase'][$i]['jegyTipus']]['átlagolható']===true) $_atlagMutat = true;
+ }
+ if ($_sumsuly!=0) $atlag_title .= ' ('.number_format($_szlo/$_sumsuly,2,',','').')';
+ $_jegyOszseg += $_szlo;
+
+ // összeget vagy átlagot mutassunk?
+ if ($_atlagMutat === true) echo '<span title="'.$atlag_title.'" data-atlag="'.$diakId.':'.str_replace(',','.',$atlag).'">'.$atlag.'</span>';
+ if ($_osszegMutat=== true) echo '<span> ∑:'.$_jegyOsszeg.'</span>';
+ echo '</th>';
+
+ $oszlopSzam = 0;
+
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdatok) {
+ $ZAROJEGYET_KAP = (
+ in_array($ADAT['diakJogviszony'][$diakId][$szAdatok['zarasDt']]['statusz'],array('jogviszonyban van','vendégtanuló'))
+ ||
+ ($ADAT['diakJogviszony'][$diakId][$szAdatok['zarasDt']]['statusz']=='magántanuló' && $tankorJelleg == 'gyakorlat')
+ );
+
+ $felev = $szemeszter;
+ // Az adott szemeszter szeritni évfolyama (igen, akár ez is változhat év közben: pl nyelvi előkészítős osztályba megy át normál osztályból)
+ $evfolyam = $ADAT['diakEvfolyam'][$szemeszter][$diakId];
+ $evfolyamJel = $ADAT['diakEvfolyamJel'][$szemeszter][$diakId];
+ if (isset($ADAT['diakKepzesKovetelmeny'][$szemeszter][$diakId][$targyId][$evfolyamJel][$szemeszter])) {
+ $_info = " a képzésből";
+ $diakZaroKovetelmeny = $ADAT['diakKepzesKovetelmeny'][$szemeszter][$diakId][$targyId][$evfolyamJel][$szemeszter][0]['kovetelmeny'];
+ } else {
+ $_info = "";
+ $diakZaroKovetelmeny = $zaroKovetelmeny;
+ }
+ $oszlopSzam++;
+ echo '<td class="biz">';
+ if ( __ZAROJEGYET_ADHAT===true) {
+ $_zarojegyGomb = true;
+ $jIg = count($ADAT['zaroJegyek'][$diakId][$evfolyamJel][$felev]); // evfolyamJel
+ if ($jIg==0) $jIg=1;
+ $vanJegySelect=false;
+ $lezartJegy=false;
+ for ($j=0; $j<($jIg); $j++) {
+ // prepare data
+ $_ZJEGY = $ADAT['zaroJegyek'][$diakId][$evfolyamJel][$felev][$j]; // evfolyamJel
+ $_ZJEGY['dt'] = $_ZJEGY['modositasDt']; //!!! HACK -- ez tök jó, de mi a hack?
+ //??? $vizsgaJegy = ($ADAT['vizsgaJegyek'][$diakId][$evfolyam][$felev][0]['tipus']!=''); // == osztályozó vizsga // különbözeti stb
+ // Ha netán a tanár lezár rendesen és utóbb vizsgajegyet is írnak be, akkor a rendes jegyet még kell tudni törölni...
+ $ii = 0;
+ while (
+ ($ii < count($ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev])) // evfolyamJel
+ && $ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev][$ii]['zaroJegyId'] != $_ZJEGY['zaroJegyId'] // evfolyamJel
+ ) $ii++;
+ $vizsgaJegy = $ii < count($ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev]); // evfolyamJel
+ // ---
+ if ($lezartJegy===false && $vizsgaJegy==true) $lezartJegy=true;
+ // FIGYELEM!, ha itt módosítász, ellenőrizd a cikluson kívül is jó marad-e a jegySelect
+ $_JEGY_S = array(
+ 'info' => $diakZaroKovetelmeny.$_info,
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $targyId,
+ 'evfolyam'=> $_ZJEGY['evfolyam'],
+ 'evfolyamJel'=> $_ZJEGY['evfolyamJel'], // evfolyamJel
+ 'tanev'=> $tanev,
+ 'szemeszter' => $szemeszter,
+ 'zaroJegyId' => $_ZJEGY['zaroJegyId'],
+ 'jegy' => $_ZJEGY['jegy'],
+ 'jegyTipus' => (($_ZJEGY['jegyTipus']=='') ? $diakZaroKovetelmeny : $_ZJEGY['jegyTipus']),
+ 'zaroJegyTipusok' => array_unique( array( $diakZaroKovetelmeny, (($_ZJEGY['jegyTipus']=='') ? $diakZaroKovetelmeny : $_ZJEGY['jegyTipus']), 'nem értékelhető' )),
+ 'megjegyzes' => $_ZJEGY['megjegyzes'],
+ 'dt' => $_ZJEGY['dt'], // !!!!!!!!!!!!!!!!
+ 'hivatalosDt' => $_ZJEGY['hivatalosDt'],
+ 'modositasDt' => $_ZJEGY['modositasDt'],
+ 'tabindex' => ($db+$oszlopSzam*count($Diakok['idk'])),
+ 'tankorId' => $tankorId // szöveges értékelés...
+ );
+ if ($_ZJEGY['evfolyam']=='') // már kitaláltuk az évfolyamot mindenféle furmánnyal (lásd -pre)
+ $_JEGY_S['evfolyam'] = $evfolyam;
+ if ($_ZJEGY['evfolyamJel']=='') // már kitaláltuk az évfolyamot mindenféle furmánnyal (lásd -pre)
+ $_JEGY_S['evfolyamJel'] = $evfolyamJel; // evfolyamJel
+
+ if (($ZAROJEGYET_KAP === true || __NAPLOADMIN===true) && $lezartJegy===false && ( !defined('__IDOSZAK_SZEMESZTER') || (
+ $szemeszter==__IDOSZAK_SZEMESZTER && (
+ in_date_interval($_ZJEGY['dt'],__IDOSZAK_TOLDT,__IDOSZAK_IGDT)
+ || $_ZJEGY['zaroJegyId']==''
+ )
+ ))) {
+ if (($evfolyamJel=='' && $evfolyam=='')) {
+ echo 'Nem határozható meg az évfolyama, így valószínűleg nem adható zárójegy! [#1]';
+ } else {
+ putJegySelect($_JEGY_S);
+ }
+ $vanJegySelect = true;
+ } elseif ($_ZJEGY['zaroJegyId']!='') {
+ echo '<div class="zaroJegyAdat" data-zarojegyid="'.$_ZJEGY['zaroJegyId'].'">';
+ echo $KOVETELMENY[$_ZJEGY['jegyTipus']][$_ZJEGY['jegy']]['hivatalos'];
+ if ($_ZJEGY['megjegyzes']!='') echo ' '.$bizonyitvanyMegjegyzesek[$_ZJEGY['megjegyzes']];
+ if ($vizsgaJegy==true) echo '<sup>(v)</sup>';
+ echo '</div>';
+ } elseif ($vizsgaJegy!==false) {
+ echo 'Vizsgáznia kell!'; // ???
+ }
+
+ }
+ if ($lezartJegy===false) {
+ if ( (!defined('__IDOSZAK_SZEMESZTER') || $szemeszter==__IDOSZAK_SZEMESZTER) && $vanJegySelect===false) {
+ foreach ( array('zaroJegyId','jegy','megjegyzes','dt', 'hivatalosDt', 'modositasDt') as $val) unset($_JEGY_S[$val]);
+ $_JEGY_S['jegyTipus'] = $zaroKovetelmeny;
+ if ($evfolyamJel=='' && $evfolyam=='') {
+ echo 'Nem határozható meg az évfolyama, így valószínűleg nem adható zárójegy!';
+ } elseif ($ZAROJEGYET_KAP===true) {
+ putJegySelect($_JEGY_S);
+ } else {
+ echo '-';
+ }
+ }
+ }
+ } else {
+ for ($j=0; $j<count($ADAT['zaroJegyek'][$diakId][$evfolyamJel][$szemeszter]); $j++) {
+ $_zaroJegy = $ADAT['zaroJegyek'][$diakId][$evfolyamJel][$szemeszter][$j];
+ echo $KOVETELMENY[$_zaroJegy['jegyTipus']][$_zaroJegy['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_zaroJegy['megjegyzes']];
+ }
+
+ }
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+
+ }
+
+ // Dolgozat átlagok
+ echo '<tr>';
+ echo '<th colspan="'.($_colSpan+1).'" class="dolgozat">'._ATLAG.'</th>';
+ $elozoHo = 0;
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_szemeszter = $HO[$j]['szemeszter'];
+ $elozoHo = $_ho;
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+
+ // Normál jegyek alatt...
+ if ($_ho == $elozoHo) echo '<th class="ujSzemeszter" />'; else echo '<th />';
+ for ($k=0;$k<count($Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho]);$k++) {
+ echo '<th class="atlag">';
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho][$k];
+ echo '<a id="avg-d'.$did.'" href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did.'&tanarId='.$tanarId.'&osztalyId='.$osztalyId).'">';
+ if ($KOVETELMENY[$Jegyek['dolgozatok'][$did]['jegyTipus']]['átlagolható']) echo number_format($Jegyek['dolgozatok'][$did]['átlag'],2,',','');
+ else echo '-';
+ echo '</a>';
+ echo '</th>';
+ }
+
+ }
+ // Osztályátlag
+ echo '<th class="dolgozat">';
+ if ($Jegyek['átlag'] != 0) echo number_format($Jegyek['átlag'],2,',','');
+ else echo _ATLAG;
+ echo '</th>';
+
+ // Félévi átlagok
+ echo '<th class="atlag" colspan="2">';
+ if ($_zarojegyGomb==true) {
+ echo '<input type="hidden" class="onClickDisableValue" name="bizBeiroGomb2" value="" />';
+ echo '<input type="submit" class="felev onClickDisable" name="bizBeiroGomb" value="'._BEIR.'" />';
+ }
+ echo '</th>';
+
+ echo '</tr>';
+
+ echo '</tbody>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+ function putTankorjegyStatisztika($ADAT) {
+ //dump( $ADAT);
+ //echo '<div style="background-color: red; width:100px; height:100px"></div>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml
new file mode 100644
index 00000000..3de4e501
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml
@@ -0,0 +1,45 @@
+<?php
+
+ function putTargySorrendForm($osztalyId, $sorrendNev, $Targyak) {
+
+ formBegin(array('method'=>'post', 'action'=>'', 'id'=>'sorrend', 'class'=>'sorrend'));
+
+ echo '<h1>'._SORREND.'</h1>';
+
+ echo '<input type="hidden" name="action" id="action" value="sorrendValtas" />'."\n";
+ echo '<input type="hidden" name="sorrendNev" value="'.$sorrendNev.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ $SEL = array($_POST['targyId'] => ' selected="selected" ');
+ echo '<select id="targySelect" name="targyId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Targyak); $i++) {
+
+ echo '<option value="'.$Targyak[$i]['targyId'].'"'.$SEL[$Targyak[$i]['targyId']].'>'.$Targyak[$i]['targyNev'].'</option>'."\n";
+
+ }
+ echo '</select>'."\n";
+
+ echo '<ul id="targyUl" style="display: none;">'."\n";
+ for ($i = 0; $i < count($Targyak); $i++) {
+
+ echo '<li>';
+ echo '<span class="handle">&nbsp;^&nbsp;</span>';
+ echo $Targyak[$i]['targyNev'];
+ echo '<input type="hidden" name="targyIds[]" value="'.$Targyak[$i]['targyId'].'" />';
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" id="submit" style="display: none;" />'."\n";
+
+ echo '<div id="mozgat">'."\n";
+ echo '<input type="submit" name="fel" value="'._FEL.'" />'."\n";
+ echo '<input type="submit" name="le" value="'._LE.'" />'."\n";
+ echo '</div>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml
new file mode 100644
index 00000000..3cc399fe
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml
@@ -0,0 +1,145 @@
+<?php
+
+ function putVizsgaJelentkezesForm($ADAT) {
+
+ formBegin(array('class'=>'jelentkezes'));
+
+ echo '<h1>'._VIZSGAJELENTKEZES.'</h1>'."\n";
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$ADAT['felev'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="vizsgajelentkezes" />'."\n";
+
+ echo '<label for="jelentkezesDt">'._JELENTKEZES.'</label>'."\n";
+ echo '<input type="text" name="jelentkezesDt" class="date" value="" id="jelentkezesDt" />'."\n";
+ echo '<label for="tipus">'._VIZSGATIPUS.'</label>'."\n";
+ $SEL = array($ADAT['vizsgaTipus'] => ' selected="selected" ');
+ echo '<select name="vizsgaTipus" id="tipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['vizsgatipusok']); $i++) {
+ echo '<option value="'.$ADAT['vizsgatipusok'][$i].'"'.$SEL[ $ADAT['vizsgatipusok'][$i] ].'>'.$ADAT['vizsgatipusok'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putVizsgalista($ADAT) {
+
+ global $KOVETELMENY;
+
+ formBegin(array('class'=>'lista'));
+
+ echo '<h1>'._VIZSGALISTA.'</h1>'."\n";
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$ADAT['felev'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="vizsgaKezeles" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<thead>';
+ echo '<tr><th></th><th>'._DIAK.'</th><th>'._TARGY.'</th><th>'._EVFOLYAMJEL.'</th><th>'._JELENTKEZES.'</th><th colspan="2">'._VIZSGA.'</th><th colspan="2">'._ERTEKELES_HALASZTAS.'</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="9"><input type="submit" value="'._OK.'" /></th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['vizsga']); $i++) {
+
+ extract($ADAT['vizsga'][$i]);
+ echo '<tr class="'.ekezettelen($ADAT['vizsga'][$i]['tipus']).'">';
+ echo '<td>';
+ if (__NAPLOADMIN===true) {
+ echo '<a class="confirm" title="'._BIZTOSAN_TOROL_E.'" href="'.href('index.php?page=naplo&sub=osztalyozo&f=vizsga&action=vizsgaTorlese&vizsgaId='.$ADAT['vizsga'][$i]['vizsgaId'].'&diakId='.$ADAT['diakId'].'&targyId='.$ADAT['targyId'].'&evfolyamJel='.$ADAT['evfolyamJel']).'">';
+ //echo $ADAT['vizsga'][$i]['vizsgaId'];
+ echo 'X';
+ echo '</a>';
+ }
+ echo '</td>';
+ echo '<td class="diakNev" data-diakid="'.$diakId.'">'.$ADAT['diakok'][ $diakId ]['diakNev'].'</td>';
+ echo '<td>'.$ADAT['targyak'][$targyId]['targyNev'].'</td>';
+ echo '<td>'.(($evfolyamJel!='')?$evfolyamJel:$evfolyam).'/'.$felev.'</td>';
+ echo '<td>'.$jelentkezesDt.'</td>';
+ echo '<td title="'.$tipus.'">'.nagybetus(substr($tipus,0,1)).'</td>';
+ if (isset($vizsgaDt)) {
+ if (strtotime($vizsgaDt)>time()) {
+ $halasztClass = ''; $ertekelClass = ' rejtett';
+ } else {
+ $halasztClass = ' rejtett'; $ertekelClass = '';
+ }
+
+ echo '<td>';
+ echo $vizsgaDt;
+ echo '</td>';
+ if (isset($zaradekId)) {
+ echo '<td class="szoveg">';
+ echo $szoveg;
+ echo '</td><td class="jegy zaroJegyAdat" data-zarojegyid="'.$zaroJegyId.'">';
+ if (isset($zaroJegyId)) {
+ echo '<span>'._EREDMENY.': '.$jegyTipus.' &rarr;</span>';
+ echo '<span class="jegy">';
+ echo $KOVETELMENY[$jegyTipus][$jegy]['hivatalos'];
+ if ($KOVETELMENY[$jegyTipus][$jegy]['hivatalos'] != $KOVETELMENY[$jegyTipus][$jegy]['rovid'])
+ echo ' ('.$KOVETELMENY[$jegyTipus][$jegy]['rovid'].')';
+ echo '</span>';
+ }
+ echo '</td>';
+ } else {
+ echo '<td class="kiemelt hideShowContainer" colspan="2">';
+ echo '<input type="hidden" name="erthalVizsgaIds[]" value="'.$vizsgaId.'" />'."\n";
+ echo '<div class="halaszt openable'.$halasztClass.'">';
+ echo '<span class="onClickHideShow ertekeles">&rang;&rang;&rang; '._ERTEKELES.' &rang;&rang;&rang;</span>';
+ echo '<label for="halasztas'.$vizsgaId.'">'._HALASZTAS.':</label>';
+ echo '<input type="text" name="halasztasDts[]" value="" class="date halasztasDt" id="halasztas'.$vizsgaId.'" />';
+ echo '</div><div class="ertekel openable'.$ertekelClass.'">';
+ echo '<span class="onClickHideShow halasztas">&rang;&rang;&rang; '._HALASZTAS.' &rang;&rang;&rang;</span>';
+ echo '<label for="ertekeles'.$vizsgaId.'">'._ERTEKELES.':</label>';
+ echo '<select name="jegyTipus[]" class="jegyTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['zarojegytipusok'] as $key => $jegyTipus) {
+ echo '<option value="'.$jegyTipus.'">'.$jegyTipus.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<select name="jegyAdat[]" class="jegyAdat" id="ertekeles'.$vizsgaId.'" title="'.$ADAT['tanev'].'/'.$felev.' - '.$evfolyamJel.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['zarojegytipusok'] as $key => $jegyTipus) {
+ echo '<optgroup label="'.$jegyTipus.'">';
+ foreach ($KOVETELMENY[$jegyTipus]['értékek'] as $idx => $value) {
+ if (in_array($value,$KOVETELMENY[$jegyTipus]['sikertelen'])) $_postfix=' !'; else $_postfix='';
+// echo '<option value="zaroJegyId=|diakId='.$diakId.'|targyId='.$targyId.'|evfolyam='.$evfolyam.'|tanev='.$ADAT['tanev'].'|felev='.$felev.'|jegy='.$value.'|jegyTipus='.$jegyTipus.'|megjegyzes=">'.$KOVETELMENY[$jegyTipus][$value]['rovid'].'</option>'."\n";
+ echo '<option value="jegy='.$value.'|jegyTipus='.$jegyTipus.'|megjegyzes=">'.$KOVETELMENY[$jegyTipus][$value]['rovid'].$_postfix.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+ echo '</td>';
+ }
+ } else {
+ echo '<td class="kiemelt">';
+ echo '<input type="hidden" name="vizsgaDtVizsgaIds[]" value="'.$vizsgaId.'" />'."\n";
+ echo '<input type="text" class="date" name="vizsgaDts[]" value="" />'."\n";
+ echo '</td>';
+ echo '<td colspan="2"></td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ echo '<div class="hideShowContainer">';
+ echo '<h4 class="onClickHideShow"><span class="icon-braille"></span>Debug információ</h4>';
+ echo '<div class="openable" style="display:none">';
+ dump($KOVETELMENY);
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml
new file mode 100644
index 00000000..d27c0c92
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml
@@ -0,0 +1,16 @@
+<?php
+
+ function putVizsgaJelentkezes($ADAT) {
+
+ formBegin(array('class'=>'jelentkezes'));
+ echo '<label for="idoszak">'._VIZSGAIDOSZAK.'</label>'."\n";
+ echo '<select id="idoszak" name="idoszakId">'."\n";
+ $SEL = array($ADAT['kovetkezoIdoszakIndex'] => ' selected="selected" ');
+ foreach ($ADAT['vizsgaIdoszak'] as $index => $vAdat) {
+ echo '<option value="'.$vAdat['idoszakId'].'"'.$SEL[$index].'>'.substr($vAdat['tolDt'],0,10).' - '.substr($vAdat['igDt'],0,10).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml
new file mode 100644
index 00000000..95a99b81
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml
@@ -0,0 +1,50 @@
+<?php
+ function putZaroJegyCheck($ADAT) {
+
+ echo 'Osztály évfolyama:';
+ echo $ADAT['evfolyam'];
+ echo '<br/>Osztály évfolyamjele:';
+ echo $ADAT['evfolyamJel'];
+ echo '<br/>Osztály adatai:';
+ echo '<pre>';
+ var_dump($ADAT['osztalyok']);
+ echo '</pre>';
+
+ $ZJ = $ADAT['zaroJegyek'];
+ formBegin();
+ echo '<input type="hidden" name="action" value="modosit" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<table border="1" align="center">';
+ echo '<tr><th>zaroJegyId</th><th>diakId</th><th>targyId</th><th>jegy+tipus</th><th>evfolyam</th><th>evfolyamJel</th><th>felev</th><th>modositasDt</th><th>hivatalosDt</th></tr>';
+ for ($i=0; $i<count($ZJ); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ echo $ZJ[$i]['zaroJegyId'];
+ echo '</td>';
+ echo '<td>'.$ZJ[$i]['diakId'].'</td>';
+ echo '<td>'.$ZJ[$i]['targyId'].'</td>';
+ echo '<td>'.$ZJ[$i]['jegy'].$ZJ['jegyTipus'].'</td>';
+ echo '<td>'.$ZJ[$i]['evfolyam'].'</td>';
+ echo '<td>';
+ if ($ADAT['evfolyamJel']!=$ZJ[$i]['evfolyamJel']) {
+ echo '"'.$ZJ[$i]['evfolyamJel'].'"';
+ echo '<span class="icon-adjust" style="color:red"></span>';
+ echo $ADAT['evfolyamJel'];
+ echo '<input type="checkbox" name="zaroJegyId[]" value="'.$ZJ[$i]['zaroJegyId'].'" checked="checked" />';
+ } else {
+ echo $ZJ[$i]['evfolyamJel'];
+ echo '<span class="icon-ok-sign" style="color:green"></span>';
+ }
+ echo '</td>';
+ echo '<td>'.$ZJ[$i]['felev'].'</td>';
+ echo '<td>'.$ZJ[$i]['modositasDt'].'</td>';
+ echo '<td>'.$ZJ[$i]['hivatalosDt'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ echo '<h3>A gombnyomás a fenti táblázat zárójegyeinél megváltoztatja az évfolyamJelet!';
+ echo '<input type="submit" value="MEHET?" title="Biztos?" ></h3>';
+ formEnd();
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/email.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/email.phtml
new file mode 100644
index 00000000..f4a91402
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/email.phtml
@@ -0,0 +1,42 @@
+<?php
+
+ function emailHead($includeCSS=array()) {
+
+ $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--[if IE]><html xmlns="http://www.w3.org/1999/xhtml" class="ie"><![endif]--><!--[if !IE]><!--><html style="margin: 0;padding: 0;" xmlns="http://www.w3.org/1999/xhtml"><!--<![endif]-->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title></title>';
+
+ // BASE CSS
+ $html .= '<style type="text/css">
+body { margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; }
+table { border-collapse: collapse; table-layout: fixed;}
+* { line-height: inherit;}
+ </style>';
+
+ // BEEPULO CSS-EK INLINE
+ if (is_array($includeCSS) && count($includeCSS)>0) {
+ for ($i=0; $i<count($includeCSS); $i++) {
+ $html .= '<style type="text/css">';
+ $html .= file_get_contents($includeCSS[$i]);
+ $html .= '</style>';
+ }
+ }
+
+ $html .= '</head><body>';
+
+ // DEFAULT EMAIL FEJLEC
+ $html .= '<div class="emailFejlec">MaYoR Hírnök</div>';
+
+ return $html;
+ }
+
+ function emailFoot() {
+
+ $html = '<div style="text-align:center; padding:30px; font-size:x-small; color: #888;">MaYoR elektronikus napló (GPL)</div>
+ </body></html>';
+ return $html;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml
new file mode 100644
index 00000000..209652db
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml
@@ -0,0 +1,71 @@
+<?php
+ function putFace($Id,$tipus,$height='50',$return=true) {
+
+ $ICON = array(
+ '' =>'<span class="icon-star-empty"></span>',
+ 'diak' => '<span class="icon-child"></span>',
+ 'szulo' => '<span class="icon-adult"></span>',
+ 'tanar' => '<span class="icon-adult"></span>',
+ 'munkakozosseg' => '<span class="icon-slideshare"></span>',
+ 'tankor' => '<span class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span class="icon-group-alt"></span>',
+ 'osztaly' => '<span class="icon-group"></span>',
+ 'osztalySzulo' => '<span class="icon-adult"></span>',
+ 'osztalyTanar' => '<span class="icon-slideshare"></span>',
+ );
+
+ if ($height<=0) {
+ $height = '50';
+ $c = "size_n";
+ } else {
+ $c = "size_s";
+ }
+ $subdir='';
+ $extraHtmlAttrs = '';
+ $extraClass = '';
+ if (in_array($tipus,array('diak','diák'))) {
+ $subdir=__TANEV;
+ $extraClass='diakNev';
+ $extraHtmlAttrs = 'data-diakid="'.$Id.'"';
+ } elseif (in_array($tipus,array('tanar','tanár'))) {
+ $subdir=ekezettelen($tipus);
+ $extraClass='tanarNev';
+ $extraHtmlAttrs = 'data-tanarid="'.$Id.'"';
+ } elseif ($tipus=='tankor') {
+ $extraClass = 'tankorAdat';
+ $extraHtmlAttrs = 'data-tankorid="'.$Id.'"';
+ } elseif (in_array($tipus,array('osztaly','osztalySzulo','osztalyTanar'))) {
+ $extraClass = 'osztalyAdat';
+ $extraHtmlAttrs = 'data-osztalyid="'.$Id.'"';
+ } else {
+
+ }
+
+ $extraClass .= ' '.__SHOW_FACES_TYPE.' ';
+
+ if ($subdir!='') {
+ foreach (array('jpg') as $ext) {
+ $img = $Id.'.'.$ext;
+ if (@file_exists(_DOWNLOADDIR.'/'._POLICY.'/naplo/face/'.$subdir.'/'.$img)) {
+ $file = 'index.php?policy='._POLICY.'&sessionID='._SESSIONID.'&page=session&f=download&download='.sha1($Id).'&dir=naplo/face/'.$subdir.'&file='.$img;
+ $s = '<div class="arckep--container '.$tipus.' '.$extraClass.'" '.$extraHtmlAttrs.' style="width: '.$height.'px;height: '.$height.'px;"><img src="'.$file.'" alt="'.$Id.'" '.$extraHtmlAttrs.' /></div>';
+ if ($return===true) {
+ echo $s;
+ return;
+ } else {
+ return $s;
+ }
+ }
+ }
+ }
+ // nincs kép
+ if (__SHOW_FACES_TYPE!='classic') {
+ $s = '<div class="arckepContainer '.$tipus.' '.$c.' '.$extraClass.'" '.$extraHtmlAttrs.'>';
+ //$s .= $Id;
+ $s .= $ICON[$tipus];
+ $s .= '</div>';
+ }
+ if ($return===true) echo $s; else return $s;
+
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/file.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/file.phtml
new file mode 100644
index 00000000..1bb2f616
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/file.phtml
@@ -0,0 +1,92 @@
+<?php
+
+ function putFileSelectForm($dbtable, $post = array()) {
+
+ formBegin(array('class'=>'updateTable'));
+ // A form címe
+ if (defined('_FILESELECTTITLE')) echo '<h1>'._FILESELECTTITLE.'</h1>';
+ // A továbbadandó POST adatok
+ for ($i = 0; $i < count($post); $i++) {
+ /* Ez itt nem ellenőrzött! --TODO */
+ echo '<input type="hidden" name="'.$post[$i].'" value="'.$_POST[$post[$i]].'" />'."\n";
+ }
+ echo '<input type="hidden" name="dbtable" value="'.$dbtable.'">'."\n";
+ echo '<input type="checkbox" name="skipOnDup" value="true" /> Meglevő rekord találatkor kihagyjuk a rekord frissítést';
+ echo '<label for="file">'._FILENEV.':</label>'."\n";
+ echo '<input type="text" id="file" name="fileName" />'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putFieldSelectForm($fileName, $T, $attrs, $dbtable, $post = array()) {
+
+ formBegin(array('class'=>'updateTable'));
+ $_CHK = (_SKIP_ON_DUP === true) ? ' checked="checked" ': '';
+ echo '<input type="checkbox" id="skipOnDup" name="skipOnDup" value="true" '.$_CHK.' /><label for="skipOnDup">Meglevő rekord találatkor kihagyjuk a rekord frissítést</label>';
+
+ // A formhoz definiált magyarázó szöveg
+ if (defined('_FIELDSELECTMESSAGE')) {
+ echo '<p>'._FIELDSELECTMESSAGE.'</p>';
+ }
+ // A továbbadandó POST adatok
+ for ($i = 0; $i < count($post); $i++) {
+ echo '<input type="hidden" name="'.$post[$i].'" value="'.$_POST[$post[$i]].'" />'."\n";
+ }
+
+ // A rovatfej vizsgálata
+ $rovatfej = ''; $RovatfejAttrs = array();
+ for($j=0; $j<count($T[0]); $j++) {
+ if (isset($attrs[$T[0][$j]])) {
+ $RovatfejAttrs[$j] = $T[0][$j];
+ $rovatfej = ' checked="checked"';
+ } elseif (($a = array_search($T[0][$j],$attrs)) !== false) {
+ $RovatfejAttrs[$j] = $a;
+ $rovatfej = ' checked="checked"';
+ } else {
+ $RovatfejAttrs[$j] = '';
+ }
+ }
+ echo '<input type="hidden" name="fileName" value="'.$fileName.'" />';
+ echo '<input type="hidden" name="dbtable" value="'.$dbtable.'" />';
+
+ echo '<input type="checkbox" name="rovatfej" value="true" id="rovatfej"'.$rovatfej.' />';
+ echo '<label for="rovatfej">'._VAN_ROVATFEJ.'</label>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+
+ echo '<table class="importData">';
+ echo '<tr>';
+ for($j=0; $j<count($T[0]); $j++) {
+ echo '<th>';
+
+ echo 'kulcs mező? <input type="checkbox" name="KULCS_MEZOK[]" value="'.$j.'" /><br />'."\n";
+
+ echo '<select name="MEZO_LISTA[]">'."\n";
+ reset ($attrs);
+ $SEL = array($RovatfejAttrs[$j] => ' selected="selected" ');
+ echo '<option value="">-</option>'."\n";
+ while(list($a,$txt) = each($attrs)) {
+ echo '<option value="'.$a.'"'.$SEL[$a].'>'.$txt.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '</th>';
+ }
+ echo '</tr>';
+ // Az első x sor kiírása:
+ for($i=0; $i<count($T); $i++) {
+ echo '<tr>';
+ for($j=0; $j<count($T[$i]); $j++) {
+ echo '<td>';
+ echo $T[$i][$j];
+ echo '</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/hianyzas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/hianyzas.phtml
new file mode 100644
index 00000000..f7a9affc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/hianyzas.phtml
@@ -0,0 +1,137 @@
+<?php
+
+ function _putHianyzasKistabla($napiHianyzasok, $oraAdat, $SET = array('allowed' => false, 'href' => '', 'napiMinOra' => null, 'napiMaxOra' => null), $KRETAHIANYZAS) {
+
+ if (is_null($SET['napiMinOra'])) return false;
+ // a meghívó függvénynek kell gondoskodnia az ALLOWED beállításról. Mi már csak ezt használjuk global egy napra!
+ if (isset($SET['allowed']) && $SET['allowed'] && $SET['href']!='') {
+ $OK = true;
+ $href = $SET['href'];
+ } else $OK = false;
+
+ echo '<table class="hianyzasNaptar" cellspacing="0" cellpadding="1" align="center"><tr>';
+ $_SOR = '';
+ for ($__ora = $SET['napiMinOra'];$__ora <= $SET['napiMaxOra']; $__ora++) {
+ $__D = $napiHianyzasok[$oraAdat['dt']][$__ora];
+ $__classES = array();
+ $__kiir='';
+ $__hrefClass = '';
+ $igazolhatoHianyzasId='';
+ $__DK = $KRETAHIANYZAS[$__ora];
+ if (count($__D)>0) {
+ $__tipus='';
+ /* A több óra támogatást támogatását módosítani kellene... */
+ for ( $i=0; $i<count($__D); $i++) {
+ $__perc = $__D[$i]['perc'];
+ $__statusz = $__D[$i]['statusz'];
+ $__tipus = $__D[$i]['tipus'];
+ $__hid = $__D[$i]['hianyzasId'];
+ $__oraId = $__D[$i]['oraId'];
+ $__rogzitoTanarId = $__D[$i]['rogzitoTanarId'];
+ $__kiir2beg=$__kiir2end='';
+ if ($__statusz != '') {
+ $__classES[] = str_replace(' ','_',ekezettelen($__tipus));
+ if ($__tipus=='felmentés') $__kiir.='f';
+ elseif( $__tipus=='felszerelés hiány') $__kiir.='F';
+ elseif( $__tipus=='egyenruha hiány') $__kiir.='e';
+ else {
+ if(is_numeric($__perc) && $__perc>0) {
+ $__kiir2beg = '<span title="'.$__perc.'\'">';
+ $__kiir2end = '</span>';
+ }
+ }
+ } else {
+ $__kiir .= '&nbsp;';
+ }
+ if ($__hrefClass=='' && !in_array($__tipus,array('felmentés','felszerelés hiány','egyenruha hiány'))) {
+ $__hrefClass=$__statusz;
+ $igazolhatoHianyzasId = $__hid;
+ }
+ }
+ if ($__rogzitoTanarId == __USERTANARID) $__kiir .= '×';
+ if ($__kiir=='') $__kiir = '-';
+ } else {
+ $__statusz=$__tipus=$__hid=$__oraId='';
+ $__kiir = '&nbsp;';
+ }
+ $__class = ' class="hianyzasNaptar '.implode(' ',$__classES).'"';
+
+ echo '<th class="hianyzasNaptar" style="color: white;">';
+ if ($OK === true) {
+ $_href = href($href.'&hianyzasId='.$igazolhatoHianyzasId.'&dt='.$oraAdat['dt'].'&ora='.$__ora);
+ echo '<a href="'.$_href.'" class="'.$__hrefClass.'">'.$__ora.'</a>';
+ } else
+ echo '<span class="'.$__hrefClass.'">'.$__ora.'</span>';
+ echo '</th>';
+ $_SOR .= '<td'.$__class.'>'.$__kiir2beg.$__kiir.$__kiir2end.'</td>';
+ }
+ echo '</tr><tr>'.$_SOR;
+ echo '</tr></table>';
+
+
+ if (is_array($KRETAHIANYZAS)) {
+
+ echo '<table class="hianyzasNaptar kreta" cellspacing="0" cellpadding="1" align="center"><tr>';
+ $_SOR = '';
+ for ($__ora = $SET['napiMinOra'];$__ora <= $SET['napiMaxOra']; $__ora++) {
+// $__D = $napiHianyzasok[$oraAdat['dt']][$__ora];
+ $__classES = array();
+ $__kiir='';
+ $__hrefClass = '';
+ $igazolhatoHianyzasId='';
+ $__D = $KRETAHIANYZAS[$__ora];
+ if (count($__D)>0) {
+ $__tipus='';
+ /* A több óra támogatást támogatását módosítani kellene... */
+ for ( $i=0; $i<count($__D); $i++) {
+ $__perc = $__D[$i]['perc'];
+ $__statusz = ($__D[$i]['kretaStatusz']=='igen'?'igazolt':'igazolatlan');
+ $__tipus = $__D[$i]['tipus'];
+ $__hid = $__D[$i]['kretaHianyzasId'];
+ // $__oraId = $__D[$i]['oraId'];
+ // $__rogzitoTanarId = $__D[$i]['rogzitoTanarId'];
+ $__kiir2beg=$__kiir2end='';
+ if ($__statusz != '') {
+ $__classES[] = str_replace(' ','_',ekezettelen($__tipus));
+ if ($__tipus=='felmentés') $__kiir.='f';
+ elseif( $__tipus=='felszerelés hiány') $__kiir.='F';
+ elseif( $__tipus=='egyenruha hiány') $__kiir.='e';
+ else {
+ if(is_numeric($__perc) && $__perc>0) {
+ $__kiir2beg = '<span title="'.$__perc.'\'">';
+ $__kiir2end = '</span>';
+ }
+ }
+ } else {
+ $__kiir .= '&nbsp;';
+ }
+ if ($__hrefClass=='' && !in_array($__tipus,array('felmentés','felszerelés hiány','egyenruha hiány'))) {
+ $__hrefClass=$__statusz;
+ $igazolhatoHianyzasId = $__hid;
+ }
+ }
+ if ($__rogzitoTanarId == __USERTANARID) $__kiir .= '×';
+ if ($__kiir=='') $__kiir = '-';
+ } else {
+ $__statusz=$__tipus=$__hid=$__oraId='';
+ $__kiir = '&nbsp;';
+ }
+ $__class = ' class="hianyzasNaptar '.implode(' ',$__classES).'"';
+
+ echo '<th class="hianyzasNaptar" style="color: #666;">';
+ if ($OK === true) {
+ $_href = href($href.'&hianyzasId='.$igazolhatoHianyzasId.'&dt='.$oraAdat['dt'].'&ora='.$__ora);
+ echo '<a href="'.$_href.'" class="'.$__hrefClass.'">'.$__ora.'</a>';
+ } else
+ echo '<span class="'.$__hrefClass.'">'.$__ora.'</span>';
+ echo '</th>';
+ $_SOR .= '<td'.$__class.'>'.$__kiir2beg.$__kiir.$__kiir2end.'</td>';
+ }
+ echo '</tr><tr>'.$_SOR;
+ echo '</tr></table>';
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/jegy.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/jegy.phtml
new file mode 100644
index 00000000..955683dc
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/jegy.phtml
@@ -0,0 +1,92 @@
+<?php
+
+ function putJegySelect($ADAT,$responseFormat='echo') { // responseFormat = echo|return
+ /*
+ _jegySelectTipus = zaroJegy || ...
+ _jegySelectTipus = jegy (nincs tesztelve)
+ */
+ global $KOVETELMENY;
+ extract($ADAT,EXTR_PREFIX_ALL,'');
+ if ($_tabindex != '') $tabindex_str = 'tabindex="'.$_tabindex.'" '; else $tabindex_str = '';
+ // mire vonatkozik a select
+ if ($_jegySelectTipus == 'zaroJegy') {
+ $idTipus = 'zaroJegyId'; // intezmeny
+ $megjelenes = 'hivatalos';
+ }else{
+ $idTipus = 'jegyId'; // tanev
+ $megjelenes = 'rovid';
+ }
+ // prepare variables
+ $PRE = array($idTipus,'diakId','targyId','evfolyam','evfolyamJel','tanev','szemeszter');
+ for ($i=0; $i<count($PRE); $i++) {
+ $_x = '_'.$PRE[$i];
+ $VARS[] = $PRE[$i].'='.$$_x;
+ }
+ // HTML
+ $_title = ($ADAT['evfolyamJel']!='') ? $ADAT['evfolyamJel'].'. évfolyamon' : '';
+ $_title .= ($ADAT['hivatalosDt']!='') ? ' hivatalosan:'.$ADAT['hivatalosDt'] : '';
+ $_title .= ($ADAT['modositasDt']!='') ? ' módosítva:'.$ADAT['modositasDt'] : '';
+ $_title .= ($ADAT['info']!='') ? ' '.$ADAT['info'] : '';
+ //$readonly = ' readonly="readonly" disabled="disabled" ';
+ $readonly='';
+ if ($_jegyTipus != '' && count($_zaroJegyTipusok)==0) {
+ $content .= '<select name="'.$_variable.'[]" '.$tabindex_str.' title="'.$_title.'" '.$readonly.' class="'.$_class.'" style="'.$_style.'">';
+ $content .= '<option value="'.implode('|',$VARS).'|delete=true">-</option>';
+ for ($o = 0; $o < count($KOVETELMENY[$_jegyTipus]['értékek']); $o++) {
+ $_osztalyzat = $KOVETELMENY[$_jegyTipus]['értékek'][$o];
+ $_SEL = ($_megjegyzes=='' && $_osztalyzat == $_jegy) ? 'selected="selected"':'';
+ $_megj = null;
+ $content .= '<option value="'.implode('|',$VARS)."|jegy=$_osztalyzat|jegyTipus=$_jegyTipus|megjegyzes=$_megj".'" '.$_SEL.'>';
+ $content .= $KOVETELMENY[$_jegyTipus][$_osztalyzat][$megjelenes];
+ $content .= '</option>';
+ // + megjegyzés szerinti jegyek
+ if ($KOVETELMENY[$_jegyTipus][$_osztalyzat]['megjegyzes']!='') {
+ $_megj = $KOVETELMENY[$_jegyTipus][$_osztalyzat]['megjegyzes'];
+ $_SEL = (($_megjegyzes==$_megj) && ($_osztalyzat == $_jegy)) ? 'selected="selected"':'';
+ $content .= '<option value="'.implode('|',$VARS)."|jegy=$_osztalyzat|jegyTipus=$_jegyTipus|megjegyzes=$_megj".' data-jegy="'.$_osztalyzat.'" '.$_SEL.' >';
+ $content .= $KOVETELMENY[$_jegyTipus][$_osztalyzat][$megjelenes];
+ $content .= ' '.$_megj;
+ $content .= '</option>';
+ }
+ }
+ $content .= '</select>';
+ } elseif (count($_zaroJegyTipusok)>=1) { // ha engedélyezett (van megadott érvényes jegyTipus)
+ $content .= '<select name="'.$_variable.'[]" '.$tabindex_str.' class="jegyAdat" title="'.$_title.'" '.$readonly.' class="'.$_class.'" style="'.$_style.'">';
+ $content .= '<option value="'.implode('|',$VARS).'|delete=true">-</option>';
+ foreach ($_zaroJegyTipusok as $_junk => $__jegyTipus) {
+ $content .= '<optgroup label="'.$__jegyTipus.'">';
+ if (is_array($KOVETELMENY[$__jegyTipus]['értékek']))
+ foreach ($KOVETELMENY[$__jegyTipus]['értékek'] as $idx => $_osztalyzat) {
+ $_SEL = (($_megjegyzes=='') && ($_osztalyzat == $_jegy) && ($_jegyTipus == $__jegyTipus)) ? 'selected="selected"':'';
+ $content .= '<option '.$_SEL.' value="zaroJegyId='.$_zaroJegyId.'|diakId='.$_diakId.'|targyId='.$_targyId.'|evfolyam='.$_evfolyam.'|evfolyamJel='.$_evfolyamJel.'|tanev='.$_tanev.'|szemeszter='.$_szemeszter.'|jegy='.$_osztalyzat.'|jegyTipus='.$__jegyTipus.'|megjegyzes=" data-jegy="'.$_osztalyzat.'" >'.$KOVETELMENY[$__jegyTipus][$_osztalyzat]['hivatalos'].'</option>';
+ // + megjegyzés szerinti jegyek
+ if ($KOVETELMENY[$__jegyTipus][$_osztalyzat]['megjegyzes']!='') {
+ $_megj = $KOVETELMENY[$__jegyTipus][$_osztalyzat]['megjegyzes'];
+ $_SEL = (($_megjegyzes==$_megj) && ($_osztalyzat == $_jegy) && ($_jegyTipus == $__jegyTipus)) ? 'selected="selected"':'';
+ $content .= '<option '.$_SEL.' value="zaroJegyId='.$_zaroJegyId.'|diakId='.$_diakId.'|targyId='.$_targyId.'|evfolyam='.$_evfolyam.'|evfolyamJel='.$_evfolyamJel.'|tanev='.$_tanev.'|szemeszter='.$_szemeszter.'|jegy='.$_osztalyzat.'|jegyTipus='.$__jegyTipus.'|megjegyzes='.$_megj.'">';
+ $content .= $KOVETELMENY[$__jegyTipus][$_osztalyzat]['hivatalos'];
+ $content .= ' '.$_megj;
+ $content .= '</option>';
+ }
+
+ }
+ $content .= '</optgroup>';
+ }
+ //hack, nem szép: $content .= '<optgroup label="info"><option disabled="disabled">'.$_title.'</option></optgroup>';
+ $content .= '</select>';
+ if ($ADAT['jegyTipus']=='szöveges szempontrendszer') {
+ $content .= '<a href="'.
+ href(
+ 'index.php?page=naplo&sub=osztalyozo&f=szovegesErtekeles&diakId='.$_diakId
+ .'&tanev='.$_tanev.'&szemeszter='.$_szemeszter.'&evfolyam='.$_evfolyam.'&evfolyamJel='.$_evfolyamJel.'&tankorId='.$_tankorId
+ )
+ .'" class="onClickUpdateWindow szoveges" title="'._SZOVEGES_MINOSITES.'">☰</a>';
+ }
+ } else { // ha nincs megadva jegyTipus, sajnos nem írható be jegy
+ $content .= 'A tárgyhoz nincs rögzítve a jegyTipus!';
+ }
+ if ($responseFormat=='return') return $content;
+ else echo $content;
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/orarend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/orarend.phtml
new file mode 100644
index 00000000..522b5a51
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/orarend.phtml
@@ -0,0 +1,48 @@
+<?php
+ /*
+ $ADAT['meta'] = ['dbNap']
+ $ADAT['oszlopFej'][$index]
+ $ADAT['oszlopLab'][$index]
+ $ADAT['sorFej']
+ $ADAT['tabla']
+ */
+
+ function putOrarendTablazat($ADAT) {
+
+ echo '<table border="0" align="center" class="orarend">';
+ /* Header */
+ echo '<thead>';
+ echo '<tr>';
+ for ($nap=0; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<th>';
+ if (function_exists('_putOrarendHead')) _putOrarendHead($ADAT['oszlopFej'][$nap]);
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+ /* Footer */
+ echo '<tfoot>';
+ echo '<tr>';
+ for ($nap=0; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<th>';
+ if (function_exists('_putOrarendFoot')) _putOrarendHead($ADAT['oszlopLab'][$nap]);
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+
+ /* Table body */
+ for ($ora = 0; $ora<16; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<td>';
+ if ($ADAT[$ora][$nap]['modosithato'] === true && function_exists('_egyOraMod')) _egyOraMod();
+ echo '</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>';
+
+ }
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml
new file mode 100644
index 00000000..3e0957f6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml
@@ -0,0 +1,165 @@
+<?php
+
+ function putDiakAllapot($ADAT) {
+
+ if (__MENTOR || __NAPLOADMIN || __VEZETOSEG) echo '<div class="sni mentor">'."\n";
+ else echo '<div class="sni">'."\n";
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'sni'));
+
+ echo '<input type="hidden" name="action" value="sniDiakAdatRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ echo '<label for="kulsoInfo">'._KULSOINFO.'</label><br />'."\n";
+ echo '<textarea title="'._KULSOINFO.'" cols="100" rows="10" id="kulsoInfo" name="kulsoInfo">'."\n";
+ echo $ADAT['sniDiakAdat']['kulsoInfo'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="mentor">'._MENTOR.'</label>'."\n";
+ $SEL = array($ADAT['sniDiakAdat']['mentorTanarId'] => ' selected="selected" ');
+ echo '<select id="mentor" name="mentorTanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"'.$SEL[$ADAT['tanarok'][$i]['tanarId']].'>'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select>';
+
+ echo '<fieldset><legend>'._DIAGNOZIS.'</legend>'."\n";
+ echo '<table><tr><td>'."\n";
+ for ($i = 0; $i < count($ADAT['fogyatekossag']); $i++) {
+ $value = $ADAT['fogyatekossag'][$i];
+ if (strpos($ADAT['diakAdat'][$ADAT['diakId']]['fogyatekossag'], $value) !== false) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="checkbox" name="fogyatekossag[]" id="fogyatekossag" value="'.$value.'" '.$CHK.'/> '.$value.'<br />';
+ if ($i == 5 || $i == 12 ) echo '</td><td>'."\n";
+ }
+ echo '</td></tr></table>'."\n";
+ echo '</fieldset>'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ // Két állapot űrlapot rakunk ki - kezdő és vég állapot - itt 1. és 2. szemeszter
+ for ($szemeszter = 1; $szemeszter < 3; $szemeszter++) {
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'sni hideShowContainer'));
+
+ echo '<h2 class="onClickHideShow">'.constant('_SZEMESZTER'.$szemeszter).'</h2>';
+ echo '<div class="openable" style="display:none;">';
+
+ echo '<input type="hidden" name="action" value="allapotRogzites" />'."\n";
+ echo '<input type="hidden" name="szemeszter" value="'.$szemeszter.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ foreach ($ADAT['fields'] as $attr => $values) {
+ if (in_array($attr, array('matematika','szovegertes'))) $class='utolso'; else $class='';
+ echo '<fieldset class="'.$class.'">';
+ echo '<legend>'.constant('_'.nagybetus($attr)).'</legend>'."\n";
+ for ($i = 0; $i < count($values); $i++) {
+ if (in_array($attr, array('olvasasHibak','irasHibak','matematika'))) {
+ if (strpos($ADAT['diakAllapot'][$szemeszter][$attr], $values[$i]) !== false) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="checkbox" name="'.$attr.'[]" id="'.$attr.$szemeszter.$i.'" value="'.$values[$i].'" '.$CHK.'/>';
+ } else {
+ if ($ADAT['diakAllapot'][$szemeszter][$attr] == $values[$i]) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="radio" name="'.$attr.'" id="'.$attr.$szemeszter.$i.'" value="'.$values[$i].'" '.$CHK.'/>';
+ }
+ echo ' <label for="'.$attr.$szemeszter.$i.'">'.constant('_'.nagybetus($attr).'_'.nagybetus(ekezettelen(str_replace(' ','_',str_replace(',','',str_replace('/','_',$values[$i]))))))."</label><br />\n";
+ }
+ echo '</fieldset>'."\n";
+ }
+
+ echo '<label for="szemelyes'.$szemeszter.'">'._SZEMELYES_KOMPETENCIAK.'</label>'."\n";
+ echo '<textarea title="'._SZEMELYES_KOMPETENCIAK.'" cols="90" rows="7" id="szemelyes'.$szemeszter.'" name="szemelyesKompetenciak">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['szemelyesKompetenciak'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="tarsas'.$szemeszter.'">'._TARSAS_KOMPETENCIAK.'</label>'."\n";
+ echo '<textarea title="'._TARSAS_KOMPETENCIAK.'" cols="90" rows="7" id="tarsas'.$szemeszter.'" name="tarsasKompetenciak">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['tarsasKompetenciak'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="kognitiv'.$szemeszter.'">'._KOGNITIV_KEPESSEGEK.'</label>'."\n";
+ echo '<textarea title="'._KOGNITIV_KEPESSEGEK.'" cols="90" rows="7" id="kognitiv'.$szemeszter.'" name="kognitivKepessegek">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['kognitivKepessegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eljaras'.$szemeszter.'">'._ELJARAS_MEROESZKOZ.'</label><br />'."\n";
+ echo '<input title="'._ELJARAS_MEROESZKOZ.'" type="text" maxlength="100" size="60" id="eljaras'.$szemeszter.'" name="eljarasEszkozok" value="'.$ADAT['diakAllapot'][$szemeszter]['eljarasEszkozok'].'" /><br />'."\n";
+
+ echo '<label for="vizsgaltTerulet'.$szemeszter.'">'._VIZSGALT_TERULET.'</label><br />'."\n";
+ echo '<input title="'._VIZSGALT_TERULET.'" type="text" maxlength="100" size="60" id="vizsgaltTerulet'.$szemeszter.'" name="vizsgaltTerulet" value="'.$ADAT['diakAllapot'][$szemeszter]['vizsgaltTerulet'].'" /><br />'."\n";
+
+ echo '<label for="gyengesegek'.$szemeszter.'">'._FEJLESZTENDO_TERULET_KOMPETENCIA.'</label><br />'."\n";
+ echo '<ul>';
+ $ADAT['diakAllapot'][$szemeszter]['gyengeség'][] = array('leiras' => '', 'prioritas' => 0);
+ foreach ($ADAT['diakAllapot'][$szemeszter]['gyengeség'] as $key => $gyAdat) {
+ echo '<li>';
+ echo '<input title="'._FEJLESZTENDO_TERULET_KOMPETENCIA.'" type="text" maxlength="150" size="60" id="gyengeseg'.$szemeszter.$key.'" name="gyengesegLeiras[]" value="'.$gyAdat['leiras'].'" />'."\n";
+
+ $SEL = array($gyAdat['prioritas'] => ' selected="selected" ');
+ echo '<select id="gyengesegPrioritas'.$szemeszter.$key.'" name="gyengesegPrioritas[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+//--------
+
+ echo '<label for="erossegek'.$szemeszter.'">'._EROSSEGEK.'</label><br />'."\n";
+ echo '<ul>';
+ $ADAT['diakAllapot'][$szemeszter]['erősség'][] = array('leiras' => '', 'prioritas' => 0);
+ foreach ($ADAT['diakAllapot'][$szemeszter]['erősség'] as $key => $eAdat) {
+ echo '<li>';
+ echo '<input title="'._EROSSEGEK.'" type="text" maxlength="150" size="60" id="erosseg'.$szemeszter.$key.'" name="erossegLeiras[]" value="'.$eAdat['leiras'].'" />'."\n";
+
+ $SEL = array($eAdat['prioritas'] => ' selected="selected" ');
+ echo '<select id="erossegPrioritas'.$szemeszter.$key.'" name="erossegPrioritas[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+//--------
+
+
+ echo '<label for="problemaMegfogalmazasa'.$szemeszter.'">'._PROBLEMA_MEGFOGALMAZASA.'</label>'."\n";
+ echo '<textarea title="'._PROBLEMA_MEGFOGALMAZASA.'" cols="90" rows="2" id="problemaMegfogalmazasa'.$szemeszter.'" name="problemaMegfogalmazasa">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['problemaMegfogalmazasa'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="vizsgalatDt'.$szemeszter.'">'._VIZSGALAT_DATUMA.'</label>'."\n";
+ echo '<input type="text" maxlength="10" size="10" class="date" id="vizsgalatDt'.$szemeszter.'" name="vizsgalatDt" value="'.$ADAT['diakAllapot'][$szemeszter]['vizsgalatDt'].'" />'."\n";
+
+ echo '<br /><label for="vizsgalo'.$szemeszter.'">'._VIZSGALATOT_VEGZO.'</label>'."\n";
+ $SEL = array($ADAT['diakAllapot'][$szemeszter]['vizsgalatTanarId'] => ' selected="selected" ');
+ echo '<select id="vizsgalo'.$szemeszter.'" name="vizsgalatTanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"'.$SEL[$ADAT['tanarok'][$i]['tanarId']].'>'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+ echo '</div>';
+
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml
new file mode 100644
index 00000000..9c7a149d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml
@@ -0,0 +1,94 @@
+<?php
+
+ function putHaviOsszesites($ADAT) {
+
+ global $Honapok;
+
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR) echo '<div class="sni mentor">'."\n";
+ else echo '<div class="sni">'."\n";
+
+ echo '<h1>';
+ echo $Honapok[(date('m',strtotime($ADAT['dt']))-1)];
+ echo '</h1>';
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="haviOsszegzesRogzitese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<table><tr><td>'."\n";
+
+ echo '<label for="gyengesegek">'._GYENGESEGEK.'</label><br />'."\n";
+ echo '<textarea tabindex="10" title="'._GYENGESEGEK.'" cols="40" rows="3" id="gyengesegek" name="gyengesegek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['gyengesegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="celok">'._CELOK.'</label><br />'."\n";
+ echo '<textarea tabindex="12" title="'._CELOK.'" cols="40" rows="2" id="celok" name="celok">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['celok'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eszkozok">'._ESZKOZOK.'</label><br />'."\n";
+ echo '<textarea tabindex="14" title="'._ESZKOZOK.'" cols="40" rows="2" id="eszkozok" name="eszkozokModszerek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['eszkozokModszerek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="ertekeles">'._ERTEKELES.'</label><br />'."\n";
+ echo '<textarea tabindex="16" title="'._ERTEKELES.'" cols="40" rows="2" id="ertekeles" name="ertekeles">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['ertekeles'];
+ echo '</textarea><br />'."\n";
+
+ echo '</td><td>'."\n";
+
+ echo '<label for="erossegek">'._EROSSEGEK.'</label><br />'."\n";
+ echo '<textarea tabindex="11" title="'._EROSSEGEK.'" cols="40" rows="3" id="erossegek" name="erossegek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['erossegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="feladatok">'._FELADATOK.'</label><br />'."\n";
+ echo '<textarea tabindex="13" title="'._FELADATOK.'" cols="40" rows="2" id="feladatok" name="fejlesztesiFeladatok">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['fejlesztesiFeladatok'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="utemezes">'._UTEMEZES.'</label><br />'."\n";
+ echo '<textarea tabindex="15" title="'._UTEMEZES.'" cols="40" rows="2" id="utemezes" name="utemezes">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['utemezes'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eredmeny">'._EREDMENY.'</label><br />'."\n";
+ echo '<textarea tabindex="17" title="'._EREDMENY.'" cols="40" rows="2" id="eredmeny" name="eredmeny">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['eredmeny'];
+ echo '</textarea><br />'."\n";
+
+ echo '</td></tr></table>'."\n";
+
+ echo '<label for="felelos">'._FELELOS.'</label><br />'."\n";
+ echo '<select tabindex="18" id="felelos" name="felelos[]" multiple="multiple" class="multi" size="10">'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++)
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds'])) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['sniHaviOsszegzes']['felelos']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'" selected="selected">'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ else
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'">'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '<label for="valtozas">'._VALTOZAS.'</label><br />'."\n";
+ $SEL = array($ADAT['sniHaviOsszegzes']['valtozas'] => ' selected="selected" ');
+ echo '<select tabindex="19" id="valtozas" name="valtozas">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 1; $i <= 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'%</option>'."\n";
+ echo '</select>'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input tabindex="25" type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+ echo '</div>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml
new file mode 100644
index 00000000..e160758d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml
@@ -0,0 +1,110 @@
+<?php
+
+ function putTankorFeljegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ echo '<ul class="sni">'."\n";
+
+ for ($t = strtotime($ADAT['igDt']); $t >= $ADAT['tolTime']; $t = strtotime("-7 days", $t)) {
+
+ $dt = date('Y-m-d', $t);
+ $dtStr = dateToString($dt);
+ $igDtStr = dateToString(date('Y-m-d', strtotime("+6 days", $t)));
+
+ $mod = (
+ $_TANEV['statusz'] == 'aktív'
+ && (
+ __NAPLOADMIN
+ || (__TANARA && $t >= strtotime(_HALADASI_HATARIDO))
+ )
+ );
+ if ($mod) echo '<li class="mod">'."\n";
+ else echo '<li>'."\n";
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="tantargyiFeljegyzesRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+
+ echo '<input type="hidden" name="feljegyzesTankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="feljegyzesDt" value="'.$dt.'" />'."\n";
+
+ echo '<label for="mj'.$dt.'">'.$dtStr.' - '.$igDtStr.'</label><br />'."\n";
+ if ($mod) {
+ echo '<textarea id="mj'.$dt.'" name="megjegyzes" cols="90" rows="5" title="'.$dt.'">'."\n";
+ echo $ADAT['sniTantargyiFeljegyzes'][$dt];
+ echo '</textarea>'."\n";
+ } else {
+ echo '<p>'.nl2br($ADAT['sniTantargyiFeljegyzes'][$dt]).'</p>';
+ }
+
+ if ($mod) echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+
+
+ }
+
+ function putDiakHetiFeljegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ $dtStr = dateToString($ADAT['dt']);
+ $time = strtotime($ADAT['dt']);
+ $igDtStr = dateToString(date('Y-m-d', strtotime("+6 days", $time)));
+
+ echo '<h2 class="sni">'.$dtStr.' - '.$igDtStr.'</h2>'."\n";
+ echo '<ul class="sni">'."\n";
+
+ foreach ($ADAT['tankorIds'] as $tankorId) {
+
+ $mod = (
+ $_TANEV['statusz'] == 'aktív'
+ && (
+ __NAPLOADMIN
+ || ($ADAT['tankorTanaraE'][$tankorId] && $time >= strtotime(_HALADASI_HATARIDO))
+ )
+ );
+
+ if ($mod) echo '<li class="mod">'."\n";
+ else echo '<li>'."\n";
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="tantargyiFeljegyzesRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+
+ echo '<input type="hidden" name="feljegyzesTankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="feljegyzesDt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<label for="tk'.$tankorId.'">'.$ADAT['tankorAdat'][$tankorId]['tankorNev'].'</label><br />'."\n";
+ if ($mod) {
+ echo '<textarea id="tk'.$tankorId.'" name="megjegyzes" cols="90" rows="5" title="'.$dt.'">'."\n";
+ echo $ADAT['sniTantargyiFeljegyzes'][$tankorId];
+ echo '</textarea>'."\n";
+ } else {
+ echo '<p>'.nl2br($ADAT['sniTantargyiFeljegyzes'][$tankorId]).'</p>';
+ }
+
+ if ($mod) echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+ echo '</li>'."\n";
+
+ }
+
+ echo '</ul>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml
new file mode 100644
index 00000000..26c5124c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml
@@ -0,0 +1,59 @@
+<?php
+
+ function putLemorzsolodas($ADAT) {
+
+ //dump($ADAT['lemorzsolodas']);
+
+ echo '<h1>Két egymás követő félév alatt átlagosan >=1,1 romlás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['ronto']);
+
+ echo '<h1>A fél/év végén a tanulmányi átlaga < 3,0</h1>';
+ _putTabla($ADAT['lemorzsolodas']['rosszTanulo']);
+
+ echo '<h1>A fél/év végén a tanulmányi átlaga < 2,5</h1>';
+ _putTabla($ADAT['lemorzsolodas']['nagyonRosszTanulo']);
+
+ echo '<h1>Egy vagy több tárgyból bukik</h1>';
+ _putTabla($ADAT['lemorzsolodas']['bukott']);
+
+ echo '<h1>Magatartása rossz</h1>';
+ _putTabla($ADAT['lemorzsolodas']['rosszMagatartasu']);
+
+ echo '<h1>Szorgalma hanyag</h1>';
+ _putTabla($ADAT['lemorzsolodas']['hanyagSzorgalmu']);
+
+ echo '<h1>50 órát elérő igazolatlan hiányzás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['igazolatlanHianyzo_50']);
+
+ echo '<h1>100 órát elérő igazolt hiányzás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['igazoltanHianyzo_100']);
+
+ echo '<h1>magántanulóvá vált</h1>';
+ _putTabla($ADAT['lemorzsolodas']['magantanuloLett']);
+
+ }
+
+ function _putTabla($ADAT) {
+ // dump($ADAT);
+ echo 'Összesen: '.count($ADAT);
+ if (count($ADAT)==0) return false;
+ echo '<table class="lemorzsolodas" border="1">';
+ echo '<tr>';
+ foreach($ADAT[0] as $k => $d) {
+ echo '<th>'.$k.'</td>';
+ }
+ echo '</tr>';
+ for ($i=0; $i<count($ADAT); $i++) {
+ $D = $ADAT[$i];
+ echo '<tr>';
+ foreach($D as $k => $d) {
+ if ($k=='diakNev') echo '<td class="diakNev" data-diakid="'.$D['diakId'].'">'.$D['diakNev'].'</td>';
+ else echo '<td>'.$d.'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</table>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/letszam.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/letszam.phtml
new file mode 100644
index 00000000..78ebd262
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/letszam.phtml
@@ -0,0 +1,54 @@
+<?php
+
+ function putLetszamStat( $ADAT = array() )
+ {
+ if (count($ADAT)==0) return ;
+ if (!is_array($ADAT['osztalyok'])) return;
+
+ echo '<table class="letszamStat" align="center">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th rowspan="2">'._SZULEV.'</th>';
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ $osztalyId = $OSZT['osztalyId'];
+ $osztalyJel = $OSZT['osztalyJel'];
+ echo '<th colspan="2">'.$osztalyJel.'</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ echo '<td>Σ</td><td>♀</td>';
+ }
+ echo '</tr>';
+
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="'.(count($ADAT['osztalyok'])*2+1).'">('.$ADAT['tanev'].') '.$ADAT['dt'].'</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ foreach ($ADAT['eletkor'] as $szuletesiEv => $D) {
+ echo '<tr>';
+ echo '<th>'.$szuletesiEv.'</th>';
+
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ $osztalyId = $OSZT['osztalyId'];
+ $osztalyJel = $OSZT['osztalyJel'];
+ if (count($D[$osztalyId]) > 0) {
+ echo '<td>'.(($D[$osztalyId]['fiú'][0]['dbDiak'] + $D[$osztalyId]['lány'][0]['dbDiak'])).'</td>';
+ echo '<td class="l">'.(intval($D[$osztalyId]['lány'][0]['dbDiak'])).'</td>';
+ } else {
+ echo '<td></td><td></td>';
+ }
+ }
+ echo '</tr>'."\n";
+ }
+
+ echo '</tbody>'."\n";
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml
new file mode 100644
index 00000000..bf662e4b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml
@@ -0,0 +1,414 @@
+<?php
+
+ function putStat($ADAT) {
+
+ echo '<h1>A '.__TANEV.'/'.(__TANEV+1).' tanév tantárgyfelosztási statisztikája</h1>';
+ echo '<table id="tfStat">';
+ // Intézményi alapadatok
+ echo '<tbody id="alap">';
+ echo '<tr><th>Intézmény neve<br/>OM<br />Címe</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td colspan="6">'
+ .$iAdat['intezmenyAdat']['nev'].'<br />'
+ .$iAdat['intezmenyAdat']['OMKod'].'<br />'
+ .$iAdat['intezmenyAdat']['cimHelyseg'].' '.$iAdat['intezmenyAdat']['cimIrsz'].', '.$iAdat['intezmenyAdat']['cimKozteruletNev'].' '.$iAdat['intezmenyAdat']['cimKozteruletJelleg'].' '.$iAdat['intezmenyAdat']['cimHazszam'];
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // Pedagógus létszám
+ echo '<tbody id="tanarLetszam">';
+ echo '<tr><th class="slide">Pedagógus létszám <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td colspan="2" class="number">'.intval($iAdat['tanarLetszam']['statusz']['határozatlan idejű']+$iAdat['tanarLetszam']['statusz']['határozott idejű']).'</td>';
+ echo '<td class="gap" colspan="4"></td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th colspan="2">Gyakornok<br />Pedagógus I.<br/>Pedagógus II.<br/>Mesterpedagógus</br>Kutatótanár</td>';
+ echo '<td class="number">'.$iAdat['tanarLetszam']['besorolas']['Gyakornok'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Pedagógus I.'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Pedagógus II.'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Mesterpedagógus'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Kutatótanár']
+ .'</td>';
+ echo '<th colspan="2">Határozatlan idejű<br/>Határozott idejű<br />Tartósan távol</th>';
+ echo '<td class="number">'
+ .intval($iAdat['tanarLetszam']['statusz']['határozatlan idejű']).'<br/>'
+ .intval($iAdat['tanarLetszam']['statusz']['határozott idejű']).'<br/>'
+ .intval($iAdat['tanarLetszam']['statusz']['tartósan távol']).'<br/>'
+ .'</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // Finanszírozott pedagógus létszám (a költségvetési törvény szerint)
+ echo '<tbody id="tanarLetszam">';
+ echo '<tr><th class="slide" rowspan="2"><span class="icon-chevron-down"></span>Finanszírozott <br/>pedagógus létszám</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th colspan="2">Összesen</th><th colspan="2" rowspan="2">Diák létszám</th><th colspan="2" rowspan="2">Mutató</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ $pLetszam = 0;
+ foreach ($ADAT['finanszírozott pedagógus létszám'] as $osztalyTipus => $mutato)
+ $pLetszam += round(intval($iAdat['diakLetszam'][$osztalyTipus])/$mutato);
+ echo '<td class="number" colspan="2">'.$pLetszam.'</td>';
+ }
+ echo '</tr>';
+ foreach ($ADAT['finanszírozott pedagógus létszám'] as $osztalyTipus => $mutato) {
+ echo '<tr class="hide"><th title="'.$mutato.' tanuló / 1 pedagógus">'.$osztalyTipus.'</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number" colspan="2">'.round(intval($iAdat['diakLetszam'][$osztalyTipus])/$mutato).'</td>';
+ echo '<td class="number" colspan="2">'.$iAdat['diakLetszam'][$osztalyTipus].'</td>';
+ echo '<td class="number" colspan="2">'.$mutato.'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ // Diák létszám adatok
+ echo '<tbody id="diakLetszam">';
+ echo '<tr><th class="slide" rowspan="2">Diák létszám <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) echo '<th colspan="2">Összes</th><th colspan="2">Fiú</th><th colspan="2">Lány</th>';
+ echo '</tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (
+ intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['magántanuló'])
+ <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['fiú']['magántanuló'])
+ +intval($iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló'])
+ ) $class=' alert';
+ else $class='';
+ echo '<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['magántanuló']).'</td>'
+ .'<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['fiú']['magántanuló']).'</td>'
+ .'<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló']).'</td>';
+ //echo '<td class="gap"></td>';
+ }
+ echo '<tr class="hide"><th>jogviszonyban van<br />magántanuló<br />vendégtanuló<br />jogviszonya szünetel</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']))
+ $jvClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['magántanuló']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['magántanuló']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló']))
+ $mClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['vendégtanuló']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['vendégtanuló']+$iAdat['diakLetszam']['statusz']['lány']['vendégtanuló']))
+ $vClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['jogviszonya felfüggesztve']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonya felfüggesztve']+$iAdat['diakLetszam']['statusz']['lány']['jogviszonya felfüggesztve']))
+ $jfClass=' class="alert"';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ //echo '<td class="gap"></td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Évfolyam létszámok</th>';
+ echo '</tr>';
+ foreach ($ADAT['evfolyamJelek'] as $idx => $evfolyamJel) {
+ $letezoEvfolyam = false;
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (is_array($iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel])) {
+ if (!$letezoEvfolyam) {
+ echo '<tr class="hide"><th>'.$evfolyamJel.'</th>';
+ $letezoEvfolyam = true;
+ }
+ if ($letezoEvfolyam) {
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['összes'].'</td>';
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['fiú'].'</td>';
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['lány'].'</td>';
+ //echo '<td class="gap"></td>';
+ }
+ }
+ }
+ if ($letezoEvfolyam) echo '</tr>';
+ }
+ echo '</tbody>';
+
+ // Óraszámok
+ echo '<tbody id="oraszamok">';
+ echo '<tr><th rowspan="2" class="slide">Óraszámok <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>Összes</th><th rowspan="2" colspan="3"></th><th>Óratervi</th><th>Tanórán kívüli</th>';
+ }
+ echo '</tr><tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo ''
+ .'<td class="number">'.number_format($iAdat['oraszamok']['összes'],2,',','').'</td>'
+ .'<td class="number">'.number_format($iAdat['oraszamok']['óratervi'],2,',','').'</td>'
+ .'<td class="number">'.number_format($iAdat['oraszamok']['tanórán kívüli'],1,',','').'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Tantárgyanként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo number_format($iAdat['targyOraszamok']['összes'][$targyId],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<th colspan="3">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo $tAdat['targyNev'].'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo number_format($iAdat['targyOraszamok'][$oratervi][$targyId],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Osztályonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo number_format($iAdat['osztalyOraszamok']['összes'][$osztalyId],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+
+ echo '<th colspan="3">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo $iAdat['osztalyAdat'][$osztalyId]['osztalyJel'].'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo number_format($iAdat['osztalyOraszamok'][$oratervi][$osztalyId],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '<tr class="hide"><th>Évfolyamonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo number_format($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+
+ echo '<th colspan="3">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo $evfolyamJel.'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo number_format($iAdat['evfolyamOraszamok'][$oratervi][$evfolyamJel],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // időkeret
+ echo '<tbody id="idokeret">';
+ echo '<tr><th class="slide" rowspan="2">Heti időkeret <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>összesen</th>'
+ .'<th>enge-<br/>délye-<br/>zett</th>'
+ .'<th>tehetség-<br/>gondozás, <br/>felzárkóztatás</th>'
+ .'<th>hittan többlet <br/>órakerete <br/>egyházi <br/>intéz-<br/>ményben</th>'
+ .'<th>6 és 8 <br/>évfolyamos <br/>gimnáziumok <br/> többlet <br/>óraszáma</th>'
+ .'<th>nemzetiségi <br/>oktatás-<br/>nevelés <br/>többlet <br/>óraszáma</th>'
+ ;
+ }
+ echo '</tr><tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['összes'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['engedélyezett'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['tehetséggondozás-felzárkóztatás'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['egyházi'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['gimnázium'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['nemzetiségi'].'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>'
+ .'Általános iskola alsó tagozat<br/>'
+ .'Általános&nbsp;iskola&nbsp;felső&nbsp;tagozat<br/>'
+ .'Általános iskola<br/>'
+ .'Gimnázium 1-8. évfolyam<br/>'
+ .'Gimnázium&nbsp;9-12.&nbsp;évfolyam<br/>'
+ .'Gimnázium</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['összes'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['engedélyezett'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['egyházi'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['gimnázium'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['nemzetiségi'].'<br/>'
+ .'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Osztályonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $oAdat['osztalyJel'].'<br/>';
+ echo '</th>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['engedélyezett'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['egyházi'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['gimnázium'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['nemzetiségi'].'<br/>';
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '</tbody id="tankorLetszamStat"><tr><th rowspan="2" class="slide">Csoport statisztika <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>Csoportok száma</th><th colspan="2" rowspan="2"></th><th>minimális csoportlétszám</th><th>maximális csoportlétszám</th><th>átlagos csoportlétszám</th>';
+ $osszDb = 0; $osszMax = 0; $osszSum = 0; unset($osszMin);
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ $osszDb += $iAdat['tankorLetszamStat'][$targyId]['db'];
+ $osszSum += $iAdat['tankorLetszamStat'][$targyId]['sum'];
+ if ($osszMax < $iAdat['tankorLetszamStat'][$targyId]['max']) $osszMax = $iAdat['tankorLetszamStat'][$targyId]['max'];
+ if (!isset($osszMin) || $iAdat['tankorLetszamStat'][$targyId]['min']<$osszMin)
+ $osszMin = $iAdat['tankorLetszamStat'][$targyId]['min'];
+ }
+ }
+ $ADAT['intezmeny'][$intezmeny]['tankorLetszamStat']['összes'] =
+ array('db'=>$osszDb, 'min'=>$osszMin, 'max'=>$osszMax, 'átlag'=>number_format($osszSum/$osszDb,1,',',''));
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'.$iAdat['tankorLetszamStat']['összes']['db'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['min'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['max'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['átlag'].'</td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Tantárgyanként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {;
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['db'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<th colspan="2">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo str_replace(' ','&nbsp;', $tAdat['targyNev']).'<br />';
+ }
+ }
+ echo '</th>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['min'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['max'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo number_format($iAdat['tankorLetszamStat'][$targyId]['sum']/$iAdat['tankorLetszamStat'][$targyId]['db'],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '</table>';
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml
new file mode 100644
index 00000000..95a59a90
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml
@@ -0,0 +1,34 @@
+<?php
+
+ function putCheckStatus($ADAT) {
+
+ echo '<div style="margin-left:100px;">';
+
+ echo '<div>'._DT.':'.$ADAT['vizsgaltDt'].'</div>';
+ echo '<div>'._NAPOK_SZAMA.':'.$ADAT['napokSzama'].'</div>';
+ echo '<div>'._ORAK_SZAMA .':'.$ADAT['orakSzama'].'</div>';
+
+
+ echo '<div>'._HIANYZO_TANKOR;
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['hianyzoTankor']); $i++) {
+ $_D = $ADAT['hianyzoTankor'][$i];
+ echo '<li>';
+ var_dump($_D);
+ echo '</li>';
+ }
+ echo '</ul>'.'</div>';
+
+ echo '<div>'._HIANYZO_ORA;
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['hianyzoOra']); $i++) {
+ $_D = $ADAT['hianyzoOra'][$i];
+ echo '<li>';
+ var_dump($_D);
+ echo '</li>';
+ }
+ echo '</ul>'.'</div>';
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml
new file mode 100644
index 00000000..0436e1f8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml
@@ -0,0 +1,62 @@
+<?php
+
+ function putDiakTanarLista($ADAT) {
+
+ echo '<table class="lista">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._DIAK.' ('.count($ADAT['diak']).' '._FO.')</th>';
+ echo '<th>'._OSZTALY.'</th>';
+ echo '<th>'._TANAR.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ $db = 0;
+ for ($i = 0; $i < count($ADAT['diak']); $i++) {
+
+ $diakId = $ADAT['diak'][$i]['diakId'];
+ $tanarNev = array();
+ for ($j = 0; $j < count($ADAT['diak'][$i]['tankorIds']); $j++) {
+ $tankorId = $ADAT['diak'][$i]['tankorIds'][$j];
+ for ($k = 0; $k < count($ADAT['tankorTanar'][$tankorId]); $k++) {
+
+ if (!in_array($ADAT['tankorTanar'][$tankorId][$k]['tanarNev'], $tanarNev))
+ $tanarNev[] = $ADAT['tankorTanar'][$tankorId][$k]['tanarNev'];
+ }
+ }
+
+ if (count($tanarNev) > 0) {
+ $db++;
+ echo '<tr>'."\n";
+ echo '<td class="nev">'.$db.'. '.$ADAT['diak'][$i]['diakNev'].'</td>'."\n";
+ echo '<td class="osztaly">'.$ADAT['osztaly'][ $ADAT['diak'][$i]['osztalyId'] ]['osztalyJel'].'</td>'."\n";
+
+ echo '<td class="tanar">';
+ echo (count($tanarNev) == 0) ? '-' : implode(', ', $tanarNev);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</table>'."\n";
+
+ }
+
+ function putOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'osztaly'));
+ echo '<input type="hidden" name="action" value="osztalyValasztas" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ foreach ($ADAT['osztaly'] as $osztalyId => $oAdat) {
+ $CHK = (in_array($osztalyId, $ADAT['osztalyId']))?' checked="checked"':'';
+ echo '<input type="checkbox" id="osztaly'.$osztalyId.'" name="osztalyIds[]" value="'.$osztalyId.'"'.$CHK.' />'."\n";
+ echo '<label for="osztaly'.$osztalyId.'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml
new file mode 100644
index 00000000..0ec32a97
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml
@@ -0,0 +1,317 @@
+<?php
+
+// include_once('skin/classic/module-naplo/html/share/face.phtml');
+
+ function putFogadoOraLista($Lista, $Tanarok, $Szulok) {
+
+ formBegin(array('class'=>'fogado'));
+ foreach ($Tanarok as $tanarId => $tAdat) if ($Lista['adatok'][$tanarId]['tol'] != '') {
+
+ $tol = $Lista['adatok'][$tanarId]['tol'];
+ $ig = $Lista['adatok'][$tanarId]['ig'];
+
+ echo '<table>'."\n";
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="3">'.$tAdat['tanarNev'].'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo substr($tol, 0, 10).' ';
+ if ($Lista['adatok'][$tanarId]['teremId'] != '') {
+ echo $Lista['adatok'][$tanarId]['leiras'];
+ echo ' ('.$Lista['adatok'][$tanarId]['teremId'].') ';
+ echo _TEREM;
+ }
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th>'._TOL.'</th>';
+ echo '<th>'._SZULONEV.'</th>';
+ echo '<th>'._DIAKNEV.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>';
+
+ echo '<tfoot><tr><th colspan="3"></th></tr></tfoot>';
+
+ echo '<tbody>';
+ $i = 0;
+ for ($t = strtotime($tol); $t < strtotime($ig); $t = strtotime('+'._VIZITHOSSZ. ' minutes', $t)) {
+
+ $aktTol = date('Y-m-d H:i:s', $t);
+ if ($Lista['jelentkezesek'][$tanarId][$i]['tol'] == $aktTol) {
+ $A = $Lista['jelentkezesek'][$tanarId][$i];
+ $i++;
+ } else { $A = array(); }
+
+ $diakNevek = array();
+ for ($j = 0; $j < count($Szulok['diakjai'][$A['szuloId']]); $j++)
+ $diakNevek[] = $Szulok['diakjai'][$A['szuloId']][$j]['diakNev'];
+
+ echo '<tr>';
+ echo '<td>';
+ echo substr($aktTol,11,-3);
+ echo '</td>';
+ echo '<td>';
+ echo $Szulok[$A['szuloId']]['szuloNev'];
+
+ echo '</td>';
+ echo '<td>';
+ echo implode(',', $diakNevek);
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+
+ echo '</table>'."\n";
+
+ }
+ formEnd();
+
+ }
+
+ function putFogadoOsszes($FogadoOsszes, $Tanarok) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="listaLekerdezese" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="" />'."\n";
+ echo '<table>'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>';
+ echo _TANARNEV;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _DATUM;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _TOL;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _IG;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _TEREM;
+ echo '</th>'."\n";
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="5">';
+ echo '<input type="submit" value="'._RESZLETES_LISTA.'" />';
+ echo '</th></tr></tfoot>'."\n";
+ echo '<tbody>';
+ if (is_array($FogadoOsszes)) foreach ($FogadoOsszes as $tId => $tAdat) {
+ echo '<tr>';
+ echo '<th>';
+ echo '<a href="'.href('index.php?page=naplo&sub=tanev&f=fogadoOra&tanarId='.$tAdat['tanarId']).'">';
+ echo $Tanarok[$tAdat['tanarId']]['tanarNev'];
+ echo '</a>';
+ echo '</th>';
+ echo '<td>'.substr($tAdat['tol'],0,10).'</td>';
+ echo '<td>'.substr($tAdat['tol'],11,5).'</td>';
+ echo '<td>'.substr($tAdat['ig'],11,5).'</td>';
+ echo '<td>'.$tAdat['teremId'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function kovetkezoFogadoIdopont($FogadoDt) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="kovetkezoFogado" />'."\n";
+
+ echo '<h1>'._KOVETKEZO_FOGADO_ORA.'</h1>'."\n";
+ echo '<div>';
+ echo '<input class="date" type="text" name="tolDt" value="'.$FogadoDt['dates'][0].'" />'."\n";
+ $SEL = array(substr($FogadoDt['tol'][0],11,5) => ' selected="selected" ');
+ echo '<select name="tolTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+// for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ for ($p = 0; $p < 60; $p += 1) { // Ha pl 8-perces vizithossz van, akkor a második órában óra 4 perckor kellene kezdeni a fogadóórát...
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>';
+ $SEL = array(substr($FogadoDt['ig'][0],11,5) => ' selected="selected" ');
+ echo '<select name="igTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+ for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" title="'._BIZTOS_UJ_IDOPONT_E.'" class="confirm" />'."\n";
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function tanarFogadoIdopontModosito($tanarFogado, $Termek) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="tanarFogado" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarFogado['tanarId'].'" />'."\n";
+
+ echo '<h1>'._TANAR_FOGADOORAJA.'</h1>'."\n";
+ echo '<div>';
+ echo '<input type="text" name="tolDt" value="'.substr($tanarFogado['tol'],0,10).'" />'."\n";
+ $SEL = array(substr($tanarFogado['tol'],11,5) => ' selected="selected" ');
+ echo '<select name="tolTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+// for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ for ($p = 0; $p < 60; $p += 1) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>';
+ $SEL = array(substr($tanarFogado['ig'],11,5) => ' selected="selected" ');
+ echo '<select name="igTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+ for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ $SEL = array($tanarFogado['teremId'] => ' selected="selected" ');
+ echo '<select name="teremId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Termek); $i++) {
+ echo '<option value="'.$Termek[$i]['teremId'].'"'.$SEL[$Termek[$i]['teremId']].'>'.$Termek[$i]['leiras'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function tanarFogadoIdopont($TF, $Termek, $Szulok) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<table cellspacing="1">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3" class="cim">'._JELENTKEZESEK.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="1">'.substr($TF['adatok']['tol'],0,10).'</th>';
+ echo '<th colspan="1">'._SZULONEV.'</th>';
+ echo '<th colspan="1">'._DIAKNEV.'</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+ echo '<tfoot><tr><th colspan="3">'.'</th></tr></tfoot>';
+ echo '<tbody>';
+
+ for ($t = strtotime($TF['adatok']['tol']); $t < strtotime($TF['adatok']['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes', $t)) {
+ $szuloId = $TF['jelentkezesek'][date('Y-m-d H:i:s', $t)]['szuloId'];
+ $DIAKJAI= array();
+ for ($i = 0; $i < count($Szulok['diakjai'][$szuloId]); $i++) {
+ $DIAKJAI[] = $Szulok['diakjai'][$szuloId][$i];
+ }
+ echo '<tr>';
+ echo '<th>'.date('H:i', $t).'</th>';
+ echo '<td>';
+ echo $Szulok[$szuloId]['szuloNev'];
+ echo '</td>';
+ echo '<td>';
+ for ($i=0; $i<count($DIAKJAI); $i++) {
+ $_D=$DIAKJAI[$i];
+ echo '<div class="diak">';
+ putFace($_D['diakId'],'diak');
+ echo '<br/><span class="diakNev">'.$_D['diakNev'].'</span>';
+ echo '</div>';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function putFogadoOraJelentkezes($szuloId, $diakTanarai, $Alkalmak, $szuloJelentkezes, $TermekAsszoc) {
+
+ if (__FOGADOORA_JELENTKEZES) $DIS = '';
+ else $DIS = ' disabled="disabled" ';
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="fogadoOraJelentkezes" />'."\n";
+ echo '<input type="hidden" name="szuloId" value="'.$szuloId.'" />'."\n";
+ echo '<table>'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="4">'._TANARADAT.'</th>';
+ $sor = '<tr><th colspan="2">'._NEV.'</th><th>'._TEREM.'</th><th>'._TOROL.'</th>';
+ $sum = 4;
+ foreach($Alkalmak['napok'] as $nap => $napAdat) {
+ list($tolOra,$tolPerc) = explode(':', $napAdat['tol']);
+ list($igOra,$igPerc) = explode(':', $napAdat['ig']);
+ $Alkalmak['napok'][$nap]['colspan'] = $colspan = ceil(((60*$igOra+$igPerc) - (60*$tolOra+$tolPerc)) / _VIZITHOSSZ);
+ $sum += $colspan;
+ echo '<th colspan="'.$colspan.'">'.$nap.'</th>';
+ for ($t = strtotime($napAdat['tol']); $t < strtotime($napAdat['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes',$t)) {
+ $sor .= '<td>';
+ $sor .= date('H:i',$t);
+ $sor .= '</td>';
+ }
+ }
+ $sor .= '</tr>'."\n";
+ echo '</tr>'."\n";
+ echo $sor;
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="'.$sum.'">';
+ if (__FOGADOORA_JELENTKEZES) echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($diakTanarai); $i++) {
+ $tanarId = $diakTanarai[$i]['tanarId'];
+ echo '<tr>';
+ echo '<th>'.$diakTanarai[$i]['tanarNev'].'</th>';
+ echo '<th>';
+ putFace($diakTanarai[$i]['tanarId'],'tanar');
+ echo '</th>';
+
+ echo '<th>'.$TermekAsszoc[ $Alkalmak['tanarTerme'][$diakTanarai[$i]['tanarId']] ]['leiras'].'</th>';
+ echo '<td class="torol">';
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/"'.$DIS.' />';
+ echo '</td>';
+ foreach($Alkalmak['napok'] as $nap => $napAdat) {
+ for ($t = strtotime($napAdat['tol']); $t < strtotime($napAdat['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes',$t)) {
+ $datetime = $nap.' '.date('H:i', $t).':00';
+ if ($szuloJelentkezes[$tanarId]['tol'] == $datetime) $_class = ' class="ok" ';
+ elseif (isset($diakTanarai[$i]['foglalt']['jelentkezesek'][$datetime])) $_class=' class="foglalt" ';
+ else $_class='';
+ echo '<td'.$_class.'>';
+ if (
+ $Alkalmak[$tanarId]['tol'] <= $nap.' '.date('H:i:s', $t)
+ && $Alkalmak[$tanarId]['ig'] > $nap.' '.date('H:i:s', $t)
+ ) {
+
+ if ($szuloJelentkezes[$tanarId]['tol'] == $datetime)
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/'.$datetime.'" checked="checked"'.$DIS.' />';
+ elseif (isset($diakTanarai[$i]['foglalt']['jelentkezesek'][$datetime]))
+ echo '-';
+ else
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/'.$datetime.'"'.$DIS.' />';
+ }
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml
new file mode 100644
index 00000000..6be97179
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml
@@ -0,0 +1,370 @@
+<?php
+/*
+ Module: naplo
+*/
+
+// function putNapokForm($Napok, $napTipusok, $action, $Hetek = array()) {
+ function putNapokForm($ADAT) {
+
+ global $Honapok, $_TANEV;
+
+ $Napok = $ADAT['Napok']; $napTipusok = $ADAT['napTipusok']; $action = $ADAT['action']; $Hetek = $ADAT['Hetek'];
+ if (!is_array($Hetek)) $Hetek = array();
+
+ $ho = date('n',strtotime($Napok[0]['dt']));
+ $dow = date('w',strtotime($Napok[0]['dt']));
+
+ formBegin(array('class' => 'munkaterv'));
+
+ echo '<h2>'._EVES_MUNKATERV.' - '.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['munkatervNev'].' ('.$ADAT['munkatervId'].')</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="'.$action.'" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ if ($action == 'honapValasztas') echo '<input type="hidden" name="ho" value="'.$ho.'" />'."\n";
+ echo '<table class="munkaterv" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="7">';
+ if (
+ (
+ ($_TANEV['statusz'] == 'aktív' && __NAPLOADMIN)
+ || (__VEZETOSEG && __FOLYO_TANEV)
+ )
+ && $action == 'honapValasztas'
+ ) echo '<input type="submit" value="'._MODOSIT.'" />';
+ echo $Honapok[$ho-1];
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ if ($action == 'munkatervModositas') echo '<th colspan="7"><input type="submit" value="'._OK.'" /></th>';
+ else echo '<th colspan="7" />';
+ echo '</tr>';
+ echo '</tfoot>';
+ for ($i = 1; $i < $dow; $i++) {
+ echo '<td>&nbsp;</td>';
+ }
+ for ($i = 0; $i < count($Napok); $i++) {
+ if ($ho != $_ho = date('n', strtotime($Napok[$i]['dt']))) {
+ $ho = $_ho;
+
+ $dow = date('w',strtotime($Napok[$i]['dt']));
+ if ($dow == 0) $dow = 7;
+ for ($j = $dow; $j < 8; $j++) {
+ echo '<td>&nbsp;</td>';
+ }
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="'.$action.'" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ if ($action == 'honapValasztas') echo '<input type="hidden" name="ho" value="'.$ho.'" />'."\n";
+ echo '<table class="munkaterv" align="center">'."\n";
+ echo '<thead'."\n";
+ echo '<tr>';
+ echo '<th colspan="7">';
+ if (
+ (
+ ($_TANEV['statusz'] == 'aktív' && __NAPLOADMIN)
+ || (__VEZETOSEG && __FOLYO_TANEV)
+ )
+ && $action == 'honapValasztas'
+ ) echo '<input type="submit" value="'._MODOSIT.'" />';
+ echo $Honapok[$ho-1];
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+ echo '<tfoot<tr><th colspan="7" /></tr></tfoot>'."\n";
+ echo '<tr>'."\n";
+ for ($j=1;$j<$dow;$j++) {
+ echo '<td>&nbsp;</td>';
+ }
+ } elseif (date('w',strtotime($Napok[$i]['dt']))==1) echo '<tr>';
+
+ // A szemeszterek határának jelölése
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ if ($szAdat['zarasDt'] == $Napok[$i]['dt']) {
+ $fDb = 8;
+ break;
+ }
+ }
+// if ($fDb > 0) $fDb--;
+ if ($fDb == 8) { $fDb--; $class = str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } elseif ($fDb == 7) { $fDb--; $class = 'felevZarasDt '.str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } elseif ($fDb > 0) { $fDb--; $class = 'felevZaras '.str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } else { $class = str_replace(' ', '', ekezettelen($Napok[$i]['tipus'])); }
+
+ echo '<td class="'.$class.'">'."\n";
+
+ echo $Napok[$i]['dt'];
+ echo '<br />'."\n";
+ if ($action == 'munkatervModositas') {
+ echo '<input type="hidden" name="dt[]" value="'.$Napok[$i]['dt'].'" />'."\n";
+ $SEL = array($Napok[$i]['tipus'] => ' selected="selected"');
+ echo '<select name="tipus[]">';
+ for ($n = 0; $n < count($napTipusok); $n++) {
+ echo '<option value="'.$napTipusok[$n].'"'.$SEL[$napTipusok[$n]].'>'.$napTipusok[$n].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ echo '<input class="megjegyzes" type="text" name="megjegyzes[]" value="'.$Napok[$i]['megjegyzes'].'" />'."\n";
+ echo '<br />'."\n";
+ $SEL = array($Napok[$i]['orarendiHet'] => ' selected="selected" ');
+ echo '<select name="orarendiHet[]">'."\n";
+ if ($Napok[$i]['tipus'] != 'tanítási nap') echo '<option value="0"> - </option>'."\n";
+ for ($h = 0; $h < count($Hetek); $h++) {
+ echo '<option value="'.$Hetek[$h].'"'.$SEL[$Hetek[$h]].'>'.$Hetek[$h].'. '._ORARENDI_HET.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />'."\n";
+ $SEL = array($Napok[$i]['csengetesiRendTipus'] => ' selected="selected" ');
+ echo '<select name="csengetesiRendTipus[]">'."\n";
+ // if ($Napok[$i]['tipus'] != 'tanítási nap') echo '<option value="nincs"> - </option>'."\n";
+ for ($h = 0; $h < count($ADAT['fields']['csengetesiRendTipus']); $h++) {
+ echo '<option value="'.$ADAT['fields']['csengetesiRendTipus'][$h].'"'.$SEL[ $ADAT['fields']['csengetesiRendTipus'][$h] ].'>'.$ADAT['fields']['csengetesiRendTipus'][$h].' csengetés</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo $Napok[$i]['tipus'];
+ if (isset($Napok[$i]['megjegyzes']) && $Napok[$i]['megjegyzes'] != '') {
+ echo '<br />'."\n";
+ echo '<span>'.$Napok[$i]['megjegyzes'].'</span>';
+ }
+ if ($Napok[$i]['tipus'] == 'tanítási nap') {
+ echo '<br />'."\n";
+ echo '<span class="orarendiHet'.$Napok[$i]['orarendiHet'].'">'.$Napok[$i]['orarendiHet'].'. '._ORARENDI_HET.'</span>';
+ }
+ echo '<br />'."\n";
+ echo '<span>'.$Napok[$i]['csengetesiRendTipus'].' csengetés</span>';
+ }
+ echo '</td>'."\n";
+
+ if (date('w',strtotime($Napok[$i]['dt']))==0) echo '</tr>';
+ }
+
+ if (0 != $dow=date('w',strtotime($Napok[$i-1]['dt']))) {
+ for ($i=$dow+1;$i<8;$i++) {
+ echo '<td>&nbsp;</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function putNapokSzama($ADAT) {
+
+ $NapokSzama = $ADAT['NapokSzama']; $napTipusok = $ADAT['napTipusok'];
+
+ echo '<h2>'._NAPOK_SZAMA.' - '.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['munkatervNev'].' ('.$ADAT['munkatervId'].')</h2>';
+ echo '<table class="osszesites" align="center">';
+ echo '<tr>';
+ echo '<th></th>';
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<th class="'.ekezettelen($napTipus[$i]).'">'.$napTipusok[$i].'</th>';
+ }
+ echo '<th class="osszesMunkanap">'._OSSZES_MUNKANAP.'</th>';
+ echo '</tr><tr>';
+ echo '<th>'._TENYLEGES.'</th>';
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<td class="'.ekezettelen($napTipusok[$i]).'">'.intval($NapokSzama[$napTipusok[$i]]).'</td>';
+ }
+ echo '<td class="osszesMunkanap">'.intval($NapokSzama['tanítási nap']+$NapokSzama['speciális tanítási nap']+$NapokSzama['tanítás nélküli munkanap']).'</td>';
+ echo '</tr>';
+ echo '<tr class="eloirt">';
+ echo '<th>'._ELOIRT.'</th>';
+ echo '<td colspan="2">'.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasiNap'].'</td>';
+ echo '<td>'.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasNelkuliMunkanap'].'</td>';
+ echo '<td></td>';
+ echo '<td class="osszesMunkanap">'.($ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasiNap']+$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasNelkuliMunkanap']).'</td>';
+ echo '</tr>';
+ echo '</table>';
+
+ echo '<p>'._VEGZOS_ZARAS_DT.': '. dateToString($ADAT['munkaterv'][ $ADAT['munkatervId'] ]['vegzosZarasDt']). '</p>';
+
+ }
+
+ function putNapokInit($ADAT, $Set = array('hide' => true)) {
+
+ $Hetek = $ADAT['Hetek'];
+ formBegin(array('class'=>'openable init', 'id' => 'napokInit', 'style' => ($Set['hide']?'display: none;':''), 'action' => ''));
+ echo '<h2>'._NAPOKINIT.'</h2>'."\n";
+ echo '<input type="hidden" name="action" value="napokInit" />'."\n";
+
+// if (is_array($Hetek) && count($Hetek) != 0) {
+// echo '<label for="hetek">'._ORARENDI_HET.'</label>'."\n";
+// echo '<p>';
+// for ($i = 0; $i < count($Hetek); $i++) {
+// echo '<input type="checkbox" name="Hetek[]" value="'.$Hetek[$i].'" />';
+// echo $Hetek[$i].'&nbsp;&nbsp;';
+// }
+// echo '</p>';
+// } else {
+ echo '<p>'._MAGYARAZAT.'</p>';
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnsz">'._TANITASI_NAPOK_SZAMA.'</label>';
+ echo '<select id="tnsz" name="tanitasiNap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasiNap'] => ' selected="selected" ');
+ for ($i = 1; $i < 200; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnmsz">'._TANITAS_NELKULI_MUNKANAPOK_SZAMA.'</label>';
+ echo '<select id="tnmsz" name="tanitasNelkuliMunkanap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasNelkuliMunkanap'] => ' selected="selected" ');
+ for ($i = 1; $i < 20; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="vzdt">'._VEGZOS_ZARAS_DT.'</label>';
+ echo '<input type="text" class="date" id="vzdt" name="vegzosZarasDt" value="'.$ADAT['munkaterv'][1]['vegzosZarasDt'].'" />';
+// }
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putHetHozzarendelo($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'hetHozzarendeles', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._HETHOZZARENDELES.'</h2>';
+ echo '<input type="hidden" name="action" value="hetHozzarendeles" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ echo '<p>'._HH_MAGYARAZAT.'</p>';
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tolDt">'._DATUM.'</label>';
+ echo '<input type="text" class="date" id="tolDt" name="tolDt" value="'.$_TANEV['kezdesDt'].'" /> - ';
+ echo '<input type="text" class="date" name="igDt" value="'.$_TANEV['zarasDt'].'" />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putUjMunkaterv($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'ujMunkaterv', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._UJ_MUNKATERV.'</h2>';
+ echo '<input type="hidden" name="action" value="ujMunkaterv" />'."\n";
+ echo '<p>'._UM_MAGYARAZAT.'</p>';
+
+ echo '<label for="munkatervNev">'._MUNKATERV_NEVE.'</label>';
+ echo '<input type="text" id="munkatervNev" name="munkatervNev" value="" />';
+
+ echo '<label for="tnsz">'._TANITASI_NAPOK_SZAMA.'</label>';
+ echo '<select id="tnsz" name="tanitasiNap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasiNap'] => ' selected="selected" ');
+ for ($i = 1; $i < 200; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnmsz">'._TANITAS_NELKULI_MUNKANAPOK_SZAMA.'</label>';
+ echo '<select id="tnmsz" name="tanitasNelkuliMunkanap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasNelkuliMunkanap'] => ' selected="selected" ');
+ for ($i = 1; $i < 20; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="vzdt">'._VEGZOS_ZARAS_DT.'</label>';
+ echo '<input type="text" class="date" id="vzdt" name="vegzosZarasDt" value="'.$ADAT['munkaterv'][1]['vegzosZarasDt'].'" />';
+/*
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tolDt">'._DATUM.'</label>';
+ echo '<input type="text" class="date" id="tolDt" name="tolDt" value="'.$_TANEV['kezdesDt'].'" /> - ';
+ echo '<input type="text" class="date" name="igDt" value="'.$_TANEV['zarasDt'].'" />';
+*/
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putMunkatervOsztaly($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'munkatervOsztaly', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._MUNKATERV_OSZTALY.'</h2>';
+ echo '<input type="hidden" name="action" value="munkatervOsztaly" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ echo '<p>'._MO_MAGYARAZAT.'</p>';
+
+ echo '<ul>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $O = $ADAT['osztaly'][$i];
+ echo '<li>';
+ echo '<input type="hidden" name="osztalyId[]" value="'.$O['osztalyId'].'">';
+ echo '<strong>'.$O['osztalyJel'].'</strong> ('.$O['leiras'].')';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '<select name="ujMunkatervId[]">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($O['munkatervId'] => ' selected="selected" ');
+ foreach ($ADAT['munkaterv'] as $mId => $mAdat) {
+ echo '<option value="'.$mId.'"'.$SEL[$mId].'>'.$mAdat['munkatervNev'].' ('.$mId.')</option>'."\n";
+ }
+ echo '</select>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ formEnd();
+
+ }
+
+ function putAdminForm($ADAT, $Hetek = array(), $NapokSzama=null, $napTipusok=null) {
+
+ global $action, $initResult;
+
+ if ($action != '') $SEL = $action;
+ elseif (__MUNKATERV_OK || $initResult === true) $SEL = 'napokSzama';
+ else $SEL = 'napokInit';
+
+ echo '<div class="admin hideShowContainer">';
+
+ echo '<div id="showNapokInit" class="onClickShow'.($SEL=='napokInit'?' selected':'').'">'._NAPOKINIT.'</div>';
+ if (__MUNKATERV_OK || $initResult === true) {
+ echo '<div id="showNapokSzama" class="onClickShow'.($SEL=='napokSzama'?' selected':'').'">'._NAPOK_SZAMA.'</div>';
+ echo '<div id="showHetHozzarendeles" class="onClickShow'.($SEL=='hetHozzarendeles'?' selected':'').'">'._HETHOZZARENDELES.'</div>';
+ echo '<div id="showUjMunkaterv" class="onClickShow'.($SEL=='ujMunkaterv'?' selected':'').'">'._ELTERO_MUNKATERVEK.'</div>';
+ echo '<div id="showMunkatervOsztaly" class="onClickShow'.($SEL=='munkatervOsztaly'?' selected':'').'">'._MUNKATERV_OSZTALY.'</div>';
+ }
+
+ echo '<div class="openable" id="napokSzama"'.($SEL!='napokSzama'?' style="display: none;"':'').'>';
+ putNapokSzama($ADAT);
+ echo '</div>';
+ putNapokInit($ADAT, array('hide' => ($SEL!='napokInit')));
+ putHetHozzarendelo($ADAT, array('hide' => ($SEL!='hetHozzarendeles')));
+ putUjMunkaterv($ADAT, array('hide' => ($SEL!='ujMunkaterv')));
+ putMunkatervOsztaly($ADAT, array('hide' => ($SEL!='munkatervOsztaly')));
+ echo '<div>&nbsp;</div>';
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml
new file mode 100644
index 00000000..0577e5a7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml
@@ -0,0 +1,200 @@
+<?php
+
+ function putTargySzuro($ADAT) {
+
+ formBegin(array('class'=>"szuro csoport"));
+ echo '<input type="hidden" name="action" value="targySzures" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th>'._TARGY_SZURES.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<select name="targyId[]" multiple="multiple">';
+ for ($i = 0; $i < count($ADAT['targyak']); $i++) {
+ if (in_array($ADAT['targyak'][$i]['targyId'], $ADAT['targySzuro']))
+ echo '<option value="'.$ADAT['targyak'][$i]['targyId'].'" selected="selected">'.$ADAT['targyak'][$i]['targyNev'].'</option>'."\n";
+ else
+ echo '<option value="'.$ADAT['targyak'][$i]['targyId'].'">'.$ADAT['targyak'][$i]['targyNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ if (count($ADAT['osztalySzuro']) != 1) {
+ echo '<tr>';
+ echo '<th>'._EVFOLYAM_SZURES.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ for ($i = 0; $i < count($ADAT['evfolyamJelek']); $i++) {
+ if (in_array($ADAT['evfolyamJelek'][$i], $ADAT['evfolyamJelSzuro']))
+ echo '<input id="evf'.$i.'" type="checkbox" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelek'][$i].'" checked="checked" /> ';
+ else
+ echo '<input id="evf'.$i.'" type="checkbox" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelek'][$i].'" /> ';
+ echo '<label for="evf'.$i.'">'.$ADAT['evfolyamJelek'][$i].'.</label> ';
+ if ($i % 4 == 3) echo '<br />';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+ function putUjTankorBlokk($ADAT) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="ujTankorBlokk" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ // Kiválasztott tárgyak és évfolyamok
+ for ($i = 0; $i < count($ADAT['targySzuro']); $i++) echo '<input type="hidden" name="targyId[]" value="'.$ADAT['targySzuro'][$i].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelSzuro']); $i++) echo '<input type="hidden" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelSzuro'][$i].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _UJ_TANKOR_BLOKK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo _BLOKKNEV;
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK.' ('.count($ADAT['tankorIdk']).')';
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="blokkNev" value="" /><br />';
+ echo '<label for="exportOraszam">'._EXPORT_ORASZAM.':</label> ';
+ echo '<input size="1" maxlength="4" type="text" name="exportOraszam" id="exportOraszam" value="" /><br />';
+ echo '<input type="submit" value="'._OK.'" />'; echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="10">';
+ foreach ($ADAT['szurtTankorIdk'] as $key => $tankorId)
+ if ($ADAT['tankorOraszam'][$tankorId] - $ADAT['tankorExportOraszam'][$tankorId] > 0)
+ echo '<option value="'.$tankorId.'">'.$ADAT['tankorAdat'][$tankorId]['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],1).' / '.number_format($ADAT['tankorExportOraszam'][$tankorId],1)
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putTankorBlokkok($ADAT) {
+
+ $BLOKKOK = $ADAT['tankorBlokkok'];
+ if (!is_array($BLOKKOK['blokkNevek'])) return false;
+ echo '<table class="modosit">';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _TANKOR_BLOKK_MODOSITAS;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ foreach ($BLOKKOK['blokkNevek'] as $blokkId => $blokkNev) {
+ $BA = $BLOKKOK['idk'][$blokkId];
+
+ $kirakjuk = false;
+ // blokk szűrése a tankörök alapján (tehát tárgy és évfolyam alapján)
+ for ($i = 0; $i < count($BA); $i++) {
+ if (in_array($BA[$i], $ADAT['szurtTankorIdk'])) {
+ $kirakjuk = true;
+ break;
+ }
+ }
+
+ if ($kirakjuk) {
+
+ echo '<tr><td>';
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="modTankorBlokk" />'."\n";
+ echo '<input type="hidden" name="blokkId" value="'.$blokkId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ // Kiválasztott tárgyak és évfolyamok
+ for ($i = 0; $i < count($ADAT['targySzuro']); $i++) echo '<input type="hidden" name="targyId[]" value="'.$ADAT['targySzuro'][$i].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelSzuro']); $i++) echo '<input type="hidden" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelSzuro'][$i].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _BLOKKNEV. ' ('.$blokkId.')';
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK. ' (' . count($BA).')';
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="blokkNev" value="'.htmlspecialchars($blokkNev, ENT_QUOTES, "UTF-8").'" /><br />';
+ echo '<label for="exportOraszam'.$blokkId.'">'._EXPORT_ORASZAM.':</label> ';
+ echo '<input size="1" maxlength="4" type="text" name="exportOraszam" id="exportOraszam'.$blokkId.'" value="'.number_format($BLOKKOK['exportOraszam'][$blokkId], 1, '.', ' ').'" /><br />';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '<input type="submit" name="del" value="'._DEL.'" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorIds[]" multiple="multiple" size="5">';
+ foreach ($BA as $key => $tankorId)
+ echo '<option value="'.$tankorId.'" selected="selected">'
+ .$ADAT['tankorAdat'][$tankorId]['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],1).' / '.number_format($ADAT['tankorExportOraszam'][$tankorId],1)
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ foreach ($ADAT['tankorAdat'] as $tankorId => $tankorAdat)
+ if (
+ !in_array($tankorId,$BA)
+ && $ADAT['tankorOraszam'][$tankorId] - $ADAT['tankorExportOraszam'][$tankorId] > 0
+ ) echo '<option value="'.$tankorId.'" >'.$tankorAdat['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],2).' / '.intval($ADAT['tankorExportOraszam'][$tankorId])
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ echo '</td></tr>'."\n";
+ } // if
+ } // foreach
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
new file mode 100644
index 00000000..e6bd23f8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
@@ -0,0 +1,122 @@
+<?php
+
+ function putUjTankorCsoport($tankorAdat, $szTankorIds, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="ujTankorCsoport" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _UJ_TANKOR_CSOPORT;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo _CSOPORTNEV;
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="csoportNev" value="" /><br />';
+ echo '<input type="submit" value="'._OK.'" />'; echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="5">';
+ foreach ($szTankorIds as $key => $tankorId)
+ echo '<option value="'.$tankorId.'">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId) {
+
+ echo '<table class="modosit">';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _TANKOR_CSOPORT_MODOSITAS;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+
+ foreach ($Csoportok as $csoportId => $csoportAdat) {
+ echo '<tr><td>';
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="tankorCsoportModositas" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>';
+
+
+ echo '<tr>';
+ echo '<th>';
+ echo _CSOPORTNEV;
+ echo '</th>';
+ echo '<th>';
+ echo '<input type="submit" name="tankorCsoportTorles" class="torol confirm" title="'._BIZTOS_TOROL_E.'" value="'._TOROL.'" />';
+ echo _TANKOROK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="csoportNev" value="'.$csoportAdat['csoportNev'].'" /><br />';
+ echo '<input type="submit" value="'._OK.'" /><br />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="5">';
+ foreach ($csoportAdat['tankorok'] as $key => $tankorId)
+ echo '<option value="'.$tankorId.'" selected="selected">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ foreach ($szTankorIds as $key => $tankorId)
+ echo '<option value="'.$tankorId.'">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ echo '</td></tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+ function putTankorCsoportKereso($osztalyId) {
+
+ formBegin(array('class'=>'csoportKereses'));
+
+ echo '<input type="hidden" name="action" value="tankorCsoportokKeresese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr>';
+ echo '<th>'._TANKORCSOPORTOK_KERESESE.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml
new file mode 100644
index 00000000..07f83e8a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml
@@ -0,0 +1,296 @@
+<?php
+
+ function putTargyBontasInit() {
+
+ formBegin(array('id'=>'targyBontasInit'));
+ echo '<input type="hidden" name="action" value="targyBontasInit" />'."\n";
+ echo '<input type="submit" name="btn" value="'._INICIALIZALAS.'" />'."\n";
+ formEnd();
+ }
+
+ function putFilter($ADAT) {
+
+ formBegin(array('id'=>'szures'));
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+// echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="szures" />'."\n";
+
+/*
+ echo '<div id="evfolyamJel">Évfolyam: ';
+ foreach ($ADAT['evfolyamJelek'] as $ej) {
+ $evfolyamJel = $ej['evfolyamJel'];
+ if ($ADAT['evfolyamJel']==$evfolyamJel) {
+ $CHK = ' checked="checked" '; $extraClass = ' checked';
+ $extraStyle = '';
+ } else {
+ $CHK = $extraClass = '';
+ if ($ADAT['evfolyamJel'] != '') $extraStyle = ' style="width: 0px; min-width: 0px;" ';
+ }
+ echo '<div class="evfolyamJel'.$extraClass.'"'.$extraStyle.'>';
+ echo '<input type="radio" name="evfolyamJel" value="'.$evfolyamJel.'" id="ej-'.$evfolyamJel.'" style="display: none;"'.$CHK.'/>';
+ //echo '<label for="ej-'.$evfolyamJel.'">'.$evfolyamJel.'</label>';
+ echo $evfolyamJel;
+ echo '</div>';
+ }
+ echo '</div>';
+*/
+
+ echo '<input id="filterOk" type="submit" value="'._OK.'" />'."\n";
+ echo '<div id="osztaly">';
+ $evfolyamJel = '';
+ foreach ($ADAT['filter']['osztalyAdat'] as $oAdat) {
+ $oCHK = (in_array($oAdat['osztalyId'], $ADAT['osztalyIds']))?' checked="checked" ':'';
+ if ($evfolyamJel != $oAdat['evfolyamJel']) {
+ if ($evfolyamJel!='') echo '</div>';
+ $evfolyamJel = $oAdat['evfolyamJel'];
+ // új évfolyamjel - új sor
+ if ($ADAT['evfolyamJel']==$evfolyamJel) {
+ $eCHK = ' checked="checked" '; $extraClass = ' checked'; $extraStyle = '';
+ } else {
+ $eCHK = $extraClass = '';
+ if ($ADAT['evfolyamJel'] != '') $extraStyle = ' style="display: none;" ';
+ }
+ echo '<div class="osztEvf" id="osztEvf-'.str_replace('/','-',$evfolyamJel).'"'.$extraStyle.'>';
+ echo '<div class="evfolyamJel'.$extraClass.'">';
+ echo '<input type="radio" name="evfolyamJel" value="'.$evfolyamJel.'" id="ej-'.str_replace('/','-',$evfolyamJel).'" style="display: none;"'.$eCHK.'/>';
+ echo $evfolyamJel;
+ echo '</div>';
+ }
+ if ($oCHK=='') $class='selectOsztaly';
+ else $class='selectOsztaly checked';
+ if ($oAdat['bontasOk']) $class .= ' bontasOk';
+ echo '<span class="'.$class.'">';
+ echo '<input type="checkbox" name="osztalyIds[]" value="'.$oAdat['osztalyId'].'" id="osztaly-'.$oAdat['osztalyId'].'" style="display: none;"'.$oCHK.'/>';
+ echo $oAdat['osztalyJel'].' ('.$oAdat['osztalyfonokNev'].')'."\n";
+ echo '</span>';
+ }
+ echo '</div>';
+ echo '</div>';
+
+ echo '<div id="kepzes">';
+ foreach ($ADAT['filter']['kepzesAdat'] as $kepzesId => $kAdat) {
+ $oClass='kSelect';
+ foreach ($kAdat as $oAdat) $oClass .= ' ko-'.$oAdat['osztalyId'];
+ $CHK = (in_array($kepzesId, $ADAT['kepzesIds']))?' checked="checked" ':'';
+ if ($CHK=='') echo '<div class="'.$oClass.'" data-db="0" style="display: none;">';
+ else echo '<div class="'.$oClass.'" data-db="0">';
+ echo '<input type="checkbox" name="kepzesIds[]" value="'.$kepzesId.'" id="kepzes-'.$kepzesId.'"'.$CHK.'/>'."\n";
+ echo '<label for="kepzes-'.$kepzesId.'">'.$kAdat[0]['kepzesNev'].' '.$kAdat[0]['tanev'].' ('.$kepzesId.')</label>';
+ echo '</div>';
+ }
+ echo '</div>';
+ formEnd();
+ }
+
+ function putTargyBontas($ADAT) {
+
+ formBegin(array('id'=>'bontasForm'));
+
+ echo '<input type="hidden" name="action" value="bontas" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ foreach ($ADAT['osztalyIds'] as $osztalyId) echo '<input type="hidden" name="osztalyIds[]" value="'.$osztalyId.'" />'."\n";
+ foreach ($ADAT['kepzesIds'] as $kepzesId) echo '<input type="hidden" name="kepzesIds[]" value="'.$kepzesId.'" />'."\n";
+
+ echo '<div id="targyak" tabindex="1">';
+ echo '<div id="targyakUp" tabindex="1"><span class="icon-chevron-up"></span></div>';
+ echo '<div id="targyakDown"><span class="icon-chevron-down"></span></div>';
+ echo '<h1><span class="icon-remove-circle"></span>Tárgyak</h1>';
+ echo '<ul id="targyakUl">';
+ foreach ($ADAT['targyAdat'] as $targyId => $tAdat) {
+ echo '<li class="selectTargy" id="targy-'.$targyId.'" data-targyid="'.$targyId.'" data-targynev="'.$tAdat['targyNev'].'" data-targyjelleg="'.$tAdat['targyJelleg'].'">';
+ echo $tAdat['targyNev'].' ('.$targyId.')';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</div>';
+
+ echo '<table class="bontas">';
+
+ $stat = array('ko' => 0, 'bontas' => 0, 'koKesz' => 0, 'bontasKesz' => 0);
+ foreach ($ADAT['oraterv'] as $targyTipus => $tipusAdat) {
+ foreach ($tipusAdat as $targyId => $targyAdat) {
+ foreach ($targyAdat as $hetiOraszam => $oraszamAdat) {
+ foreach($oraszamAdat as $btStr => $btAdat) {
+ $tbodyId = str_replace('.','p', $targyTipus[0].'-'.intval($targyId).'-'.$hetiOraszam.'-'.$btStr);
+ echo '<tbody id="'.$tbodyId.'">';
+ $elsoSor = true; $sorDb = count($btAdat);
+ foreach ($btAdat as $rAdat) {
+$stat['ko']++;
+ $trId = 'tr-'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'];
+ $targyTipusE = ($targyTipus!='mintatantervi');
+
+ // kész van-e minden bontás-tankör hozzárendelés ebben a sorban?
+ $bontasArray = $ADAT['osztalyTargyBontas'][ $rAdat['osztalyId'] ][ $rAdat['kepzesOratervId'] ];
+ if (is_array($bontasArray)) {
+ $mindenBontasOk = true;
+ foreach ($bontasArray as $bontas) {
+ $stat['bontas']++;
+ if ($hetiOraszam-$bontas['hetiOraszam']==0) $stat['bontasKesz']++;
+ else $mindenBontasOk = false;
+ }
+ } else $mindenBontasOk = false;
+
+ echo '<tr '.($mindenBontasOk?'class="kesz" ':'').'id="'.$trId.'"
+ data-db="0"
+ data-hetiOraszam="'.$hetiOraszam.'"
+ data-keys="'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'"
+ data-key="'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'">';
+ echo '<td class="slide">'.(!$elsoSor?'<span class="slideUp icon-chevron-up"></span>':'<span class="slideUpAll icon-caret-up"></span>').'</td>';
+
+ echo ($targyTipusE?'<th class="targyTipus">'.$targyTipus:'<th>'.$rAdat['targyNev'].' ('.$targyId.')').'</th>';
+ echo '<td>'.$hetiOraszam.'</td>';
+ echo '<td>'.$ADAT['osztalyAdat'][ $rAdat['osztalyId'] ]['osztalyJel'].' '
+ .$ADAT['kepzesAdat'][ $rAdat['kepzesId'] ]['kepzesNev']
+ .'<span class="felev'.$rAdat['szemeszter'].'">'.$rAdat['szemeszter'].'. félév</span>'
+ .'</td>';
+ echo '<td id="bTd-'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'">';
+ $db = 0;
+ if (is_array($bontasArray)) foreach ($bontasArray as $bontas) {
+
+ if ($hetiOraszam-$bontas['hetiOraszam']==0) $class=" ok";
+ elseif ($hetiOraszam-$bontas['hetiOraszam']<0) $class=" fail";
+ else $class='';
+ echo '<div class="bontas'.$class.'" id="bontas-'.$bontas['bontasId'].'"
+ data-tankororaszam=\''.(is_array($bontas['tankor-oraszam'])?json_encode($bontas['tankor-oraszam']):'[]').'\'
+ data-hetioraszam="'.floatval($bontas['hetiOraszam']).'"
+ data-targyid="'.$bontas['targyId'].'"
+ data-keys="'.$bontas['bontasId'].'"
+ data-key="'.$bontas['bontasId'].'">';
+ echo '<span class="bontasDb">'.(++$db).'</span>. '.$ADAT['targyAdat'][ $bontas['targyId'] ]['targyNev'].' csoport ('.$bontas['bontasId'].')';
+ echo '<span class="delBontas icon-remove-circle"></span>';
+ echo '<ul class="tankor-oraszam">';
+ if (is_array($bontas['tankor-oraszam'])) foreach ($bontas['tankor-oraszam'] as $toAdat) {
+ echo '<li class="tankorAdat" data-tankorid="'.$toAdat['tankorId'].'">['.floatval($toAdat['hetiOraszam']).'] '.$ADAT['tankorAdat'][ $toAdat['tankorId'] ]['tankorNevTargyNelkul'].' ('.$toAdat['tankorId'].')</li>';
+ }
+ echo '<li class="marad">'.($hetiOraszam-$bontas['hetiOraszam']).'</li>';
+ echo '</ul>';
+ echo '</div>';
+
+ }
+ echo '</td>';
+ echo '<td><span class="'.($targyTipusE?'addBontasTargy':'addBontas').' icon-plus" style="paddding: 20px;"></span></td>';
+//echo '<td>';
+//dump($bontasArray);
+//echo (++$sor).'. ';
+//echo $btStr.' ('.$rAdat['kepzesOratervId'].')';
+//echo '<br/>'.$tbodyId.' - '.$trId;
+//echo '</td>';
+ echo '</tr>';
+ if ($mindenBontasOk) $stat['koKesz']++;
+ $elsoSor = false;
+ }
+ echo '</tbody>';
+ }
+ }
+ }
+ }
+
+
+ echo '</table>';
+
+
+ echo '<div id="stat">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td id="oratervenKivuli" title="Óratervtől eltérő tankörök száma (Nem frissül, csak az oldal újratöltésekor!)">';
+ echo count($ADAT['oratervenKivuliTankorok']).'<span class="icon-arrow-down"></span>';
+ echo '<ul>';
+ foreach ($ADAT['oratervenKivuliTankorok'] as $idx => $okAdat) {
+ if ($idx<30) {
+ echo '<li>';
+ echo $okAdat['tankorNev'].' ('.$okAdat['tankorId'].') <span class="diff">['.(is_null($okAdat['diff'])?'-':$okAdat['diff']).']</span>';
+ echo '</li>';
+ }
+ }
+ if ($idx >= 30) echo '<li>...</li>';
+ echo '</ul>';
+ echo '</td>';
+
+ echo '<td title="Óratervi bejegyzés">';
+ echo '<span id="statKoKesz">'.$stat['koKesz'].'</span>/<span id="statKo">'.$stat['ko'].'</span>';
+ echo '</td>';
+
+ echo '<td title="Felvett bontás">';
+ echo '<span id="statBontasKesz">'.$stat['bontasKesz'].'</span>/<span id="statBontas">'.$stat['bontas'].'</span>';
+ echo '</td>';
+
+ echo '<td title="Kész rekordok elrejtése">';
+ echo '<input type="checkbox" id="keszRejt" value="" />';
+ echo '</td>';
+
+ echo '</tr>';
+
+
+
+
+/*
+ echo '<tr><th id="oratervenKivuli">Óratervtől eltérő tankörök száma:';
+ echo '<ul>';
+ foreach ($ADAT['oratervenKivuliTankorok'] as $idx => $okAdat) {
+ if ($idx<30) {
+ echo '<li>';
+ echo $okAdat['tankorNev'].' ('.$okAdat['tankorId'].') <span class="diff">['.(is_null($okAdat['diff'])?'-':$okAdat['diff']).']</span>';
+ echo '</li>';
+ }
+ }
+ if ($idx >= 30) echo '<li>...</li>';
+ echo '</ul>';
+ echo '</th><td>'.count($ADAT['oratervenKivuliTankorok']).'<br/>(nem frissül)</td></tr>';
+ echo '<tr><th>Óratervi bejegyzés:</th><td><span id="statKoKesz">'.$stat['koKesz'].'</span>/<span id="statKo">'.$stat['ko'].'</span></td></tr>';
+ echo '<tr><th>Felvett bontás:</th><td><span id="statBontasKesz">'.$stat['bontasKesz'].'</span>/<span id="statBontas">'.$stat['bontas'].'</span></td></tr>';
+ echo '<tr><td colspan="2"><input type="checkbox" id="keszRejt" value="" />';
+ echo '<label for="keszRejt">Kész rekordok elrejtése</label></td></tr>';
+*/
+ echo '</table>';
+ echo '</div>';
+
+
+
+
+
+
+
+
+
+/*
+ echo '<span style="color:red;" class="icon-remove-circle"></span> ';
+ echo '<span style="color:red;" class="icon-plus-sign"></span> ';
+ echo '<span style="color:red;" class="icon-minus-sign"></span> ';
+ echo '<span style="color:red;" class="icon-error"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-plus"></span> ';
+ echo '<span style="color:red;" class="icon-minus"></span> ';
+ echo '<span style="color:red;" class="icon-remove"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-resize-vertical"></span> ';
+ echo '<span style="color:red;" class="icon-resize-full"></span> ';
+ echo '<span style="color:red;" class="icon-resize-small"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-arrow-up"></span> ';
+ echo '<span style="color:red;" class="icon-arrow-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-chevron-up"></span> ';
+ echo '<span style="color:red;" class="icon-chevron-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-circle-arrow-up"></span> ';
+ echo '<span style="color:red;" class="icon-circle-arrow-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-caret-up"></span> ';
+ echo '<span style="color:red;" class="icon-caret-down"></span> ';
+ echo '<br />';
+
+ echo '<span style="color:red;" class="icon-cog"></span> ';
+ echo '<span style="color:red;" class="icon-fork"></span> ';
+ echo '<span style="color:red;" class="icon-return-key"></span> ';
+ echo '<span style="color:red;" class="icon-stop"></span> ';
+ echo '<span style="color:red;" class="icon-move"></span> ';
+ echo '<br />';
+*/
+
+ formEnd();
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml
new file mode 100644
index 00000000..5f3027e2
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml
@@ -0,0 +1,25 @@
+<?php
+
+ function putTargyOraszam($ADAT) {
+
+ echo '<table align="center" class="targyOraszam">';
+ echo '<tr><th>'._TARGY.'</th><th>'._ORASZAM.'</th></tr>'."\n";
+ foreach($ADAT['targyOraszam'] as $targyNev => $_D) {
+
+ $sum += $_D['db'];
+
+ echo '<tr>';
+ echo '<td>';
+ echo $targyNev;
+ echo '</td><td class="oraszam">';
+ echo round($_D['db'],2);
+ echo '</td>';
+ echo '</tr>';
+ echo '</tr>'."\n";
+ }
+ echo '<tr><th colspan="2">'.$sum.'</th></tr>'."\n";
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml
new file mode 100644
index 00000000..d4940066
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ function putLezarandoOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'vegzos'));
+ echo '<input type="hidden" name="action" value="orarendLezaras" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<h1>'._LEZARANDO_OSZTALYOK_KIVALASZTASA.'</h1>';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+
+ if ($ADAT['osztalyok'][$i]['vegzoTanev'] == __TANEV) {
+ if (in_array($ADAT['osztalyok'][$i]['osztalyId'], $ADAT['lezarandoOsztaly'])) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>';
+ echo '<input id="chk'.$i.'" type="checkbox" name="lezarandoOsztaly[]" value="'.$ADAT['osztalyok'][$i]['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="chk'.$i.'">';
+ echo $ADAT['osztalyok'][$i]['osztalyJel'];
+ echo '</label>';
+ echo '</li>'."\n";
+ }
+
+ }
+ echo '</ul>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml
new file mode 100644
index 00000000..2e9138bb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml
@@ -0,0 +1,36 @@
+<?php
+
+ function putLezarandoOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'vegzos'));
+
+ echo '<input type="hidden" name="action" value="lezaras" />'."\n";
+
+ echo '<h2>'.$ADAT['tanev'].'</h2>';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+
+ if ($ADAT['osztalyok'][$i]['vegzoTanev'] == __TANEV && $ADAT['osztalyok'][$i]['kezdoTanev']<=__TANEV) {
+ if (in_array($ADAT['osztalyok'][$i]['osztalyId'], $ADAT['lezarandoOsztaly'])) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>';
+ echo '<input id="chk'.$i.'" type="checkbox" name="lezarandoOsztaly[]" value="'.$ADAT['osztalyok'][$i]['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="chk'.$i.'">';
+ echo $ADAT['osztalyok'][$i]['osztalyJel'];
+ echo ' - '.($ADAT['osztalyok'][$i]['leiras']);
+ echo ' - '.($ADAT['osztalyok'][$i]['osztalyfonok']['tanarNev']);
+ echo '</label>';
+ echo '</li>'."\n";
+ }
+
+ }
+ echo '</ul>'."\n";
+ echo '<input type="text" readonly="readonly" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml
new file mode 100644
index 00000000..31cb5450
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml
@@ -0,0 +1,67 @@
+<?php
+
+ function putTanmenetInfo($ADAT) {
+
+ global $skin;
+
+ echo '<fieldset class="alapadatok"><legend>'._ALAPADATOK.'</legend>'."\n";
+ if ($skin != 'ajax')
+ formBegin(array('class'=>'tanmenet'));
+
+ echo '<input type="hidden" name="tanmenetId" id="informTanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+
+ echo '<p><span>'.$ADAT['tanmenetAdat']['evfolyamJel'].'.</span> '._EVFOLYAMJEL.' - <span>'
+ .$ADAT['tanmenetAdat']['targyNev'].'</span> - <span>'
+ .$ADAT['tanmenetAdat']['oraszam'].'</span> '._TANORA.'</p>'."\n";
+
+ echo '<p>'._TANMENETNEV.': <span>'.$ADAT['tanmenetAdat']['tanmenetNev'].'</span></p>'."\n";
+
+ echo '<p>'._KESZITETTE.': <span>'.$ADAT['tanmenetAdat']['tanarNev'].'</span> - '.'<span>'.dateToString($ADAT['tanmenetAdat']['dt']).'</span></p>'."\n";
+
+ echo '<p>'._ALLAPOT.': <span>'.$ADAT['tanmenetAdat']['statusz'].'</span></p>';
+
+ echo '</fieldset>'."\n";
+
+ /* -------------------------------- */
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend><a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarId'].'&targyId='.$ADAT['targyId']).'">'._HOZZARENDELT_TANKOROK.'</a></legend>';
+ echo __TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankor']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankor'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ if (count($ADAT['tanmenetAdat']['tankorNemAktualis'])>0) {
+ echo _MAS_TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankorNemAktualis']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</fieldset>'."\n";
+
+ /* -------------------------------- */
+
+
+ echo '<fieldset class="tema"><legend>'._TEMAKOROK.'</legend>'."\n";
+ $oraszam = 0;
+ echo '<ul id="temakor">'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['temakor']); $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">'.($oraszam+1).'-'.($oraszam = $oraszam + $ADAT['tanmenetAdat']['temakor'][$i]['oraszam']);
+ echo '. '._TANORA.': ';
+ echo '</span>';
+ echo '<div class="megnevezes">'.nl2br(htmlspecialchars($ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'])).'</div>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ul>';
+ echo '</fieldset>'."\n";
+
+ if ($skin != 'ajax') formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml
new file mode 100644
index 00000000..8670839a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml
@@ -0,0 +1,61 @@
+<?php
+
+ function _tanarNev($x) {
+ for ($i=0; $i<count($x); $i++) {
+ $T[] = '<span class="tanarNev" data-tanarId="'.$x[$i]['tanarId'].'">'.$x[$i]['tanarNev'].'</span>';
+ }
+ return implode(', ',$T);
+ }
+
+ function putTanmenetJovahagyas($ADAT) {
+
+ if (!is_array($ADAT['tankorok'])) return false;
+ echo '<table id="tanmenet">';
+ foreach ($ADAT['tankorok'] as $tkAdat) {
+
+ $tankorId = $tkAdat['tankorId'];
+ $tanmenetId = $ADAT['tankorTanmenet'][$tankorId];
+ $tmAdat = $ADAT['tanmenetAdat'][$tanmenetId];
+ $tmLeiras = ($tanmenetId == '')?'':($tmAdat['tanmenetNev'].' - ('.$tanmenetId.') - '.$ADAT['tanarok'][$tmAdat['tanarId']]['tanarNev']);
+ $class = ekezettelen($tmAdat['statusz']);
+ $href=href("index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId=".$tanmenetId);
+
+ echo '<tr class="'.$class.'">';
+ echo '<th class="tankorAdat" data-tankorid="'.$tankorId.'">'.$tkAdat['tankorNev'].' ('.$tkAdat['tankorId'].')</th>';
+ echo '<td>'._tanarNev($tkAdat['tanarok']).'</td>';
+ echo '<td>';
+ if ($tanmenetId != '') echo '<a class="onClickUpdateWindow" title="tanmenet részletei..." href="'.$href.'">'.$tmLeiras.'</a>';
+ echo '</td>';
+
+ echo '<td>';
+ if ($tanmenetId != '') {
+ if (__JOVAHAGYHAT) {
+ formBegin(array('class'=>'tanmenet'));
+ echo '<input type="hidden" name="action" value="tanmenetModositas" />';
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="tanmenetId" value="'.$tanmenetId.'" />';
+ foreach (array('új','kész','jóváhagyott','publikus') as $statusz) {
+ $CHK = ($statusz == $tmAdat['statusz'])?' checked="checked" ':'';
+ echo '<input type="radio" name="statusz" value="'. $statusz.'"'.$CHK.' id="'.$tankorId.$statusz.'" />';
+ echo '<label for="'.$tankorId.$statusz.'">'.$statusz.'</label>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ } else {
+ echo $tmAdat['statusz'];
+ }
+ }
+ echo '</td>';
+
+
+ echo '</tr>';
+
+ }
+ echo '</table>';
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml
new file mode 100644
index 00000000..d862b093
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml
@@ -0,0 +1,38 @@
+<?php
+
+ function putTanmenetLeadas($ADAT) {
+
+ echo '<table class="tanmenet">'."\n";
+
+ echo '<tr>';
+ echo '<th rowspan="2">'._TANAR.'</th>';
+ echo '<th>'._JOVAHAGYOTT.'</th>'."\n";
+ echo '<th>'._NEM_JOVAHAGYOTT.'</th>'."\n";
+ echo '<th>'._FELKESZ.'</th>'."\n";
+ echo '<th>'._HIANYZO.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="4">'._TANMENET.'</th>';
+ echo '</tr>'."\n";
+
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<tr>';
+
+ echo '<th class="tanarNev">';
+ echo '<a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarok'][$i]['tanarId']).'">';
+ echo $ADAT['tanarok'][$i]['tanarNev'];
+ echo '</a>';
+ echo '</th>'."\n";
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['jóváhagyott'] == 0)?'':' class="jovahagyott"').'>'.$ADAT['tanarok'][$i]['db']['jóváhagyott'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['kész'] == 0)?'':' class="nincsJovahagyva"').'>'.$ADAT['tanarok'][$i]['db']['kész'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['új'] == 0)?'':' class="felkesz"').'>'.$ADAT['tanarok'][$i]['db']['új'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['hiányzik'] == 0)?'':' class="hianyzik"').'>'.$ADAT['tanarok'][$i]['db']['hiányzik'].'</td>';
+
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml
new file mode 100644
index 00000000..628562b3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml
@@ -0,0 +1,136 @@
+<?php
+
+ function putTanmenetModositasForm($ADAT) {
+
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend>'._ALAPADATOK.'</legend>'."\n";
+ formBegin(array('class'=>'alapadatok'));
+ echo '<input type="hidden" name="action" value="tanmenetAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+
+ $SEL = array($ADAT['tanmenetAdat']['evfolyamJel'] => ' selected="selected" ');
+ echo '<select name="evfolyamJel" id="evfolyamJel">'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelek']); $i++) {
+ echo '<option value="'.$ADAT['evfolyamJelek'][$i].'"'.$SEL[$ADAT['evfolyamJelek'][$i]].'>'.$ADAT['evfolyamJelek'][$i].'</option>'."\n";
+ }
+ echo '</select> '."\n";
+ echo '<label for="evfolyamJel">'._EVFOLYAMJEL.' </label>';
+
+ echo ' - '.$ADAT['tanmenetAdat']['targyNev'].' - ';
+
+ $SEL = array($ADAT['tanmenetAdat']['oraszam'] => ' selected="selected" ');
+ echo ' <select name="oraszam" id="tanmenetOraszam">'."\n";
+ for ($i = 1; $i < 1001; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select> '."\n";
+ echo '<label for="tanmenetOraszam">'._TANORA.': </label>';
+ echo '<br />';
+
+ echo '<label for="tanmenetNev">'._TANMENETNEV.': </label>';
+ echo '<input type="text" id="tanmenetNev" value="'.$ADAT['tanmenetAdat']['tanmenetNev'].'" name="tanmenetNev" />'."\n";
+ echo '<br />';
+
+ echo '<label>'._KESZITETTE.': </label>';
+ echo $ADAT['tanmenetAdat']['tanarNev'].' ('.$ADAT['tanmenetAdat']['tanarId'].') - ';
+ echo dateToString($ADAT['tanmenetAdat']['dt']);
+ echo '<br />';
+
+
+
+ echo '<label for="statusz">'._ALLAPOT.'</label> '."\n";
+ if (count($ADAT['statusz']) > 0) {
+ echo '<select name="statusz" id="statusz">';
+ $SEL = array($ADAT['tanmenetAdat']['statusz'] => ' selected="selected" ');
+ foreach ($ADAT['statusz'] as $statusz) {
+ echo '<option value="'.$statusz.'"'.$SEL[$statusz].'>'.$statusz.'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['tanmenetAdat']['statusz'];
+ echo '<input type="hidden" name="statusz" value="'.$ADAT['tanmenetAdat']['statusz'].'" /><br />';
+ }
+ echo '<br />';
+
+ if (__NAPLOADMIN || __KESZITO) {
+ echo '<input type="checkbox" name="tanmenetTorol" value="1" />'._TOROL."\n";
+ }
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ echo '</fieldset>'."\n";
+ /* -------------------------------- */
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend><a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarId'].'&targyId='.$ADAT['targyId']).'">'._HOZZARENDELT_TANKOROK.'</a></legend>'."\n";
+ echo __TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankor']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankor'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ if (count($ADAT['tanmenetAdat']['tankorNemAktualis'])>0) {
+ echo _MAS_TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankorNemAktualis']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</fieldset>'."\n";
+ /* -------------------------------- */
+
+ $_D = (__MODOSITHAT===true)?'':' disabled="disabled" ';
+ echo '<fieldset class="temakorokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend>'._TEMAKOROK.'</legend>'."\n";
+ $FORM = array('action'=>href('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'), 'name'=>'tanmenetMod', 'class'=>'tanmenet onChangeRequest');
+ formBegin($FORM);
+
+
+ echo '<input type="hidden" name="action" value="tanmenetTemakorModositas" />'."\n";
+ echo '<input type="hidden" name="tanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+
+ echo '<ul id="temakor">'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['temakor']); $i++) {
+ echo '<li class="sortable">';
+
+ echo '<span class="handle"><img src="skin/classic/module-naplo/img/tanmenet/updown.png" alt="updown" /></span>'."\n";
+ echo '<img class="close" src="skin/classic/module-naplo/img/tanmenet/close.png" alt="close" />'."\n";
+ echo '<span class="oraszam">&nbsp;&nbsp;</span>';
+
+ $SEL = array($ADAT['tanmenetAdat']['temakor'][$i]['oraszam'] => ' selected="selected" ');
+ echo '<select name="oraszam[]" class="temakorOraszam"'.$_D.'>'."\n";
+ for ($o = 0; $o <= $ADAT['tanmenetAdat']['oraszam']; $o++) echo '<option value="'. $o.'"'.$SEL[$o].'>'.$o.'</option>'."\n";
+ echo '</select>'."\n";
+// echo '<input type="text" name="temakorMegnevezes[]" value="'.$ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'].'" />'."\n";
+ echo '<textarea name="temakorMegnevezes[]"'.$_D.'>';
+ echo $ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'];
+ echo '</textarea>';
+ echo '</li>'."\n";
+ }
+ if (__MODOSITHAT===true) {
+ echo '<li>';
+ echo '<span class="handle">&nbsp;&nbsp;</span>';
+ echo '<img class="close" src="skin/classic/module-naplo/img/tanmenet/close.png" alt="close" />'."\n";
+ echo '<span class="oraszam">&nbsp;-&nbsp;</span>';
+
+ echo '<select name="oraszam[]" class="uj">'."\n";
+ for ($o = 0; $o <= $ADAT['tanmenetAdat']['oraszam']; $o++) {
+ echo '<option value="'. $o.'">'.$o.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+// echo '<input type="text" name="temakorMegnevezes[]" value="" class="uj" />'."\n";
+ echo '<textarea name="temakorMegnevezes[]" class="uj"></textarea>';
+ echo '</li>';
+ echo '</ul>';
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ }
+
+ formEnd();
+ echo '</fieldset>'."\n";
+
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml
new file mode 100644
index 00000000..ea58a28f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml
@@ -0,0 +1,65 @@
+<?php
+
+ function putTankorLista($ADAT) {
+
+ echo '<div style="display: none;" id="infodiv">
+ <div id="infodivheader"><span id="infodivclose">X</span>'._TANMENET_RESZLETEI.'</div>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo'), 'class'=>"onSubmitUpdate", 'id'=>"inform"));
+ echo '<input type="text" name="tanmenetId" id="informTanmenetId" value="" />'."\n";
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<table class="tanmenet">';
+ echo '<tr>';
+ echo '<th>'._TANKORNEV.'</th>';
+ echo '<th>'._TANMENET.'</th>';
+ echo '</tr>'."\n";
+ foreach ($ADAT['tankorok'] as $key => $tAdat) {
+ $sClass = kisbetus(ekezettelen($ADAT['tanmenetAdat'][ $ADAT['tankorTanmenet'][$tAdat['tankorId']] ]['statusz']));
+ echo '<tr class="'.$sClass.'">';
+ echo '<td class="nev tankorAdat" data-tankorid="'.$tAdat['tankorId'].'">'.$tAdat['tankorNev'].' ('.$tAdat['tankorId'].')'.'</td>'."\n";
+
+ echo '<td class="tanmenet">';
+ formBegin(array('class'=>'tanmenet'));
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tAdat['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="hozzarendeles" />'."\n";
+ echo '<select name="tanmenetId" class="onChangeUpdateGomb '.$sClass.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $gomb = 'info'; // módosítható, vagy csak megnézhető a tanmenet?
+ foreach ($ADAT['tanmenetek'][ $tAdat['targyId'] ] as $key => $tanmenetAdat) {
+ $class = kisbetus(ekezettelen($tanmenetAdat['statusz']));
+ if ($ADAT['tankorTanmenet'][$tAdat['tankorId']] == $tanmenetAdat['tanmenetId']) {
+ echo '<option value="'.$tanmenetAdat['tanmenetId'].'" selected="selected" class="'.$class.'">';
+ echo $tanmenetAdat['tanmenetNev'].' - '.$tanmenetAdat['tanarNev'].' ('.$tanmenetAdat['tanmenetId'].') - '.$tanmenetAdat['statusz'];
+ echo '</option>'."\n";
+ if ($tanmenetAdat['modosithato']) $gomb = 'modosit';
+ } else {
+ echo '<option value="'.$tanmenetAdat['tanmenetId'].'" class="'.$class.'">'
+ .$tanmenetAdat['tanmenetNev'].' - '.$tanmenetAdat['tanarNev'].' ('.$tanmenetAdat['tanmenetId'].') - '.$tanmenetAdat['statusz']
+ .'</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<div class="submitContainer">';
+ echo '<input type="submit" name="info" class="info" value="'._INFO.'" />'."\n";
+ echo '<input type="submit" name="modosit" class="modosit" value="'._MODOSIT.'" />'."\n";
+ if (__MODOSITHAT) {
+ echo '<input type="submit" name="hozzarendeles" value="'._HOZZARENDELES.'" />'."\n";
+ if (__TANAR) {
+ echo '<input type="submit" name="masolas" value="'._UJ_A_KIVALASZTOTT_ALAPJAN.'" />'."\n";
+ echo '<input type="submit" name="uj" value="'._UJ_LETREHOZASA.'" />'."\n";
+ }
+ }
+ echo '</div>';
+ formEnd();
+ echo '</td>';
+
+ echo '</tr>'."\n";
+
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml
new file mode 100644
index 00000000..5616edda
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml
@@ -0,0 +1,31 @@
+<?php
+
+ function putUjTanevForm($ADAT) {
+
+ echo '<div id="ujTanmenet"><div class="tanmenetHeader">'._UJ_TANMENET.'</div>';
+
+ formBegin(array('class'=>'tanmenet'));
+
+ echo '<input type="hidden" name="action" value="ujTanmenet">'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'">'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'">'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'">'."\n";
+
+ echo '<label for="tanmenetNev">'._TANMENETNEV.'</label><br />'."\n";
+ echo '<input type="text" name="tanmenetNev" id="tanmenetNev" value="" /><br />'."\n";
+
+ echo '<label for="oraszam">'._EVES_ORASZAM.'</label>'."\n";
+ echo '<select name="oraszam" id="oraszam">'."\n";
+ for ($i=1; $i < 1001; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml
new file mode 100644
index 00000000..65a45fae
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml
@@ -0,0 +1,81 @@
+<?php
+
+ /* mert nem egységes a kapott eredmény */
+ function _convert(&$ADAT) {
+ foreach ( array('tankorSzulo') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['r'][$_t]); $i++) {
+ if ($ADAT['r'][$_t][$i]['tankorNev']!='') $ADAT['r'][$_t][$i][$_t.'Nev'] = $ADAT['r'][$_t][$i]['tankorNev'];
+ }
+ }
+ foreach ( array('osztaly','osztalySzulo','osztalyTanar') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['r'][$_t]); $i++) {
+ if ($ADAT['r'][$_t][$i][$_t.'Nev']=='')
+ $ADAT['r'][$_t][$i][$_t.'Nev'] = $ADAT['r'][$_t][$i]['osztalyJel'].' '.$ADAT['r'][$_t][$i]['leiras'];
+ }
+ }
+ }
+
+ function putUzenoPostazo($ADAT) {
+
+ _convert($ADAT);
+ $reassoc = array('tankorSzulo'=>'tankor','osztalySzulo'=>'osztaly', 'osztalyTanar'=>'osztaly');
+ $allowedZero = array('diak','szulo','tanar');
+
+ echo '<input type="hidden" name="mayorToken" class="mayorToken" value="'.$_SESSION['mayorToken'].'" />'; // rendhagyó eset, mert az egész tartalmat lecseréli az onLoadUpdate, és a form-tól kezdjük...
+ echo '<input type="hidden" name="kuuk" value="'.$ADAT['kuuk'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<table class="ujUzenet" align="center">';
+ echo '<tr><th>'._UJ_UZENET;
+ if (__UZENOADMIN ===true && $ADAT['user']['feladoTipus']!='admin') {
+ echo ' <select id="asWho" name="asWho" class="onChangeUpdate">';
+ $_SEL = ($ADAT['asWho']!='asAdmin') ? 'selected="selected"' : '';
+ echo '<option value="asAdmin">'._ADMINKENT.'</option>';
+ echo '<option value="asIs" '. $_SEL .'>'.constant('_'.strtoupper($ADAT['user']['feladoTipus']).'KENT').'</option>';
+ echo '</select>';
+ }
+ echo '</th></tr>';
+
+ echo '<tr><td>';
+ echo _CIMZETT.': ';
+// echo '<span style="" id="uzenoSearchIcon"><img src="/skin/classic/module-naplo/img/toolSearch.png" alt="ዖ" style="height:15px; width:15px;" align="middle" class="searchIcon"/>'.'</span>';
+ echo '<span style="font-size:15px; cursor:pointer" id="uzenoSearchIcon">⌕</span>';
+ echo '<input style="display:none" type="text" name="pattern" id="pattern" class="onChangeUpdate" placeholder="'._NEV.'" />';
+ echo '<button style="display:none" type="button">'._KERES.'</button>';
+ if (is_array($ADAT['r'])) {
+ echo '<input type="hidden" name="diakokkal" value="1" /> ';
+ echo '<select name="cimzett" id="cimzett">';
+ echo '<option value="">'._VALASSZ.'</option>';
+ foreach($ADAT['r'] as $tipus => $V) {
+ if (is_array($V)) {
+ /* Ha nincs Id, próbáljuk meg kiegészítő megjegyzés (Szulo,Tanar) nélkül */
+ $keyName = ($reassoc[$tipus]!='' && $V[0][$tipus.'Id']=='') ? $reassoc[$tipus].'Id' : $tipus.'Id';
+ $valueName= $tipus.'Nev';
+ $kiir = @constant('_T'.strtoupper($tipus));
+ echo '<optgroup label="'.$kiir.'" class="'.$tipus.'">';
+ //if (in_array($tipus,$allowedZero)) echo '<option value="'.$tipus.'|0">'._MINDEN.' '.$kiir.'</option>';
+ for ($i=0; $i<count($V); $i++) {
+ $_dis = ($V[$i][$keyName]!=='') ? '' : 'disabled="disabled"'; /* !== */
+ $_val = ($V[$i][$valueName]!='') ? $V[$i][$valueName].' ('.$V[$i][$keyName].')' : constant('_TP'.strtoupper($tipus));
+ if ($_val!='') {
+ if (!($V[$i][$keyName]==__MEID && $tipus==__SZEREP)) {
+ echo '<option value="'.$tipus.'|'.$V[$i][$keyName].'" '.$_dis.'>'.$_val.'</option>';
+ }
+ }
+ if ($i%10==0) echo "\n";
+ }
+ echo '</optgroup>';
+ }
+ }
+ echo '</select>';
+ }
+ echo '<span id="shTipus"></span>';
+ echo '</td></tr>';
+ echo '<tr><td>';
+ echo '<textarea name="txt" id="postazoTxt" style="display:" ></textarea>';
+ echo '<input type="hidden" name="postazoHash" id="postazoHash" value="" />';
+ echo '<button type="submit" id="postazoButton" name="gomb" value="OK" class="DOA" style="display:">'._KULD.'</button>';
+ echo '</td></tr></table>';
+
+ }
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml
new file mode 100644
index 00000000..24304570
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml
@@ -0,0 +1,434 @@
+<?php
+
+ /* WHOAMI: __SZEREP.__MEID */
+ global $IMG;
+ $IMG = array(
+ 'diak' => '<span class="icon-child"></span>',
+ 'szulo' => '<span class="icon-adult"></span>',
+ 'tanar' => '<span class="icon-adult"></span>',
+ 'munkakozosseg' => '<span class="icon-slideshare"></span>',
+ 'tankor' => '<span class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span class="icon-group-alt"></span>',
+ 'osztaly' => '<span class="icon-group"></span>',
+ 'osztalySzulo' => '<span class="icon-adult"></span>',
+ 'osztalyTanar' => '<span class="icon-slideshare"></span>',
+ );
+
+ $TATA = array();
+
+ function fillTata($ADAT) {
+
+ global $TATA;
+ foreach ( array('tankor','tankorSzulo') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['tagsagok'][$_t]); $i++) {
+ $TATA[$_t][$ADAT['tagsagok'][$_t][$i]['tankorId']] = $ADAT['tagsagok'][$_t][$i]['tankorNev'];
+ }
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['diak']); $i++) {
+ $TATA['diak'][$ADAT['tagsagok']['diak'][$i]['diakId']] = $ADAT['tagsagok']['diak'][$i]['diakNev'].' ('.$ADAT['tagsagok']['diak'][$i]['diakId'].')';
+
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['tanar']); $i++) {
+ $TATA['tanar'][$ADAT['tagsagok']['tanar'][$i]['tanarId']] = $ADAT['tagsagok']['tanar'][$i]['tanarNev'];
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['szulo']); $i++) {
+ $_szuloId = $ADAT['tagsagok']['szulo'][$i]['szuloId'];
+ $TATA['szulo'][$_szuloId] = $ADAT['tagsagok']['szulo'][$i]['szuloNev'];
+ for ($j=0; $j<count($ADAT['szuloDiakjai'][$_szuloId]); $j++) {
+ $TATA['szulo'][$_szuloId].= ' ('.$ADAT['szuloDiakjai'][$_szuloId][$j]['diakNev'].')';
+ }
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['munkakozosseg']); $i++) {
+ $TATA['munkakozosseg'][$ADAT['tagsagok']['munkakozosseg'][$i]['munkakozossegId']] = $ADAT['tagsagok']['munkakozosseg'][$i]['munkakozossegNev'];
+ }
+ foreach ( array('osztaly','osztalySzulo','osztalyTanar') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['tagsagok'][$_t]); $i++) {
+ $TATA[$_t][$ADAT['tagsagok'][$_t][$i]['osztalyId']] = $ADAT['tagsagok'][$_t][$i]['osztalyJel'];
+ }
+ }
+ }
+
+ function putUzeno($ADAT) {
+
+ if ($ADAT['uzenetek']===false) return false;
+
+ global $TATA,$skin,$IMG;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+
+ $kepMutat = $ADAT['kepMutat'];
+ $colspan=5;
+ $_colspan=1;
+
+ if ($ADAT['cimzettId']!='') $filterClear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId=&cimzettTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+ if ($ADAT['feladoId']!='') $filter2Clear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId=&feladoTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+
+ if ($ADAT['szalId']!='') {
+ putUzenetSzal($ADAT);
+ } elseif ($ADAT['mId']!='') {
+ putEgyUzenet($ADAT);
+ } else {
+
+ echo '<table class="uzeno" border="0" align="center" cellspacing="1">';
+// echo '<thead><tr><th class="dt" colspan="'.$_colspan.'">'._DATUM.', '._FELADO.$filter2Clear.'</th>
+// <th colspan="'.($_colspan+1).'" class="cimzett">'._CIMZETT.$filterClear.'</th><th>'._SZOVEG.'</th><th></th></tr></thead>';
+ echo '<thead><tr><th colspan="5"><a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno').'">'.'Üzenő'.'</a></th></tr>';
+ echo '<tfoot><tr><th colspan="'.$colspan.'">';
+ if ($skin=='ajax' && $ADAT['limits']!='') {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno');
+ echo _LEGFRISSEBB.' '.count($ADAT['uzenetek']).', ';
+ echo '<a href="'.$href.'" >'._MINDMUTAT.'</a>';
+ } else {
+ echo _OSSZESEN.': '.intval($ADAT['limits']['max']);
+ }
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ $D = $ADAT['uzenetek'][$i];
+ $_class = array();
+ $_class[] = ($D['flag']==1) ? 'olvasott':'uj';
+ $_class[] = $D['cimzettTipus'];
+ if ($D['cimzettId']==0) $_class[] = 'asterix';
+ echo '<tr class="'.implode(' ',$_class).'">';
+
+ echo '<td class="felado">';
+ if ($kepMutat && ($_f = putFace($D['feladoId'],$D['feladoTipus'],false,false))) {
+ echo '<div class="face" style="margin-right:4px; display:table-cell;">'.$_f.'</div>';
+ }
+ echo '<div class="nev--container">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus']).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a><br/>';
+ echo '<span class="dt">'._dt($D['dt']).'</span>';
+ echo '</div>';
+ echo '</td>';
+ echo '<th style="text-align: center; color:white;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]);
+ echo '</th>';
+ echo '<td class="cimzett">';
+/*
+ if ($kepMutat && ($_f=putFace($D['cimzettId'],$D['cimzettTipus'],false,false))) {
+ echo '<div class="face" style="display:table-cell">';
+ echo $_f;
+ echo '</div>';
+ }
+*/ echo '<div class="nev--container">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'],array('sessionID','policy','lang')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ //echo '</a>';
+ echo '</div>';
+ echo '</td>';
+
+ echo '<td class="uzenet">';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ $href_szal = href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$D['feladoId'].'_'.$D['feladoTipus'].'_'.$D['cimzettId'].'_'.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+
+ // $D['txt'] = '<a href="'.$href_szal.'">'.nl2br(htmlspecialchars($D['txt'])).'</a>';
+ $D['txt'] = makelinksclickable(nl2br(supertext($D['txt'])));
+ echo (mb_substr($D['txt'],0,2000,'UTF-8'));
+ if (mb_strlen($D['txt'],'UTF-8')>2000) {
+ echo ' <a class="more" href="'.$href.'">...</a>';
+ } else {
+ //echo ' <a class="more" href="'.$href.'"><span class="icon-return-key"></span></a>';
+ }
+
+ echo '</td>';
+
+ echo '<td class="uzenoEszkozok">';
+ if (__UZENOADMIN) {
+ } elseif ($D['flag']!=1) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.(1).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a href="'.$href.'"><span class="icon-check"></span></a><br/>';
+ }
+
+ echo ' <a href="'.$href_szal.'"><span class="icon-share-alt"></span></a><br/>';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ if ($skin=='ajax') {
+ echo '<tbody><tr><th style="height: 30px;vertical-align:middle;" colspan="'.$colspan.'">';
+ if ($ADAT['limits']['max']>$i) echo '<div class="_dotHolder"><a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno').'"><div class="_dot"></div> <div class="_dot"></div> <div class="_dot"></div></a></div>';
+ echo '</th></tr></tbody>';
+ }
+ echo '</table>';
+
+ if ($skin!='ajax') {
+ _putLapozo($ADAT['limits'],'index.php?page=naplo&sub=uzeno&f=uzeno&feladoTipus='.$ADAT['feladoTipus'].'&feladoId='.$ADAT['feladoId'].'&cimzettTipus='.$ADAT['cimzettTipus'].'&cimzettId='.$ADAT['cimzettId']);
+ } else {
+ }
+
+ }
+
+ }
+
+ function putUzeno_DEPRECATED($ADAT) {
+
+ if ($ADAT['uzenetek']===false) return false;
+
+ global $TATA,$skin,$IMG;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+
+ $kepMutat = $ADAT['kepMutat'];
+// $kepMutat=false;
+ $colspan=5;
+ $_colspan=1;
+/* if ($kepMutat) {
+ $colspan+=2;
+ $_colspan++;
+ }
+*/ // Üzenetek
+ if ($ADAT['szalId']!='') putUzenetSzal($ADAT);
+ elseif ($ADAT['mId']!='') putEgyUzenet($ADAT);
+ else {
+
+ if ($ADAT['cimzettId']!='') $filterClear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId=&cimzettTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+ if ($ADAT['feladoId']!='') $filter2Clear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId=&feladoTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+
+ echo '<table class="uzeno" border="0" align="center" cellspacing="1">';
+ echo '<thead><tr><th class="dt" colspan="'.$_colspan.'">'._DATUM.', '._FELADO.$filter2Clear.'</th>
+ <th colspan="'.($_colspan+1).'" class="cimzett">'._CIMZETT.$filterClear.'</th><th>'._SZOVEG.'</th><th></th></tr></thead>';
+ echo '<tfoot><tr><th colspan="'.$colspan.'">';
+ if ($skin=='ajax' && $ADAT['limits']!='') {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno');
+ echo _LEGFRISSEBB.' '.count($ADAT['uzenetek']).', ';
+ echo '<a href="'.$href.'" >'._MINDMUTAT.'</a>';
+ } else {
+ echo _OSSZESEN.': '.intval($ADAT['limits']['max']);
+ }
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ $D = $ADAT['uzenetek'][$i];
+ $_class = array();
+ $_class[] = ($D['flag']==1) ? 'olvasott':'uj';
+ $_class[] = $D['cimzettTipus'];
+ if ($D['cimzettId']==0) $_class[] = 'asterix';
+ echo '<tr class="'.implode(' ',$_class).'">';
+ echo '<td class="felado">';
+ if ($kepMutat && ($_f = putFace($D['feladoId'],$D['feladoTipus'],false,false))) {
+ echo '<div class="face" style="margin-right:4px; display:table-cell;">'.$_f.'</div>';
+ }
+ echo '<div class="nev--container">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus']).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a><br/>';
+ echo '<span class="dt">'._dt($D['dt']).'</span>';
+ echo '</div>';
+ echo '</td>';
+ echo '<th style="text-align: center; color:white;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]);
+ echo '</th>';
+ echo '<td class="cimzett">';
+ if ($kepMutat && ($_f=putFace($D['cimzettId'],$D['cimzettTipus'],false,false))) {
+ echo '<div class="face" style="display:table-cell">';
+ echo $_f;
+ echo '</div>';
+ }
+ echo '<div class="nev--container">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'],array('sessionID','policy','lang')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ //echo '</a>';
+ echo '</div>';
+ echo '</td>';
+
+ echo '<td class="uzenet">';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ $href_szal = href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$D['feladoId'].'_'.$D['feladoTipus'].'_'.$D['cimzettId'].'_'.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+
+ $D['txt'] = '<a href="'.$href_szal.'">'.nl2br(htmlspecialchars($D['txt'])).'</a>';
+ echo (mb_substr($D['txt'],0,2000,'UTF-8'));
+ if (mb_strlen($D['txt'],'UTF-8')>2000) {
+ echo ' <a class="more" href="'.$href.'">...</a>';
+ } else {
+ //echo ' <a class="more" href="'.$href.'"><span class="icon-return-key"></span></a>';
+ }
+
+ echo '</td>';
+
+ echo '<td>';
+ if (__UZENOADMIN) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+ } elseif ($D['flag']!=1) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.(1).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a href="'.$href.'"><span class="icon-check"></span></a>';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ if ($skin!='ajax') _putLapozo($ADAT['limits'],'index.php?page=naplo&sub=uzeno&f=uzeno&feladoTipus='.$ADAT['feladoTipus'].'&feladoId='.$ADAT['feladoId'].'&cimzettTipus='.$ADAT['cimzettTipus'].'&cimzettId='.$ADAT['cimzettId']);
+
+ }
+
+ }
+
+
+
+
+ function _szerepNev($tipus,$id) {
+ global $TATA;
+ if ($id==0 && defined('_TP'.strtoupper($tipus))) return '&laquo;'.constant('_TP'.strtoupper($tipus)).'&raquo;';
+ elseif($id==0 and $tipus=='') return '&laquo;admin&raquo;';
+ else return ($TATA[$tipus][$id]!='') ? $TATA[$tipus][$id] : '-n/a-' ;
+ }
+
+ function putUzenoUzenet($ADAT) {
+
+ if (__SZEREP=='') return;
+
+ global $TATA;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+ $feladoId = (__SZEREP=='admin')? 0:setUzenoFeladoId();
+ $KEYS = array_keys($ADAT['tagsagok']);
+// if (is_null($ADAT['replyTipus'])) $ADAT['replyTipus']=$KEYS[0];
+
+ if ($ADAT['feladoId']=='' || $ADAT['mId']>0) {
+
+ formBegin(array('method'=>'post','action'=>href('index.php?page=naplo&sub=uzeno&f=postas&mId='.$ADAT['mId']), 'id'=>'uzenoKereso', 'class'=>'onLoadUpdate'));
+ formEnd();
+
+ } else { /* RÉGI UI */
+
+ }
+
+ }
+
+ function putUzenetSzal($ADAT) {
+ global $IMG;
+ $U=$ADAT['uzenetek'];
+
+ list($s1,$s2,$s3,$s4) = explode('_',$ADAT['szalId']);
+
+ echo '<table id="uzenetek" class="uzenetSzal '.$s4.'" align="center" cellspacing="1">';
+ echo '<thead><tr><th>'._DATUM.'</th><th colspan="2">'._FELADO.'</th><th>'._UZENET.'</th></tr></thead>';
+ echo '<tfoot><tr><th>'.'</th><th colspan="2">'.'</th><th>'.'</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i=0; $i<count($U); $i++) {
+ $D = $U[$i];
+ $_meclass = (__MEID==$D['feladoId'] && __SZEREP==$D['feladoTipus'])? 'uzenetSajat':'uzenetPartner';
+ echo '<tr class="'.$_meclass.' '.$D['feladoTipus'].'" id="mId_'.$D['mId'].'">';
+ echo '<td class="uzenetDt">';
+ //echo $U[$i]['mId'];
+ echo _dt($U[$i]['dt']);
+ echo '</td>';
+ echo '<th style="color:white; width:20px;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['feladoTipus']]);
+ echo '</th>';
+ echo '<td class="uzenetSzerep">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['feladoId'].'&cimzettTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a>';
+ echo '</td><td class="uzenet">';
+ echo '<div>'.makelinksclickable(nl2br(supertext($U[$i]['txt']))).'</div>';
+ echo '</td></tr>';
+ }
+ echo '</tbody></table>';
+ }
+
+ function putEgyUzenet($ADAT) {
+
+ global $IMG;
+ //--FIXME
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ if ($ADAT['uzenetek'][$i]['mId']==$ADAT['mId']) {
+ $D = $ADAT['uzenetek'][$i];
+ break;
+ }
+ }
+ echo '<table border="0" cellspacing="1" align="center" class="uzeno egyUzenet">';
+ echo '<thead><tr><th>';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&mId=',array('sessionID','lang','policy'));
+ //echo '<a class="more" href="'.$href.'"><span class="icon-inbox-box"></span></a>';
+
+ $_class = array('more');
+ if ($D['flag']==1) {
+ $_class[] = 'uj';
+ $_flag=0;
+ } else {
+ $_flag=1;
+ $_class[] = 'olvasott';
+ }
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.($_flag).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="'.implode(' ',$_class).'" href="'.$href.'"><span class="icon-check"></span></a>';
+ echo '</th><th>'._DATUM.'</th><th>'._FELADO.'</th><th colspan="2">'._CIMZETT.'</th></tr></thead>';
+ echo '<tbody>';
+
+ $_class = array();
+ $_class[] = $D['cimzettTipus'];
+ echo '<tr class="'.implode(' ',$_class).'">';
+ echo '<td colspan="2">'._dt($D['dt']).'</td>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['feladoId'].'&cimzettTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a>';
+ echo '</td>';
+ echo '<th>'.(($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]).'</th>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ echo '</a>';
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="5" class="content">';
+ echo makelinksclickable(nl2br(supertext($U[$i]['txt']))); // echo nl2br(htmlspecialchars($D['txt']));
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+ function _putLapozo($LIMITS,$base='index.php?page=naplo&sub=uzeno&f=uzeno') {
+
+ $limit = intval($LIMITS['limit']);
+ $darab = intval($LIMITS['max']);
+ $mutato = intval($LIMITS['mutato']);
+ $tol = ($mutato-5);
+ $ig = ($mutato+5);
+ if ($tol<1) $tol=1;
+ if ($limit==0) $limit=1;
+ if ($ig>ceil($darab/$limit)) $ig=ceil($darab/$limit);
+ echo '<table class="lapozo" align="center" cellspacing="0" cellpadding="0">';
+ echo '<tr><td>';
+ echo '<table align="right" cellspacing="1" cellpadding="1">';
+ echo '<tr>';
+ echo '<th class="title">'._LAPOZO.'</th>';
+ if ($tol>1) {
+ echo '<td class="nav"><a href="'.href($base.'&mutato=1').'">1</a></td>';
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.($tol-1)).'">&lt;</a></td>';
+ }
+ for ($i=$tol; $i<=$ig; $i++) {
+ if ($i==$mutato) echo '<td class="aktiv">';
+ else echo '<td>';
+ echo '<a href="'.href($base.'&mutato='.$i).'">';
+ echo $i;
+ echo '</a>';
+ echo '</td>';
+ }
+ if ($ig<ceil($darab/$limit)) {
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.$i).'">&gt;</a></td>';
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.ceil($darab/$limit)).'">'.ceil($darab/$limit).'</a></td>';
+ }
+ echo '</tr>';
+ echo '</table>';
+ echo '</td></tr>';
+ echo '</table>'."\n";
+
+ }
+
+ function _dt($dt) {
+ return superdate($dt); // date('Y.m.d. H:i',strtotime($dt));
+ }
+
+
+?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/garfield.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/garfield.gif
new file mode 100644
index 00000000..fb86107d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/garfield.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/kutya.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/kutya.gif
new file mode 100644
index 00000000..fafc80cf
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/kutya.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/majom.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/majom.gif
new file mode 100644
index 00000000..b755ec47
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/majom.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/nyuszi.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/nyuszi.gif
new file mode 100644
index 00000000..a6aec1eb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/nyuszi.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/pingvin.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/pingvin.gif
new file mode 100644
index 00000000..f594b832
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/pingvin.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/smiley.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/smiley.gif
new file mode 100644
index 00000000..cc8d1d84
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/smiley.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/tux-hard.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/tux-hard.gif
new file mode 100644
index 00000000..849f1eeb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/anim/tux-hard.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/cr.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/cr.png
new file mode 100644
index 00000000..af1327bd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/cr.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/fel.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/fel.gif
new file mode 100644
index 00000000..75f4ecc0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/fel.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/adatok.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/adatok.gif
new file mode 100644
index 00000000..ea7c271a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/adatok.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/nevsor.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/nevsor.gif
new file mode 100644
index 00000000..cbb71a41
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/flipper/nevsor.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/csere.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/csere.gif
new file mode 100644
index 00000000..f8473beb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/csere.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/kez.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/kez.gif
new file mode 100644
index 00000000..c10fb1e6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/kez.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif
new file mode 100644
index 00000000..9944bf0f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/ora.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/ora.gif
new file mode 100644
index 00000000..83150a51
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/helyettesites/ora.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/change.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/change.png
new file mode 100644
index 00000000..3d2ede90
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/change.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif
new file mode 100644
index 00000000..aef9774c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/green.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/green.gif
new file mode 100644
index 00000000..b7ff93ad
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/green.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/h.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/h.gif
new file mode 100644
index 00000000..114e8915
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/h.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/i.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/i.gif
new file mode 100644
index 00000000..1ebdce34
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/i.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/pin.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/pin.gif
new file mode 100644
index 00000000..2b7ace0f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/pin.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif
new file mode 100644
index 00000000..cbfe111a
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red.gif
new file mode 100644
index 00000000..ff9599e7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/red.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/sum.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/sum.gif
new file mode 100644
index 00000000..92d701f3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/sum.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif
new file mode 100644
index 00000000..7f98aab5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif
new file mode 100644
index 00000000..53b28ec8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow.gif
new file mode 100644
index 00000000..414d28eb
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hianyzas/yellow.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif
new file mode 100644
index 00000000..c5248ef9
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg
new file mode 100644
index 00000000..b108abfd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<svg width="95" height="125" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <linearGradient id="linearGradient3703">
+ <stop stop-color="#e4bc98" offset="0" id="stop3705"/>
+ <stop stop-color="#f6daaa" stop-opacity="0" offset="1" id="stop3707"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3666">
+ <stop stop-color="#363433" offset="0" id="stop3668"/>
+ <stop stop-color="#363433" stop-opacity="0" offset="1" id="stop3670"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3652">
+ <stop stop-color="#ffffff" offset="0" id="stop3654"/>
+ <stop stop-color="#ffffff" stop-opacity="0" offset="1" id="stop3656"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3642">
+ <stop stop-color="#f6daaa" offset="0" id="stop3644"/>
+ <stop stop-color="#e4bc98" offset="1" id="stop3646"/>
+ </linearGradient>
+ <linearGradient xlink:href="#linearGradient3642" id="linearGradient3648" y2="0.938928" x2="0.098695" y1="0.78993" x1="0.214359"/>
+ <linearGradient xlink:href="#linearGradient3666" id="linearGradient3672" y2="0.216444" x2="0.233001" y1="0.231275" x1="0.398698"/>
+ <radialGradient gradientTransform="matrix(0.58653594,0.29353285,-1.1940084,2.3858619,93.617419,-112.22316)" gradientUnits="userSpaceOnUse" xlink:href="#linearGradient3703" id="radialGradient3711" fy="66.878647" fx="31.249113" r="9.789615" cy="66.878647" cx="31.249113"/>
+ <radialGradient gradientTransform="matrix(1.5765759,0,0,1.5765759,-45.978021,-40.844055)" gradientUnits="userSpaceOnUse" xlink:href="#linearGradient3652" id="radialGradient3919" fy="69.120766" fx="79.978813" r="5.29661" cy="69.120766" cx="79.978813"/>
+ </defs>
+ <g>
+ <title>background</title>
+ <rect fill="none" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
+ </g>
+ <g>
+ <title>Layer 1</title>
+ <path fill="#363433" fill-rule="nonzero" id="path3724" d="m34.9375,94.75c-22.3905,0 -24.33147,21.92107 -24.5,26.25l47.1875,0c0.09187,-5.02716 -0.7998,-26.25 -22.6875,-26.25z"/>
+ <path fill="#f6daaa" fill-rule="nonzero" stroke="#363433" stroke-width="1.3" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3606" d="m74.74841,58.1303c0.20483,12.12976 -14.84358,-5.27591 -12.91049,-12.57945c1.27386,-1.25011 2.55721,-2.33632 4.75797,-2.47831c1.81085,0.16982 6.66383,8.11652 8.15252,15.05776z"/>
+ <path fill="none" stroke="#6d6e6e" stroke-width="0.5" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3772" d="m42.7897,47.0984c8.40407,-21.50266 4.65092,-41.92225 -2.9253,-43.92934"/>
+ <path fill="url(#linearGradient3648)" fill-rule="nonzero" stroke="#363433" stroke-width="1.3" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3610" d="m42.27357,46.70948c-12.01865,1.50366 -14.09724,11.97922 -13.07601,15.79052c3.37953,12.00565 4.96558,20.16235 5.07316,33.86106c2.04869,2.16869 7.75781,4.61889 11.28013,1.09657c-1.08005,-8.15419 5.71912,-10.48873 16.02224,-9.73252c12.25622,0.89956 28.07204,-2.00196 28.07204,-13.63877c-0.96547,-7.33324 -9.43194,-12.77123 -22.5768,-20.32575"/>
+ <path fill="none" stroke="#6d6e6e" stroke-width="0.5" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3774" d="m45.50502,45.13214c-0.44856,-9.9526 22.13369,-28.29049 29.96215,-19.00724"/>
+ <path fill="#f6daaa" fill-rule="nonzero" id="path3608" d="m37.20869,52.43644c12.43221,-15.31097 23.77944,-17.22818 32.1769,8.14354"/>
+ <path fill="url(#radialGradient3919)" id="path3917" d="m77.1875,60.3125c-3.16571,1.19139 -5.40625,4.23013 -5.40625,7.8125c0,4.61186 3.70064,8.34375 8.3125,8.34375c3.78316,0 6.97468,-2.51971 8,-5.96875c-1.11342,-2.12732 -2.92816,-4.16211 -5.40625,-6.21875c-1.57493,-1.30708 -3.42947,-2.61519 -5.5,-3.96875z"/>
+ <path fill="#363433" fill-rule="nonzero" stroke-width="0.5" id="path3660" d="m43.125,84.9375c-0.50127,0 -1.07976,0.91806 -0.1875,0.84375c4.50247,-0.37497 8.84544,-0.2821 12.59375,2.34375l0.34375,-0.0625l0.46875,-0.59375l0.10101,-0.15798c-4.10239,-2.61364 -8.62852,-2.84634 -13.31976,-2.37327z"/>
+ <path fill="#ffffff" fill-rule="nonzero" stroke="url(#linearGradient3672)" stroke-width="0.75" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3664" d="m48.50123,66.24609c-0.90941,-0.90941 -6.10115,-17.07646 2.80895,-19.61584c5.70887,-1.62704 12.54666,10.92054 12.54666,16.15147c0,5.23093 -10.67631,7.73704 -15.35561,3.46437z"/>
+ <path fill="#343231" id="path3674" d="m57.086191,54.095706a3.946284,5.619599 0 1 1 -7.892584,-1.480423a3.946284,5.619599 0 1 1 7.892584,1.480423z"/>
+ <path fill="#ffffff" id="path3676" d="m53.894518,51.971913a1.093935,1.832152 0 1 1 -2.18787,-1.057158a1.093935,1.832152 0 1 1 2.18787,1.057158z"/>
+ <path fill="#ffffff" id="path3678" d="m52.346494,56.612357a-0.620422,0.519077 0 1 1 1.240844,-0.419561a-0.620422,0.519077 0 1 1 -1.240844,0.419561z"/>
+ <path fill="url(#radialGradient3711)" fill-rule="nonzero" stroke-width="0.75" id="path3680" d="m42.875,47.28125l-0.3125,0.03125c-0.55437,0.4743 -0.58559,0.2956 -0.53125,0.0625c-0.10627,0.01494 -0.20794,0.04613 -0.3125,0.0625c-0.10727,0.12235 -0.23167,0.25375 -0.40625,0.46875l-0.3125,0.375l-0.3125,0.125l0.3125,-0.375c0.25028,-0.30823 0.34061,-0.44524 0.375,-0.53125c-0.08386,0.01462 -0.16727,0.01571 -0.25,0.03125c-0.31082,0.20871 -0.57292,0.43266 -0.21875,0.0625c-4.93692,0.98924 -7.85,3.60896 -9.5,6.46875c-1.79758,3.11558 -2.0296,6.58607 -1.59375,8.25c0.0019,0.0073 -0.0019,0.02405 0,0.03125c3.3491,11.90194 4.95982,20.14511 5.09375,33.65625c0.93551,0.92986 2.68669,2.00812 4.59375,2.40625c1.25809,0.26265 2.52269,0.24158 3.6875,-0.21875c0.69523,-0.71024 1.18012,-1.7638 1.6875,-2.9375c0.18979,-3.03752 1.6676,-5.26313 4.125,-6.5625c0.01177,-0.0062 0.01944,-0.02506 0.03125,-0.03125l-6.15625,-41.375z"/>
+ <path fill="#413f3e" id="path3776" d="m41.03292,2.942534a1.564799,1.564799 0 1 1 -3.129599,0a1.564799,1.564799 0 1 1 3.129599,0z"/>
+ <path fill="#413f3e" id="path3778" d="m77.049869,26.181411a1.564799,1.564799 0 1 1 -3.129599,0a1.564799,1.564799 0 1 1 3.129599,0z"/>
+ <path fill="#ffffff" id="path3848" d="m33.87537,95.28126c-11.57618,-0.31415 -19.04482,11.3854 -18.2099,11.80571c1.38697,0.30582 2.87114,-2.98591 8.693,-7.89252c2.63932,-2.22439 9.62232,-2.97599 9.52,-3.75697c-0.0018,-0.05349 -0.00006,-0.10397 -0.0031,-0.15622z"/>
+ <path fill="#e67e71" fill-rule="nonzero" id="path3735" d="m33.96875,98.59375c-12.30493,5.40077 -16.01019,13.99935 -16.125,22.40625l38.46875,0c-0.0033,-6.52287 -0.38099,-15.15798 -9.8125,-21.90625c-2.23336,1.96545 -5.12015,2.2846 -7.53125,1.78125c-1.947,-0.40647 -3.6793,-1.25647 -5,-2.28125z"/>
+ <path fill="#363433" fill-rule="nonzero" id="path3953" d="m69.39063,60.59375c-1.62614,-6.45473 -3.92993,-11.22015 -6.42188,-14.4375c-2.49195,-3.21735 -5.22022,-4.99518 -8.09375,-5.40625c-2.87353,-0.41107 -5.83506,0.52056 -8.84375,2.5c-3.00869,1.97944 -6.8092,6.28795 -8.82812,9.1875c3.33781,-3.31844 6.48148,-6.45037 9.35937,-8.34375c2.87789,-1.89338 5.62051,-2.71097 8.1875,-2.34375c2.56699,0.36722 5.0203,1.9195 7.40625,5c2.38595,3.0805 4.9899,7.59699 7.23438,13.84375z"/>
+ </g>
+</svg> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/io/kreta.svg b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/io/kreta.svg
new file mode 100644
index 00000000..e111fa54
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/io/kreta.svg
@@ -0,0 +1,21 @@
+<svg width="900" height="400" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
+ <metadata>Created by potrace 1.10, written by Peter Selinger 2001-2011</metadata>
+
+ <g>
+ <title>background</title>
+ <rect fill="none" id="canvas_background" height="402" width="902" y="-1" x="-1"/>
+ </g>
+ <g>
+ <title>Layer 1</title>
+ <g id="svg_1" fill="#000000" transform="translate(0,399) scale(0.10000000149011612,-0.10000000149011612) ">
+ <path fill="#30a8cb" id="svg_2" d="m4080,3903c0,-12 14,-42 30,-66c17,-25 30,-48 30,-52c0,-3 22,-52 49,-108c169,-353 221,-466 221,-482c0,-18 35,-27 86,-23l39,3l97,190c54,105 100,197 103,205c4,8 13,26 20,40c7,14 21,41 31,60c9,19 21,42 25,50c5,8 19,35 32,60c12,25 35,64 51,88c16,23 26,45 23,48c-3,3 -193,7 -421,7l-416,2l0,-22zm644,-114c8,-32 4,-45 -39,-125c-26,-49 -54,-102 -62,-119c-14,-30 -22,-45 -70,-137c-16,-30 -35,-50 -55,-59c-30,-12 -32,-11 -60,21c-15,19 -28,38 -28,42c0,4 -27,63 -59,130c-33,68 -69,153 -82,190c-34,103 -41,100 225,96l221,-3l9,-36z"/>
+ <path fill="#30a8cb" id="svg_3" d="m834,2928c-6,-10 -10,-1908 -4,-1909c3,0 88,-1 189,-1l185,-1l-3,360l-3,360l39,39c21,21 51,55 66,75c37,49 65,56 79,21c19,-48 68,-146 104,-207c19,-33 38,-70 44,-82c5,-11 14,-24 19,-28c6,-3 11,-13 11,-22c0,-9 6,-24 14,-32c7,-9 29,-45 48,-81c20,-36 45,-81 56,-100c11,-19 30,-53 42,-75c12,-22 35,-62 50,-90c15,-27 38,-69 50,-92l22,-43l172,0c94,0 195,-3 224,-6c47,-6 52,-5 52,13c0,11 -15,40 -33,64c-18,24 -37,51 -40,59c-4,8 -16,29 -27,45c-11,17 -24,39 -29,50c-5,11 -21,37 -35,58c-14,21 -26,40 -26,44c0,3 -33,60 -73,127c-40,66 -76,128 -80,136c-4,8 -16,29 -27,45c-11,17 -24,41 -30,54c-6,13 -21,38 -33,55c-26,36 -43,64 -55,91c-15,32 -152,257 -173,284c-27,34 -24,44 24,93c44,46 100,108 338,373c79,88 176,193 216,234c92,93 94,106 12,97c-34,-3 -148,-6 -254,-6l-192,0l-114,-127c-63,-71 -118,-133 -124,-139c-5,-7 -35,-38 -65,-70c-70,-74 -167,-188 -204,-237c-15,-21 -36,-46 -47,-56c-20,-18 -20,-19 6,-25c14,-4 31,-3 38,1c40,24 129,98 152,126c15,17 73,81 129,142c276,299 272,296 395,293c45,-1 84,-4 86,-7c10,-17 -30,-90 -80,-144c-31,-34 -77,-86 -103,-115c-26,-30 -66,-75 -89,-100c-168,-187 -173,-194 -189,-248c-9,-33 -13,-67 -9,-86c10,-44 75,-175 113,-227c18,-24 32,-47 32,-51c0,-8 61,-112 78,-133c5,-7 23,-37 39,-67c16,-30 36,-66 44,-80c20,-33 129,-215 151,-255c32,-55 76,-150 79,-170c6,-37 -9,-45 -81,-45c-75,0 -120,12 -120,33c0,7 -13,26 -30,42c-16,16 -30,34 -30,41c0,7 -6,19 -12,26c-7,7 -33,51 -56,98c-24,47 -62,117 -85,155c-22,39 -57,100 -76,137c-65,121 -120,203 -165,247c-36,36 -51,43 -87,45c-37,2 -51,-4 -100,-40c-54,-41 -100,-99 -119,-149c-5,-13 -10,-140 -11,-282c-1,-285 -7,-320 -53,-342c-43,-20 -116,-4 -133,29c-10,20 -13,194 -12,819l1,794l21,33c21,32 26,34 77,34c83,0 87,-10 95,-259c4,-130 9,-173 24,-206c21,-48 36,-61 47,-43c10,16 23,590 13,601c-8,11 -359,15 -365,5z"/>
+ <path fill="#30a8cb" id="svg_4" d="m2414,2928c-6,-10 -6,-1900 0,-1906c3,-2 87,-4 188,-4l183,0l1,383l1,384l84,3c103,4 126,-2 134,-31c8,-27 10,-33 84,-191c34,-70 61,-132 61,-136c0,-4 19,-45 43,-91c23,-46 65,-136 92,-199c27,-63 53,-118 58,-121c4,-3 63,-4 130,-1c67,2 152,0 190,-5c53,-8 70,-7 79,4c8,10 7,18 -4,31c-13,15 -138,265 -138,276c0,2 -22,51 -49,108c-99,208 -131,279 -131,287c0,4 -13,27 -30,49c-16,23 -30,48 -30,56c0,7 17,22 38,31c63,30 138,92 184,152c91,122 112,188 112,348c0,154 -23,228 -106,340c-62,85 -157,160 -240,191c-105,38 -166,43 -551,46c-209,2 -381,0 -383,-4zm764,-93c34,-4 65,-11 68,-16c3,-5 14,-9 25,-9c25,0 115,-45 153,-77c46,-38 131,-147 145,-184c7,-19 20,-51 29,-72c14,-33 14,-55 5,-156c-10,-111 -12,-122 -51,-187c-22,-38 -81,-111 -131,-161c-50,-51 -98,-107 -107,-124c-15,-30 -15,-36 2,-93c9,-34 21,-65 25,-71c4,-5 23,-48 42,-95c20,-47 60,-137 90,-200c105,-223 112,-245 81,-270c-23,-20 -97,-16 -135,6c-33,19 -78,98 -163,289c-13,28 -44,93 -69,145c-25,52 -55,116 -65,141c-26,61 -117,154 -161,162c-131,27 -231,-31 -251,-146c-4,-23 -8,-151 -9,-285c-3,-293 -6,-307 -77,-318c-65,-9 -96,4 -111,46c-16,49 -16,1569 0,1620c16,47 30,54 112,60c102,7 480,4 553,-5z"/>
+ <path fill="#30a8cb" id="svg_5" d="m2835,2626c-113,-44 -126,-69 -128,-254c0,-78 4,-154 10,-177c13,-45 72,-105 102,-105c11,0 23,-5 26,-10c10,-16 309,-4 370,15c59,18 112,62 153,128c27,43 30,55 28,130c-1,64 -6,92 -24,127c-31,60 -91,108 -169,137c-56,20 -81,23 -201,22c-77,-1 -150,-6 -167,-13zm212,-76l151,0l44,-33c127,-97 117,-253 -23,-339c-21,-13 -64,-17 -229,-19l-204,-3l1,200c1,109 2,201 2,203c1,2 25,1 54,-3c28,-3 120,-6 204,-6z"/>
+ <path fill="#30a8cb" id="svg_6" d="m3853,2927c-2,-4 -4,-435 -4,-958l1,-950l626,0c344,0 628,2 631,4c8,9 5,359 -3,366c-5,3 -202,4 -439,1c-236,-4 -433,-5 -437,-3c-3,2 -6,101 -5,221l2,217l30,-3c82,-7 682,-17 694,-11c22,10 23,379 1,379c-34,1 -648,-3 -685,-4l-40,-1l0,183l0,184l449,1l448,2l1,184c0,103 -4,186 -9,188c-21,7 -1256,7 -1261,0zm1105,-94c28,-5 37,-14 59,-58l26,-53l-28,-34c-15,-18 -39,-37 -54,-41c-14,-4 -158,-7 -320,-7c-192,0 -313,-3 -347,-11c-62,-14 -120,-58 -140,-105c-16,-39 -20,-268 -5,-307c13,-34 76,-93 109,-102c15,-4 146,-10 292,-14c240,-5 268,-8 294,-25c27,-19 28,-23 23,-75c-3,-30 -12,-61 -20,-68c-26,-26 -90,-33 -325,-33c-187,0 -240,-3 -270,-16c-46,-19 -92,-62 -92,-85c0,-10 -4,-21 -10,-24c-6,-4 -10,-74 -10,-177l0,-171l37,-48c20,-27 50,-54 67,-61c22,-9 128,-13 381,-15l350,-2l23,-26c30,-35 31,-116 2,-145c-17,-17 -34,-20 -112,-20c-51,-1 -275,-1 -498,-1l-405,-1l-22,27c-13,14 -23,31 -24,38c0,7 0,318 0,692c1,374 1,689 0,700c0,11 0,61 1,110c2,100 22,150 63,158c33,6 917,6 955,0z"/>
+ <path fill="#30a8cb" id="svg_7" d="m5255,2929c-2,-3 -5,-88 -6,-190l-2,-184l269,-1l269,-1l1,-768l0,-769l183,0l183,0l2,769l1,769l262,-3c144,-1 266,0 270,2c4,3 6,89 3,191l-5,187l-713,2c-393,1 -715,-1 -717,-4zm1276,-100c30,-8 39,-16 53,-52c22,-58 21,-69 -14,-102l-31,-29l-167,-6c-183,-7 -202,-12 -259,-72c-31,-32 -32,-36 -40,-153c-4,-67 -7,-366 -6,-665c2,-554 0,-600 -35,-627c-9,-7 -37,-13 -64,-13c-63,0 -84,21 -93,92c-3,29 -8,330 -10,668c-2,338 -6,627 -8,643c-3,15 -5,31 -6,35c0,5 -25,25 -55,46l-54,37l-178,6c-176,5 -177,5 -200,32c-37,40 -40,69 -15,117c21,39 26,42 74,48c29,4 265,6 525,5c260,-1 476,1 479,5c7,7 36,3 104,-15z"/>
+ <path fill="#30a8cb" id="svg_8" d="m7262,2927c-7,-7 -44,-79 -83,-158c-38,-79 -74,-151 -79,-159c-10,-17 -180,-351 -363,-710c-376,-741 -403,-793 -429,-829c-21,-27 -23,-58 -6,-63c7,-3 37,0 68,5c30,5 119,7 197,4l143,-4l123,246c68,135 132,262 142,281c10,19 23,44 29,55c114,221 256,512 256,525c0,10 9,29 21,44c17,21 24,24 35,15c8,-6 14,-19 14,-28c0,-9 4,-21 8,-26c5,-6 17,-32 27,-60c10,-27 41,-99 70,-160c29,-60 65,-137 80,-170c15,-33 52,-112 81,-175c30,-63 67,-142 83,-175c15,-33 41,-89 58,-125c54,-113 90,-194 97,-217c9,-28 -2,-26 176,-24c80,1 166,-2 192,-7c25,-5 52,-6 59,-2c8,6 -17,67 -90,216c-57,115 -109,223 -116,239c-7,17 -41,89 -75,160c-34,72 -74,157 -90,190c-15,33 -49,105 -75,160c-26,55 -61,129 -77,165c-17,36 -35,72 -39,80c-5,8 -12,22 -15,30c-3,8 -26,58 -51,110c-24,52 -58,124 -75,160c-16,36 -34,72 -39,80c-5,8 -12,22 -15,30c-3,8 -18,42 -33,75c-16,33 -40,86 -55,117c-14,31 -30,68 -36,82c-7,19 -17,26 -37,26c-16,0 -37,3 -49,6c-11,3 -25,-1 -32,-9zm80,-174c8,-10 32,-54 53,-98c20,-44 44,-91 52,-105c8,-14 22,-43 32,-65c40,-87 146,-309 160,-335c27,-49 41,-79 41,-89c0,-6 36,-85 80,-175c44,-91 80,-169 80,-174c0,-5 16,-36 35,-68c19,-32 35,-62 35,-68c0,-5 9,-28 19,-50c11,-23 25,-52 30,-66c6,-14 15,-32 21,-40c5,-8 30,-60 56,-115c33,-69 47,-114 48,-145l1,-45l-55,-3c-30,-2 -72,1 -92,7c-31,10 -41,21 -68,74c-17,34 -38,73 -45,87c-26,49 -140,293 -274,590c-99,217 -139,282 -202,326c-26,18 -44,24 -59,19c-30,-10 -88,-63 -115,-105c-26,-41 -126,-229 -197,-370c-219,-435 -291,-568 -324,-599c-36,-33 -37,-33 -110,-29c-41,3 -76,7 -79,10c-8,8 16,68 71,184c30,62 54,115 54,120c0,4 6,15 14,23c11,13 125,233 368,716c8,17 24,48 36,70c67,133 122,249 122,261c0,7 6,17 14,21c7,4 23,28 35,53c32,68 86,167 100,184c18,21 44,20 63,-1z"/>
+ <path fill="#30a8cb" id="svg_9" d="m4435,730c-14,-22 -25,-43 -25,-47c0,-8 -112,-231 -234,-468c-37,-72 -74,-138 -83,-147c-8,-10 -13,-24 -10,-32c5,-13 16,-14 54,-8c61,9 677,9 718,0c60,-13 59,1 -2,123c-32,63 -84,170 -116,239c-32,69 -78,166 -103,217c-24,50 -44,96 -44,101c0,5 -9,21 -21,36c-17,21 -29,26 -65,26c-40,0 -46,-3 -69,-40zm100,-144c20,-20 135,-244 135,-263c0,-4 6,-14 13,-22c16,-19 53,-113 62,-157c10,-53 0,-55 -251,-54c-125,0 -231,3 -235,6c-20,12 -7,76 27,141c20,37 42,78 48,91c6,13 29,58 51,101c103,200 105,202 150,157z"/>
+ </g>
+ </g>
+</svg>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/le.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/le.gif
new file mode 100644
index 00000000..6ca503c6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/le.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/print.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/print.png
new file mode 100644
index 00000000..76cda839
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/print.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gold_box.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gold_box.gif
new file mode 100644
index 00000000..f0dc944c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gold_box.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif
new file mode 100644
index 00000000..5e9893fe
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/close.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/close.png
new file mode 100644
index 00000000..abbf64ca
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/close.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/updown.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/updown.png
new file mode 100644
index 00000000..9205820e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/tanmenet/updown.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toggle.png b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toggle.png
new file mode 100644
index 00000000..b4f54d39
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toggle.png
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toolSubmit.gif b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toolSubmit.gif
new file mode 100644
index 00000000..d120f8f4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/img/toolSubmit.gif
Binary files differ
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js
new file mode 100644
index 00000000..ff60f853
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js
@@ -0,0 +1,7 @@
+
+// Nekem ez Chromium alatt nem működik... De miért nem?
+
+ $(function() {
+// $('#regForm').submit();
+ });
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.js
new file mode 100644
index 00000000..d7f35a6e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/regisztracio.js
@@ -0,0 +1,7 @@
+
+ Event.observe(window, 'load', myPSFLoader, false);
+
+ function myPSFLoader(evt) {
+ // A regisztrációs form elküldése
+ $('regForm').submit();
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js
new file mode 100644
index 00000000..21b3f78e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js
@@ -0,0 +1,43 @@
+
+$(function() {
+
+ var startDateTextBox = $('#tolDt');
+ var endDateTextBox = $('#igDt');
+
+ startDateTextBox.datetimepicker('option', 'onSelect',
+ function (selectedDateTime) {
+ endDateTextBox.datetimepicker('option', 'minDate', startDateTextBox.datetimepicker('getDate') );
+ }
+ );
+ startDateTextBox.datetimepicker('option', 'onClose',
+ function(dateText, inst) {
+ if (endDateTextBox.val() != '') {
+ var testStartDate = startDateTextBox.datetimepicker('getDate');
+ var testEndDate = endDateTextBox.datetimepicker('getDate');
+ if (testStartDate > testEndDate)
+ endDateTextBox.datetimepicker('setDate', testStartDate);
+ } else {
+ endDateTextBox.val(dateText);
+ }
+ }
+ );
+ endDateTextBox.datetimepicker('option', 'onSelect',
+ function (selectedDateTime) {
+ startDateTextBox.datetimepicker('option', 'maxDate', endDateTextBox.datetimepicker('getDate') );
+ }
+ );
+ endDateTextBox.datetimepicker('option', 'onClose',
+ function(dateText, inst) {
+ if (startDateTextBox.val() != '') {
+ var testStartDate = startDateTextBox.datetimepicker('getDate');
+ var testEndDate = endDateTextBox.datetimepicker('getDate');
+ if (testStartDate > testEndDate)
+ startDateTextBox.datetimepicker('setDate', testEndDate);
+ } else {
+ startDateTextBox.val(dateText);
+ }
+ }
+ );
+
+});
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js
new file mode 100644
index 00000000..d25c0def
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js
@@ -0,0 +1,56 @@
+
+ Event.observe(window, 'load', myPSFLoader, false);
+
+ hideOlOl = function() {
+ $$('ol ol.negativ, ol ol.semleges, ol ol.pozitiv').each(
+ function(elem, index) {
+// Effect.BlindUp($(elem));
+ elem.hide();
+ }
+ );
+ }
+
+ blindUp = function(elem) {
+ //$$('ol ol.negativ, ol ol.semleges, ol ol.pozitiv').each(
+ $(elem).up('li').select('ol').each(
+ function(elem, index) {
+//alert('ITT');
+ if ($(elem).visible()) Effect.BlindUp($(elem), { duration: 0.5 });
+// elem.hide();
+ }
+ );
+ }
+
+ function sleep(milliseconds) {
+ var start = new Date().getTime();
+ while ((new Date().getTime() - start) < milliseconds) {}
+ }
+
+ function myPSFLoader(evt) {
+ hideOlOl();
+
+ Event.observe(document.body, 'click', function(event) {
+ var element = $(Event.element(event));
+
+ if (element.hasClassName('gomb')) {
+
+ blindUp(element);
+ if (element.hasClassName('negativ')) classNev='negativ';
+ else if (element.hasClassName('semleges')) classNev='semleges';
+ else if (element.hasClassName('pozitiv')) classNev='pozitiv';
+ $A(element.up('li').select('ol')).each(
+ function(elem, index) {
+ if ($(elem).hasClassName(classNev)) {
+ if (!$(elem).visible()) {
+ Effect.BlindDown($(elem), { duration: 0.5 });
+ $(elem).down('input').checked=true;
+ }
+ }
+ //$(elem).show();
+
+ }
+ );
+ }
+ })
+
+ }
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js
new file mode 100644
index 00000000..a3bd3b7e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js
@@ -0,0 +1,101 @@
+
+
+ $(function() {
+ $('body').bind('keydown', myKeyDown);
+ $('input.plusz').bind('click', function(event) {
+ var element = $(event.target);
+ var container = element.parents('table');
+ var openable = container.find('.openable').hide();
+ var onclickshow = container.find('.plusz').removeClass('selected');
+ var id = element[0].id;
+ if (id && id.substring(0,4) == 'show') {
+ var openable = '#'+id.charAt(4).toLowerCase()+ id.substring(5);
+ $(openable).show();
+ setTimeout(function() { // várni kell, hogy láthatóvá váljon a select, csak utána lehet fokuszt adni rá
+ $(openable+' select').focus();
+ }, 1);
+ }
+ element.addClass('selected');
+
+ });
+ $('input.add').bind('click', function(event) {
+ var selectElement = $(event.target).prev('select');
+ selectDiak(selectElement);
+ });
+ $("select.diakok option").bind('dblclick', function(event) {
+ var selectElement = $(event.target).closest('select');
+ selectDiak(selectElement);
+ });
+ $('#nevsor').click(function(event) {
+ elem = $(event.target);
+ if (elem.hasClass('removeLine')) {
+ elem.closest('tr').remove();
+ } else if (elem.hasClass('icon-remove-sign')) {
+ if (!confirm(elem.prop('title'))) {
+ event.preventDefault();
+ } else {
+ // töröl
+ $('#postDiakId').attr('name','torolDiakId').val(elem.find('input').val());
+ elem.closest('form').submit();
+ }
+ } else if (elem.hasClass('icon-ok-sign')) {
+ // jóváhagyást elutasít
+ $('#postDiakId').attr('name','elutasitDiakId').val(elem.closest('tr').find('input').val());
+ elem.closest('form').submit();
+ } else if (elem.hasClass('icon-minus-sign')) {
+ // jóváhagy
+ $('#postDiakId').attr('name','jovahagyDiakId').val(elem.closest('tr').find('input').val());
+ elem.closest('form').submit();
+ }
+ });
+ $('#nevsor td.osztaly').bind('click', function(event) {
+ elem = $(event.target);
+ _class = elem.text().replace('.','');
+ $('#nevsor tr').not('.'+_class).toggle();
+ });
+ });
+
+ myKeyDown = function(event) {
+
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if (charKeyCode==13) { // Enter
+ if (element.hasClass('diakok')) {
+ selectDiak(element);
+ event.preventDefault();
+ }
+ } else if (charKeyCode==27) { // Esc
+ $('form#nevsorForm .openable').hide();
+ $('form#nevsorForm #oEmpty').show();
+ } else if (charKeyCode==9) { // Tab
+ if (element.hasClass('diakok')) {
+ if ($('#osztalyok input.selected').nextAll('input:first').length) {
+ $('#osztalyok input.selected').nextAll('input:first').click();
+ } else {
+ $('#osztalyok input:first').click();
+ }
+ }
+ }
+ }
+
+ function selectDiak(selectElement) {
+
+ selectElement.find('option:selected').each(function(index, elem) {
+ if (!$("#nevsor input[value='" + $(elem).val() + "']").length) {
+ var sor='<tr class="ujDiak">'
+ +'<td class="sorsz"><input type="hidden" name="ujDiakId[]" value="'+$(elem).val()+'" /></td>'
+ +'<td><span class="icon-remove-sign removeLine"></span></td>'
+ +'<td class="nev">'+$(elem).text()+'</td>'
+ +'<td class="jelDt"></td>'
+ +'<td class="jovDt" colspan="2"></td>'
+ +'<tr>';
+ $(sor).insertBefore($('#submitRow'));
+// $(sor).appendTo($('#nevsor'));
+ }
+ });
+ }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js
new file mode 100644
index 00000000..b184d5dd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js
@@ -0,0 +1,7 @@
+$(function() {
+
+ $('form.esemeny th').click(function(event) {
+ $('form.esemeny tr').not('.aktualis').not(':first').toggle();
+ });
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js
new file mode 100644
index 00000000..3ba14772
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js
@@ -0,0 +1,89 @@
+/*
+ TODO: összes osztály kijelölése kattintásra
+*/
+
+
+ $(function() {
+ $('body').bind('keydown', myKeyDown);
+ $('body').bind('click',function(event) {
+ var element = $(event.target);
+ if (
+ $('#tanarLista').is(':visible')
+ && element.closest('#tanarLista').length == 0
+ && element.attr('id') != 'plusz'
+ ) {
+ $('#tanarLista').hide();
+ }
+ });
+ $('#osztalyLista li input').bind('change', function(event) {
+ var element = $(event.target);
+ if (element.is(':visible')) {
+ element.closest('li').toggleClass('uj');
+ }
+ });
+ $("#tanarok option").bind('dblclick', function(event) {
+ var elem = $(event.target);
+ if (!$("#esemenyTanar option[value='" + elem.val() + "']").length) {
+ $(elem).clone().addClass('uj').appendTo( $('#esemenyTanar'));
+ }
+ });
+ $('#esemenyTanar').bind('dblclick', function(event) {
+ $('#tanarLista').show();
+ $('#tanarok').focus();
+ });
+ $('#plusz').bind('click', function(event) {
+ if ($('#tanarLista').is(':visible')) {
+ selectTanar();
+ $('#tanarLista').hide();
+ $('#submitButton').focus();
+ } else {
+ $('#tanarLista').show();
+ $('#tanarok').focus();
+ }
+ });
+ $('#minusz').bind('click', function(event) {
+ $('#esemenyTanar option:selected').remove();
+ });
+ $('#add').bind('click', function(event) {
+ if ($('#tanarLista').is(':visible')) {
+ selectTanar();
+// $('#tanarLista').hide();
+// $('#submitButton').focus();
+ }
+ }); $('#closeTanarLista').bind('click', function(event) {
+ $('#tanarLista').hide();
+ });
+ $('#submitButton').bind('click',function(event) {
+ $('#esemenyTanar option').prop('selected','selected');
+ });
+ });
+
+ myKeyDown = function(event) {
+
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if (charKeyCode==13) { // Enter
+ if (element.attr('id') == 'tanarok') {
+ selectTanar();
+ }
+ } else if (charKeyCode==27) { // Esc
+ $('#tanarLista').hide();
+ } else if (charKeyCode==46) { // Del
+ if (element.attr('id') == 'esemenyTanar') {
+ $('#esemenyTanar option:selected').remove();
+ }
+ }
+ }
+
+ selectTanar = function() {
+ $('#tanarok option:selected').each(function(index, elem) {
+ if (!$("#esemenyTanar option[value='" + $(elem).val() + "']").length) {
+ $(elem).clone().addClass('uj').appendTo( $('#esemenyTanar'));
+ }
+ });
+ }
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js
new file mode 100644
index 00000000..bda10a84
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js
@@ -0,0 +1,177 @@
+
+$(function() {
+
+ kivalaszt = function(event) {
+ $('select#kivalasztott > option').prop('selected','selected');
+ }
+ mezoKivalasztas = function(event) {
+ optionAthelyezes('szabad','kivalasztott');
+ }
+ mezoTorles = function(event) {
+ optionAthelyezes('kivalasztott','szabad');
+ }
+ optionAthelyezes = function(fromId, toId) {
+ var toSel = $('#'+toId);
+ if (toSel.prop('selectedIndex') == -1) {
+ $('#'+fromId+' option:selected').prop('selected','').prependTo(toSel);
+ } else {
+ $('#'+fromId+' option:selected').prop('selected','').insertAfter($('#'+toId+' option:selected').first());
+ }
+ }
+ $('.onClickMezoSelect').bind('click', function(event) {
+ element = $(event.target);
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ idList = $('#'+element.attr('name')+'Lista').val().split(',');
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<idList.length; j++) {
+ $('#szabad option').each(function(index) {
+ if ($(this).val() == idList[j]) {
+ $(this).prop('selected', 'selected');
+ optionAthelyezes('szabad','kivalasztott');
+ return false;
+ }
+ });
+ }
+ });
+ includeCSS(
+ "skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css",
+ "skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css"
+ );
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js").done(function() {
+
+ $('#diakTabla').dataTable({
+ "oLanguage": {
+ "sSearch" : "Keresés",
+ "sLengthMenu": "Mutasson _MENU_ rekordot oldalanként",
+ "sZeroRecords": "Nincs találat!",
+ "sInfo": "Találatok _START_-tól _END_-ig az összesen _TOTAL_ rekordból",
+ "sInfoEmpty": "0-tól 0-ig a 0 rekordból",
+ "sInfoFiltered": "(szűrés nélül _MAX_ db rekord)",
+ "oPaginate": {
+ "sNext": "Következő oldal",
+ "sPrevious": "Előző oldal"
+ }
+ },
+ "sDom": 'Rlfrtip'
+ }).columnFilter();
+ });
+ })
+ });
+ $('#valaszt').bind('click', mezoKivalasztas);
+ $('#torol').bind('click', mezoTorles);
+ $('#exportOptions').bind('submit', kivalaszt);
+
+});
+
+/*
+includeJS('skin/classic/share/javascript/TableFilter/tablefilter_all_min.js');
+includeJS('skin/classic/share/javascript/TableFilter/sortabletable.js');
+includeJS('skin/classic/share/javascript/TableFilter/tfAdapter.sortabletable.js');
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+
+ // Mezőkiválasztó gombok kezelése
+ var FieldSelectObject = Class.create();
+ FieldSelectObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.element.observe('click',this.fieldSelect.bindAsEventListener(this));
+ },
+
+ fieldSelect: function(evt, extraInfo) {
+
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ this.list = $F($(this.element.getAttribute('name')+'Lista'));
+ this.idList = this.list.split(',');
+ this.options = $('szabad').options;
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<this.idList.length; j++) {
+ for (i=0; i<this.options.length; i++) {
+ attr = this.options[i].value;
+ this.options[i].selected = (attr == this.idList[j]);
+ }
+ optionAthelyezes('szabad','kivalasztott');
+ }
+
+ Event.stop(evt);
+ }
+ }
+
+ var onClickMezoSelectElements = new Array();
+ $$('.onClickMezoSelect').each(
+ function (elem, index) {
+ onClickMezoSelectElements.push(new FieldSelectObject(elem));
+ }
+ );
+
+ // A szűrés
+ if ($('diakTabla') != null) {
+ var lastRowIndex = tf_Tag(tf_Id('diakTabla'),"tr").length;
+ var table1Filters = {
+ base_path: 'skin/classic/share/javascript/TableFilter/',
+ single_search_filter: false,
+ sort: true,
+ sort_config: {sort_types: []},
+ alternate_rows: true,
+ on_keyup : true,
+ highlight_keywords : true,
+ mark_active_columns: true,
+ paging: false,
+ rows_counter: true,
+ rows_counter_text: 'Találatok száma: ',
+ input_watermark: 'Keresés...',
+ filters_row_index: 1,
+ remember_grid_values: true,
+ rows_always_visible: [lastRowIndex]
+//sort_config: {sort_types: ['Number','Number','String','String','String']},
+//sort_config: {sort_types: cellTypes},
+//extensions: {
+// name:['ColumnsResizer'],
+// src:['TFExt_ColsResizer/TFExt_ColsResizer.js'],
+// description:['Columns Resizing'],
+// initialize:[function(o){o.SetColsResizer();}]
+//},
+//col_resizer_all_cells: true,
+//editable: false,
+//selectable: true,
+//ezEditTable_config: {
+// default_selection: 'both',
+//}
+// col_1: "select",
+// col_2: "select",
+// btn: true
+ }
+ if (typeof(selIndex) !== 'undefined') for (i = 0; i < selIndex.length; i++) eval('table1Filters.col_'+selIndex[i]+' = "select";');
+ eval('table1Filters.col_'+cellTypes.length+' = "none";');
+ if (typeof(cellTypes) !== 'undefined') table1Filters.sort_config.sort_types = cellTypes;
+ var tf01 = setFilterGrid("diakTabla",1,table1Filters);
+ } // van diakTabla
+
+ Event.observe('valaszt', 'click', mezoKivalasztas);
+ Event.observe('torol', 'click', mezoTorles);
+ Event.observe('exportOptions', 'submit', kivalaszt);
+}
+
+
+/*
+// A filter cseréje!
+tf01.RemoveGrid();
+var table1Filters = {
+ single_search_filter: true,
+ sort: true,
+}
+tf01 = new TF("diakTabla",1,table1Filters);
+tf01.AddGrid();
+*/
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.js
new file mode 100644
index 00000000..bca1334e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/export/diakExport.js
@@ -0,0 +1,141 @@
+includeJS('skin/classic/share/javascript/TableFilter/tablefilter_all_min.js');
+includeJS('skin/classic/share/javascript/TableFilter/sortabletable.js');
+includeJS('skin/classic/share/javascript/TableFilter/tfAdapter.sortabletable.js');
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+ kivalaszt = function(event) {
+ $$('#kivalasztott option').each(
+ function(elem, index) {
+ elem.selected=true;
+ }
+ );
+ }
+ mezoKivalasztas = function(event) {
+ optionAthelyezes('szabad','kivalasztott');
+ }
+ mezoTorles = function(event) {
+ optionAthelyezes('kivalasztott','szabad');
+ }
+ optionAthelyezes = function(fromId, toId) {
+ var fromSel = $(fromId);
+ var toSel = $(toId);
+ // Áthelyezés
+ for (i = 0; i < fromSel.length; i++) {
+ if (fromSel.options[i].selected) {
+ var val = fromSel.options[i].value;
+ var txt = fromSel.options[i].innerHTML;
+ if (toSel.selectedIndex == -1) {
+ toSel.insert({bottom: new Element('option', {value: val}).update(txt)});
+ } else {
+ toSel.options[ toSel.selectedIndex ].insert({before: new Element('option', {value: val}).update(txt)});
+ }
+ }
+ }
+ // Törlés
+ for (i = fromSel.length-1; i >= 0; i--) {
+ if (fromSel.options[i].selected) {
+ fromSel.options[i].remove();
+ }
+ }
+ }
+
+
+ // Mezőkiválasztó gombok kezelése
+ var FieldSelectObject = Class.create();
+ FieldSelectObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.element.observe('click',this.fieldSelect.bindAsEventListener(this));
+ },
+
+ fieldSelect: function(evt, extraInfo) {
+
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ this.list = $F($(this.element.getAttribute('name')+'Lista'));
+ this.idList = this.list.split(',');
+ this.options = $('szabad').options;
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<this.idList.length; j++) {
+ for (i=0; i<this.options.length; i++) {
+ attr = this.options[i].value;
+ this.options[i].selected = (attr == this.idList[j]);
+ }
+ optionAthelyezes('szabad','kivalasztott');
+ }
+
+ Event.stop(evt);
+ }
+ }
+
+ var onClickMezoSelectElements = new Array();
+ $$('.onClickMezoSelect').each(
+ function (elem, index) {
+ onClickMezoSelectElements.push(new FieldSelectObject(elem));
+ }
+ );
+
+ // A szűrés
+ if ($('diakTabla') != null) {
+ var lastRowIndex = tf_Tag(tf_Id('diakTabla'),"tr").length;
+ var table1Filters = {
+ base_path: 'skin/classic/share/javascript/TableFilter/',
+ single_search_filter: false,
+ sort: true,
+ sort_config: {sort_types: []},
+ alternate_rows: true,
+ on_keyup : true,
+ highlight_keywords : true,
+ mark_active_columns: true,
+ paging: false,
+ rows_counter: true,
+ rows_counter_text: 'Találatok száma: ',
+ input_watermark: 'Keresés...',
+ filters_row_index: 1,
+ remember_grid_values: true,
+ rows_always_visible: [lastRowIndex]
+//sort_config: {sort_types: ['Number','Number','String','String','String']},
+//sort_config: {sort_types: cellTypes},
+//extensions: {
+// name:['ColumnsResizer'],
+// src:['TFExt_ColsResizer/TFExt_ColsResizer.js'],
+// description:['Columns Resizing'],
+// initialize:[function(o){o.SetColsResizer();}]
+//},
+//col_resizer_all_cells: true,
+//editable: false,
+//selectable: true,
+//ezEditTable_config: {
+// default_selection: 'both',
+//}
+// col_1: "select",
+// col_2: "select",
+// btn: true
+ }
+ if (typeof(selIndex) !== 'undefined') for (i = 0; i < selIndex.length; i++) eval('table1Filters.col_'+selIndex[i]+' = "select";');
+ eval('table1Filters.col_'+cellTypes.length+' = "none";');
+ if (typeof(cellTypes) !== 'undefined') table1Filters.sort_config.sort_types = cellTypes;
+ var tf01 = setFilterGrid("diakTabla",1,table1Filters);
+ } // van diakTabla
+
+ Event.observe('valaszt', 'click', mezoKivalasztas);
+ Event.observe('torol', 'click', mezoTorles);
+ Event.observe('exportOptions', 'submit', kivalaszt);
+}
+
+
+/*
+// A filter cseréje!
+tf01.RemoveGrid();
+var table1Filters = {
+ single_search_filter: true,
+ sort: true,
+}
+tf01 = new TF("diakTabla",1,table1Filters);
+tf01.AddGrid();
+*/
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js
new file mode 100644
index 00000000..efcdd115
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js
@@ -0,0 +1,42 @@
+$(function() {
+
+ $('table.elszamolas tr td.lekotott').hover(function(e) {
+ $(this).parent('tr').find('th.sum.lekotott').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('th.sum.lekotott').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tr td.fennmarado').hover(function(e) {
+ $(this).parent('tr').find('th.sum.fennmarado').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('th.sum.fennmarado').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tr th.sum.lekotott').hover(function(e) {
+ $(this).parent('tr').find('td.lekotott').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('td.lekotott').removeClass('highlight');
+ }
+ );
+ $('table.elszamolas tr th.sum.fennmarado').hover(function(e) {
+ $(this).parent('tr').find('td.fennmarado').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('td.fennmarado').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tbody tr').hover(function() {
+ //var szazalek = $(this).data('sum');
+ var szazalek = $(this).data('percent');
+ if (szazalek>100) szazalek=100;
+ var cssClass = $(this).attr('class');
+ $('#munkaoraBar').css('width',szazalek+'%');
+ $('#munkaoraBar').addClass(cssClass);
+ },function() {
+ $('#munkaoraBar').css('width','0%');
+ $('#munkaoraBar').removeClass();
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js
new file mode 100644
index 00000000..578a6f0e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js
@@ -0,0 +1,63 @@
+showUpdateLayer = function() {
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+}
+
+$(function() { /* onload */
+/* $('#rejtMutat').click(function(event) {
+ var element = $(event.target);
+ $('.ujOra').fadeToggle('fast');
+ });
+*/
+ $('.rejtMutat').click(function(event) {
+ $(event.target).closest('tbody').find('.ujOra').fadeToggle('fast');
+ });
+ $('.torol').change(function(event) {
+ /* rogton torolt class-uva tesszuk, akkor is, ha az ajaxRequestError van ... (lásd generikus callback) */
+ var element = $(event.target);
+ element.parents('tr').addClass('torolt');
+ element.parents('tr').find('.l').empty();
+ });
+ $('body').click(function(event) {
+ var x = $(event.target);
+ if (x.hasClass('gomb DOA'))
+ x.prop('disabled', false);
+ });
+/*
+ $('body').change(function(event) {
+ var x = $(event.target); // itt kezelhetnénk a haladasi tankorvaltasbol adodo dolgot
+ });
+*/
+ $('body').keypress(function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if(event.target.type=='text' && element.hasClass('data')) {
+ if (charKeyCode==13) {
+ event.preventDefault();
+ element.parents('tr').nextAll(':not(.ujOra)').first().find('input[type=text]').focus();
+ }
+ }
+ });
+
+});
+
+processJSON = function(json) {
+ console.log(json.toDo);
+
+ var elementId = "#ORAID_"+json.oraId.toString();
+ if (json.toDo=='oraElmarad') {
+ $(elementId).addClass('elmarad');
+ } else if (json.toDo == 'oraMegtartva') {
+ $(elementId).removeClass();
+ }
+ $('#updateWindow').toggle();
+ $('#takaro').toggle();
+
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js
new file mode 100644
index 00000000..9be7f906
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js
@@ -0,0 +1,27 @@
+
+showUpdateLayer = function() {
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+ $('#updateHeader').text('Haladási napló'); // sic
+}
+
+$(function() {
+ $('.rejtMutat').click(function(event) {
+ $(event.target).closest('tbody').find('.ujOra').fadeToggle('fast');
+ });
+/* $('.torol').change(function(event) {
+ // rogton torolt class-uva tesszuk, akkor is, ha az ajaxRequestError van ... (lásd generikus callback)
+ var element = $(event.target);
+ element.parents('tr').addClass('torolt');
+ element.parents('tr').find('.l').empty();
+ });
+ $('body').click(function(event) {
+ var x = $(event.target);
+ if (x.hasClass('gomb DOA'))
+ x.prop('disabled', false);
+ });
+*/
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js
new file mode 100644
index 00000000..d3efaded
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js
@@ -0,0 +1,42 @@
+$(function() {
+
+ $('#mindentanar').click(function() {
+ $('#tanarLista option').prop('selected', true);
+ });
+ $('#invertal').click(function() {
+ $('#tanarLista option').each(function() {
+ $(this).prop('selected',!$(this).prop('selected'));
+ });
+ });
+
+ $('#munkakozossegSelector').on('change',function() {
+ mkId = Number.parseInt($(this).val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',true);
+ }
+ });
+ });
+ $('#selectorMinus').on('click',function() {
+ $this = $('#munkakozossegSelector');
+ mkId = Number.parseInt($this.val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',false);
+ }
+ });
+ });
+ $('#selectorPlus').on('click',function() {
+ $this = $('#munkakozossegSelector');
+ mkId = Number.parseInt($this.val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',true);
+ }
+ });
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js
new file mode 100644
index 00000000..156ac76b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js
@@ -0,0 +1,11 @@
+
+
+$(function() {
+ google.charts.load('current', {packages: ['corechart','line']});
+ google.charts.setOnLoadCallback(drawHianyzasStatChart);
+
+ function drawHianyzasStatChart() {
+
+ }
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js
new file mode 100644
index 00000000..a73bc34b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js
@@ -0,0 +1,19 @@
+
+$(function() {
+ $('table input[type=text].perc').each(
+ function (index) {
+ $(this).bind('change', function(event) {
+ var element = $(event.target);
+ element.next('input').prop('checked',(element.val() != '0'));
+ if (element.val() != '0') {
+ element.addClass('kesett');
+ }
+ });
+ }
+ );
+ $('td.jelen input[type=radio],td.hiányzás input[type=radio]').change( function(event) {
+ var elem=$(event.target);
+ var percName = 'PERC_'+elem.attr('id').split('_')[1];
+ elem.closest('tr').find('input[name='+percName+']').val(0).removeClass('kesett');
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.js
new file mode 100644
index 00000000..948d6d74
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/nap.js
@@ -0,0 +1,13 @@
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+ $$('table input[type=text].perc').each(
+ function (elem, index) {
+ Event.observe(elem, 'change', function(event) {
+ var element = $(Event.element(event));
+ element.previous('input').checked=(element.value != '0');
+ }); // Event.observe
+ }
+ );
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js
new file mode 100644
index 00000000..1d1e313c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js
@@ -0,0 +1,27 @@
+
+$(function() {
+ $('table input[type=text].perc').each(
+ function (index) {
+ $(this).bind('change', function(event) {
+ var element = $(event.target);
+ element.next('input').prop('checked',(element.val() != '0'));
+ if (element.val() != '0') {
+ element.addClass('kesett');
+ }
+ });
+ }
+ );
+ $('td.jelen input[type=radio],td.hiányzás input[type=radio]').change( function(event) {
+ var elem=$(event.target);
+ var percName = 'PERC_'+elem.attr('id').split('_')[1];
+ elem.closest('tr').find('input[name='+percName+']').val(0).removeClass('kesett');
+ });
+/*
+ $('tr.magantanulo').click( function(event) {
+ $('tr.magantanulo').fadeToggle();
+ });
+*/
+ $('tr.felmentett').click( function(event) {
+ $('tr.felmentett').fadeToggle();
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.js
new file mode 100644
index 00000000..948d6d74
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/hianyzas/ora.js
@@ -0,0 +1,13 @@
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+ $$('table input[type=text].perc').each(
+ function (elem, index) {
+ Event.observe(elem, 'change', function(event) {
+ var element = $(Event.element(event));
+ element.previous('input').checked=(element.value != '0');
+ }); // Event.observe
+ }
+ );
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js
new file mode 100644
index 00000000..5cd89589
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js
@@ -0,0 +1,192 @@
+$(function() {
+
+ // A gotoCreateAccount elemre kattintva a userAccount értéket a href-hez illesztjük...
+ $('body').bind('click', function(event) {
+ element = $(event.target);
+ if (element.hasClass('gotoCreateAccount')) {
+ var userAccount = element.prev('input').val();
+ if (userAccount == '') {
+ userAccount = element.attr('title');
+ element.prev('input').val(userAccount);
+ ajaxRequest(element.closest('form'));
+ }
+ }
+ if (element.hasClass('edit')) {
+ showUpdateLayer(event);
+ }
+ });
+
+ /* Jogviszonyváltozás kezelése - záradékok és egyéb paraméterek megjelenítése */
+ $('.rejtett').hide();
+ $('#jogviszonyValtasSelect').bind('change', function(event) {
+ element = $(event.target);
+ statusz = element.val();
+ $('.rejtett').hide();
+
+ if (statusz == 'jogviszonya lezárva') {
+ $('#lezaras').show();
+ if ($('#lezarasZaradek').val() == 41) $('#igazolatlan').show();
+ else if ($('#lezarasZaradek').val == 45) $('#iskola').show();
+ } else if (statusz == 'jogviszonya felfüggesztve') $('#felfuggesztes').show();
+ });
+ $('#lezarasZaradek').bind('change', function(event) {
+ element = $(event.target);
+ var zaradekIndex = element.val();
+ if (zaradekIndex == 41) $('#igazolatlan').show();
+ else $('#igazolatlan').hide();
+ if (zaradekIndex == 45) $('#iskola').show();
+ else $('#iskola').hide();
+ });
+
+ /* A prototype activate() metódusának kiváltása */
+ activateField = function(id) {
+ $('#'+id).focus().select().mouseup(function(event){
+ event.preventDefault();
+ });
+ };
+
+ /*
+ Az oktatási azonosító
+ 11 jegyű, az első jegye 7, a 11. jegye ellenőrző kód: sum(i*xi) % 11, ahol a 10-es maradék nem megengedett
+
+ 9. számú melléklet a 79/2006. (IV. 5.) Korm. rendelethez
+ A hallgatói és az oktatói azonosító szám képzésének szabálya
+ 1. Az azonosító szám tizenegy jegyű szám.
+ 2. Az azonosító szám képzése:
+ a) az 1. számjegy konstans 7-es szám,
+ b) a 2-10. számjegyek összessége egy garantáltan egyedi,
+ véletlenszerűen generált szám,
+ c) a 11. számjegy az 1-10. számjegyek felhasználásával, matematikai
+ módszerekkel képzett ellenőrző szám.
+ 3. Az azonosító szám 11. számjegyét úgy kell képezni, hogy a 2. a)-b)
+ pontok szerint képzett 10 számjegy mindegyikét szorozni kell azzal a
+ sorszámmal, ahányadik helyet foglalja el az azonosító számon belül.
+ (Első számjegy szorozva eggyel, második számjegy szorozva kettővel és
+ így tovább.)
+ Az így kapott szorzatok összegét el kell osztani 11-gyel, és az osztás
+ maradéka a 11. számjeggyel lesz egyenlő.
+
+ A 2. b) pont szerinti sorszám nem adható ki, ha a 11-gyel való osztás
+ maradéka egyenlő tízzel.
+ */
+ $('#oId').bind('change', function(event) {
+
+ element = $(event.target);
+ oId = element.val();
+
+ var oIdString = String(oId);
+ if (oIdString.length != 11) {
+ alert('Hibás oktatási azonosító! (nem 11 jegyű)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ if (oIdString.substring(0,1) != '7') {
+ alert('Hibás oktatási azonosító! (első jegy nem 7-es)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 10; i++) {
+ chk += (i+1)*oIdString.substring(i,i+1);
+ }
+ chk = chk % 11;
+ if (chk == 10) {
+ alert('Hibás oktatási azonosító! (a 11-el vett osztási maradék nem lehet 10)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ if (chk != +oIdString.substring(10)) {
+ alert('Hibás oktatási azonosító! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ return true;
+ });
+ /*
+ Adóazonosító
+ 10 jegyű,
+ az 1. jegy 8
+ !! - a 2-6. számjegyek a személy születési időpontja és az 1867. január 1. között eltelt napok száma,
+ a 10. jegye ellenőrző kód: sum(i*xi) % 11, ahol a 10-es maradék nem megengedett
+ */
+ if ($('#adoazonosito')) $('#adoazonosito').bind('change', function(event) {
+
+ element = $(event.target);
+ aa = element.val();
+
+ var aaString = String(aa);
+ if (aaString.length != 10) {
+ alert('Hibás adóazonosító! (nem 10 jegyű)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ if (aaString.substring(0,1) != '8') {
+ alert('Hibás adóazonosító! (első jegy nem 8-as - magánszemély)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 9; i++) {
+ chk += (i+1)*aaString.substring(i,i+1);
+ }
+ chk = chk % 11;
+ if (chk == 10) {
+ alert('Hibás adóazonosító! (a 11-el vett osztási maradék nem lehet 10)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ if (chk != +aaString.substring(9)) {
+ alert('Hibás adóazonosító! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ return true;
+ });
+
+ /*
+ A TAJ
+ 9 jegyű, az első 8 egy folyamatos sorszám, a 9. CDV kód: sum(1-4)(3*x(2i-1)+7*x(2i)) % 10
+ */
+ $('#tajSzam').bind('change', function(event) {
+
+ element = $(event.target);
+ tajSzam = element.val();
+
+ var tajString = String(tajSzam);
+ if (tajString.length != 9) {
+ alert('Hibás Társadalombiztosítási Azonosító Jel! (nem 9 jegyű)');
+ setTimeout('activateField(\'tajSzam\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 4; i++) {
+ chk += 3*tajString.substring(2*i,2*i+1)+7*tajString.substring(2*i+1,2*i+2);
+ }
+ chk = chk % 10;
+ if (chk != +tajString.substring(8)) {
+ alert('Hibás Tásradalombiztosítási Azonosító Jel! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'tajSzam\')',100);
+ return false;
+ }
+ return true;
+ });
+
+ /*
+ A Diákigazolvány szám
+ 10 jegyű
+ */
+ $('#diakigazolvanySzam').bind('change', function(event) {
+
+ element = $(event.target);
+ dSzam = element.val();
+
+ var dString = String(dSzam);
+ if (dString.length < 10) {
+ alert('Hibás Diákigazolvány szám! (kisebb, mint 10 jegyű)');
+ setTimeout('activateField(\'diakigazolvanySzam\')',100);
+ return false;
+ }
+ return true;
+ });
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js
new file mode 100644
index 00000000..778d0c33
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js
@@ -0,0 +1,9 @@
+$(function() {
+
+ $('.rejtett').hide();
+ $('#t1altipus').change(function() {
+ if ($('#t1altipus').val() =='2') $('#T1b').show();
+ else $('#T1b').hide();
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js
new file mode 100644
index 00000000..47108be0
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js
@@ -0,0 +1,31 @@
+
+$(function() {
+ $('select.zaradek').change(function(event) {
+ element = $(event.target);
+ if (element.val() == '') {
+ element.closest('form').find('input[type=submit]').hide();
+ element.next('div').html('');
+ } else {
+ var zArray = element.prop('options')[element.prop('selectedIndex')].innerHTML.split('%');
+ var zTxt = '<p>';
+ var tableTxt = '<table>';
+ for (i=0;i<zArray.length;i++) {
+ if (i % 2 == 0) {
+ zTxt = zTxt + zArray[i];
+ } else {
+ zTxt = zTxt + '<span id="'+element.attr('id')+i+'span'+'">'+zArray[i]+'</span>';
+ tableTxt = tableTxt + '<tr><th><label for="'+element.attr('id')+i+'">'+zArray[i]+'</label></th>';
+ tableTxt = tableTxt + '<td><input type="text" name="values[]" value="" id="'+element.attr('id')+i+'" class="onChangeReplaceSpan" /></td></tr>';
+ }
+ }
+ tableTxt = tableTxt + '</table>';
+ zTxt = '<p>' + zTxt + '</p>' + tableTxt;
+ element.next('div').html(zTxt);
+ element.next('div').find('table input[type=text]').change(function(event) {
+ var element = $(event.target);
+ $('#'+element.attr('id')+'span').innerHTML=element.val().escapeHTML();
+ });
+ element.closest('form').find('input[type=submit]').show();
+ }
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js
new file mode 100644
index 00000000..35e83089
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js
@@ -0,0 +1,18 @@
+
+$(function() {
+ $('#szuletesiEv').change(function(event) {
+ var element = $(event.target);
+ var dSzam = element.val();
+ var dString = String(dSzam);
+ if (dString.length != 4) {
+ alert('Hibás évszám! (nem 4 jegyű)');
+// setTimeout('document.getElementById(\'szuletesiEv\').activate()',1000);
+ setTimeout('$(\'#szuletesiEv\').focus().select()',100);
+
+ return false;
+ }
+ return true;
+
+ });
+});
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js
new file mode 100644
index 00000000..abb82689
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js
@@ -0,0 +1,56 @@
+$(function() {
+ $('table.tankor tr').hover(function(event) {
+ var element = $(event.target);
+ element.closest('tr').addClass('ez');
+ $($(this).attr('class').split(' ')).each(function() {
+ if (this != '') {
+ $('table.tankor tr.'+this+':not(.benne):not(.ez)').addClass('utkozik');
+ }
+ });
+ },function(event) {
+ $('table.tankor tr').removeClass('utkozik').removeClass('ez');
+ });
+});
+
+/*
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+
+function myPSFLoader(evt) {
+
+ $$('table.tankor tr').each(
+ function (elem, index) {
+
+ if (elem.getAttribute('class') != null) {
+ Event.observe(elem, 'mouseover', function(event) {
+
+ var element = $(Event.element(event));
+ var trElement = element.up('tr');
+ var classNames = $w(trElement.className.split('benne').join(' '));
+ if (classNames.length > 0) {
+ var tdElements = $$('tr.'+classNames.join(' td, tr.')+' td');
+ for (i=0; i<tdElements.length; i++) {
+ if (tdElements[i].up('tr') != trElement) tdElements[i].addClassName('utkozik');
+ }
+ }
+
+ });
+ Event.observe(elem, 'mouseout', function(event) {
+
+ var element = $(Event.element(event));
+// var classNames = $w(element.up('tr').className);
+ var trElement = element.up('tr');
+ var classNames = $w(trElement.className.split('benne').join(' '));
+ if (classNames.length > 0) {
+ var tdElements = $$('tr.'+classNames.join(' td, tr.')+' td');
+ for (i=0; i<tdElements.length; i++) tdElements[i].removeClassName('utkozik');
+ }
+ });
+
+ }
+
+ }
+ );
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js
new file mode 100644
index 00000000..75cd36c3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js
@@ -0,0 +1,64 @@
+
+ processJSONDelTargy = function(msg, element) {
+
+ console.log(msg);
+ element.closest('li').remove();
+
+ }
+ processJSONDelTanar = processJSONDelTargy;
+
+$(function() {
+
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+
+ if (element.hasClass('delTargy')) {
+ targyId = element.data('targyid');
+ kepesitesId = element.data('kepesitesid');
+
+ postData = { 'action':'delTargy', 'targyId':targyId, 'kepesitesId':kepesitesId }
+ saltName = $('#kepesitesForm input.salt').prop('name');
+ saltValue = $('#kepesitesForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=kepesitesek&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelTargy(msg, element);
+ });
+
+
+ } else if (element.hasClass('delTanar')) {
+ tanarId = element.data('tanarid');
+ kepesitesId = element.data('kepesitesid');
+
+ postData = { 'action':'delTanar', 'tanarId':tanarId, 'kepesitesId':kepesitesId }
+ saltName = $('#kepesitesForm input.salt').prop('name');
+ saltValue = $('#kepesitesForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=kepesitesek&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelTanar(msg, element);
+ });
+
+
+ }
+
+ });
+
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js
new file mode 100644
index 00000000..6abc9f50
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js
@@ -0,0 +1,48 @@
+
+$(function() {
+
+
+ $('#targySel').change(function(event) {
+
+ element = $(event.target);
+ kovetelmeny = element.find('option:selected').data('kovetelmeny');
+ element.closest('th').nextAll('td').find('select option[value="'+kovetelmeny+'"]').prop('selected',true);
+
+ });
+ $('body').click(function(event) {
+ element = $(event.target);
+ if (element.closest('span#felevValtas').length == 1) {
+ if (element.hasClass('felev1')) {
+ $('form.kepzesOraterv table tr.rogzitett .felev1').hide();
+ $('form.kepzesOraterv table tr.rogzitett .felev2').slideDown('slow');
+ $('form.kepzesOraterv table thead .felev1').hide();
+ $('form.kepzesOraterv table thead .felev2').slideDown('slow');
+ } else if (element.hasClass('felev2')) {
+ $('form.kepzesOraterv table tr.rogzitett .felev2').hide();
+ $('form.kepzesOraterv table tr.rogzitett .felev1').slideDown('slow');
+ $('form.kepzesOraterv table thead .felev2').hide();
+ $('form.kepzesOraterv table thead .felev1').slideDown('slow');
+ }
+ } else if (element.closest('span#oraszamKovetelmeny').length == 1) {
+ if (element.hasClass('oraszam')) {
+ $('form.kepzesOraterv table tr.rogzitett span.oraszam').hide();
+ $('form.kepzesOraterv table tr.rogzitett span.kovetelmeny').slideDown('slow');
+ $('form.kepzesOraterv table thead span.oraszam').hide();
+ $('form.kepzesOraterv table thead span.kovetelmeny').slideDown('slow');
+ } else if (element.hasClass('kovetelmeny')) {
+ $('form.kepzesOraterv table tr.rogzitett span.kovetelmeny').hide();
+ $('form.kepzesOraterv table tr.rogzitett span.oraszam').slideDown('slow');
+ $('form.kepzesOraterv table thead span.kovetelmeny').hide();
+ $('form.kepzesOraterv table thead span.oraszam').slideDown('slow');
+ }
+ } else if (element.closest('tr.rogzitett').length == 1) {
+ element.closest('tr').find('td span').hide();
+ element.closest('tr').removeClass('rogzitett').addClass('szerkeszt');
+ element.closest('tr').find('td div').slideDown();
+/*
+ element.closest('tr').find('input').show();
+ element.closest('tr').find('select').show();
+*/ }
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js
new file mode 100644
index 00000000..fe003893
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js
@@ -0,0 +1,57 @@
+
+$(function () {
+
+ var evfolyamJelek = [];
+ $('body').change(function(event) {
+
+ element = $(event.target);
+
+ if (element.attr('id')=='osztalyJellegId') {
+ if (element.val() != '') {
+ element.closest('div').nextAll('div').slideUp();
+ $('#divKezdoTanev').slideDown().focus();
+ element.data('evfolyamjelek',element.find('option:selected').data('evfolyamjelek'));
+ evfolyamJelek = $('#osztalyJellegId').data('evfolyamjelek');
+ $('span#kezdoEvfolyamJel').html(evfolyamJelek[0]);
+ }
+ } else if (element.attr('id')=='kezdoTanev') {
+ if (element.val() != '') {
+ $('#vegzoTanev option:selected').prop('selected',false);
+ $('#vegzoTanev').find('option').prop('disabled',true).hide();
+ $('#vegzoTanev').find('option:first-child').prop('disabled',false).show();
+ vtOptions = $('#vegzoTanev').find('option').get();
+ i=0;
+ while (i<vtOptions.length && $(vtOptions[i]).val() != element.val()) i++;
+ for (j=i; j<vtOptions.length && j < i+evfolyamJelek.length; j++) $(vtOptions[j]).prop('disabled',false).show();
+ $('#divVegzoTanev').slideDown().focus();
+ }
+ } else if (element.attr('id') == 'vegzoTanev') {
+
+ ulStr = 'Kezdés évfolyama: <ul id="evfolyamJelek">';
+ maxKS = evfolyamJelek.length-($('#vegzoTanev').val()-$('#kezdoTanev').val());
+ osztalyJel = $('#jel').val();
+ for (i=0; i<evfolyamJelek.length; i++) {
+ if (i<$('#vegzoTanev').val()-$('#kezdoTanev').val()+1) ulStr += '<li class="kivalasztott">';
+ else ulStr += '<li>';
+ ulStr += evfolyamJelek[i]+'.&nbsp;<span class="osztalyJel">'+(osztalyJel==''?'?':osztalyJel)+'</span>';
+ if (i < maxKS) ulStr += '<br /><input type="radio" name="kezdoEvfolyamSorszam" value="'+(i+1)+'" '+(i==0?' checked="checked" ':'')+'/>';
+ ulStr += '</li>';
+ }
+ ulStr += '</ul>';
+ $('#divKezdoEvfolyamSorszam').html(ulStr);
+ $('#divJel').slideDown().focus();
+ $('#divKezdoEvfolyamSorszam').slideDown();
+ } else if (element.closest('ul').attr('id') == 'evfolyamJelek') {
+ element.closest('ul').find('li').removeClass('kivalasztott');
+ e = element.closest('li'); i=0;
+ while (i<$('#vegzoTanev').val()-$('#kezdoTanev').val()+1) {
+ e.addClass('kivalasztott');
+ e = e.next('li');
+ i++;
+ }
+ } else if (element.attr('id') == 'jel') {
+ $('#divKezdoEvfolyamSorszam li span.osztalyJel').html(element.val());
+ $('#divLeirasTelephely').slideDown();
+ }
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js
new file mode 100644
index 00000000..a23b0c80
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js
@@ -0,0 +1,41 @@
+
+
+$(function() {
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+ if (element.hasClass('slideUj')) {
+ $('tr#ujKepesites').slideToggle('slow');
+ }
+
+ });
+
+ $('select#statusz').change(function(event) {
+ element = $(event.target);
+ if (element.val() != 'jogviszonya lezárva') {
+ if (IsDate($('input#kiDt').val())) {
+ curdate = new Date();
+ date = new Date($('input#kiDt').val());
+ if (date<curdate) {
+ $('input#kiDt').val('');
+ $('input#kiDt').change();
+ }
+ }
+ }
+ });
+
+ $('input#kiDt').change(function(event) {
+ element = $(event.target);
+ if (IsDate(element.val())) {
+ curdate = new Date();
+ date = new Date(element.val());
+ if (date<curdate) {
+ $('select#statusz option#jogviszonyaLezarva').prop('selected',true).prop('disabled',false);
+ $('select#statusz').change();
+ }
+ } else {
+ }
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js
new file mode 100644
index 00000000..29c0713b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js
@@ -0,0 +1,8 @@
+
+$(function() {
+ $('table.szemeszter input[type=text]').on('change', function(event) {
+ element = $(event.target);
+ // le kell védeni a / jelet a selector-ban!
+ $('#c'+element.attr('id').substring(1).replace('/','\\/')).prop('checked', (element.val() != ''));
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js
new file mode 100644
index 00000000..2f549ff8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js
@@ -0,0 +1,23 @@
+
+$(function() {
+
+ $('body').on('click', function(event) {
+
+ element = $(event.target);
+ if (element.hasClass('setAll')) {
+ tableElement = element.next('td').find('table input[type=checkbox]').click();
+ }
+ if (element.hasClass('setAllFiu')) {
+ //tableElement = $('.egyosztaly input[type=checkbox].fiu').click();
+ //tableElement = element.up('.egyosztaly input[type=checkbox].fiu').click();
+ //console.log(element.prev('table'));
+ tableElement = $('.egyosztaly input[type=checkbox].fiu').click();
+ }
+ if (element.hasClass('setAllLany')) {
+ tableElement = $('.egyosztaly input[type=checkbox].lany').click();
+ }
+
+ });
+
+});
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js
new file mode 100644
index 00000000..3a5df16f
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js
@@ -0,0 +1,594 @@
+$(function() {
+
+ displayJSONerror = function(json) {
+ alert(JSON.stringify(json));
+ }
+
+ checkOraszam = function(plusz, minusz) {
+ $('table#tt td.lekotott').each(function(index) {
+ checkTanarOraszam($(this), plusz, minusz, false);
+ });
+ $('table#tt span#keszTanarDb').html($('table#tt tr.ok').length);
+ }
+
+ checkTanarOraszam = function(lekotottTd, plusz, minusz, dbFrissit) {
+ lekotott = parseFloat(lekotottTd.find('span.lekotott').html().replace(',','.'));
+ kotelezo = parseFloat(lekotottTd.find('span.kotelezo').html().replace(',','.'));
+ if (lekotott<kotelezo-minusz) lekotottTd.closest('tr').removeClass('ok').removeClass('plusz').addClass('minusz');
+ else if (lekotott>kotelezo+plusz) lekotottTd.closest('tr').removeClass('ok').removeClass('minusz').addClass('plusz');
+ else lekotottTd.closest('tr').removeClass('minusz').removeClass('plusz').addClass('ok');
+
+ if (dbFrissit) $('table#tt span#keszTanarDb').html($('table#tt tr.ok').length);
+ }
+
+ ajaxGetTankorAdat_tth = function(tankorId) {
+ postData = { 'tankorId':tankorId, 'mayorToken': $('body').data('mayortoken') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionID'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat_tth(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ });
+ }
+
+ processJSONTankorMod = function( msg ) {
+ // console.log(JSON.stringify(msg));
+ $('#updateWindowSide').data('target').html(msg.tankorNevTargyNelkul);
+ processJSONTankorAdat( msg );
+ }
+
+ processJSONTankorAdat_tth = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ $('#updateWindowSideContent').html('');
+ $('#updateWindowSideTitle').html('Tantárgyfelosztás - Tankör');
+ $('<p class="tankorNev">' +msg.tankorNevReszei.evfOszt+' '
+ +msg.tankorNevReszei.targyNev
+ +(msg.tankorNevReszei.tankorJel!=''&&msg.tankorNevReszei.tankorJel!=null?msg.tankorNevReszei.tankorJel+' ':'')
+ +' <span class="tankorNevExtra">'+msg.tankorNevReszei.tankorNevExtra+'</span>'
+ +'<input id="tankorNevExtra" type="text" name="tankorNevExtra" value="'+msg.tankorNevReszei.tankorNevExtra+'" />'
+ +' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorModosit">Módosít!</p>').appendTo('#updateWindowSideContent');
+ // adatok
+ ulStr = '<ul>'
+ +'<li>Évközi követelmény: '+msg.kovetelmeny+'</li>'
+ +'<li>Létszám korlát: '+msg.min+'-'+msg.max+'</li>'
+ +'<li>Tankör-típus: '+msg.rovidNev+' ('+msg.tankorTipusId+')</li>'
+ +'</ul>';
+ $(ulStr).appendTo('#updateWindowSideContent');
+ // osztályok
+ ulStr = '<ul id="tankorOsztaly">';
+ pStr = '<div class="slideToggleContainer" id="pTankorOsztaly">Osztályai: <span class="tankorData slideToggle">';
+ for (i=0; i<msg.osztalyok.length; i++) {
+ ulStr += '<li>'
+ +'<input type="checkbox" name="osztalyId[]" value="'+msg.osztalyok[i].osztalyId+'" id="oTankorId-'+msg.osztalyok[i].osztalyId+'" ';
+ if ($.inArray(msg.osztalyok[i].osztalyId, msg.osztalyIds)>-1) {
+ ulStr += 'checked="checked" ';
+ pStr += msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+') ';
+ }
+ ulStr += '/> '
+ +'<label for="oTankorId-'+msg.osztalyok[i].osztalyId+'">'+msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+')</label></li>';
+ }
+ ulStr += '</ul>';
+ pStr += '</span><span class="icon-chevron-down slideToggle"></span>'+ulStr+'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+ // szemeszterek, óraszámok
+ ulStr = '<ul id="tankorSzemeszter">';
+ for (i=0; i<msg.tankorSzemeszter.length; i++) {
+ ulStr += '<li>'+msg.tankorSzemeszter[i].tanev+'/'+msg.tankorSzemeszter[i].szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+msg.tankorSzemeszter[i].tanev+'-'+msg.tankorSzemeszter[i].szemeszter+'" value="'+msg.tankorSzemeszter[i].oraszam+'" />'
+ +'</li>';
+ }
+ ulStr += '</ul>';
+ pStr = '<div class="slideToggleContainer" id="pTankorSzemeszter">Óraszám: <span class="tankorData slideToggle">'+msg.oraszam+' ('+msg.tanev+'/'+msg.szemeszter+')</span>'
+ +'<span class="icon-chevron-down slideToggle"></span>'
+ +ulStr
+ +'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+
+ $('#updateWindowSideSub').removeClass('nyitva');
+ if (!$('#updateWindowSide').hasClass('nyitva')) {
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+ }
+
+ processJSONChk = function(msg, element, tanarId, tankorId) {
+ // console.log(JSON.stringify(msg));
+ tankorTd = $('td#col_'+tankorId);
+ if (element.prop('checked')) {
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ if ($(this).val() != element.val()) {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ });
+ if (!tankorTd.hasClass('kesz')) {
+ tankorTd.addClass('kesz');
+ db = parseInt($('table#tt span#keszTankorDb').html());
+ $('table#tt span#keszTankorDb').html(++db);
+ } else { tankorTd.removeClass('kesz').addClass('tobb') }
+ tankorTd.data('tanardb', parseInt(tankorTd.data('tanardb'))+1);
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))+oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ checkTanarOraszam(lSpan.closest('td'), plusz, minusz, true);
+ }
+ });
+ } else {
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ lSpan = element.closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ });
+ if ($('table#tt td.col-'+tankorId+' input:checked').length == 0) {
+ tankorTd.removeClass('kesz');
+ db = parseInt($('table#tt span#keszTankorDb').html());
+ $('table#tt span#keszTankorDb').html(--db);
+ } else if ($('table#tt td.col-'+tankorId+' input:checked').length == 1) tankorTd.removeClass('tobb').addClass('kesz');
+ tankorTd.data('tanardb', parseInt(tankorTd.data('tanardb'))-1);
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ checkTanarOraszam(element.closest('tr').find('td.lekotott'), plusz, minusz, true);
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ if ($(this).val() != element.val()) {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))+oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ checkTanarOraszam($(this).closest('tr').find('td.lekotott'), plusz, minusz, true);
+ });
+ }
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#00ff00'}, 100).animate({backgroundColor: '#eeeeee'}, 1000);
+ }
+
+
+
+//////////////////////////////////ITT VOLT AZ ELEJE
+ // TODO - ezt kivenni
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $('body').data('sessionID',sessionID); // ez nem lenne szukseges. lasd meg data-sessionid
+
+ checkOraszam(2,2);
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+ saltName = $('#updateForm input.salt').prop('name');
+ saltValue = $('#updateForm input.salt').val();
+
+ if (element.attr('id')=='szuro') {
+ $('#updateWindowSideTitle').html('Szűrés');
+
+ dStr = '<form method="post" action="">';
+ dStr += '<input type="hidden" class="salt" name="'+saltName+'" value="'+saltValue+'" />';
+ dStr += '<input type="hidden" class="mayorToken" name="mayorToken" value="'+ ($('body').data('mayortoken')) +'" />';
+
+ // Osztályok
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').osztalyok.length; i++) {
+ oAdat = $('#szuro').data('szuro').osztalyok[i];
+ ulStr += '<li>'
+ +'<input class="szOsztaly" id="szOsztalyId-'+oAdat['osztalyId']+'" type="checkbox" name="osztalyIds[]" value="'+oAdat['osztalyId']+'"';
+ if ($.inArray(parseInt(oAdat['osztalyId']), $('#szuro').data('szuro').osztalyIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<span id="selOsztalyId-'+oAdat['osztalyId']+'"> '+oAdat['osztalyJel']+' ('+oAdat['osztalyId']+')</span>';
+ }
+ ulStr += '/><label for="szOsztalyId-'+oAdat['osztalyId']+'">'+oAdat['osztalyJel']+' ('+oAdat['osztalyId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szOsztaly" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Osztályok:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Munkaközösségek
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').munkakozossegek.length; i++) {
+ oAdat = $('#szuro').data('szuro').munkakozossegek[i];
+ ulStr += '<li>'
+ +'<input class="szMk" id="szMkId-'+oAdat['mkId']+'" type="checkbox" name="mkIds[]" value="'+oAdat['mkId']+'"';
+ if ($.inArray(parseInt(oAdat['mkId']), $('#szuro').data('szuro').mkIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selMkId-'+oAdat['mkId']+'"> '+oAdat['mkNev']+' ('+oAdat['mkId']+')</span>';
+ }
+ ulStr += '/><label for="szMkId-'+oAdat['mkId']+'">'+oAdat['mkNev']+' ('+oAdat['mkId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szMk" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Munkaközösségek:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Tárgyak
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').targyak.length; i++) {
+ oAdat = $('#szuro').data('szuro').targyak[i];
+ ulStr += '<li>'
+ +'<input class="szTargy" id="szTargyId-'+oAdat['targyId']+'" type="checkbox" name="targyIds[]" value="'+oAdat['targyId']+'"';
+ if ($.inArray(parseInt(oAdat['targyId']), $('#szuro').data('szuro').targyIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTargyId-'+oAdat['targyId']+'"> '+oAdat['targyNev']+' ('+oAdat['targyId']+')</span>';
+ }
+ ulStr += '/><label for="szTargyId-'+oAdat['targyId']+'">'+oAdat['targyNev']+' ('+oAdat['targyId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szTargy" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Tárgyak:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Tanárok
+ ulStr = '<ul>'; spanStr = '';
+ ulStr += '<li class="tanarNelkuli">'
+ +'<input class="szTanar" id="szTanarNelkuliTankorok" type="checkbox" name="tanarNelkuliTankorok" value="true"';
+ if ( $('#szuro').data('szuro').tanarNelkuliTankorok ) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTanarId-0">Tanár nélküli tankörök</span>';
+ }
+ ulStr += '/><label for="szTanarNelkuliTankorok">Tanár nélküli tankörök</label></li>';
+
+ for (i=0; i<$('#szuro').data('szuro').tanarok.length; i++) {
+ oAdat = $('#szuro').data('szuro').tanarok[i];
+ ulStr += '<li>'
+ +'<input class="szTanar" id="szTanarId-'+oAdat['tanarId']+'" type="checkbox" name="tanarIds[]" value="'+oAdat['tanarId']+'"';
+ if ($.inArray(parseInt(oAdat['tanarId']), $('#szuro').data('szuro').tanarIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTanarId-'+oAdat['tanarId']+'"> '+oAdat['tanarNev']+' ('+oAdat['tanarId']+')</span>';
+ }
+ ulStr += '/><label for="szTanarId-'+oAdat['tanarId']+'">'+oAdat['tanarNev']+' ('+oAdat['tanarId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szTanar" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Tanárok:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+
+
+ dStr += '<input type="submit" value="Szűrés" />';
+ dStr += '</form>';
+ $('#updateWindowSideContent').html('');
+ $(dStr).appendTo('#updateWindowSideContent');
+
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').addClass('nyitva');
+
+ } else if (element.hasClass('slideContainer') || element.hasClass('slideToggleContainer')) {
+ element.find('ul').slideToggle(75);
+ element.find('span.slider').toggleClass('icon-chevron-down').toggleClass('icon-chevron-up');
+ } else if (element.hasClass('slider') || element.hasClass('slideToggle')) {
+ element.closest('div').find('ul').slideToggle(75);
+ element.closest('div').find('span.slider').toggleClass('icon-chevron-down').toggleClass('icon-chevron-up');
+ } else if (element.hasClass('tankor')) {
+ // console.log(element);
+ $('#updateWindowSide').data('target',element);
+ ajaxGetTankorAdat_tth(element.data('tankorid'));
+ } else if (element.hasClass('tankorNevExtra')) {
+ element.next('input#tankorNevExtra').show();
+ element.hide();
+ } else if (element.hasClass('tankorModosit')) {
+ postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() }
+ $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());})
+ $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){
+ if ($(this).val() != '') {
+ tmp = $(this).attr('name').split('-');
+ postData.tankorSzemeszter.push({'tanev':tmp[1], 'szemeszter': tmp[2], 'oraszam': $(this).val() });
+ }
+ });
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorMod&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorMod(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ // console.log('fail');
+ // console.log(jqXHR);
+ });
+ } else if (element.hasClass('tantan') && !element.hasClass('disable')) {
+ chkElement = element.find('input[type=checkbox]');
+ chkElement.click();
+ } else if (element.attr('id') == 'plusz' || element.attr('id') == 'minusz') {
+ element.find('ul.limit').slideToggle(85);
+ } else if (element.hasClass('setLimit')) {
+ spanElement = element.closest('span');
+ ulElement = element.closest('ul.limit');
+ ulElement.slideUp().detach();
+ spanElement.html(' '+element.html());
+ ulElement.appendTo(spanElement);
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ checkOraszam(plusz, minusz);
+ } else if (element.hasClass('targy')) {
+ targyId = element.data('targyid');
+ szurtTargyId = $('table#tt').data('szurtTargyId');
+ if (szurtTargyId == targyId) {
+ // szűrés megszüntetése
+ $('table#tt tr.tanar').not('.targy'+szurtTargyId).removeClass('szurt');
+ $('table#tt').data('szurtTargyId','');
+ } else {
+ // szűrni kell
+ if (szurtTargyId != '') {
+ // egy másik szűrés volt eddig - megszűntettjük
+ $('table#tt tr.tanar').not('.targy'+szurtTargyId).removeClass('szurt');
+ }
+ $('table#tt tr.tanar').not('.targy'+targyId).addClass('szurt');
+ $('table#tt').data('szurtTargyId',targyId);
+ }
+ // szűrés miatt az első látható cella eltűnhet, módosulhat
+ if ($('tr.tanar.first').hasClass('szurt')) {
+ trElements = $('tr.tanar.first').nextAll('tr.tanar').not('.szurt').get();
+ if (trElements.length>0) {
+ $('tr.tanar.first').removeClass('first');
+ $(trElements[0]).addClass('first');
+ } else {
+ // ha nincs lefele látható sor, akkor felfelé keresünk...
+ trElements = $('tr.tanar.first').prevAll('tr.tanar').not('.szurt').get();
+ if (trElements.length>0) {
+ $('tr.tanar.first').removeClass('first');
+ $(trElements[0]).addClass('first').removeClass('csukott');
+ $(trElements[0]).nextAll('tr').removeClass('csukott');
+ }
+ }
+ }
+ } else if (element.hasClass('unset')) {
+ element.closest('div').find('input[type=checkbox]:checked').click();
+ } else if (element.hasClass('toggleKesz')) {
+/* ez meg nem mukodik
+ $('table#tt td.tankor.kesz').each(function(index) {
+ className = 'col-'+$(this).data('tankorid');
+ $('table#tt td.tantan.'+className).toggleClass('szurt');
+ $(this).toggleClass('szurt');
+ thTargy = $('table#tt th#thTargy-'+$(this).data('targyid'));
+ colSpan = $('table#tt td.tdTargy-'+$(this).data('targyid')).not('.szurt').length;
+ thTargy.prop('colspan',colSpan);
+ if (colSpan==0) thTargy.addClass('szurt');
+ else thTargy.removeClass('szurt');
+ });
+*/
+ }
+
+ });
+
+ $('body').change(function(event) {
+
+ element = $(event.target);
+
+ if (element.hasClass('szOsztaly')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').osztalyIds.push( element.val() );
+ $('<span id="selOsztalyId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szOsztaly strong');
+ } else {
+ $('div#szOsztaly span#selOsztalyId-'+element.val()).prev('br').remove();
+ $('div#szOsztaly span#selOsztalyId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').osztalyIds;
+ $('#szuro').data('szuro').osztalyIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').osztalyIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szMk')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').mkIds.push( element.val() );
+ $('<br /><span id="selMkId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szMk strong');
+ } else {
+ $('div#szMk span#selMkId-'+element.val()).prev('br').remove();
+ $('div#szMk span#selMkId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').mkIds;
+ $('#szuro').data('szuro').mkIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').mkIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szTanar')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').tanarIds.push( element.val() );
+ $('<br /><span id="selTanarId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szTanar strong');
+ } else {
+ $('div#szTanar span#selTanarId-'+element.val()).prev('br').remove();
+ $('div#szTanar span#selTanarId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').tanarIds;
+ $('#szuro').data('szuro').tanarIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').tanarIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szTargy')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').targyIds.push( element.val() );
+ $('<br /><span id="selTargyId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szTargy strong');
+ } else {
+ $('div#szTargy span#selTargyId-'+element.val()).prev('br').remove();
+ $('div#szTargy span#selTargyId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').targyIds;
+ $('#szuro').data('szuro').targyIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').targyIds.push(tmp[i]);
+ }
+ } else if (element.closest('div').hasClass('slideToggleContainer')) {
+ element.closest('div').find('span.tankorData').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ } else if (element.attr('id')=='tankorNevExtra') {
+ if (!element.prev('span.tankorNevExtra').hasClass('changed')) {
+ element.prev('span.tankorNevExtra').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ }
+ } else if (element.hasClass('chkTT')) {
+ saltName = $('#updateForm input.salt').prop('name');
+ saltValue = $('#updateForm input.salt').val();
+ var chkData = element.val().split('_');
+ var tanarId = chkData[0];
+ var tankorId = chkData[1];
+ if(element.prop('checked')) ajaxAction='tankorTanarFelvesz';
+ else ajaxAction='tankorTanarTorol';
+
+ var postData = { 'action':ajaxAction ,'tankorId':tankorId, 'tanarId':tanarId, 'sessionID':sessionID, 'mayorToken': ($('body').data('mayortoken')) };
+ postData[saltName] = saltValue;
+
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#aaaaaa'}, 10);
+ // TODO: a requestet meg kellene várnunk! ??
+ $.ajax({
+ type: "POST",
+ url: "?page=naplo&sub=intezmeny&f=tankorTanarHozzarendeles&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONChk(msg, element, tanarId, tankorId);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function(jqXHR, textStatus) {
+ displayJSONerror(jqXHR.responseJSON);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ $('#cell_'+tanarId+'_'+tankorId + ' > input').attr('checked',false);
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#ff0000'}, 100).animate({backgroundColor: '#eeeeee'}, 1000);
+ });
+
+ }
+
+ });
+
+ $('body').focusout(function(event) {
+ var element = $(event.target);
+ if (element.attr('id')=='tankorNevExtra') {
+ element.prev('span.tankorNevExtra').html( element.val() ).show();
+ element.hide();
+ }
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:last-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = 1+parseInt(tmp[1]);
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').appendTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').next('li').find('input').focus();
+ }
+
+ });
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:first-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9 && shiftKey) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = parseInt(tmp[1])-1;
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').prependTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').prev('li').find('input').focus();
+ }
+
+ });
+
+
+ $('body').keydown(function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (!$('#updateWindowSide').hasClass('nyitva')) {
+ if (charKeyCode == 37) { // balra
+ event.preventDefault();
+ firstTh = $('table#tt th.first.targy');
+ firstColspan = firstTh.attr('colspan');
+ if (firstColspan < firstTh.data('colspan')) {
+ firstTh.attr('colspan', ++firstColspan);
+ } else {
+ if (firstTh.prev('th.targy').length > 0) {
+ firstTh.removeClass('first');
+ firstTh.prev('th.targy').addClass('first').show();
+ }
+ }
+ firstTd = $('table#tt td.first');
+ if ($('table#tt td.first.tankor').prev('td.tankor').length>0) {
+ firstTd.removeClass('first');
+ firstTd.prev('td').addClass('first').show();
+ }
+ } else if (charKeyCode == 39) { // jobb
+ event.preventDefault();
+ firstTh = $('table#tt th.first.targy');
+ firstColspan = firstTh.attr('colspan');
+ if (firstColspan > 1) {
+ firstTh.attr('colspan', firstColspan-1);
+ } else {
+ if (firstTh.next('th.targy').length > 0) {
+ firstTh.removeClass('first').hide();
+ firstTh.next('th.targy').addClass('first');
+ }
+ }
+ firstTd = $('table#tt td.first');
+ if ($('table#tt td.first.tankor').next('td.tankor').length>0) {
+ firstTd.removeClass('first').hide();
+ firstTd.next('td').addClass('first');
+ }
+ } else if (charKeyCode == 40) { // le
+ event.preventDefault();
+ firstTr = $('table#tt tr.first.tanar');
+ nextTrs = firstTr.nextAll('tr').not('.szurt').get();
+ if (nextTrs.length>0) {
+ firstTr.removeClass('first');
+ $(nextTrs[0]).prevAll('tr.tanar').addClass('csukott');
+ $(nextTrs[0]).addClass('first');
+ }
+ } else if (charKeyCode == 38) { // fel
+ event.preventDefault();
+ firstTr = $('table#tt tr.first.tanar');
+ prevTrs = firstTr.prevAll('tr').not('.szurt').get();
+ if (prevTrs.length>0) {
+ firstTr.removeClass('first');
+ $(prevTrs[0]).addClass('first').removeClass('csukott');
+ $(prevTrs[0]).nextAll('tr.tanar').removeClass('csukott');
+ }
+ }} // updateWindowSide - !nyitva
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js
new file mode 100644
index 00000000..db9f0830
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js
@@ -0,0 +1,210 @@
+$(function() {
+
+ var sumOsszeg=0;
+ var sumTamogatas=0;
+ var sumOsszeg_ok=0;
+ var sumTamogatas_ok=0;
+
+ checkTamogatasInput();
+ $('#ujTovabbkepzes span.ujIntezmeny').click(function() {
+ var h = 'Intézmény rövidneve: <input type="text" name="intezmenyRovidNev" /> ';
+ h += 'Intézmény neve: <input type="text" name="intezmenyNev" style="width:200px;"/>';
+ $(this).after(h);
+ $('#ujTovabbkepzes span.ujIntezmeny').remove();
+ $('#ujTovabbkepzes select').hide();
+ });
+
+ $('#tovabbkepzesTerv input[type=text].currency').change(function() {
+ element = $(event.target);
+ checkTamogatasInput();
+ });
+
+ $('#tanarTovabbkepzesForduloDt select').click(function() {
+ $(this).closest('form').find('input').removeClass('ajaxDone').removeClass('ajaxError');
+ });
+ $('#tanarTovabbkepzesForduloDt select').change(function() {
+ $(this).next('input').val($(this).val());
+ ajaxSetTanarAdat(
+ $(this).data('tanarid'),
+ $(this).val(),
+ $(this).closest('form').find('input.salt').attr('name'),
+ $(this).closest('form').find('input.salt').val()
+ );
+ console.log($(this).closest("tr").find('th').html('<button type="submit"><span class="icon-repeat" style="font-size:10px;"></span></button>'));
+ });
+
+ $('#tovabbkepzesNavi button').click(function() {
+ idToOpen = $(this).data('nav');
+ if (idToOpen=='') $('#tovabbkepzesNavi').siblings('form').fadeIn();
+ else {
+ $('#tovabbkepzesNavi').siblings('form').fadeOut();
+ $('#'+idToOpen).fadeIn();
+ }
+ });
+
+/* $('#tanarTovabbkepzesForduloDt th.tovabbkepzesCiklus').each(function(i) {
+ //enum('terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített') ;
+ $this = $(this);
+ terv = (parseFloat($(this).data('terv'))||0);
+ teljesitett = (parseFloat($(this).data('teljesített'))||0);
+ jovahagyott = (parseFloat($(this).data('jóváhagyott'))||0);
+ $this.find('span.terv').css({'width':terv+'px'});
+ $this.find('span.teljesitett').css({'width':teljesitett+'px'});
+ $this.find('span.jovahagyott').css({'width':jovahagyott+'px'});
+ });
+*/
+
+ google.load("visualization", "1.1", {callback:drawCharts,language:'hu',packages:["corechart","timeline"]});
+ /* -------------------------------------------------------------- */
+ function drawIdovonal() {
+ var container = document.getElementById('timeline');
+ var chart = new google.visualization.Timeline(container);
+ var dataTable = new google.visualization.DataTable();
+ dataTable.addColumn({ type: 'string', id: 'tovabbkepzes' });
+ dataTable.addColumn({ type: 'string', id: 'oraszam' });
+ dataTable.addColumn({ type: 'date', id: 'tolDt' });
+ dataTable.addColumn({ type: 'date', id: 'igDt' });
+
+ $('table.tovabbkepzes tbody tr.tovabbkepzesTanarSor').each(function(i) {
+ if ($(this).data('igdt')!='0000-00-00') {
+ var tanarNev = $(this).data('tanarnev');
+ var oraszam = $(this).data('oraszam') + " óra";
+ var tolDt = new Date( $(this).data('toldt') );
+ var igDt = new Date( $(this).data('igdt') );
+ dataTable.addRows([ [tanarNev, oraszam, tolDt, igDt] ]);
+ }
+ });
+ chart.draw(dataTable);
+ }
+ /* -------------------------------------------------------------- */
+ function drawPie1() {
+ var data = google.visualization.arrayToDataTable([
+ ['Task', 'Támogatás'],
+ ['Nem támogatott', sumOsszeg-sumTamogatas],
+ ['Támogatott', sumTamogatas]
+ ]);
+
+ var options = {
+ title: 'Támogatás',
+ slices: { 0: { color: 'red'}, 1: { color: 'green'} },
+ legend: {position: 'bottom', textStyle: {color: 'black', fontSize: 10}}
+ };
+ var chart = new google.visualization.PieChart(document.getElementById('grafikonTamogatas'));
+ chart.draw(data, options);
+ }
+ function drawPie2() {
+
+ var dataTable = new google.visualization.DataTable();
+ dataTable.addColumn('string', 'tanár');
+ dataTable.addColumn('number', 'támogatás');
+ $('table.tovabbkepzes tbody tr.tovabbkepzesTESor').each(function(i) {
+ if ($(this).data('igdt')!='0000-00-00') {
+ var tanarNev = $(this).data('tanarnev');
+ var reszosszeg = Number($(this).data('reszosszeg'));
+ var tamogatas = $(this).data('tamogatas');
+ dataTable.addRows([ [ tanarNev, reszosszeg ] ]);
+ }
+ });
+ var options = {
+ title: 'Továbbképzések eloszlása összeg szerint',
+ pieSliceText: '',
+ legend: {position: 'labeled', textStyle: {color: 'black', fontSize: 10}}
+ };
+ var chart = new google.visualization.PieChart(document.getElementById('grafikonOsszegEloszlas'));
+ chart.draw(dataTable, options);
+ }
+ /* -------------------------------------------------------------- */
+ function checkTamogatasInput() {
+ sumOsszeg=0;
+ sumTamogatas=0;
+ sumOsszeg_ok=0;
+ sumTamogatas_ok=0;
+ $('#tovabbkepzesTerv tbody input[type=text].currency').each(function(index) {
+ element = $(this);
+ if (element.data('inputtype') == 'tamogatas') {
+ if (Number($('#reszosszeg_'+element.data('kulcs')).val()) < Number(element.val())) {
+ element.addClass('hiba');
+ } else {
+ element.removeClass('hiba');
+ }
+ if ($.inArray(element.data('tovabbkepzesstatusz'),['terv','jóváhagyott','teljesített'])>=0) {
+ sumTamogatas_ok += Number(element.val());
+ }
+ sumTamogatas += Number(element.val());
+ } else {
+ if ($.inArray(element.data('tovabbkepzesstatusz'),['terv','jóváhagyott','teljesített'])>=0)
+ sumOsszeg_ok += Number(element.val());
+ sumOsszeg += Number(element.val());
+ }
+ });
+ $('#sumOsszeg').val(sumOsszeg);
+ $('#sumTamogatas').val(sumTamogatas);
+ $('#sumOsszeg_ok').val(sumOsszeg_ok);
+ $('#sumTamogatas_ok').val(sumTamogatas_ok);
+
+ var keretOsszeg = Number($('#keretOsszeg').val());
+ if (keretOsszeg<sumTamogatas_ok) {
+ $('#sumTamogatas_ok').addClass('hiba');
+ $('#tamogatasInfo').html('<span style="color:red">'+(keretOsszeg-sumTamogatas_ok)+' Ft.-</span>');
+ } else {
+ $('#sumTamogatas_ok').removeClass('hiba');
+ if ((keretOsszeg-sumTamogatas_ok)==0) $('#tamogatasInfo').html('');
+ else $('#tamogatasInfo').html('<span style="color:green">'+(keretOsszeg-sumTamogatas_ok)+' Ft.-</span>');
+ }
+ }
+ /* -------------------------------------------------------------- */
+
+ function drawCharts() {
+ drawIdovonal();
+ if ($('#grafikonTamogatas').length>0) drawPie1();
+ if ($('#grafikonOsszegEloszlas').length>0) drawPie2();
+ }
+
+ var clickedMegjegyzes = false;
+ $('span.tovabbkepzesMegjegyzes').click(function() {
+ clickedMegjegyzes = $(this).parent('td');
+ $('#updateForm').html($('#tovabbkepzesMegjegyzes_'+$(this).data('kulcs')+""));
+ $('#updateForm *').show();
+ $('#takaro').show();
+ $('#updateWindow').show();
+ });
+
+ hideUpdateLayer = function() {
+ $('#updateForm div').hide();
+ clickedMegjegyzes.append($('#updateForm div'));
+ };
+
+});
+
+
+
+ajaxSetTanarAdat = function(tanarId,forduloDt,salt_name,salt_value) {
+ postData = {'tanarId':tanarId,
+ 'forduloDt':forduloDt,
+ 'sessionID': $('body').data('sessionid'),
+ 'action':'modTanarTovabbkepzesForduloDt' }
+ postData[salt_name] = salt_value;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=tovabbkepzes&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONTovabbkepzes(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(errorThrown);
+ //console.log(jqXHR.responseJSON);
+ //displayJSONerror(jqXHR.responseJSON);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ triggerError(tanarId);
+ });
+}
+
+processJSONTovabbkepzes = function (ADAT) {
+ $('input[data-tanarid='+(ADAT.tanarId)+']').addClass('ajaxDone');
+}
+
+triggerError = function (tanarId) {
+ $('input[data-tanarid='+(tanarId)+']').addClass('ajaxError');
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js
new file mode 100644
index 00000000..7831c469
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js
@@ -0,0 +1,13 @@
+
+function htmlEncode(value){
+ //create a in-memory div, set it's inner text(which jQuery automatically encodes)
+ //then grab the encoded contents back out. The div never exists on the page.
+ return $('<div/>').text(value).html();
+}
+
+$(function() {
+ $('form.zaradek table input[type=text]').change(function(event) {
+ var element = $(event.target);
+ $('#'+element.attr('id')+'span').html(htmlEncode(element.val()));
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
new file mode 100644
index 00000000..fd9e8336
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
@@ -0,0 +1,1249 @@
+var debug=false;
+$(function() {
+
+ $('body').bind('submit', mayorNaploSubmitSearch);
+
+ $('.toolBarClear').click(function(event) {
+ var element = $(event.target);
+ element.closest('table').find('select').prop('selectedIndex',0);
+ element.closest('table').find('form').submit();
+ });
+
+ $('.btnSelectNext').on('click',function(event) {
+ var selectTool = $(this).prev('select'); // közvetlenül az előtte levő elem (select)
+ $(selectTool).find('option:selected').removeAttr('selected').next('option').attr('selected', 'selected');
+ $(selectTool).change();
+ });
+ $('.btnSelectPrev').on('click',function(event) {
+ var selectTool = $(this).next('select'); // közvetlenül a mögötte levő elem (select)
+ $(selectTool).find('option:selected').removeAttr('selected').prev('option').attr('selected', 'selected');
+ $(selectTool).change();
+ });
+
+ $('#toolBarHamburgerVezerlo').click(function(event) {
+ $('#toolBarHamburgerLista').toggle();
+ });
+
+// if ($('#diakSelectLista option').length == 0){
+ $('#diakSelectPattern').closest('form').submit( function(event) {
+ var $form = $(this);
+ if ($('#diakSelectLista').val()=="") {
+ $form.data('submitted',false);
+ return false;
+ }
+ });
+ $('#diakSelectIcon').click( function(event) {
+ $('#diakSelectPattern').toggle().focus();
+ //$('#diakSelectIcon').toggle();
+ $('#diakSelectLista').toggle().prop('selectedIndex',0);
+ });
+ $('#diakSelectPattern').change( function(event) {
+ var pattern = $('#diakSelectPattern').val();
+ // we need to catch ENTER!
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $.ajax({
+ type: "POST",
+ url: "?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+sessionID,
+ data: { 'pattern': pattern, 'tipus':'diak', 'sessionID':sessionID },
+ dataType: 'json'
+ }).done(function( msg ) {
+ var listItems = $('#diakSelectLista');
+ var D = msg[0]['diakok']; // vajon miért így kell erre hivatkozni?
+ if (D.length>0) {
+ listItems.find('option').remove();
+ listItems.find('optgroup').remove();
+ listItems.append('<option value=""></option>');
+ for (i=0; i<D.length; i++) {
+ listItems.append('<option value="'+D[i]['diakId']+'">'+D[i]['diakNev']+'</option>');
+ }
+ $('#diakSelectPattern').hide();
+ $('#diakSelectIcon').show();
+ $('#diakSelectLista').show().focus();
+ if (D.length==1) {
+ //$("#diakSelectLista").val($("#diakSelectLista option:last").attr('selected',true));
+ $("#diakSelectLista option:last").attr('selected',true);
+ $('#diakSelectTool').submit();
+ }
+ }
+ });
+ });
+// }
+
+
+
+/*
+ $(document).on('click', '.oraErtekel', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('oraid')==true ) {
+ ajaxSetOraLike(element.data('oraid'),element.data('jovolt'));
+ }
+ });
+*/
+ $(document).on('click', '.jegyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('jegyid')==true ) {
+ ajaxGetJegyAdat(element.data('jegyid'));
+ }
+ });
+
+ $(document).on('click', '.zaroJegyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('zarojegyid')==true ) {
+ ajaxGetZaroJegyAdat(element.data('zarojegyid'));
+ }
+ });
+
+ $(document).on('click', '.tankorAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('tankorid')==true ) {
+ ID = element.data('tankorid');
+ } else if ( $(this).data().hasOwnProperty('tankorid')==true ) {
+ ID = $(this).data('tankorid');
+ }
+ if (ID!='') ajaxGetTankorAdat(ID);
+
+ });
+
+ $(document).on('click', '.osztalyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('osztalyid')==true ) {
+ ID = (element.data('osztalyid'));
+ } else if ( $(this).data().hasOwnProperty('osztalyid')==true ) {
+ ID = $(this).data('osztalyid');
+ }
+ if (ID!='') ajaxGetOsztalyAdat(ID);
+ });
+
+ mayorNaploEventHandlers();
+
+});
+
+mayorNaploSubmitSearch = function (event) {
+
+ var element = $(event.target);
+ if (element.attr('id') == 'mayorSearch') {
+ var pattern = $('#mayorSearch input[type=text]').val();
+ var postData = { 'tipus':'diak','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoDiakAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+ var postData = { 'tipus':'tanar','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoTanarAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+ var postData = { 'tipus':'szulo','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoSzuloAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+
+
+ }
+
+}
+
+processJSONKeresoDiakAdat = function( ADAT ) {
+// console.log(JSON.stringify(ADAT));
+// $('#updateWindowSide').addClass('nyitva');
+// $('#updateWindowSideTitle').html(diakAdat['diakNev']);
+// $('#mayorSearch').remove();
+ var content = '';
+ if (ADAT['diakok'].length>0) {
+ for (i=0; i<ADAT['diakok'].length; i++) {
+ var a = ADAT['diakok'][i];
+ //content += '<div style="display:block;">';
+ content += '<a class="diakNev" data-diakid="'+a['diakId']+'" href="" onclick="return false;">'+a['diakNev']
+ if (a['osztalyJel']!=null) content += ' ('+a['osztalyJel']+')';
+ content +='</a>';
+ //content += '<span class="icon-envelope"></span>';
+ //content += '</div>';
+ }
+ $('#mayorSearch').append(content);
+ }
+}
+processJSONKeresoTanarAdat = function( ADAT ) {
+ var content = '';
+ if (ADAT['tanarok'].length>0) {
+ for (i=0; i<ADAT['tanarok'].length; i++) {
+ var a = ADAT['tanarok'][i];
+ content += '<a class="tanarNev" data-tanarid="'+a['tanarId']+'" href="" onclick="return false;">'+a['tanarNev']+'</a>';
+ }
+ $('#mayorSearch').append(content);
+ }
+}
+processJSONKeresoSzuloAdat = function( ADAT ) {
+ var content = '';
+ if (ADAT['szulok'].length>0) {
+ for (i=0; i<ADAT['szulok'].length; i++) {
+ var a = ADAT['szulok'][i];
+ content += '<a class="szuloNev" data-szuloid="'+a['szuloId']+'" href="" onclick="return false;">'+a['szuloNev']+'</a>';
+ }
+ $('#mayorSearch').append(content);
+ }
+
+}
+
+
+ajaxGetDiakAdat = function(diakId) {
+ postData = { 'diakId':diakId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getDiakAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONDiakAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetSzuloAdat = function(szuloId) {
+ postData = { 'szuloId':szuloId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getSzuloAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONSzuloAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetTanarAdat = function(tanarId) {
+ postData = { 'tanarId':tanarId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTanarAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTanarAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetTankorAdat = function(tankorId) {
+ postData = { 'tankorId':tankorId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+ajaxGetOsztalyAdat = function(osztalyId) {
+ postData = { 'osztalyId':osztalyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOsztalyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONOsztalyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetDolgozatAdat = function(dolgozatId) {
+ postData = { 'dolgozatId': dolgozatId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=dolgozatAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONDolgozatAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ alert('Valami hiba történt');
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetJegyAdat = function(jegyId) {
+ postData = { 'jegyId':jegyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getJegyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+ajaxGetZaroJegyAdat = function(zaroJegyId) {
+ postData = { 'zaroJegyId':zaroJegyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getZaroJegyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONZaroJegyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+
+ajaxGetOraAdat = function(oraId) {
+ mayorLoaderStart();
+ postData = { 'oraId':oraId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ mayorLoaderStop();
+ processJSONOraAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ mayorLoaderStop();
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+ajaxGetNapAdat = function(napDt) {
+ postData = { 'napDt': napDt, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=napAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONNapAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetJegyzetAdat = function(jegyzetId,refJegyzetDt) {
+ postData = { 'jegyzetId':jegyzetId, 'refJegyzetDt':refJegyzetDt, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyzetAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ });
+}
+
+ajaxSetOraAdat = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONOraAdat(msg);
+// updateOraAdat(msg.adat);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+ajaxSetJegyzetAdat = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyzetAdat(msg);
+ updateJegyzet(msg.adat);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+ajaxDelJegyzet = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ removeJegyzet(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+// --------------------------------------------------------------
+
+processJSONDiakAdat = function( diakAdat ) {
+
+ //if (diakAdat.visibleData != true) return false;
+ var content = '';
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','diakId':diakAdat['diakId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakTankor','diakId':diakAdat['diakId']})+'"><span class="icon-group-alt"></span><br/>Tankörök</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'diak','diakId':diakAdat['diakId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'diak','diakId':diakAdat['diakId']})+'"><span class="icon-pencil-alt"></span><br/>Jegyek</a></div>';
+// content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','diakId':diakAdat['diakId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hirnok','f':'hirnok','diakId':diakAdat['diakId']})+'"><span class="icon-bullhorn"></span><br/>Hírnök</a></div>';
+ content += '</div>';
+
+ if (diakAdat['diakOsztaly']!=undefined) {
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':diakAdat['diakId']}) +'">Osztály ('+diakAdat['tanev']+')</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakJogviszony']!=undefined)
+ for (i=0; i<diakAdat['diakOsztaly'].length; i++) {
+ var _osztalyAdat = diakAdat['osztalyAdat'][diakAdat['diakOsztaly'][i]['osztalyId']];
+ content += '<li>'
+ + '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','osztalyId':_osztalyAdat['osztalyId']}) +'">'
+ + (_osztalyAdat['osztalyJel']) + " "
+// + _osztalyAdat['kezdoTanev'] + '-' + _osztalyAdat['vegzoTanev'] + '/' + _osztalyAdat['jel']
+// + ' (' + _osztalyAdat['osztalyId'] + ') '
+ + diakAdat['diakOsztaly'][i]['beDt'] + ' – '
+ + ((diakAdat['diakOsztaly'][i]['kiDt'] == null) ? '____-__-__':diakAdat['diakOsztaly'][i]['kiDt'])
+ + '</a> ('+_osztalyAdat['osztalyId']+')</li>';
+ }
+ content += '</ul>';
+ }
+ if (diakAdat['diakKepzes']!=undefined)
+ if (diakAdat['diakKepzes'].length>0) {
+ content += '<h3>Képzések</h3>';
+ content += '<ul>';
+ for (i=0; i<(diakAdat['diakKepzes'].length); i++) {
+ content += '<li>'+diakAdat['diakKepzes'][i]['kepzesNev']+ ' ' + diakAdat['diakKepzes'][i]['tolDt'];
+ if (diakAdat['diakKepzes'][i]['igDt']!=null) content += ' – ' + diakAdat['diakKepzes'][i]['igDt'];
+ content += '</li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakStatusz','diakId':diakAdat['diakId']}) +'">Jogviszony</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakJogviszony']!=undefined)
+ for (i=0; i<diakAdat['diakJogviszony'].length; i++) {
+ content += '<li>' +diakAdat['diakJogviszony'][i]['statusz'] + ', ' + diakAdat['diakJogviszony'][i]['dt'] + '</li>';
+ }
+ content += '</ul>';
+
+ if (diakAdat['diakFelmentes']!=undefined)
+ if (diakAdat['diakFelmentes'].length>0) {
+ content += "<h3>Felmentések ("+diakAdat['tanev']+")</h3>";
+ content += '<ul>';
+ for (i=0; i<diakAdat['diakFelmentes'].length; i++) {
+ var d = diakAdat['diakFelmentes'][i];
+ content += '<li>'
+ + d['felmentesTipus'] + " "
+ + diakAdat['diakTankorAssoc'][d['tankorId']]['tankorNev'] + "<br/>"
+ + d['beDt'] + ' - ' + d['kiDt'] + " "
+ + "nap: "+d['nap'] + " "
+ + "óra: "+d['ora'] + " "
+ + '</li>';
+ }
+ content += '</ul>';
+ }
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakTankor','diakId':diakAdat['diakId']}) +'">Tankörök ('+diakAdat['tanev']+')</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakTankor']!=undefined)
+ for (i=0; i<diakAdat['diakTankor'].length; i++) {
+ content += '<li class="tankorAdat" data-tankorid="'+diakAdat['diakTankor'][i]['tankorId']+'">' +diakAdat['diakTankor'][i]['tankorNev'];
+ if (diakAdat['diakTankor'][i]['kovetelmeny']!='') content += ' (' + diakAdat['diakTankor'][i]['kovetelmeny'] + ')';
+ content += '</li>';
+ }
+ content += '</ul>';
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']}) +'">Egyéb</a></h3>';
+ content += '<ul>';
+ content += '<li>Egyedi azonosító (diakId): ' + diakAdat['diakId'] + '</li>';
+ if (diakAdat['userAccount'] != null) content += '<li>Login azonosító (userAccount): ' + diakAdat['userAccount'] + '</li>';
+ if (diakAdat['szuletesiHely'] != null) content += '<li>Született: ' +diakAdat['szuletesiHely'] + ', ' + diakAdat['szuletesiIdo'] +' <span class="diakEletkor">'+ diakAdat['diakEletkor'] + '</span></li>';
+ if (diakAdat['torzslapszam'] != null) content += '<li>Törzslapszám: ' +diakAdat['torzslapszam'] + '</li>';
+ if (diakAdat['mobil'] != null) content += '<li>Telefon: ' +diakAdat['mobil'] + '</li>';
+ if (diakAdat['email'] != null) content += '<li>E-mail: ' +diakAdat['email'] + '</li>';
+ content += '<li>Lakik: ' +diakAdat['lakhelyIrsz'] + ' '
+ +diakAdat['lakhelyHelyseg'] + ', '
+ +diakAdat['lakhelyKozteruletNev'] + ' '
+ +diakAdat['lakhelyKozteruletJelleg'] + ' '
+ +diakAdat['lakhelyHazszam']
+ + '</li>';
+ if (diakAdat['megjegyzes'] != null) content += '<li>Megjegyzés: ' + diakAdat['megjegyzes'] +'</li>';
+ content += '</ul>';
+ content += "<h3>Szülei</h3>";
+ content += '<ul>';
+ if (diakAdat['diakSzulo']!=undefined)
+ for (i=0; i<diakAdat['diakSzulo'].length; i++) {
+ var d = diakAdat['diakSzulo'][i];
+ content += '<li>';
+ //content += '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','diakId':diakAdat['diakId'],'szuloId':d['szuloId']}) +'">';
+ content += '<span class="szuloNev" data-szuloid="'+d['szuloId']+'">';
+ content += d['szuloNev'] + ' ('+d['szuloId']+')';
+ content += '</span>';
+// if (d['szuleteskoriNev']!=null) content += ' ('+d['szuleteskoriNev']+')';
+ content += '</li>';
+ }
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="diak"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='diak' ) {
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']})+'">'+diakAdat['diakNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']})+'">'+diakAdat['diakNev']+'</a>');
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+
+}
+
+processJSONTanarAdat = function( adat ) {
+// console.log(JSON.stringify(adat));
+ var content = '';
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','tanarId':adat['tanarId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ if (adat.layerPolicy>0) {
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tanarId':adat['tanarId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','tanarId':adat['tanarId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor','tanarId':adat['tanarId']})+'"><span class="icon-pencil-alt"></span><br/>Osztályozó</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hirnok','f':'hirnok','tanarId':adat['tanarId']})+'"><span class="icon-bullhorn"></span><br/>Hírnök</a></div>';
+ } else {
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','tanarId':adat['tanarId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+
+ }
+ content += '</div>';
+//
+// content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':adat['diakId']}) +'">Osztály ('+adat['tanev']+')</a></h3>';
+
+// content += '<h3>Mai órák</h3>';
+// content += adat['maiOrak']['html'];
+
+/*
+ content += '<h3>Óraterhelés</h3>';
+// oraTerheles":{"56":{"munkaido":{"heti":40,"kotott":32,"lekotott":26},"ossz":{"heti":"13","napi":"4"},"kotottEloirt":{"heti":"13","napi":"4"},"kotott":{"heti":"13","napi":"4"},"lekotott":{"heti":"13","napi":"4"}}}}
+ var OT = adat['oraTerheles'][adat['tanarId']];
+ content += '<ul>';
+ content += '<li>Heti munkaidő referencia: '+ OT['munkaido']['heti'] + '-' + OT['munkaido']['kotott'] + '-' + OT['munkaido']['lekotott'];
+ content += '</li><li>Össz: '+ OT['ossz']['heti'] + '|' + OT['ossz']['napi'];
+ content += '</li><li>Kötött: '+ OT['kotott']['heti'] + '|' + OT['kotott']['napi'];
+ content += '</li><li>Kötött-előírt: '+ OT['kotottEloirt']['heti'] + '|' + OT['kotottEloirt']['napi'];
+ content += '</li><li>Lekötött: '+ OT['lekotott']['heti'] + '|' + OT['lekotott']['napi'];
+ content += '</li>';
+ content += '</ul>';
+*/
+
+ if(adat.layerPolicy>0) {
+ if (adat.tanarTankor!=undefined) {
+ content += '<h3>Tanár tankörei</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tanarTankor.length; i++) {
+ content += '<li><span class="tankorAdat" data-tankorid="'+adat.tanarTankor[i]['tankorId']+'">'
+ +adat.tanarTankor[i].tankorNev+'</span></li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3>Egyéb adatok</h3>';
+ content += '<ul>';
+ if (adat['beDt']!='') content += '<li>Munkaviszony: '+adat['beDt']+ (adat['kiDt']==null?'':' – '+adat['kiDt']) +'</li>';
+ if (adat['hetiMunkaora']!='') content += '<li>Heti munkaóra: '+adat['hetiMunkaora']+'</li>';
+ if (adat['hetiKotelezoOraszam']!='') content += '<li>Heti kötelező óraszám: '+adat['hetiKotelezoOraszam']+'</li>';
+ if (adat['statusz']!='') content += '<li>Státusz: '+adat['statusz']+'</li>';
+ if (adat['besorolas']!='') content += '<li>Besorolás: '+adat['besorolas']+'</li>';
+ if (adat['tovabbkepzesForduloDt']!='') content += '<li>Továbbképzés forduló dátum: '+adat['tovabbkepzesForduloDt']+'</li>';
+ content += '</ul>';
+ }
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="tanar"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='tanar' ) {
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanar','tanarId':adat['tanarId']})+'">'+adat['tanarNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanar','tanarId':adat['tanarId']})+'">'+adat['tanarNev']+'</a>');
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONOraAdat = function(adat) {
+
+ var content = '';
+ var dolgozatAdat;
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tanarId':adat['oraAdat']['ki'],'tankorId':adat['oraAdat']['tankorId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '</div>';
+
+ content += '<h3>A haladási óra adatai</h3>';
+ content += '<ul>';
+ content += '<li>Típus: ' + adat['oraAdat']['tipus'] +'</li>';
+ content += '<li>Tankör: ' + adat['oraAdat']['tankorNev']+'</li>';
+ if (adat['oraAdat']['kiCn']!='') content += '<li><span class="tanarNev" data-tanarid="'+adat['oraAdat']['ki']+'" >Tanár: ' + adat['oraAdat']['kiCn'] +'</span></li>';
+// if (adat['oraAdat']['kiCn']!='') content += '<li><span>Tanár: ' + adat['oraAdat']['kiCn'] +'</li>';
+ if (adat['oraAdat']['kitCn']!='') content += '<li>Helyettesítendő: ' + adat['oraAdat']['kitCn'] +'</li>';
+ content += '<li>Terem: ' + (adat['oraAdat']['teremId']==null?'–':adat['oraAdat']['teremId']) +'</li>';
+ content += '<li>Leírás: ' + (adat['oraAdat']['leiras']) +'</li>';
+ content += '</ul>';
+
+ if (adat['oraBeirhato']) content += adat['oraForm'];
+// content += '<h3>Óra kapcsolatai</h3>';
+// content += '<ul><li>Beírt mulasztások száma: '+'n/a'+'</li>';
+// content += '<li>Beírt jegyek száma: '+'n/a'+'</li>';
+// content += '</ul>';
+
+ content += '<h3>Dolgozatok</h3>';
+
+ if (adat['dolgozat']['dolgozatIds'].length>0) {
+ content += '<ul>';
+ for (i=0; i<adat['dolgozat'].dolgozatIds.length; i++) {
+ dolgozatAdat = adat['dolgozat'][adat['dolgozat'].dolgozatIds[i]];
+ content += '<li class="dolgozatAdat" data-dolgozatid="'+dolgozatAdat['dolgozatId']+'">'+dolgozatAdat['tervezettDt']+': '+ dolgozatAdat.dolgozatNev + '</li>';
+ // bejelentesDt, tervettDt, tankor...
+ }
+ content += '</ul>';
+ }
+ if (adat['dolgozatBeirhato']) {
+ content += adat['dolgozatForm'];
+ }
+ if (adat['elozoOrak']!=undefined && adat['elozoOrak'].length>0) {
+ content += '<h3>Előző órák</h3>';
+ content += '<ul>';
+ for (i=0; i<adat['elozoOrak'].length; i++) {
+ content += '<li class="oraAdat" data-oraid="'+adat['elozoOrak'][i]['oraId']+'">'
+ + adat['elozoOrak'][i]['dt'] + ' '
+ + adat['elozoOrak'][i]['ora'] + '. óra '
+ + mayorLeiras(adat['elozoOrak'][i]['leiras'])
+ + '</li>';
+ }
+ content += '</ul>';
+ }
+
+// content += '<div class="oraErtekel" data-oraid="1" data-jovolt="1">+++++</div>';
+// content += '<div class="oraErtekel" data-oraid="1" data-jovolt="0">-----</div>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="oraAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='oraAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'">Haladási napló</a>');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'">Haladási napló órája</a>');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONJegyAdat = function(adat) {
+
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'jegy','jegyId':adat['jegyId']})+'"><span class="icon-pencil-alt"></span><br/>Jegy</a></div>';
+ content += '</div>';
+
+ content += '<h3>A jegy adatai</h3>';
+ content += '<ul>';
+ content += '<li>Értékelés (rövid): ' + adat['jegyAdat']['rovid'] +'</li>';
+ content += '<li>Hivatalos értékelés: ' + adat['jegyAdat']['hivatalos'] +'</li>';
+ content += '<li>Diák: <span class="diakNev" data-diakid="'+adat['jegyAdat']['diakId']+'">' + adat['diakNev'] +'</span></li>';
+ content += '<li>Diák azonosító: ' + adat['jegyAdat']['diakId'] +'</li>';
+ content += '<li>Tárgy: ' + adat['targyNev'] + ' (' + adat['jegyAdat']['targyId'] +')</li>';
+ content += '<li>Jegy típus: ' + adat['jegyAdat']['jegyTipus'] +'</li>';
+ content += '<li>Jegy érték: ' + adat['jegyAdat']['jegy'] +'</li>';
+ if (adat['jegyAdat']['oraId']>0) content += '<li>Kapcsolódó óra: <span class="oraAdat" data-oraid="'+adat['jegyAdat']['oraId']+'">'+ adat['jegyAdat']['oraId'] +'</span></li>';
+ if (adat['jegyAdat']['dolgozatId']>0) content += '<li>Kapcsolódó dolgozat: <span class="dolgozatAdat" data-dolgozatid="'+adat['jegyAdat']['dolgozatId']+'">'+ adat['jegyAdat']['dolgozatId'] +'</span></li>';
+ content += '<li>Megjegyzés: ' + adat['jegyAdat']['megjegyzes'] +'</li>';
+ content += '<li>Beírás dátuma: ' + adat['jegyAdat']['dt'] +'</li>';
+ if (adat['jegyAdat']['modositasDt']!='0000-00-00 00:00:00') content += '<li>Utolsó módosítás: ' + adat['jegyAdat']['modositasDt'] +'</li>';
+
+// if (adat['oraAdat']['kiCn']!='') content += '<li>Tanár: ' + adat['oraAdat']['kiCn'] +'</li>';
+// if (adat['oraAdat']['kitCn']!='') content += '<li>Helyettesítendő: ' + adat['oraAdat']['kitCn'] +'</li>';
+ content += '</ul>';
+
+ // content += adat['jegySelect'];
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="jegyAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='jegyAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('Jegy adatai');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('Jegy adatai');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+}
+
+processJSONZaroJegyAdat = function(adat) {
+
+ var content = '';
+ content += '<h3>A zárójegy adatai</h3>';
+ content += '<ul>';
+ content += '<li>Hivatalos értékelés: ' + adat['zaroJegyAdat']['hivatalos'] +'</li>';
+ content += '<li>Értékelés (rövid): ' + adat['zaroJegyAdat']['rovid'] +'</li>';
+ content += '<li>Diák: <span class="diakNev" data-diakid="'+adat['zaroJegyAdat']['diakId']+'">' + adat['diakNev'] +'</span></li>';
+ content += '<li>Diák azonosító: ' + adat['zaroJegyAdat']['diakId'] +'</li>';
+ content += '<li>Tárgy: ' + adat['targyNev'] + ' ' + adat['zaroJegyAdat']['targyId'] +'</li>';
+ content += '<li>Évfolyamjel: ' + adat['zaroJegyAdat']['evfolyamJel'] +'</li>';
+ content += '<li>Félév: ' + adat['zaroJegyAdat']['felev'] +'</li>';
+ content += '<li>Jegy típus: ' + adat['zaroJegyAdat']['jegyTipus'] +'</li>';
+ content += '<li>Jegy érték: ' + adat['zaroJegyAdat']['jegy'] +'</li>';
+ content += '<li>Megjegyzés: ' + adat['zaroJegyAdat']['megjegyzes'] +'</li>';
+ content += '<li>Módosítás dátuma: ' + adat['zaroJegyAdat']['modositasDt'] +'</li>';
+ content += '<li>Hivatalos dátum: ' + adat['zaroJegyAdat']['hivatalosDt'] +'</li>';
+ content += '</ul>';
+
+ if (adat['fotargy']==true) {
+ content += '<h3>Főtárgy</h3>';
+ }
+ if (adat['altargy']==true) {
+ content += '<h3>Altárgy</h3>';
+ }
+
+ // content += adat['jegySelect'];
+ // console.log(adat);
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="zaroJegyAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='zaroJegyAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('Osztályzat, zárójegy');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('Osztályzat, zárójegy');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+}
+
+processJSONOsztalyAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','osztalyId':adat['osztalyId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','osztalyId':adat['osztalyId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '</div>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="osztaly"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='osztaly' ) {
+ $('#updateWindowSideSubTitle').html(adat['nev']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['nev']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONTankorAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','tankorId':adat['tankorId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tankorId':adat['tankorId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+// content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanarTankor','diakId':tanarAdat['diakId']})+'"><span class="icon-group-alt"></span><br/>Tankörök</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor','tankorId':adat['tankorId']})+'"><span class="icon-pencil-alt"></span><br/>Osztályozó</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'tanmenet','f':'tanmenetInfo','tanmenetId':adat['tanmenetId']})+'"><span class="icon-calendar-sign"></span><br/>Tanmenet</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','tankorId':adat['tankorId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+
+ content += '</div>';
+
+
+ if (adat.tankorTanar!=undefined) {
+ content += '<h3>Tanárok</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tankorTanar.length; i++) {
+ content += '<li><span class="tanarNev" data-tanarid="'+adat.tankorTanar[i]['tanarId']+'">'+adat.tankorTanar[i].tanarNev+'</span> ('+adat.tankorTanar[i]['minBeDt']+'–'+adat.tankorTanar[i]['maxKiDt']+')</li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3>'+mayorLeiras(adat['leiras'])+'</h3>';
+ content += '<ul>';
+ content += '<li>megjegyzés: '+adat['tankorCn']+'</li>';
+ content += '<li>névsor: '+adat['nevsor']+'</li>';
+ content += '<li>választható: '+adat['felveheto']+' ('+adat['min']+'-'+adat['max']+')</li>';
+ content += '<li>jelenlét: '+adat['jelenlet']+'</li>';
+ content += '<li>hiányzás regisztrálandó: '+adat['regisztralando']+'</li>';
+ content += '<li>hiányzás beleszámít: '+adat['hianyzasBeleszamit']+'</li>';
+ content += '<li>óraszám: '+adat['oraszam']+'</li>';
+ content += '</ul>';
+
+ if (adat.tankorBlokk.length>0) {
+ content += '<h3>Tankörblokk ('+adat.tankorBlokk.length+')</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tankorBlokk.length; i++) {
+ content += '<li>'+adat.tankorBlokk[i].blokkNev+'</li>';
+ }
+ content += '</ul>';
+ }
+ if (adat.tanmenetId>0) {
+ content += '<h3>Tanmenet ('+adat.tanmenetId+')</h3>';
+ content += '<ul>';
+ content += '<li>név: <a href="'+href({'page':'naplo','sub':'tanmenet','f':'tanmenetInfo','tanmenetId':adat['tanmenetId']})+'">'+adat.tanmenetAdat.tanmenetNev+'</a></li>';
+ content += '<li>évfolyam jel: '+adat.tanmenetAdat.evfolyamJel+'</li>';
+ content += '<li>tárgy: '+adat.tanmenetAdat.targyNev+'</li>';
+ content += '<li>óraszám: '+adat.tanmenetAdat.oraszam+'</li>';
+ content += '<li>státusz: '+adat.tanmenetAdat.statusz+'</li>';
+// for (i=0; i<adat.tanmenetAdat.length; i++) {
+// content += '<li>'+adat.tanmenetAdat[i]+'</li>';
+// }
+ content += '</ul>';
+ }
+
+
+ content += '<h3>Osztályok</h3>';
+ content += '<ul>';
+ if (adat.osztalyIds!=undefined) {
+ for (i=0; i<adat.osztalyIds.length; i++) {
+ osztalyId = adat.osztalyIds[i];
+ for (j=0; j<adat.osztalyok.length; j++) {
+ var index = adat.osztalyok[j].osztalyId
+ if (index == osztalyId) osztalyAdat = adat.osztalyok[j];
+ }
+ content += '<li><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','osztalyId':osztalyId}) +'">'+osztalyAdat.osztalyJel+' ('+osztalyAdat.leiras+') '+osztalyAdat.osztalyfonokNev+'</a></li>';
+ }
+ }
+ content += '</ul>';
+
+ content += '<h3><a href="'+href({'page':'naplo','sub':'intezmeny','f':'tankorDiak','tankorId':adat['tankorId']})+'">Névsor</a> ('+adat.tankorDiak.idk.length+')</h3>';
+ content += '<ul>';
+ if (adat.tankorDiak.idk!=undefined) {
+ var _diakId = 0;
+ for (i=0; i<adat.tankorDiak.idk.length; i++) {
+ _diakId = adat.tankorDiak.idk[i];
+ diakNev = adat.tankorDiak.nevek[_diakId].diakNev;
+// content += '<li><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':diakId}) +'">'+osztalyAdat.osztalyJel+' ('+osztalyAdat.leiras+') '+osztalyAdat.osztalyfonokNev+'</a></li>';
+ content += '<li><span class="diakNev diakAdat" data-diakid="'+ _diakId +'">'+ diakNev +'</span></li>';
+ }
+ }
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="tankor"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='tankor' ) {
+// $('#updateWindowSideSubTitle').html(adat['tankorNev']);
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tankor','tankorId':adat['tankorId']})+'">'+adat['tankorNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+// $('#updateWindowSideTitle').html(adat['tankorNev']);
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tankor','tankorId':adat['tankorId']})+'">'+adat['tankorNev']+'</a>');
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+ // IDE
+
+}
+
+
+processJSONSzuloAdat = function( adat ) {
+
+ var content = '';
+
+// content += '<div id="mayorNaviIconHolder">';
+// content += '</div>';
+
+ content += "<h3>Elérhetőségek</h3>";
+ content += '<ul>';
+ content += '<li>Felhasználónév: '+adat['userAccount']+'</li>';
+ content += '<li>Email: '+adat['email']+'</li>';
+ content += '<li>Mobiltelefon: '+adat['mobil']+'</li>';
+ content += '<li>Foglalkozás: '+adat['foglalkozas']+'</li>';
+ content += '<li>Munkahely: '+adat['munkahely']+'</li>';
+ content += '<li>Lakik: '
+ +adat['cimIrsz'] + ' '
+ +adat['cimHelyseg'] + ', '
+ +adat['cimKozteruletNev'] + ' '
+ +adat['cimKozteruletJelleg'] + ' '
+ +adat['cimHazszam']
+ + '</li>';
+
+ content += '</ul>';
+
+ content += "<h3>Szülő adatai</h3>";
+ content += '<ul>';
+ content += '<li>Státusz: '+adat['statusz']+'</li>';
+ content += '<li>Születési adatok: '+'-'+'</li>';
+ content += '</ul>';
+
+
+ content += "<h3>Gyermekei</h3>";
+ content += '<ul>';
+ if (adat['szuloGyermekei']!=undefined)
+ for (i=0; i<adat['szuloGyermekei'].length; i++) {
+ var d = adat['szuloGyermekei'][i];
+ content += '<li>';
+ content += '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':d['diakId']}) +'">';
+ content += d['diakNev'];
+ content += '</a>';
+ content += '</li>';
+ }
+
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="szulo"></span>';
+ content = content.replace(/undefined/g, "-"); // testing
+
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='szulo' ) {
+ //$('#updateWindowSideSubTitle').html(adat['szuloNev']);
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','szuloId':adat['szuloId']})+'">'+adat['szuloNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','szuloId':adat['szuloId']})+'">'+adat['szuloNev']+'</a>');
+ //$('#updateWindowSideTitle').html(adat['szuloNev']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+
+processJSONJegyzetAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+ content += '<p>'+adat['jegyzetForm']+'</p>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="jegyzet"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='jegyzet' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONNapAdat = function(adat) {
+
+// if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<ul>'
+ content += '<li>Tanítási nap: '+adat['tanitasiNapAdat'][adat['dt']]['napszam']+'</li>';
+
+ for (i=0; i<adat.napAdat.length; i++) {
+ content += '<li>';
+ content += adat.napAdat[i]['munkatervId']+'. munkaterv szerint:';
+ content += '<ul>';
+ content += '<li>nap típus: '+adat.napAdat[i]['tipus']+'</li>';
+ content += '<li>csengetési rend: '+adat.napAdat[i]['csengetesiRendTipus']+'</li>';
+ content += '<li>megjegyzés: '+adat.napAdat[i]['megjegyzes']+'</li>';
+ content += '</ul>';
+ content += '</li>';
+ }
+ content += '</ul>';
+
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="napAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='napAdat' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONDolgozatAdat = function(adat) {
+
+// if (adat.visibleData != true) return false;
+ var content = '';
+ var tankorAdat;
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'dolgozat','dolgozatId':adat['dolgozatId']})+'"><span class="icon-idea-alt"></span><br/>Dolgozat adatok</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor'})+'"><span class="icon-pencil-alt"></span><br/>Jegyek</a></div>';
+ content += '</div>';
+
+
+ content += '<ul>'
+ content += '<li>Leírás: <i>'+adat['dolgozatAdat']['dolgozatNev']+'</i></li>';
+ content += '<li>Bejelentés: '+adat['dolgozatAdat']['bejelentesDt']+'</li>';
+ content += '<li>Tervezett: '+adat['dolgozatAdat']['tervezettDt']+'</li>';
+ content += '</ul>';
+
+ content += '<h3>Tankörök</h3>';
+ content += '<ul>';
+ for (i=0; i<adat['dolgozatAdat']['tankorok'].length; i++) {
+ tankorAdat = adat['dolgozatAdat']['tankorok'][i][0];
+ content += '<li class="tankorAdat" data-tankorid="'+tankorAdat['tankorId']+'">' +tankorAdat['tankorNev']+'</li>';
+ }
+ content += '</ul>';
+
+ content += '<h3>Érdemjegy statisztika</h3>';
+ content += '<ul>'
+ content += '<li>Beírt jegy: '+adat['dolgozatAdat']['jegyStatisztika']['db']+'</li>';
+ content += '<li>Átlag: '+adat['dolgozatAdat']['jegyStatisztika']['atlag']+'</li>';
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="dolgozatAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='dolgozatAdat' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+
+// -----------------------------------------------------------------
+mayorNaploEventHandlers = function() {
+
+ $('.jegyzetAdat').off('click').on('click', function(event) {
+ // credits: rpetya (rakolcza.peter@gmail.com)
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ var refJegyzetDt = '';
+ if ( elementData.hasOwnProperty('jegyzetid')==true ) {
+ ID = (element.data('jegyzetid'));
+ refJegyzetDt = (element.data('jegyzetdt'));
+ } else if ( $(this).data().hasOwnProperty('jegyzetid')==true ) {
+ ID = $(this).data('jegyzetid');
+ refJegyzetDt = $(this).data('jegyzetdt');
+ }
+ //event.stopPropagation();
+ if (ID!='') ajaxGetJegyzetAdat(ID,refJegyzetDt);
+ });
+
+ $('.setOraAdat').off('click').on('click', function(event) {
+ ajaxSetOraAdat($(this).parents('form').serialize());
+ });
+ $('.setJegyzetAdat').off('click').on('click', function(event) {
+ ajaxSetJegyzetAdat($(this).parents('form').serialize());
+ });
+
+ $('.delJegyzet').off('click').on('click', function(event) {
+ ajaxDelJegyzet($(this).parents('form').serialize());
+ });
+
+ $('.oraAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('oraid')==true ) {
+ ID = (element.data('oraid'));
+ } else if ( $(this).data().hasOwnProperty('oraid')==true ) {
+ ID = $(this).data('oraid');
+ }
+ if (ID!='') ajaxGetOraAdat(ID);
+ $('.oraAdat').removeClass('activeElement');
+ $(this).addClass('activeElement');
+ });
+
+ $('.dolgozatAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('dolgozatid')==true ) {
+ ID = (element.data('dolgozatid'));
+ } else if ( $(this).data().hasOwnProperty('dolgozatid')==true ) {
+ ID = $(this).data('dolgozatid');
+ }
+ if (ID!='') ajaxGetDolgozatAdat(ID);
+ });
+
+ $('.napAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('napdt')==true ) {
+ ajaxGetNapAdat(element.data('napdt'));
+ }
+ });
+
+ $('.diakNev').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('diakid')==true ) {
+ ID = element.data('diakid');
+ } else if ( $(this).data().hasOwnProperty('diakid')==true ) {
+ ID = $(this).data('diakid');
+ }
+ if (ID!='') ajaxGetDiakAdat(ID);
+ });
+
+ $('.tanarNev').off('click').on('click', function(event) {
+
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('tanarid')==true ) {
+ ID = element.data('tanarid');
+ } else if ( $(this).data().hasOwnProperty('tanarid')==true ) {
+ ID = $(this).data('tanarid');
+ }
+ if (ID!='') ajaxGetTanarAdat(ID);
+ });
+
+ $('.szuloNev').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('szuloid')==true ) {
+ ajaxGetSzuloAdat(element.data('szuloid'));
+ }
+ });
+
+} // mayorNaploEventHandlers
+// -----------------------------------------------------------------
+
+updateJegyzet = function(adat) {
+
+ $('#orarendJegyzetSor').show();
+ var jegyzetId = parseInt(adat['jegyzetId']);
+ $('.jegyzetContainer[data-dt!="'+adat['dt']+'"] div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ $('div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ var result = $('div.jegyzetAdat[data-jegyzetid="'+(jegyzetId)+'"]').text(adat.jegyzetLeiras);
+ if (result.length==0) {
+ var o = '<div class="jegyzet jegyzetAdat publikus'+adat['publikus']+'" data-jegyzetid="'+jegyzetId+'"></div>';
+ $('.jegyzetContainer[data-dt="'+adat['dt']+'"]').append(o);
+ $('div.jegyzetAdat[data-jegyzetid="'+jegyzetId+'"]').text(adat.jegyzetLeiras);
+ }
+ // minden nyitva levőt bezár -- TODO -- altalanos
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ if ($.isFunction(hideUpdateWindowSideSub)) hideUpdateWindowSideSub();
+}
+
+removeJegyzet = function(adat) {
+ var jegyzetId = parseInt(adat['jegyzetId']);
+ $('div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ if ($.isFunction(hideUpdateWindowSideSub)) hideUpdateWindowSideSub();
+}
+
+hideUpdateWindowSide = function() {
+ $('.oraAdat').removeClass('activeElement');
+}
+
+mayorLeiras = function(str) {
+ if (str==undefined || str=='' || str == false) {
+ return '<i>–</i>';
+ } else {
+ return '<i>' + $('<div/>').text(str).html() + '</i>';
+ }
+}
+
+mayorLoaderStop = function() { // overwrite orig
+ mayorNaploEventHandlers();
+ mayorLoaderCounter--;
+ if (mayorLoaderCounter==0) {
+ $('#poz li:first').removeClass('mayorLoader');
+ }
+}
+
+ajaxSetOraLike = function(oraId, jovolt) {}
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
new file mode 100644
index 00000000..c95aa28b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
@@ -0,0 +1,88 @@
+$(function() {
+
+ function isMobile() { // --TODO -- global namespace
+ try{ document.createEvent("TouchEvent"); return true; }
+ catch(e){ return false; }
+ }
+
+ var origHtmlStr = $('table.orarend thead th.het').html();
+
+ $('form span.normalTerem').on('click',function(event) {
+ var el = $(event.target);
+ var tmpid = ($(el).data('tmpid'));
+ $("form select[data-tmpid='"+tmpid+"']").toggle();
+ event.stopPropagation();
+ });
+
+ $('table.orarend thead tr th').on('click',function() { // tool kezeles mobilon
+ if ($(this).data('napindex')>0 && isMobile() == true) {
+ $(this).find('table.orarend span.napLeiras').toggle();
+ $(this).find('table.orarend div.orarendTools').toggle();
+ }
+ });
+
+
+ if ($('table.orarend tr th.ma').length>0 && $('html').width()<500) {
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').not('.ma').hide();
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ }
+
+
+ $('table.orarend tbody tr.orarendJegyzetSor th').on('click', function() {
+ $('table.orarend tbody tr.orarendJegyzetSor').hide();
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ });
+
+ $('table.orarend tr th span.bezar').click(function() {
+ // event.stopPropagation();
+ var napindex = ($(this).parents('th').data('napindex'));
+ if (napindex==undefined) {
+ //for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').not('.ma').toggle('right');
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').show('right');
+ $('table.orarend thead th.het').html(origHtmlStr);
+ } else {
+ $('table.orarend *[data-napindex="'+napindex+'"]').hide('left');
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ }
+ });
+ $('table.orarend tr th.het').click(function(event) {
+ event.stopPropagation();
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').show('right');
+ $('table.orarend thead th.het').html(origHtmlStr);
+ $('table.orarend tbody tr.orarendJegyzetSor').show();
+ });
+ // $(window).resize(orarendResizer); // missing
+ $('.most').parent('th').addClass('most');
+ $('table.orarend td.csr').bind('mouseenter', function(event) {
+ var el = $(event.target);
+ var iid = '';
+ var thiselement = null;
+ if (el.is('td') && el.attr('id')!='') {
+ iid = el.attr('id')
+ thiselement = el;
+ } else if (el.parents('td').attr('id')!='') {
+ iid = el.parents('td').attr('id');
+ thiselement = el.parents('td');
+ }
+ if (iid!='undefined' && iid!='') {
+ var nap = iid.split('_')[2];
+ for (var i=1; i<=7; i++) {
+ if (nap==i) {
+ $('.csr_'+i).show();
+ $('.csr_'+i).parent('th').removeClass('most');
+ $('.most').parent('th').addClass('most');
+ }
+ else $('.csr_'+i).hide();
+ }
+ }
+ // hover
+ var napindex = thiselement.data('napindex');
+ $('table.orarend thead tr th[data-napindex="'+napindex+'"]').addClass('hover');
+ var oraindex = thiselement.data('oraindex');
+ $('table.orarend tbody tr th[data-oraindex="'+oraindex+'"]').addClass('hover');
+ });
+ $('table.orarend td.csr').bind('mouseleave', function(event) {
+ $('table.orarend thead tr th').removeClass('hover');
+ $('table.orarend tbody tr th').removeClass('hover');
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js
new file mode 100644
index 00000000..ceca5176
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js
@@ -0,0 +1,12 @@
+$(function() {
+ $('#haladasiModositando').bind('click', function(event) {
+ $target = $(event.target);
+ $target.parent('div').toggleClass('haladasiModositando');
+ //alert('Ez a funkció egy új fejlesztés!');
+ //console.log($target);
+ });
+
+ $('table.orarend tbody tr td input[type=checkbox]').click(function() {
+ $(this).closest('div').toggleClass('torlesreJelolve');
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js
new file mode 100644
index 00000000..25ab35a1
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js
@@ -0,0 +1,80 @@
+/*
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+ doOnChange = function(event) {
+ var element = $(Event.element(event));
+ if (element.hasClassName('orarendTankor')) {
+ var idArray = element.getAttribute('id').split('_');
+ var id = idArray[1]+'_'+idArray[2]+'_'+idArray[3];
+ var orarendTankor = element.up('table').getElementsBySelector('select.orarendTankor');
+ var ertek = $F(element);
+ $A(orarendTankor).each(
+ function (elem, index) {
+ if (elem.getAttribute('id').include(id)) {
+ elem.setValue(ertek);
+ }
+ }
+ );
+
+ }
+ }
+
+ Event.observe(document.body, 'mayor:change', doOnChange);
+
+ Event.observe(document.body, 'change', doOnChange);
+
+// Sortable.create('test', { tag:'div', overlap:'horizontal',constraint:false });
+ Sortable.create('orarend', { tag:'div', only:'draggable' ,
+ tree: true,
+ treeTag: 'div',
+ overlap:'vertical',
+ dropOnEmpty:true,
+ constraint:false,
+ onEnd: function(){
+ alert('onEnd');
+ },
+ onChange:function(e){
+// $('infoBox').update( Form.Element.getValue( e.down('input')) );
+
+ e.addClassName('moved');
+
+ e.down('input').checked=false;
+ e.down('input').hide();
+
+// e.down('input').value='test';
+
+ // ez az eredeti helye (het.nap.ora.tanarId)
+ $('infoBox1').update( (e.down('input').value) );
+ // ez az új helye
+ $('infoBox2').update( e.up('td').getAttribute('id') );
+
+ } });
+
+// new Draggable('draggable', { revert: true });
+// Droppables.add('droppable', { accept: 'draggable' });
+
+// Sortable.create(
+// 'sortable',
+// {onUpdate:function(){$('debug').update(++callsToOnUpdate+' call(s) to onUpdate')}}
+// );
+
+// $('targySelect').disable();
+// $('targySelect').hide(); $('mozgat').hide();
+// $('action').value='ujSorrend';
+// $('targyUl').show(); $('submit').show();
+
+
+// Sortable.create(
+// "draggable",
+// {dropOnEmpty:true,handle:'handle',containment:["draggable"],constraint:false,onChange:function(){}}
+// );
+
+
+// $('serialize').observe('click', function(event) {
+// alert(Sortable.serialize('sortable'));
+// });
+
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/szabadTerem.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/szabadTerem.jquery.min.js
new file mode 100644
index 00000000..55f50fc6
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/szabadTerem.jquery.min.js
@@ -0,0 +1,17 @@
+$(function() {
+
+ function isMobile() { // --TODO -- global namespace
+ try{ document.createEvent("TouchEvent"); return true; }
+ catch(e){ return false; }
+ }
+
+ $('form.teremKereso span').on('click',function(event) {
+ var el = $(event.target);
+ var teremType = ($(el).data('c'));
+ $("table.orarend span[class='teremAdat "+teremType+"']").toggle();
+ el.toggleClass('clk');
+ console.log(teremType);
+ event.stopPropagation();
+ });
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js
new file mode 100644
index 00000000..a19bd03e
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js
@@ -0,0 +1,5 @@
+$(function() {
+ $('.magic').bind('click', function(event) {
+ $('.magic').val('Várj, ne nyomj meg még1*! :) épp varázsolunk...');
+ });
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js
new file mode 100644
index 00000000..b4a58912
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js
@@ -0,0 +1,93 @@
+$(function() {
+
+ $('#virtualJegyEasterEgg').click(function() { $('.virtual').remove(); $('.eeHidden').fadeToggle(); atlagSzamol(); });
+ $('.addVirtualJegy').click(function() {
+ var x = $(this).prev().val().split('|');
+ var tipus = $(this).prev().prev().val();
+ var jegy = 0;
+ for(var i = x.length; i--;) {
+ var z = x[i].split('=');
+ if (z[0]=='targyId') { targyId = z[1]; }
+ if (z[0]=='jegy') { jegy = z[1]; }
+ }
+ if (jegy>0)
+ $(this).parent().next('td').append('<a class="eeHidden virtual jegy jegy'+tipus+'" title="" data-targyid="'+targyId+'" data-jegy="'+jegy+'" data-jegytipus="féljegy" data-tipus="'+tipus+'"> '+parseFloat(jegy).toFixed(2)+'</a>');
+ atlagSzamol();
+ });
+
+ $('#sulyozas').on('change',function() {
+ atlagSzamol();
+ });
+
+ $('.jegy1').hover(function(event) {
+ $('.jegy1').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy1').removeClass('jegyKiemel');
+ });
+ $('.jegy2').hover(function(event) {
+ $('.jegy2').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy2').removeClass('jegyKiemel');
+ });
+ $('.jegy3').hover(function(event) {
+ $('.jegy3').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy3').removeClass('jegyKiemel');
+ });
+ $('.jegy4').hover(function(event) {
+ $('.jegy4').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy4').removeClass('jegyKiemel');
+ });
+ $('.jegy5').hover(function(event) {
+ $('.jegy5').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy5').removeClass('jegyKiemel');
+ });
+
+ $('tfoot .jegy0').click(function(event) {jegyToggleByTipus(0);});
+ $('tfoot .jegy1').click(function(event) {jegyToggleByTipus(1);});
+ $('tfoot .jegy2').click(function(event) {jegyToggleByTipus(2);});
+ $('tfoot .jegy3').click(function(event) {jegyToggleByTipus(3);});
+ $('tfoot .jegy4').click(function(event) {jegyToggleByTipus(4);});
+ $('tfoot .jegy5').click(function(event) {jegyToggleByTipus(5);});
+
+});
+
+function jegyToggleByTipus(tipus) {
+ if (tipus==0) $('tfoot .jegy0').removeClass('icon-refresh');
+ else $('tfoot .jegy0').removeClass('icon-search-alt').addClass('icon-refresh');
+ $.each([ 1,2,3,4,5 ], function( index, value ) {
+ if (tipus!=0 && tipus!=value) {
+ $('tbody .jegy'+value).fadeOut();
+ } else {
+ $('tbody .jegy'+value).fadeIn();
+ }
+ });
+}
+
+function atlagSzamol() {
+ $('.atlag').each(function(i) {
+ targyAtlagSzamol($(this).data('targyid'));
+ });
+}
+
+function targyAtlagSzamol(targyid) {
+
+ var SULYOZAS = $('#sulyozas').val().split(':');
+ var jegyszam = 0;
+ var jegyosszeg = 0;
+ countThese = $('.jegy');
+ for(var i = countThese.length; i--;) {
+ elem = $(countThese[i]);
+ if (elem!='undefined') {
+ if (elem.data('targyid')==targyid) {
+ jegyszam += parseInt(SULYOZAS[elem.data('tipus')-1]);
+ jegyosszeg += parseFloat(elem.data('jegy'))*SULYOZAS[elem.data('tipus')-1] ;
+ $('#targyAtlag_'+elem.data('targyid')).html(''+(jegyosszeg/jegyszam).toFixed(2));
+ }
+ }
+ }
+ // if (jegyszam!=0) console.log('eredmeny:' + (jegyosszeg/jegyszam));
+ return true;
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/dolgozat.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/dolgozat.jquery.min.js
new file mode 100644
index 00000000..b5a27219
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/dolgozat.jquery.min.js
@@ -0,0 +1,62 @@
+$(function() {
+
+ google.charts.load('current', {'packages':['calendar']});
+ google.charts.setOnLoadCallback(drawChart);
+ function drawChart() {
+ var data = new google.visualization.DataTable();
+ data.addColumn({ type: 'date', id: 'Date' });
+ data.addColumn({ type: 'number', id: 'Won/Loss' });
+ var DT = {};
+ $('.dolgozatDATA').each(function(index) {
+ egy = $(this).data('dolgozatadat').split(':');
+ dt1 = egy[1].split('-');
+ dt2 = egy[2].split('-');
+ if (egy[2]=="" || egy[2]=='0000-00-00' || dt2<dt1) {dt2 = dt1;x=egy[1];} else x = egy[2];
+ if (DT[x]>=1) DT[x]++; else DT[x] = 1;
+ data.addRows(
+ [
+ [ new Date(dt2), DT[x] ]
+ ]
+ );
+ });
+ var chart = new google.visualization.Calendar(document.getElementById('chart_div'));
+ var options = {
+ title: "Dolgozatok",
+ height: 350,
+ colorAxis: {colors:['cornflowerblue','#ff0000']},
+ };
+ chart.draw(data, options);
+ }
+
+
+/* google.charts.load('current', {'packages':['timeline']});
+ google.charts.setOnLoadCallback(drawChart);
+ function drawChart() {
+ var data = new google.visualization.dataTable();
+ data.addColumn('string', 'Tankör');
+ data.addColumn('date', 'Dolgozat dátum');
+ data.addColumn('date', '');
+ $('.dolgozatDATA').each(function(index) {
+ egy = $(this).data('dolgozatadat').split(':');
+ dt1 = egy[1].split('-');
+ dt2 = egy[2].split('-');
+ if (egy[2]=="" || egy[2]=='0000-00-00' || dt2<dt1) dt2 = dt1;
+ data.addRows(
+ [
+ [ egy[0], new Date(dt1),new Date(dt2) ]
+ ]
+ );
+ });
+ var options = {
+ height: 450,
+ timeline: {
+ groupByRowLabel: true
+ }
+ };
+
+ var chart = new google.visualization.Timeline(document.getElementById('chart_div'));
+
+ chart.draw(data, options);
+ }
+*/
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js
new file mode 100644
index 00000000..31dcb64c
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js
@@ -0,0 +1,49 @@
+$(function() {
+ $('#beallitasok_zaradek').click(function() {
+ $('.bizZaradek').fadeToggle();
+ });
+ $('#beallitasok_targyak').click(function() {
+ $('.tglTargy').fadeToggle();
+ });
+ $('#beallitasok_oraszamok').click(function() {
+ $('.osz').fadeToggle();
+ });
+ $('#beallitasok_statisztika').click(function() {
+ $('.bizstat').fadeToggle();
+ });
+
+ $('thead tr td.bizZaradek').click(function() {
+ var tmp = $('.bizZaradek select');
+ for (i=0; i<tmp.length; i++) {
+ tmp[i].selectedIndex=1;
+ }
+ });
+
+ $('.toggleBeallitasok').click(function() {
+ $('#beallitasok_zaradek').trigger('click');
+ $('#beallitasok_targyak').trigger('click');
+ $('#beallitasok_oraszamok').trigger('click');
+ $('#beallitasok_statisztika').trigger('click');
+ });
+
+ // Ha a tárgyakat is manipulálnánk valahogy:
+ $('thead tr td.tglTargy').click(function(event) {
+ var targyIndex = event.target.id.substr(5);
+ //$('.t'+targyIndex).fadeToggle();
+ $('.t'+targyIndex).toggleClass('szuk');
+ });
+
+ // inicializálás (onLoad)
+ if ($('#beallitasok_zaradek').attr('checked')) {
+ $('.bizZaradek').show();
+ }
+ if ($('#beallitasok_targyak').attr('checked')) {
+ $('.tglTargy').show();
+ }
+ if ($('#beallitasok_oraszamok').attr('checked')) {
+ $('.osz').show();
+ }
+ if ($('#beallitasok_statisztika').attr('checked')) {
+ $('.bizstat').show();
+ }
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js
new file mode 100644
index 00000000..893f73b3
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js
@@ -0,0 +1,132 @@
+
+// Event.observe(window, 'load', myPSFLoader, false);
+
+$(function() {
+ var eDid = $('#did');
+ $('.check').bind('click',function(event) {
+ if (eDid.val() == '') {
+ alert(eDid.prop('title'));
+ event.preventDefault();
+ }
+ });
+ $('body').bind('keyup', function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ if ($('#updateWindow').is(':visible')) { // csak akkor érdekes, ha ott van az ablak
+ if(!element.is('input') && !element.is('textarea') && !element.is('select')) { // input elem esetén ne legyen semmi
+ if (charKeyCode==46) { // Del gomb
+ $('#jegyTorles').click();
+ }
+ }
+ }
+ });
+ $('.felevLezar').bind('click', function(event) {
+ var element = $(event.target);
+// console.log(element.data('szemeszter'));
+// console.log($.find('.atlag'));
+ });
+
+});
+
+showUpdateLayer = function(options) {
+ if (options.submitClass != 'onSubmitUpdate') { // A már megnyitott form frissítésekor ne méretezzünk át!
+ if (options.submitClass == 'onClickUpdateWindow szoveges') {
+ $('#updateWindow').css({'height':'90%', 'top': '60px'});
+ } else {
+ $('#updateWindow').css({'height':'500px', 'top':'200px'});
+ }
+ }
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('#updateForm').prop('tabindex',1);
+ $('#updateForm').focus();
+}
+
+processJSON = function(json) {
+ if (json.action == 'jegyModositas') {
+ var tdElement = $('#td-'+json.data.diakId+'-'+json.data.dolgozatId);
+ var aElement = $('#jegy-'+json.data.jegyId);
+ if (typeof aElement.closest('td').attr('id') !== 'undefined') {
+ var oldDid = (aElement.closest('td').attr('id').split('-'))[2];
+ }
+
+ if (tdElement) tdElement.append(aElement); // áthelyzés a megfelelő dolgozat alá
+ aElement.removeClass('jegy1');
+ aElement.removeClass('jegy2');
+ aElement.removeClass('jegy3');
+ aElement.removeClass('jegy4');
+ aElement.removeClass('jegy5');
+ aElement.addClass('jegy'+json.data.tipus);
+ aElement.html(json.data.jegyStr); // jegy módosítása
+
+ if (json.data.dolgozatId != oldDid) updateDolgozatAtlag(oldDid); // eredeti dolgozat átlaga
+ updateDolgozatAtlag(json.data.dolgozatId); // új dolgozat átlaga
+
+ $('#updateWindow').hide();
+ $('#takaro').hide();
+ } else if (json.action == 'jegyTorles') {
+ var aElement = $('#jegy-'+json.data.jegyId);
+ aElement.remove();
+ $('#updateWindow').hide();
+ $('#takaro').hide();
+ } else {
+ alert('processJSON: ismeretlen visszatérési érték!');
+ }
+}
+
+updateDolgozatAtlag = function(did) {
+ var sum=0, db=0;
+ $('td.d'+did+' a').each(function(index) {
+ sum = sum + parseInt($(this).text()); db++;
+ if ($(this).html().indexOf('/')>-1) sum = sum + 0.5;
+ });
+ avg=(sum/db);
+ avgElement = $('#avg-d'+did);
+ if (avgElement) avgElement.html(avg.toFixed(2));
+}
+
+
+// -- ELAVULT -- de hiányzik a mozgatás!!//
+
+function myPSFLoader(evt) {
+
+ // Csoportos jegy beírásakor ellenőrizzük, hogy ki lett-e választva dolgozat
+ var CheckDolgozatObject = Class.create();
+ CheckDolgozatObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.eDid = $('did');
+ this.element.observe('click',this.checkDolgozat.bindAsEventListener(this));
+ },
+
+ checkDolgozat: function(evt, extraInfo) {
+
+ if (this.eDid.value == '') {
+ alert(this.eDid.getAttribute('title'));
+ Event.stop(evt);
+ }
+
+ }
+ }
+
+ var checkDolgozatElements = new Array();
+ $$('.check').each(
+ function (elem, index) {
+ checkDolgozatElements.push(new CheckDolgozatObject(elem));
+ }
+ );
+
+ Event.observe(document.body, 'keyup', function(event) {
+ var element = $(Event.element(event));
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ // input elem esetén ne legyen semmi
+ if(!element.match('input') && !element.match('textarea') && !element.match('select')) {
+ if (charKeyCode==46 && $('updateWindow').visible()) { // Del gomb
+ $('jegyTorles').click();
+ }
+ }
+ });
+
+// var mydrag = new Draggable('updateWindow', { scroll: window, handle: $('updateHeader') });
+}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js
new file mode 100644
index 00000000..9380d30b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js
@@ -0,0 +1,16 @@
+
+$(function() {
+
+ $('#targySelect').prop("disabled","disabled").hide();
+ $('#mozgat').hide();
+ $('#action').prop("value",'ujSorrend');
+ $('#submit').show();
+ $("#targyUl").show().disableSelection().sortable({ axis: "y", handle: ".handle",
+ start: function(event, ui) {
+ $(event.target).find('li').css('background-color','');
+ ui.item.css('background-color','#ffaaaa');
+ },
+ });
+
+});
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js
new file mode 100644
index 00000000..f3845729
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js
@@ -0,0 +1,50 @@
+
+hideOptions = function(event) {
+ element = $(event.target);
+ if (element.hasClass('jegyTipus')) {
+ var jegyek = element.next('select');
+ if (element.context.selectedIndex == 0) {
+ jegyek.find('*').prop('disabled',false).show();
+ } else {
+ $(jegyek).val([]);
+ $(jegyek).find('*').prop('disabled','disabled').hide();
+ $(jegyek).find('option:first').prop('disabled',false).show()
+ var selector='optgroup[label="'+element.val()+'"]';
+ jegyek.find(selector).prop('disabled',false).show().find('option').prop('disabled',false).show();
+ }
+ }
+ if (element.hasClass('jegyAdat')) {
+ var tipusok = $(element.parents('.hideShowContainer')[0]).find('.jegyTipus')[0];
+ var jegyTipus = $(element[0].options[element[0].selectedIndex]).parents('optgroup')[0].label;
+ index = 0;
+ while (tipusok.options[index].value != jegyTipus && index < tipusok.options.length && index < 100) index++;
+ if (index < tipusok.options.length) tipusok.selectedIndex=index;
+ else tipusok.selecedIndex=0;
+ }
+}
+
+$(function() {
+ // Halasztás elrejtése
+ $('div.rejtett').hide();
+ $('body').bind('click', function(event) {
+ element = $(event.target);
+
+ // értékeléskor...
+ if (element.hasClass('ertekeles')) {
+ // ... a halasztasDt üresreállítása
+ $(element.parents(".hideShowContainer")[0]).find('input.halasztasDt').prop('value','');
+ }
+ // halasztáskor...
+
+ if (element.hasClass('halasztas')) {
+ // ... a jegytípus/jegy kiválasztást megszüntetjük
+ // $(element.parents('.hideShowContainer')[0]).find('.jegyTipus')[0].selectedIndex=0;
+ // $(element.parents('.hideShowContainer')[0]).find('.jegyAdat')[0].selectedIndex=0;
+ $(element.parents('.hideShowContainer')[0]).find('select').prop('selectedIndex',-1).val([]);
+ $(element.parents('.hideShowContainer')[0]).find('optgroup, option').prop('disabled',false).show();
+ }
+
+ });
+ $('body').bind('change', hideOptions);
+ $('body').bind('mayor:change', hideOptions);
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js
new file mode 100644
index 00000000..b6b664c5
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js
@@ -0,0 +1,15 @@
+
+$(function() {
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+
+ if (element.closest('th').hasClass('slide')) {
+ element.closest('tbody').find('tr.hide').slideToggle();
+ element.closest('th').find('span').toggleClass('icon-chevron-up').toggleClass('icon-chevron-down');
+ }
+
+ });
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js
new file mode 100644
index 00000000..fd03b778
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js
@@ -0,0 +1,823 @@
+
+ updateTbody = function(tbodyElement) {
+ /*
+ * Feltételezzük, hogy egy látható, slideUpAll nélküli nyitó sorral kezdődik a tbody
+ */
+ tbodyElement = $(tbodyElement);
+ firstTr = tbodyElement.find('tr:first');
+ nextTrDb = firstTr.nextAll('tr').length;
+ // első sorban csak slideUpAll, vagy Down lehet
+ firstTr.find('.slideUp').remove();
+ if (nextTrDb > 0) {
+ firstTr.find('td.slide').append('<span class="slideUpAll icon-caret-up"></span>');
+ if (firstTr.data('db') == nextTrDb) { // Az összes sor az első sor alatt van --> eddig is volt Down, kell UpAll, de rejtve
+ firstTr.find('.slideUpAll').hide();
+ }
+ } // vannak további sorok
+ }
+
+ ajaxGetTankorAdat = function(tankorId) {
+ postData = { 'tankorId':tankorId }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionID'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+
+ }
+
+ processJSONAddBontas = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ // utolsó érintett tr
+ lastTr = $('#tr-'+msg.bontas[msg.bontas.length-1].osztalyId+'-'+msg.bontas[msg.bontas.length-1].kepzesOratervId);
+ // A tartalmazó tbody id-je...
+ tbodyId = lastTr.closest('tbody').attr('id');
+ // eddigi bontásszám
+ bontasDb = lastTr.find('div.bontas').length;
+ // Ha nem az utolsó a tbody-n belül, akkor az őt követő tr-eket külön tbody-ba helyezzük
+ nextLastTr = lastTr.nextAll('tr');
+ if (nextLastTr.length > 0) {
+ tbodyAfter = $('<tbody>').attr('id', tbodyId+'-'+bontasDb).insertAfter($('#'+tbodyId));
+ nextLastTr.appendTo(tbodyAfter);
+ updateTbody(tbodyAfter);
+ }
+ keszKoDbCsokken = (lastTr.hasClass('kesz'));
+ // div beszúrása
+ for (i=0; i<msg.bontas.length; i++) {
+ selector = $('#bTd-'+msg.bontas[i].osztalyId+'-'+msg.bontas[i].kepzesOratervId);
+ selector.append(
+ '<div class="bontas" id="bontas-'+msg.bontas[i].bontasId+'"><span class="bontasDb">'+(bontasDb+1)+'</span>. '
+ +msg.targyNev+' csoport ('+msg.bontas[i].bontasId+')<span class="delBontas icon-remove-circle"></span>'
+ +'<ul class="tankor-oraszam">'
+ +'<li class="marad">'
+ +parseFloat(selector.closest('tr').data('hetioraszam'))
+ +'</li>'
+ +'</ul></div>');
+ $('#bontas-'+msg.bontas[i].bontasId).data('tankororaszam', []);
+ $('#bontas-'+msg.bontas[i].bontasId).data('hetioraszam', 0);
+ $('#bontas-'+msg.bontas[i].bontasId).data('targyid', msg.bontas[i].targyId);
+ $('#bontas-'+msg.bontas[i].bontasId).data('key', msg.bontas[i].bontasId);
+ $('#bontas-'+msg.bontas[i].bontasId).data('keys', msg.bontas[i].bontasId);
+ // az érintett sorok most biztos nem "kész"-ek, mert van egy tankörök nélküli bontásuk
+ selector.closest('tr').removeClass('kesz');
+ }
+ // A stat adatok módosítása
+ $('#statBontas').html( parseInt($('#statBontas').html())+parseInt(msg.bontas.length) );
+ if (keszKoDbCsokken) $('#statKoKesz').html( parseInt($('#statKoKesz').html())-msg.bontas.length );
+ // a felső bontás keys paraméterének beállítása
+ keys = $('#bontas-'+msg.bontas[0].bontasId).data('key');
+ for (i=1; i<msg.bontas.length; i++) {
+ keys += ','+$('#bontas-'+msg.bontas[i].bontasId).data('key');
+ }
+ $('#bontas-'+msg.bontas[0].bontasId).data('keys', keys)
+ // ha kell, akkor a módosított sorok áthelyezése új tbody-ba
+ firstTr = $('#tr-'+msg.bontas[0].osztalyId+'-'+msg.bontas[0].kepzesOratervId);
+ prevFirstTr = firstTr.prevAll('tr');
+ if (prevFirstTr.length > 0) {
+ tbodyModified = $('<tbody>').attr('id', tbodyId+'-'+(bontasDb+1)).insertAfter($('#'+tbodyId));
+ for (i=0; i<msg.bontas.length; i++) {
+ $('#tr-'+msg.bontas[i].osztalyId+'-'+msg.bontas[i].kepzesOratervId).appendTo(tbodyModified);
+ }
+ updateTbody(tbodyModified);
+ } else {
+ firstTr.find('.slideUpAll').hide();
+ }
+ }
+
+ processJSONDelBontas = function( msg ) {
+ //console.log(JSON.stringify(msg));
+ if (msg.result == 'success') {
+
+ // utolsó érintett tr
+ lastTr = $('#bontas-'+msg.bontasIds[msg.bontasIds.length-1]).closest('tr');
+ // A tartalmazó tbody id-je...
+ tbodyId = lastTr.closest('tbody').attr('id');
+ // eddigi bontásszám
+ bontasDb = lastTr.find('div.bontas').length;
+ // Ha nem az utolsó a tbody-n belül, akkor az őt követő tr-eket külön tbody-ba helyezzük
+ nextLastTr = lastTr.nextAll('tr');
+ if (nextLastTr.length > 0) {
+ tbodyAfter = $('<tbody>').attr('id', tbodyId+'-'+bontasDb).insertAfter($('#'+tbodyId));
+ nextLastTr.appendTo(tbodyAfter);
+ updateTbody(tbodyAfter);
+ }
+
+ // ha kell, akkor a módosított sorok áthelyezése új tbody-ba
+ firstTr = $('#bontas-'+msg.bontasIds[0]).closest('tr');
+ prevFirstTr = firstTr.prevAll('tr');
+ if (prevFirstTr.length > 0) {
+ tbodyModified = $('<tbody>').attr('id', tbodyId+'-'+(bontasDb-1)).insertAfter($('#'+tbodyId));
+ for (i=0; i<msg.bontasIds.length; i++) {
+ $('#bontas-'+msg.bontasIds[i]).closest('tr').appendTo(tbodyModified);
+ }
+ updateTbody(tbodyModified);
+ } else {
+ firstTr.find('.slideUpAll').hide();
+ }
+
+ // div törlése
+ keszBontasDbCsokken = ($('#bontas-'+msg.bontasIds[0]).data('hetioraszam') == lastTr.data('hetioraszam'));
+ for (i=0; i<msg.bontasIds.length; i++) {
+ $('#bontas-'+msg.bontasIds[i]).nextAll('div.bontas').find('span.bontasDb').each(function(index) {
+ $(this).html($(this).html()-1);
+ });
+ $('#bontas-'+msg.bontasIds[i]).remove();
+ }
+ // stat adatok módosítása
+ $('#statBontas').html( parseInt($('#statBontas').html())-parseInt(msg.bontasIds.length) );
+ if (keszBontasDbCsokken) $('#statBontasKesz').html( parseInt($('#statBontasKesz').html())-parseInt(msg.bontasIds.length) );
+ // Egy felesleges bontás törlésével "kész"-szé válhatott a sor
+ if (!lastTr.hasClass('kesz')) {
+ var kesz = (lastTr.find('div.bontas').length > 0);
+ if (kesz) lastTr.find('div.bontas').each(function(index) {
+ if ($(this).data('hetioraszam') != lastTr.data('hetioraszam')) kesz = false;
+ });
+ if (kesz) {
+ lastTr.closest('tbody').find('tr').addClass('kesz');
+ $('#statKoKesz').html( parseInt($('#statKoKesz').html())+lastTr.closest('tbody').find('tr').length );
+ if ($('#keszRejt').is(':checked')) lastTr.closest('tbody').hide();
+ }
+ }
+
+
+ }
+ }
+
+ processJSONTankorLista = function( msg, element ) {
+ //console.log(JSON.stringify(msg));
+
+ // a blokk tárgy típusa
+ ttTdElement = element.closest('tr').find('th.targyTipus');
+ if (ttTdElement.length==0) targyTipus = 'mintatantervi';
+ else targyTipus = ttTdElement.html();
+ // a képzésOraterv bejegyzés heti óraszáma
+ koHetiOraszam = parseFloat(element.closest('tr').data('hetioraszam'));
+ // a bontás össz-óraszáma és tankorId-i
+ to = element.data('tankororaszam');
+ bontasOraszam = 0;
+ bontasTankorIds = [];
+ if ($.isArray(to)) {
+ for (i=0; i<to.length; i++) {
+ bontasOraszam += parseFloat(to[i].hetiOraszam);
+ bontasTankorIds[i] = ''+to[i].tankorId; // hogy string legyen mindenképp!!
+ }
+ }
+ bontasSzabadOraszam = koHetiOraszam - bontasOraszam;
+ // szemeszterek
+ vanSzemeszter = [(element.closest('tbody').find('.felev1').length>0), (element.closest('tbody').find('.felev2').length>0)];
+
+ ulKiemeltElement = $('<ul>').addClass('kiemelt').addClass('tankorLista');
+ ulElement = $('<ul>').addClass('tankorLista');
+ for (i=0; i<msg.tankorok.length; i++) {
+ /*
+ - ha a bontás óraszám == kepzesOraterv oraszámmal - nem lehet új tankört hozzárendelni (class="ok")
+ - ha bontas óraszám > kepzesOraterv óraszám, akkor az hiba! - (class="fail")
+ - ha bontas óraszám < kepzesOraterv óraszám, akkor --> tankör-list, tankörönként:
+ - hozzárendelt már - akkor nem lehet újra kiválasztani (class="hozzarendelt")
+ - van targyTipushoz már óraszáma --> csak az az óraszám lehet
+ - ha ez több, mint a bontás szabad óraszáma, akkor nem lehet hozzárendelni
+ - ha nem több, akkor pontosan ezt az óraszámot rendelhetjük hozzá
+ - nincs tárgytípushoz óraszáma, de a tankörnek már nincs fennmaradó -> nem lehet hozzárendelni
+ - nincs tárgytípushoz és van szabad órája: hozzá-óraszám = min(tankörSzabad[szemeszter?], bontasSzabad[szemeszter?])
+ */
+ tAdat = msg.tankorok[i];
+ // kezdőértékek
+ classStr='tankorBontas';
+ maxOraszam = 0;
+ vanTargyTipusOraszam = tankorOraszamElfogyott = tankorOraszamSokFail = oraszamFix = false;
+ // hozzá van-e már rendelve
+ hozzarendelt = ($.inArray(tAdat.tankorId, bontasTankorIds) > -1);
+ oStr = '';
+ // fontos lenne, hogy csak a szükséges szemesztereken menjen végig a ciklus!!
+ for (szemeszter=0; szemeszter<2; szemeszter++) { // 0 indexű! hogy js alatt tömb lehessen
+ if (!vanSzemeszter[szemeszter]) continue;
+ oraszam = parseFloat(msg.tankorok[i].oraszam[szemeszter]);
+ oStr += '['+oraszam+'/';
+ sum=0;
+ for (t=0; t<msg.tankorok[i].bontasOraszam[szemeszter].length; t++) {
+ hetiOraszam = parseFloat(msg.tankorok[i].bontasOraszam[szemeszter][t].hetiOraszam);
+ sum+=parseFloat(hetiOraszam);
+ if (msg.tankorok[i].bontasOraszam[szemeszter][t].tipus==targyTipus) {
+ vanTargyTipusOraszam = true;
+ maxOraszam = hetiOraszam;
+ oStr += '<strong>'+hetiOraszam+'</strong>';
+ } else {
+ oStr+=hetiOraszam;
+ }
+ if (t < msg.tankorok[i].bontasOraszam[szemeszter].length-1) oStr += '+';
+ }
+ oStr += (sum==0?'0]':']');
+ tankorSzabadOraszam = oraszam - sum;
+ if (hozzarendelt) {
+ oraszamFix = true;
+ classStr='tiltott hozzarendelt';
+ maxOraszam = 0;
+ } else if (vanTargyTipusOraszam) {
+ oraszamFix = true;
+ if (maxOraszam > bontasSzabadOraszam) { // ha túl sok a tankör tárgyTipushoz kötött óraszáma
+ classStr="tiltott";
+ maxOraszam = 0;
+ } else {
+ classStr="osszevonasTilt"
+ }
+ } else if (tankorSzabadOraszam == 0) {
+ oraszamFix = true;
+ classStr='tiltott';
+ tankorOraszamElfogyott = true;
+ maxOraszam = 0;
+ } else if (tankorSzabadOraszam < 0) {
+ oraszamFix = true;
+ classStr='tiltott hibas';
+ tankorOraszamSokFail = true;
+ maxOraszam = 0;
+ } else if (bontasSzabadOraszam<=0) {
+ oraszamFix = true;
+ classStr="tiltott";
+ maxOraszam = 0;
+ } else if (maxOraszam == 0) { // pl. az első szemeszter vizsgálatakor - a második szemeszter esetén már lehet pozitív
+ maxOraszam = Math.min(tankorSzabadOraszam, bontasSzabadOraszam);
+ } else { // ha az első szemesztert is figyelembe kell venni...
+ maxOraszam = Math.min(maxOraszam, tankorSzabadOraszam, bontasSzabadOraszam);
+ }
+ }
+ oStr2 = '<div class="jobbra"><strong>';
+ if (!oraszamFix) oStr2 += '<span class="icon-caret-up plusz"></span><span class="icon-caret-down minusz"></span>';
+ oStr2 += '<span class="data">'+maxOraszam.toFixed(2)+'</span></strong></div>';
+ liElement = $('<li class="'+classStr+'">'+oStr2+tAdat.tankorNev+' ('+tAdat.tankorId+') - '+oStr+'</li>').data({'tankorId':tAdat.tankorId, 'hetiOraszam': maxOraszam, 'maxOraszam': maxOraszam}).attr('id','tankor-'+tAdat.tankorId);
+ if (tAdat.kiemelt) liElement.appendTo(ulKiemeltElement);
+ else liElement.appendTo(ulElement);
+
+ }
+ $('#updateWindowSideContent').html('');
+ $('<p class="bontasAdat">Tárgy típus: '+targyTipus+'; heti óraszám: '+koHetiOraszam+'/'+bontasOraszam+'</p>').appendTo($('#updateWindowSideContent'));
+ if (bontasOraszam==0) $('<div id="addTankor"><span class="icon-plus-sign"></span> Új tankör&nbsp;&nbsp;&nbsp;<span class="icon-chevron-down"></span></div>').appendTo($('#updateWindowSideContent'));
+ else $('<div id="disableAddTankor"><span class="icon-plus-sign"></span> Új tankör&nbsp;&nbsp;&nbsp;<span class="icon-chevron-down"></span></div>').appendTo($('#updateWindowSideContent'));
+ ulKiemeltElement.appendTo($('#updateWindowSideContent'));
+ ulElement.appendTo($('#updateWindowSideContent'));
+ $('#updateWindowSide h1 div').html('Tankörök');
+ $('#updateWindowSide').data('target', element);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+ processJSONTankorMod = function( msg ) {
+ //console.log(JSON.stringify(msg));
+ txt = $('#updateWindowSide').data('target').html();
+ s1 = txt.substr(0, txt.indexOf('] ')+2);
+ s2 = txt.substr(txt.indexOf(' ('));
+ $('#updateWindowSide').data('target').html(s1+msg.tankorNevTargyNelkul+s2);
+ //console.log(s1+msg.tankorNevTargyNelkul+s2);
+ processJSONTankorAdat( msg );
+ }
+
+ processJSONBontasTankor = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ hetiOraszam = parseFloat(msg.hetiOraszam);
+ tankorId = msg.tankorId;
+ tankorNev = msg.tankorNev;
+ for (i=0; i<msg.bontasIds.length; i++) {
+ bontasId = msg.bontasIds[i];
+ element = $('#bontas-'+bontasId);
+ liElement = $('<li>['+hetiOraszam+'] '+tankorNev+' ('+tankorId+')</li>');
+ liElement.data('tankorid',tankorId).addClass('tankorAdat').insertBefore(element.find('li.marad'));
+ element.data('tankororaszam').push({'tankorId': tankorId, 'hetiOraszam': hetiOraszam});
+ element.data('hetioraszam', hetiOraszam+element.data('hetioraszam'));
+ marad = element.closest('tr').data('hetioraszam')-element.data('hetioraszam');
+ element.find('li.marad').html(marad);
+ if (marad<0) classStr='bontas fail';
+ else if (marad==0) classStr='bontas ok';
+ else classStr='bontas';
+ element.attr('class',classStr);
+ }
+ // Az új tankör hozzáadásával "kész"-szé válhatott a sor - (element: az utolsó bontás div-je)
+ { // eddig biztos nem volt kész a sor - mert tudtunk hozzárendelni bontást...
+ var sorKesz = true; // biztos van legalább egy bontás - hisz hozzárendeltünk egy tankört
+ trElement = element.closest('tr');
+ trElement.find('div.bontas').each(function(index) {
+ if ($(this).data('hetioraszam') != trElement.data('hetioraszam')) sorKesz = false;
+ });
+ if (element.data('hetioraszam')==trElement.data('hetioraszam')) { // a bontások kész lettek
+ $('#statBontasKesz').html( parseInt($('#statBontasKesz').html())+msg.bontasIds.length );
+ }
+ if (sorKesz) {
+ // stat adatok állítása
+ $('#statKoKesz').html( parseInt($('#statKoKesz').html())+msg.bontasIds.length );
+ trElement.closest('tbody').find('tr').addClass('kesz');
+ if ($('#keszRejt').is(':checked')) trElement.closest('tbody').hide();
+ }
+ }
+ }
+
+ processJSONUjTankor = function(msg) {
+ //console.log(JSON.stringify(msg));
+ // A tankört hozzá is rendeltük a bontáshoz
+ processJSONBontasTankor( msg );
+ // Tankör adatainak megjelenítése
+ ajaxGetTankorAdat(msg.tankorId);
+ }
+
+ processJSONTankorAdat = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ $('#updateWindowSideContent').html('');
+ $('#updateWindowSideTitle').html('Tankör adatai');
+ //$('<p class="tankorNev">'+msg.tankorNev+' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorNev">' +msg.tankorNevReszei.evfOszt+' '
+ +msg.tankorNevReszei.targyNev
+ +(msg.tankorNevReszei.tankorJel!=''&&msg.tankorNevReszei.tankorJel!=null?msg.tankorNevReszei.tankorJel+' ':'')
+ +' <span class="tankorNevExtra">'+msg.tankorNevReszei.tankorNevExtra+'</span>'
+ +'<input id="tankorNevExtra" type="text" name="tankorNevExtra" value="'+msg.tankorNevReszei.tankorNevExtra+'" />'
+ +' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorModosit">Módosít!</p>').appendTo('#updateWindowSideContent');
+ // adatok
+ ulStr = '<ul>'
+ +'<li>Évközi követelmény: '+msg.kovetelmeny+'</li>'
+ +'<li>Létszám korlát: '+msg.min+'-'+msg.max+'</li>'
+ +'<li>Tankör-típus: '+msg.rovidNev+' ('+msg.tankorTipusId+')</li>'
+ +'</ul>';
+ $(ulStr).appendTo('#updateWindowSideContent');
+ // osztályok
+ ulStr = '<ul id="tankorOsztaly">';
+ pStr = '<div class="slideToggleContainer" id="pTankorOsztaly">Osztályai: <span class="tankorData slideToggle">';
+ for (i=0; i<msg.osztalyok.length; i++) {
+ ulStr += '<li>'
+ +'<input type="checkbox" name="osztalyId[]" value="'+msg.osztalyok[i].osztalyId+'" id="oTankorId-'+msg.osztalyok[i].osztalyId+'" ';
+ if ($.inArray(msg.osztalyok[i].osztalyId, msg.osztalyIds)>-1) {
+ ulStr += 'checked="checked" ';
+ pStr += msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+') ';
+ }
+ ulStr += '/> '
+ +'<label for="oTankorId-'+msg.osztalyok[i].osztalyId+'">'+msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+')</label></li>';
+ }
+ ulStr += '</ul>';
+ pStr += '</span><span class="icon-chevron-down slideToggle"></span>'+ulStr+'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+ // szemeszterek, óraszámok
+ ulStr = '<ul id="tankorSzemeszter">';
+ for (i=0; i<msg.tankorSzemeszter.length; i++) {
+ ulStr += '<li>'+msg.tankorSzemeszter[i].tanev+'/'+msg.tankorSzemeszter[i].szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+msg.tankorSzemeszter[i].tanev+'-'+msg.tankorSzemeszter[i].szemeszter+'" value="'+msg.tankorSzemeszter[i].oraszam+'" />'
+ +'</li>';
+ }
+ ulStr += '</ul>';
+ pStr = '<div class="slideToggleContainer" id="pTankorSzemeszter">Óraszám: <span class="tankorData slideToggle">'+msg.oraszam+' ('+msg.tanev+'/'+msg.szemeszter+')</span>'
+ +'<span class="icon-chevron-down slideToggle"></span>'
+ +ulStr
+ +'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+
+// $('<p>'+JSON.stringify(msg)+'</p>').appendTo($('#updateWindowSideContent'));
+ if (!$('#updateWindowSide').hasClass('nyitva')) $('#updateWindowSide').addClass('nyitva')
+ }
+
+ slideUp = function(element) {
+ // A fedett sorok számát eltároljuk, majd 0-ra állítjuk
+ trElement = element.closest('tr');
+ bontasArray = trElement.find('div.bontas').get();
+ prevTrElement = trElement.prevAll('tr').filter(':visible:first');
+ prevBontasArray = prevTrElement.find('div.bontas').get();
+
+ // shadow elvétele, slideUp, Down törlése - vizuális elemek
+ if (trElement.data('db') < 6) trElement.removeClass('shadow'+trElement.data('db'));
+ else trElement.removeClass('shadow5');
+ trElement.slideUp(100);
+ trElement.find('.slideDown').remove();
+ // db adatok módosítása
+ origDb = prevTrElement.data('db');
+ prevTrElement.data('db',origDb+trElement.data('db')+1);
+ trElement.data('db',0);
+ // A fedett sorok kulcsait eltároljuk, majd a sor kulcsára cseréljük
+ origKeys = prevTrElement.data('keys');
+ prevTrElement.data('keys', origKeys+','+trElement.data('keys'));
+ trElement.data('keys', trElement.data('key'));
+ // bontások kulcsadatainak módosítása
+ for (i=0; i<bontasArray.length; i++) {
+ origKeys = $(prevBontasArray[i]).data('keys');
+ $(prevBontasArray[i]).data('keys', origKeys+','+$(bontasArray[i]).data('keys'));
+ $(bontasArray[i]).data('keys', $(bontasArray[i]).data('key'));
+ }
+ // prev - shadow elvétele
+ if (origDb < 6) prevTrElement.removeClass('shadow'+origDb);
+ else prevTrElement.removeClass('shadow5');
+ // prev - ha most került alá sor, akkor kirakjuk a lenyitót
+ if (origDb == 0) prevTrElement.find('td.slide').append('<span class="slideDown icon-chevron-down"></span>');
+ // prev - shadow
+ if (prevTrElement.data('db')<6) prevTrElement.addClass('shadow'+prevTrElement.data('db'));
+ else prevTrElement.addClass('shadow5');
+ // prev - ha minde becsukva, akkor nem kell slideUpAll
+ if (prevTrElement.data('db') == prevTrElement.nextAll('tr').length) prevTrElement.find('.slideUpAll').hide();
+
+ }
+
+ slideDown = function(element) {
+ trElement = element.closest('tr');
+ bontasArray = trElement.find('div.bontas').get();
+ // becsuk
+ trElement.nextAll('tr').filter(':hidden').slideDown();
+ // shadow leszedése
+ if (trElement.data('db') < 6) trElement.removeClass('shadow'+trElement.data('db'));
+ else trElement.removeClass('shadow5');
+ // adatok alaphelyzetbe
+ trElement.data('db',0);
+ trElement.data('keys', trElement.data('key'));
+ for (i=0; i<bontasArray.length; i++) $(bontasArray[i]).data('keys', $(bontasArray[i]).data('key'));
+ element.closest('tbody').find('tr:first .slideUpAll').show();
+ // Down eltüntetése
+ element.remove();
+ }
+
+ initBontas = function() {
+
+ if ($('table.bontas').length == 0) {
+ $('form#szures').slideDown(1000);
+ } else {
+ $($('table.bontas .slideUp').get().reverse()).each(function(index) {
+ slideUp($(this));
+ });
+ }
+ }
+
+
+$(function() {
+
+ $('table.bontas tr').data('db',0);
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $('body').data('sessionID',sessionID);
+ // A tárgyak div inicializálása
+ var height = $('div#targyak').height();
+ var width = $('div#targyak').width();
+ var targyakTop =parseInt($('div#targyak').css('top'));
+ $('div#targyakUp').css({'width':width-12});
+ $('div#targyakDown').css({'width':width-12,'top':height+targyakTop-30});
+
+ initBontas();
+
+ $('#keszRejt').change(function(event) {
+ var element = $(event.target);
+ if (element.is(':checked')) {
+ $('table.bontas tr.kesz:first-child').closest('tbody').hide();
+ } else {
+ $('table.bontas tr.kesz:first-child').closest('tbody').show();
+ }
+ });
+
+ $('body').change(function(event) {
+ var element = $(event.target);
+ if (element.closest('div').hasClass('slideToggleContainer')) {
+ element.closest('div').find('span.tankorData').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ } else if (element.attr('id')=='tankorNevExtra') {
+ if (!element.prev('span.tankorNevExtra').hasClass('changed')) {
+ element.prev('span.tankorNevExtra').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ }
+ }
+ });
+
+ $('body').focusout(function(event) {
+ var element = $(event.target);
+ if (element.attr('id')=='tankorNevExtra') {
+ element.prev('span.tankorNevExtra').html( element.val() ).show();
+ element.hide();
+ }
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:last-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = 1+parseInt(tmp[1]);
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').appendTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').next('li').find('input').focus();
+ }
+
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:first-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9 && shiftKey) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = parseInt(tmp[1])-1;
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').prependTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').prev('li').find('input').focus();
+ }
+
+ });
+
+
+ $('body').click(function(event) {
+ var element = $(event.target);
+
+ if (!element.hasClass('addBontasTargy')) {
+ $('div#targyak').hide();
+ $('table.bontas tr.aktiv').removeClass('aktiv');
+ }
+ if (element.hasClass('slideUp')) {
+ slideUp(element);
+ } else if (element.hasClass('slideUpAll')) {
+ $(element.closest('tbody').find('.slideUp:visible').get().reverse()).each(function(index) {
+ slideUp($(this));
+ });
+ } else if (element.hasClass('slideDown')) {
+ slideDown(element);
+ } else if (element.hasClass('addBontas')) {
+
+ postData = { 'action':'addBontas', 'keys':element.closest('tr').data('keys')}
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONAddBontas(msg);
+ });
+
+ } else if (element.hasClass('addBontasTargy')) {
+ // Az érintett sor kulcsát eltároljuk - hogy tudjuk hova kell visszatérni
+ $('div#targyak').data('keys',element.closest('tr').data('keys'));
+ //tt
+ eOffset=element.offset();
+ //tt
+ $('#targyak').css({'left':eOffset.left+25}).show();
+ element.closest('tr').addClass('aktiv');
+
+ // $('#targyak ul#targyakUl').appendTo('#updateWindowSideContent').focus();
+ // $('#updateWindowSide').addClass('nyitva');
+ $('#targyak').show().focus();
+ } else if (element.hasClass('selectTargy')) {
+
+ postData = { 'action':'addBontasTargy', 'keys':$('div#targyak').data('keys'), 'targyId':element.data('targyid') }
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONAddBontas(msg);
+ });
+
+ } else if (element.hasClass('delBontas')) {
+
+ postData = { 'action':'delBontas', 'keys':element.closest('div.bontas').data('keys')}
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelBontas(msg);
+ });
+
+ } else if (element.hasClass('bontas')) {
+
+ if (element.hasClass('ok')) {
+ alert('A csoport összes órája tankörhöz van már rendelve!');
+ } else if (element.hasClass('fail')) {
+ alert('Hiba! A bontás összóraszáma nagyobb a képzés-óratervben megadottnál!');
+ } {
+
+ postData = { 'targyId':element.data('targyid'), 'bontasIds':element.data('keys').toString().split(',') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorLista&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorLista(msg, element);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+ }
+
+ } else if (element.hasClass('tankorBontas') && !element.hasClass('tiltott')) {
+
+
+ postData = { 'action':'bontasTankor', 'keys':$('#updateWindowSide').data('target').data('keys'),
+ 'tankorId': element.data('tankorId'), 'hetiOraszam':element.data('hetiOraszam') }
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONBontasTankor(msg);
+ $('#updateWindowSide').removeClass('nyitva')
+ $('#updateWindowSideContent').html('');
+ });
+
+ } else if (element.hasClass('osszevonasTilt')) {
+ element.removeClass('osszevonasTilt').addClass('osszevonasEnged').addClass('tankorBontas');
+ } else if (element.hasClass('plusz')) {
+ if (!element.closest('li').hasClass('tiltott')) {
+ data = element.closest('li').data();
+ if (data.hetiOraszam < data.maxOraszam) {
+ element.closest('li').data('hetiOraszam', data.hetiOraszam+0.25);
+ element.closest('div').find('span.data').html(element.closest('li').data('hetiOraszam').toFixed(2));
+ }
+ }
+ } else if (element.hasClass('minusz')) {
+ if (!element.closest('li').hasClass('tiltott')) {
+ data = element.closest('li').data();
+ if (data.hetiOraszam > 0.25) {
+ element.closest('li').data('hetiOraszam', data.hetiOraszam-0.25);
+ element.closest('div').find('span.data').html(element.closest('li').data('hetiOraszam').toFixed(2));
+ }
+ }
+ } else if (element.attr('id') == 'addTankor') {
+
+ postData = { 'action':'ujTankor', 'bontasIds':$('#updateWindowSide').data('target').data('keys').toString().split(',') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=ujTankor&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ //console.log('ok');
+ processJSONUjTankor(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+
+ } else if (element.hasClass('tankorAdat')) {
+
+ $('#updateWindowSide').data('target',element);
+ ajaxGetTankorAdat(element.data('tankorid'));
+ } else if (element.hasClass('tankorModosit')) {
+
+ postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() }
+ $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());})
+ $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){
+ if ($(this).val() != '') {
+ tmp = $(this).attr('name').split('-');
+ postData.tankorSzemeszter.push({'tanev':tmp[1], 'szemeszter': tmp[2], 'oraszam': $(this).val() });
+ }
+ });
+
+//console.log(postData.tankorSzemeszter);
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorMod&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorMod(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+ } else if (element.hasClass('tankorNevExtra')) {
+
+ element.next('input#tankorNevExtra').show();
+ element.hide();
+
+ } else if (element.hasClass('slideToggleContainer')) {
+
+ element.find('ul').slideToggle();
+ } else if (element.hasClass('slideToggle')) {
+ element.closest('div').find('ul').slideToggle();
+ } else if (element.hasClass('evfolyamJel')) {
+ if (element.find('input').is(':checked')) {
+ $('div#osztaly div.osztEvf').show();
+ $('div#osztaly div.evfolyamJel input').prop('checked',false);
+ $('div#osztaly span.selectOsztaly input').prop('checked',false);
+ $('div#kepzes div.kSelect input').prop('checked',false);
+ $('div#osztaly div.evfolyamJel').removeClass('checked');
+ $('div#osztaly span.selectOsztaly').removeClass('checked');
+ $('div#kepzes div.kSelect').hide();
+ } else {
+ element.addClass('checked');
+ element.find('input').prop('checked',true);
+ $('div#osztaly div.osztEvf').hide();
+ $('div#osztEvf-'+element.find('input').val().replace('/','-')).show();
+ }
+ } else if (element.hasClass('selectOsztaly')) {
+ isChecked = element.find('input').prop('checked');
+ element.find('input').prop('checked', !isChecked);
+ element.toggleClass('checked');
+ evfDiv = element.closest('div.osztEvf').find('div.evfolyamJel');
+ kepzesDiv=$('div#kepzes div.ko-'+element.find('input').val());
+ if (!isChecked) {
+ kepzesDiv.show();
+ kepzesDiv.find('input').prop('checked',true);
+ kepzesDiv.each(function(index) {
+ db = $(this).data('db');
+ $(this).data('db', db+1);
+ });
+ if (!evfDiv.hasClass('checked')) {
+ evfDiv.addClass('checked');
+ evfDiv.find('input').prop('checked',true);
+ $('div#osztaly div.osztEvf').hide();
+ $('div#osztEvf-'+evfDiv.find('input').val().replace('/','-')).show();
+ }
+ } else {
+ kepzesDiv.each(function(index) {
+ db = $(this).data('db');
+ $(this).data('db', db-1);
+ if ($(this).data('db') == 0) {
+ $(this).find('input').prop('checked',false);
+ $(this).hide();
+ }
+ });
+ }
+ } else if (element.closest('td').attr('id') == 'oratervenKivuli') {
+ element.closest('td').find('ul').slideToggle();
+ }
+
+ });
+
+
+ // tárgyak scrollozása
+ $('div#targyak').mousemove(function(event) {
+ var h = $('ul#targyakUl').height()+13;
+ var offset = $($(this)).offset();
+ var position = (event.pageY-offset.top)/$(this).height();
+ if (position < 0.25) {
+ $('div#targyakDown').hide();
+ if ($('div#targyak').scrollTop() == 0) {
+ $('div#targyakUp').hide();
+ $(this).stop();
+ } else {
+ $('div#targyakUp').show();
+ $(this).stop().animate({ scrollTop: 0 }, 5000);
+ }
+ } else if (position > 0.75) {
+ $('div#targyakUp').hide();
+ if ($('div#targyak').scrollTop() == h) {
+ $('div#targyakDown').hide();
+ $(this).stop();
+ } else {
+ $('div#targyakDown').show();
+ $(this).stop().animate({ scrollTop: h }, 5000);
+ }
+ } else {
+ $('div#targyakUp').hide();
+ $('div#targyakDown').hide();
+ $(this).stop();
+ }
+ });
+
+
+});
+
+
+
+
+
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js
new file mode 100644
index 00000000..7556f12b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js
@@ -0,0 +1,18 @@
+
+showUpdateLayer = function() {
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+}
+hideUpdateLayer = function() {
+ $('#tanmenet tr').removeClass('aktiv');
+}
+
+$(function() {
+
+ $('#tanmenet tr a').click(function(event) {
+ var element = $(event.target).closest('tr');
+ $('#tanmenet tr').removeClass('aktiv');
+ element.addClass('aktiv');
+ });
+}); \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js
new file mode 100644
index 00000000..68151721
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js
@@ -0,0 +1,126 @@
+
+$(function() {
+ initTemakorLista();
+ // mozgatás
+ $('#temakor').sortable({ axis: 'y', containment: "#temakor", handle: "span.handle", items: ".sortable", scroll: false,
+ placeholder: "sortable-placeholder" ,
+ cursor:'move',
+ opacity:0.2,
+ stop: function(event, ui) { initTemakorLista(); $('form[name=tanmenetMod]').trigger('change'); }
+ } );
+ // törlés
+ $('body').click(function(event) {
+ var element = $(event.target);
+ if (element.hasClass('close')) {
+ element.closest('li').remove();
+ initTemakorLista();
+ $('form[name=tanmenetMod]').trigger('change');
+ }
+ });
+ // óraszám vagy szöveg módosítás
+ $('body').change(doOnTemakorChange);
+ // a textarea kinyitása és visszacsukása
+ $('#temakor textarea').focus(function(event) {
+ $(event.target).css({ 'background-color': '#eed', 'height': '100px' });
+ }).blur(function(event) {
+ $(event.target).css({ 'background-color': '#fff', 'height': '50px' });
+ });
+
+});
+
+
+initTemakorLista = function() {
+
+ var oraszam = 0;
+ var maxoraszam = parseInt($('#tanmenetOraszam').val());
+ // Az eddigi összóraszám meghatározása
+ var osszoraszam = 0;
+ $('span.handle').each(
+ function(index, elem) {
+ selectElem = $(elem).closest('li').find('select'); textElem = $(elem).closest('li').find('textarea');
+ if (selectElem.val() != '0' && textElem.val() != '') osszoraszam = osszoraszam+parseInt(selectElem.val());
+ }
+ );
+ var szabadoraszam = maxoraszam-osszoraszam;
+ if (szabadoraszam<0) szabadoraszam=0;
+
+ // Az egyes témakörök sorainak beállítása
+ $('span.handle').each(
+ function(index, elem) {
+
+ elem = $(elem); selectElem = elem.closest('li').find('select');
+ textElem = elem.closest('li').find('textarea'); oraszamSpan = elem.closest('li').find('span.oraszam');
+ if (selectElem.val() != '0' && textElem.val() != '') { // Már kitöltött témakör esetén
+ // Mivel nem tudjuk, hogy korábban milyen osztályba volt sorolva ezért mindkét osztályból eltávolítjuk
+ oraszamSpan.removeClass('jo'); // jo: még belefér az óraszámba
+ oraszamSpan.removeClass('nagy'); // nagy: már nem fér bele az óraszámba
+ // A témakör által lefoglalt órák kiírása
+ oraszamSpan.html( (oraszam+1) );
+ oraszam = oraszam+parseInt( selectElem.val() );
+ oraszamSpan.append('-'+oraszam);
+ // osztályokba sorolás
+ if (oraszam > maxoraszam) oraszamSpan.addClass('nagy'); // már nem fér bele a tanmenet óraszámába
+ else oraszamSpan.addClass('jo'); // még belefér a tanmenet óraszámába
+ // Az oraszám-select érvényes óraszámokra való leszűkítése
+ value = parseInt(selectElem.val());
+ selectElem[0].options.length = 0;
+ for (k=0; k<value+szabadoraszam+1; k++) {
+ selectElem[0].options[k] = new Option(k, k, (k==value), (k==value));
+ }
+ } else { // Az üres, utolsó bejegyzés beállítása
+ if (oraszam < maxoraszam) { // ha van még szabad óra
+ // A hátralévő, szabad órák kiírása
+ oraszamSpan.html( (oraszam+1) );
+ oraszamSpan.append( '-'+maxoraszam );
+ textElem.prop('disabled', false); // Az esetleg korábban letiltott textarea elem engedélyezése
+ } else {
+ oraszamSpan.html('-'); // nincs már szabad óra
+ textElem.prop('disable', true); // textarea elem letiltása - nem lehet felvenni újabb témakört
+ }
+ // A fennmaradt szabad óraszámhoz igazítás
+ selectElem[0].options.length = 0;
+ for (k=0; k<szabadoraszam+1; k++) {
+ selectElem[0].options[k] = new Option(k, k, (k==0), (k==0));
+ }
+ }
+ }
+ );
+
+}
+
+//
+// Ha változik valamelyik témakör szövege, vagy óraszáma, akkor fut le ez a függvény
+//
+doOnTemakorChange = function(event) {
+
+ var element = $(event.target);
+ // Óraszzámváltozáskor újrainicializáljuk a listát...
+ if (element.hasClass('temakorOraszam')) {
+ initTemakorLista();
+ }
+ // Új témakör felvételekor
+ if (element.hasClass('uj')) {
+ spanElement = element.closest('li').find('span.oraszam');
+ selectElement = spanElement.next('select');
+ textElement = selectElement.next('textarea');
+ if (selectElement.val() != '0' && textElement.val() != '') { // Ha érvényes bejegyzés keletkezett
+ // Létrehozunk egy új, üres témakör-beviteli lehetőséget
+ newLi = element.closest('li').clone();
+ // Az eddigi 'uj' mostantól már nem új...
+ selectElement.removeClass('uj');
+ textElement.removeClass('uj');
+ // hanem egy érvényes témakör -aminek óraszámát figyelembe kell venni
+ selectElement.addClass('temakorOraszam');
+ // és a bejegyzést mozgathatóvá, rendezhetővé kell tenni
+ element.closest('li').addClass('sortable');
+ // Az új elemet felvesszük a lista végére
+ element.closest('ul').append(newLi);
+ $(newLi).find('select').focus();
+ // inicializáljuk a listát - hisz lett egy új érvényes óraszámunk
+ initTemakorLista();
+ }
+ }
+
+}
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js
new file mode 100644
index 00000000..b91e46e8
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js
@@ -0,0 +1,93 @@
+
+$(function() {
+
+ $('input.info').click(function(event) {
+
+ var elem = $(event.target);
+ var elemInform = $('#inform');
+ $('#informTanmenetId').val( elem.closest('td').find('select').val() );
+ if ($('#informTanmenetId').val() != '') {
+ updateForm(elemInform, elem);
+ elemInform.closest('div').show().draggable({ handle: '#infodivheader' }
+ );
+ } else {
+ alert('Válassz tanmenetet');
+ }
+ return false;
+
+ });
+ $('#infodivclose').click(function() { $('#infodiv').hide(); });
+ $('form.tanmenet select').change(function(event) {
+ var elem = $(event.target);
+ elem.removeClass('uj kesz jovahagyott publikus elavult');
+ elem.addClass(elem.find('option:selected').prop('class'));
+ });
+/* Ezt nem értem mit is akart csinálni...
+ $('.onChangeUpdateGomb').change(
+ var elem = $(event.target);
+// var optionElem = $(elem.options[ elem.selectedIndex ]);
+// var statusz = optionElem.getAttribute('class');
+ var elemInform = $('#inform');
+ $('#informTanmenetId').val(elem.val());
+ updateForm(elemInform, elem);
+ return false;
+ );
+*/
+
+});
+
+
+/*
+Event.observe(window, 'load', myPSFLoader, false);
+
+ doShowInfo = function(event) {
+
+ var elem = $(Event.element(event));
+
+ if (elem.hasClassName('info')) {
+ var elemInform = $('inform');
+ $('informTanmenetId').value = $F(elem.previous('select'));
+ if ($('informTanmenetId').value != '') {
+ updateForm(elemInform, elem);
+Effect.Grow('infodiv');
+// elemInform.up('div').show();
+ } else {
+ alert('Válassz tanmenetet');
+ }
+ Event.stop(event);
+ }
+
+ }
+
+ doHideInfo = function(event) {
+
+ var elemInform = $('inform');
+ Effect.Shrink('infodiv');
+// elemInform.up('div').hide();
+
+ }
+
+ doOnTanmenetChange = function(event) {
+ var elem = $(Event.element(event));
+
+ if (elem.hasClassName('onChangeUpdateGomb')) {
+ var optionElem = $(elem.options[ elem.selectedIndex ]);
+ var statusz = optionElem.getAttribute('class');
+ var elemInform = $('inform');
+ $('informTanmenetId').value = $F(elem);
+ updateForm(elemInform, elem);
+
+ }
+ }
+
+function myPSFLoader(evt) {
+
+ Event.observe(document.body, 'click', doShowInfo);
+ Event.observe('infodivclose', 'click', doHideInfo);
+
+ Event.observe(document.body, 'mayor:change', doOnTanmenetChange);
+ Event.observe(document.body, 'change', doOnTanmenetChange);
+var mydrag = new Draggable('infodiv', { scroll: window, handle: $('infodivheader') });
+
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js
new file mode 100644
index 00000000..acbca5ae
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js
@@ -0,0 +1,63 @@
+$(document).ready(function() {
+// $('#postazoButton').hide();
+ $('body').bind('keyup', function(evt) {
+ var keyupTarget = $(evt.target);
+ if (keyupTarget.attr('id')=='postazoTxt') {
+ var checklength = keyupTarget.val().length;
+ if(checklength && $('#cimzett').val()!=''){
+ $("#postazoButton").show();
+ } else {
+// $("#postazoButton").hide();
+ }
+ }
+ if (keyupTarget.attr('id')=='pattern') {
+ $('#pattern').parent().find('button').show('fast');
+ }
+ });
+ $('#uzenoKereso').change(function(event) {
+ var element = $(event.target);
+ if( element.attr('id') == 'cimzett') {
+ if( element.val()!='' && $('#postazoTxt').val().length>0 ) {
+ $('#postazoButton').show();
+ } else {
+// $('#postazoButton').hide();
+ }
+ }
+// element.closest('table').find('select').prop('selectedIndex',0);
+// element.closest('table').find('form').submit();
+ });
+
+ $('body').bind('click', function(evt) {
+ var uzenoClickedId = $(evt.target).attr('id');
+ switch(uzenoClickedId) {
+ case 'uzenoSearchIcon':
+ $('#pattern').toggle('fast').focus();
+ break;
+ case 'pattern':
+// $('#postazoButton').hide();
+// $('#txt').hide();
+// $('#cimzett').selectedIndex=0;
+// $('#cimzett').attr('disabled','disabled');
+ break;
+ case 'postazoButton':
+ $('#postazoButton').disabled=true;
+ $('#postazoHash').val('submit');
+ break;
+ case 'cimzett':
+// $('shTipus').update($F('cimzett'));
+// $('#cimzett').attr('title',$F('cimzett'));
+ break;
+ case 'uzenoTxt':
+ break;
+ case 'postazoTxt':
+ if ($("#cimzett option").length==2) {
+ var v = ($("#cimzett option:eq(1)")).attr('selected','selected');
+ $('#postazoButton').show();
+ }
+ break;
+ default:
+ break;
+ }
+ });
+
+});
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.js
new file mode 100644
index 00000000..edfefcee
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/postas.js
@@ -0,0 +1,54 @@
+
+Event.observe(document.body, 'mayor:change', uzenoCheck);
+Event.observe(document.body, 'change', uzenoCheck);
+
+function uzenoCheck(evt) {
+
+ Event.observe('postazoButton', 'click', disableButton);
+
+ var element = $(Event.element(evt));
+ var thisid = (element.getAttribute('id'));
+ switch(thisid) {
+ case 'pattern':
+ $('postazoButton').hide();
+ $('postazoTxt').hide();
+ $('cimzett').selectedIndex=0;
+ $('cimzett').disable();
+ break;
+ case 'postazoButton': // ezt nem kapja el, nem change esemény
+ $('postazoButton').disabled=true;
+ $('postazoHash').setValue('submit');
+ break;
+ case 'cimzett':
+// $('shTipus').update($F('cimzett'));
+ $('cimzett').setAttribute('title',$F('cimzett'));
+ break;
+ case 'postazoTxt':
+ break;
+ default:
+ break;
+ }
+
+ if ($('cimzett').selectedIndex!=0 && $('cimzett').value!='') {
+ $('postazoButton').show();
+ $('postazoTxt').show().focus();
+ } else {
+ $('postazoButton').hide();
+ $('postazoTxt').hide();
+ }
+
+ //Element.addClassName($('uzenoPostazo'), 'csoport');
+
+}
+
+function disableButton(evt) {
+ var element = $(Event.element(evt));
+ if ($('postazoTxt').value!='') {
+ var element = $(Event.element(evt));
+ $('postazoHash').setValue('submit');
+ $('postazoButton').disabled=true;
+ element.up('form').submit();
+ } else {
+ Event.stop(evt);
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js
new file mode 100644
index 00000000..5a9d7121
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js
@@ -0,0 +1,23 @@
+
+$(document).ready(function() {
+ $.holdReady(true);
+ var r = Math.floor(Math.random()*100);
+ $.getScript("skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js?rand="+r).done(function() {
+ $.holdReady(false);
+ });
+ $('#postazoButton').show();
+
+// disabled by konczy
+// $('.uzenet').click(function(event) {
+// var mId = $(this).parent('tr').attr('id');
+// $('#uzenetek').find('tbody tr:not(#'+mId+')').fadeToggle(200);
+// });
+
+});
+
+function checkCR(evt) {
+ var evt = (evt) ? evt : ((event) ? event : null);
+ var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+ if ((evt.keyCode == 13) && (node.type=="text") && (node.id=="pattern")) {return false;}
+}
+document.onkeypress = checkCR;
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js
new file mode 100644
index 00000000..982aad8d
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js
@@ -0,0 +1,33 @@
+
+Event.observe(window, 'load', uzenoPSFLoader);
+
+function uzenoPSFLoader(evt) {
+
+ var r = Math.floor(Math.random()*100);
+ includeJS('skin/classic/module-naplo/javascript/uzeno/postas.js?'+r);
+
+/*
+ $('cimzettTipus').observe('change', function(event) {
+
+ var someNodeList = $(Event.element(event)).getElementsByTagName('option');
+
+ $A(someNodeList).each(function(node){
+ if (node.selected==true) $(node.value+'Id').show();
+ else $(node.value+'Id').hide();
+ });
+
+ });
+*/
+ function checkCR(evt) {
+ var evt = (evt) ? evt : ((event) ? event : null);
+ var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+ if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
+ }
+ document.onkeypress = checkCR;
+/*
+var a = document.createElement('script');
+a.setAttribute('type', 'text/javascript');
+a.setAttribute('src', 'skin/classic/module-naplo/javascript/uzeno/postas.js');
+a.insert(document.head);
+*/
+}