aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/export/kreta-pre.php2
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly-pre.php38
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly.php12
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php32
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/terem-pre.php4
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas-pre.php14
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas.php3
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendBetolto-pre.php11
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito-pre.php2
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito.php5
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/tanev/targyBontas-pre.php3
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php11
-rw-r--r--mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php3
13 files changed, 106 insertions, 34 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/export/kreta-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/export/kreta-pre.php
index 0f68d17a..63b90b8f 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/export/kreta-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/export/kreta-pre.php
@@ -155,7 +155,7 @@ if (!__NAPLOADMIN && !__VEZETOSEG) {
$_csoportNev = getTankorCsoportByTankorId($ADAT['tankorok'][$i]['tankorId'])[0]['csoportNev'];
$_osztalyIds = getTankorOsztalyaiByTanev($ADAT['tankorok'][$i]['tankorId']);
- $_osztalyJel = $ADAT['osztalyAdat'][$_osztalyIds[0]]['osztalyJel'];
+ $_osztalyJel = kisbetus($ADAT['osztalyAdat'][$_osztalyIds[0]]['osztalyJel']);
if (count($osztalyIds) > 1 || $_osztalyJel != $_csoportNev) {
$EXPORT[$j][] = '';
$EXPORT[$j][] = $_csoportNev; // B oszlop: csoport név
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly-pre.php
index 0acd5f0f..0ef378b5 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly-pre.php
@@ -2,11 +2,39 @@
if (_RIGHTS_OK !== true) die();
-if (__NAPLOADMIN!==true) $_SESSION['alert'][]='page:insufficient_access';
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ $ADAT['tablo']['tanevek'] = getTanevek(true);
+ $ADAT['tablo']['telephely'] = getTelephelyek();
+ $ADAT['tablo']['telephelyIds'] = array();
+ foreach ($ADAT['tablo']['telephely'] as $i => $tAdat) $ADAT['tablo']['telephelyIds'][] = $tAdat['telephelyId'];
+
+ $ADAT['tablo']['osztalyId'] = $osztalyId = $_POST['osztalyId'] = readVariable($_POST['osztalyId'], 'id', readVariable($_GET['osztalyId'],'id',null));
+ $ADAT['tablo']['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV, $ADAT['tablo']['tanevek']);
+
+ //$telephelyId = readVariable($_POST['telephelyId'], 'id');
+
+ if ($osztalyId!='') {
+ $ADAT['tablo']['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+ $ADAT['tablo']['diakok'] = getDiakok(array('tanev' => $tanev,'osztalyId'=>$osztalyId));
+ $ADAT['tablo']['diakIds'] = array_keys(reindex($ADAT['tablo']['diakok'],array('diakId')));
+ $ADAT['tablo']['diakKepzes'] = getKepzesByDiakId($ADAT['tablo']['diakIds'], array('result' => 'assoc'));
+ }
+
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('tanev','telephelyId','dt'), 'telephelyId' => $telephelyId);
+
+
+// ------------------------------
+
+if (__NAPLOADMIN!==true) {
+
+} else { // naploadmin
require_once('include/share/date/names.php');
require_once('include/modules/naplo/share/file.php');
-require_once('include/modules/naplo/share/osztaly.php');
require_once('include/modules/naplo/share/osztalyModifier.php');
require_once('include/modules/naplo/share/intezmenyek.php');
require_once('include/modules/naplo/share/diak.php');
@@ -24,7 +52,7 @@ require_once('include/share/net/upload.php');
define('FILE_UPLOAD_DIR',_DOWNLOADDIR.'/private/naplo/upload/');
-if (defined('__INTEZMENY') and __INTEZMENY != '') {
+if (defined('__INTEZMENY') && __INTEZMENY != '') {
$ADAT['tanevek'] = getTanevek(true);
$ADAT['tanarok'] = getTanarok();
$ADAT['kepzesek'] = getKepzesek();
@@ -350,7 +378,11 @@ $TOOL['datumSelect'] = array('tipus'=>'sor','paramName'=>'dt','tolDt'=>$TA['eloz
$TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=kepzes'),
'titleConst' => array('_KEPZES'), 'post' => array(''),
'paramName'=>'kepzesId'); // paramName ?
+} // naploadmin
+
getToolParameters();
+
+
?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly.php
index a1c51b8c..5c2061dc 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/osztaly.php
@@ -1,7 +1,12 @@
<?php
- if (_RIGHTS_OK !== true) die();
+if (_RIGHTS_OK !== true) die();
+if (__NAPLOADMIN!==true) {
+ global $ADAT;
+ putOsztalyGrid($ADAT['tablo']);
+
+} else {
global $ADAT, $fileName, $ADATOK, $MEZO_LISTA, $attrList;
if ($ADAT['updatedFromFile']===true) {
@@ -10,10 +15,11 @@
} else {
+ putOsztalyGrid($ADAT['tablo']);
+
// Osztályhoz rendelés
if (isset($ADAT['osztalyId']) && ($ADAT['osztalyAdat']["kezdoTanev"]<=$ADAT['tanev'] && $ADAT['osztalyAdat']["vegzoTanev"]>=$ADAT['tanev'])) {
-
putOsztalyAdatokForm($ADAT);
if ($ADAT['osztalyJellegek'][ $ADAT['osztalyAdat']['osztalyJellegId'] ]['kovOsztalyJellegId'] != 0) { // NyEK évfolyam
@@ -44,5 +50,5 @@
putUjOsztalyForm($ADAT);
}
}
-
+} // naploadmin
?>
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php
index 3b5f5133..e7f65b68 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php
@@ -1,7 +1,7 @@
<?php
if (_RIGHTS_OK !== true) die();
- if (!__NAPLOADMIN && !__VEZETOSEG) { $_SESSION['alert'] = 'page:insufficient_access'; }
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) { $_SESSION['alert'] = 'page:insufficient_access'; }
else {
require_once('include/modules/naplo/share/osztaly.php');
@@ -19,7 +19,7 @@
'osztalyIds'=>readVariable($_POST['osztalyIds'],'id',array()),
'mkIds'=>readVariable($_POST['mkIds'],'id',array()),
'tanarNelkuliTankorok' => readVariable($_POST['tanarNelkuliTankorok'],'bool'),
- 'tanarIds'=>readVariable($_POST['tanarIds'],'id',array()),
+ 'tanarIds'=>readVariable($_POST['tanarIds'],'id',(!__NAPLOADMIN&&!__VEZETOSEG)?array(__USERTANARID):array()),
'targyIds'=>readVariable($_POST['targyIds'],'id',array()),
);
foreach ($ADAT['szuro']['targyak'] as $idx => $tAdat) $ADAT['targyAdat'][ $tAdat['targyId'] ] = $tAdat;
@@ -36,29 +36,31 @@
foreach ($ADAT['tankorok'] as $tAdat) if (is_array($tAdat['tanarIds']) && count($tAdat['tanarIds'])>0) $ADAT['keszTankorDb']++;
$ADAT['tankorStat'] = getTankorStat();
- if ($action == 'tankorTanarFelvesz') {
+ if (__NAPLOADMIN===true || __VEZETOSEG===true) {
- $tankorId = readVariable($_POST['tankorId'],'id');
- $tanarId = readVariable($_POST['tanarId'],'id');
- $_JSON = array(
+ if ($action == 'tankorTanarFelvesz') {
+
+ $tankorId = readVariable($_POST['tankorId'],'id');
+ $tanarId = readVariable($_POST['tanarId'],'id');
+ $_JSON = array(
'post' => $_POST,
'result' => tankorTanarModosit($tankorId, $tanarId, array('tanev'=>__TANEV))
- );
+ );
- } elseif ($action == 'tankorTanarTorol') {
+ } elseif ($action == 'tankorTanarTorol') {
- $_tankorId = readVariable($_POST['tankorId'],'id');
- $_tanarId = readVariable($_POST['tanarId'],'id');
- tankorTanarTorol($_tankorId,$_tanarId,array('tanev'=>$tanev));
+ $_tankorId = readVariable($_POST['tankorId'],'id');
+ $_tanarId = readVariable($_POST['tanarId'],'id');
+ tankorTanarTorol($_tankorId,$_tanarId,array('tanev'=>$tanev));
- $_JSON = array(
- 'post' => $_POST,
- );
+ $_JSON = array(
+ 'post' => $_POST,
+ );
+ }
}
//dump($ADAT['tanarok']);
-
}
?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/terem-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/terem-pre.php
index 3afa9ce2..3c8c6bda 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/terem-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/terem-pre.php
@@ -19,6 +19,7 @@
$ADAT['teremIds'] = array_keys($ADAT['teremAdat']);
$ADAT['teremTipusok'] = getSetField('naplo_intezmeny','terem','tipus');
$ADAT['teremId'] = readVariable($_POST['teremId'], 'id', readVariable($_GET['teremId'], 'id', null, $ADAT['teremIds']), $ADAT['teremIds']);
+ $ADAT['teremIdMod'] = readVariable($_POST['teremIdMod'], 'id', null);
if ($action == 'teremAdatModositas' || $action=='ujTerem') {
@@ -27,7 +28,8 @@
$D['ferohely'] = readVariable($_POST['ferohely'], 'numeric unsigned');
$D['tipus'] = readVariable($_POST['tipus'], 'enum', $ADAT['teremTipusok']);
$D['telephelyId'] = readVariable($_POST['telephelyId'], 'id', readVariable($_GET['telephelyId'], 'id', null, $ADAT['telephelyIds']), $ADAT['telephelyIds']);
-//echo '<pre>'; var_dump($ADAT['teremIds']); echo '</pre>';
+ $D['teremId'] = $ADAT['teremId'];
+ $D['teremIdMod'] = $ADAT['teremIdMod'];
teremAdatModositas($D,($action=='ujTerem'));
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas-pre.php
index fb04a3ca..954eebba 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas-pre.php
@@ -8,6 +8,7 @@
require_once('include/modules/naplo/share/targy.php');
require_once('include/modules/naplo/share/osztaly.php');
require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/kepesites.php');
$intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null );
if ($action == 'intezmenyValasztas') {
@@ -40,13 +41,24 @@
}
}
}
- $ADAT['tanarok'] = getTanarok(array('extraAttrs'=>'titulus,statusz,besorolas','telephelyId'=>__TELEPHELYID));
+ $ADAT['tanarok'] = getTanarok(array('extraAttrs'=>'email,titulus,statusz,besorolas','telephelyId'=>__TELEPHELYID));
$ADAT['targyak'] = getTargyak(array('arraymap'=>array('targyId')));
+
+
+ $ADAT['kepesitesek'] = getKepesitesek();
+// $ADAT['vegzettsegek'] = getEnumField('naplo_intezmeny', 'kepesites', 'vegzettseg');
+// $ADAT['fokozatok'] = getEnumField('naplo_intezmeny', 'kepesites', 'fokozat');
+// $ADAT['specializaciok'] = getEnumField('naplo_intezmeny', 'kepesites', 'specializacio');
+
+//dump($ADAT['kepesitesek']);
+
$lr = db_connect('naplo_intezmeny');
for($i=0; $i<count($ADAT['tanarok']); $i++) {
$_tanarId = $ADAT['tanarok'][$i]['tanarId'];
$ADAT['tanarOsztaly'][$_tanarId] = getOsztalyIdsByTanarId($_tanarId, array('tanev'=>__TANEV,'csakId'=>true),$lr);
$ADAT['tanarMunkakozosseg'][$_tanarId] = getVezetettMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
+ $ADAT['tanarok'][$i]['kepesites'] = getTanarKepesites($_tanarId);
+// $ADAT['tanarok'][$i]['kepesitesNev'] = $ADAT['kepesitesek'];
}
$ADAT['osztalyok'] = getOsztalyok(__TANEV,array('result'=>'assoc'),$lr);
db_close($lr);
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas.php
index 3d15f4de..d5ddca45 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/intezmeny/valtas.php
@@ -2,6 +2,7 @@
if (_RIGHTS_OK !== true) die();
global $ADAT;
- putTanarLista($ADAT);
+ if (__INTEZMENY=='kanizsay') putTanarLista_large($ADAT);
+ else putTanarLista($ADAT);
?>
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendBetolto-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendBetolto-pre.php
index df4db33a..98e19dfb 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendBetolto-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendBetolto-pre.php
@@ -16,6 +16,7 @@
require_once('include/modules/naplo/share/tankor.php');
require_once('include/modules/naplo/share/targy.php');
// require_once('include/modules/naplo/share/diak.php');
+ require_once('include/share/net/upload.php');
$ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
if ($tanev == __TANEV) $TA = $_TANEV;
@@ -37,6 +38,16 @@
// ----- action ----- //
if ($action == 'fileBetoltes') {
+ if ($_FILES['upfile']['size'] > 0) {
+ try {
+ $FILEADAT = array('subdir'=>_DOWNLOADDIR.'/private/naplo/orarend/','filename'=>$_FILES['upfile']['name']);
+ mayorFileUpload($FILEADAT, false);
+ } catch (Exception $e) {
+ dump($e);
+ }
+// $ADAT['fileName'] = $fileName = $_FILES['upfile']['tmp_name'];
+ $ADAT['fileName'] = $fileName = $FILEADAT['subdir'].$FILEADAT['filename'];
+ }
if (isset($fileName) && isset($conv) && isset($tanev) && isset($tolDt) && isset($igDt) && isset($orarendiHet)) {
if (file_exists($fileName)) {
require_once("include/modules/naplo/orarend/convert-$conv.php");
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito-pre.php
index e0fe07db..250197a0 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito-pre.php
@@ -194,11 +194,11 @@
$ADAT['orarend'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephely'=>$telephely,'orarendiOraTankor'=>true));
$ADAT['toPrint'] = $ADAT['tanarok'][$tanarId]['tanarNev'];
$ADAT['felvehetoTankorok'] = getTankorByTanarId($tanarId,$tanev, array('csakId'=>false,'tolDt'=>$refTolDt, 'igDt'=>$refIgDt));
-
//========================
/* illesszük ide az Órarendi óra tankör összerendezés 4.6 */
$ADAT['orarendioraTankor'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'orarendiOraTankor'=>true));
//========================
+ // $ADAT['orarendiOra'] = getLebegoOrarendiOra($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
$TANKORIDK = getTankorByTanarId($tanarId, __TANEV, array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'indexed', 'tanarral' => false));
$ADAT['haladasi'] = getOrak($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'likeOrarend', 'elmaradokNelkul'=>false));
$ADAT['vanHaladasi'] = checkHaladasi(array('tolDt'=>$refTolDt,'igDt'=>$refIgDt));
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito.php
index 59ad88ac..4cffc162 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarendModosito.php
@@ -10,5 +10,10 @@
&& count($ADAT['felvehetoTankorok']) > 0
)
putOrarend($ADAT);
+ // if ($ADAT['orarendiOra']) putOrarendLebego($ADAT);
+
+ if (count($ADAT['felvehetoTankorok']) === 0) {
+ echo 'Nincs felvehető tanköre a megadott tanárnak!';
+ }
?>
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/tanev/targyBontas-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/tanev/targyBontas-pre.php
index 2b9ad588..4d2893a9 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/tanev/targyBontas-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/tanev/targyBontas-pre.php
@@ -18,7 +18,7 @@
if ($ADAT['targyBontasStatus']===false && $action=='targyBontasInit') {
$ADAT['targyBontasStatus'] = initFromLastYear();
}
-dump($ADAT);
+
// telephely - csak szűréshez kell
$ADAT['telephelyId'] = $telephelyId = readVariable($_POST['telephelyId'], 'id');
// kötelező szűrési opció
@@ -85,7 +85,6 @@ dump($ADAT);
$ADAT['oraterv'] = kepzesOratervSorrend($evfolyamJel, $ADAT['osztalyIds'], $ADAT['kepzesIds']);
// itt volt a targyAdat... felkerült az elejére
$ADAT['osztalyTargyBontas'] = getKepzesTargyBontasByOsztalyIds($osztalyIds);
-//dump($ADAT['osztalyTargyBontas']);
}
$ADAT['oratervenKivuliTankorok'] = getOratervenKivuliTankorIds();
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php
index 010a7189..18f17ec6 100644
--- a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok-pre.php
@@ -36,12 +36,13 @@
$ADAT['tanarok'] = getTanarok(array('extraAttrs'=>'titulus,statusz,besorolas,email,YEAR(beDt) AS belepesEve,IFNULL("",YEAR(kiDt)) AS kilepesEve, elerhetoseg'));
$ADAT['targyak'] = getTargyak(array('arraymap'=>array('targyId')));
$lr = db_connect('naplo_intezmeny');
+
for($i=0; $i<count($ADAT['tanarok']); $i++) {
- $_tanarId = $ADAT['tanarok'][$i]['tanarId'];
- $ADAT[$_tanarId]['osztalyfonok'] = getOsztalyIdsByTanarId($_tanarId, array('tanev'=>__TANEV,'csakId'=>true),$lr);
- $ADAT[$_tanarId]['mkVez'] = getVezetettMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
- $ADAT[$_tanarId]['munkakozosseg'] = getMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
- $ADAT[$_tanarId]['kepesites'] = getTanarKepesites($_tanarId);
+ $_tanarId = $ADAT['tanarok'][$i]['tanarId'];
+ $ADAT['tanarOsztaly'][$_tanarId] = getOsztalyIdsByTanarId($_tanarId, array('tanev'=>__TANEV,'csakId'=>true),$lr);
+ $ADAT['tanarMunkakozosseg'][$_tanarId] = getVezetettMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
+ $ADAT['tanarok'][$i]['kepesites'] = getTanarKepesites($_tanarId);
+// $ADAT['tanarok'][$i]['kepesitesNev'] = $ADAT['kepesitesek'];
}
$ADAT['osztalyok'] = getOsztalyok(__TANEV,array('result'=>'assoc'),$lr);
db_close($lr);
diff --git a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php
index 3d15f4de..d028bd19 100644
--- a/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php
+++ b/mayor-orig/mayor-naplo/www/policy/public/naplo/intezmeny/tanarok.php
@@ -2,6 +2,7 @@
if (_RIGHTS_OK !== true) die();
global $ADAT;
- putTanarLista($ADAT);
+
+ putTanarLista_large($ADAT);
?>