From 3a1c1811413c635c5ee6e40cb7d497de7313dbe1 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Thu, 28 Oct 2021 15:10:04 +0200 Subject: Rev: 4820 --- .../www/policy/private/naplo/intezmeny/valtas.php | 9 ++++- .../www/policy/private/naplo/szulinap-pre.php | 28 +++++++++++-- .../www/policy/private/naplo/szulinap.php | 46 +++++++++++++++++++--- 3 files changed, 73 insertions(+), 10 deletions(-) (limited to 'mayor-orig/mayor-naplo/www/policy/private') 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 d5ddca45..9725b1f9 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 @@ -3,6 +3,11 @@ if (_RIGHTS_OK !== true) die(); global $ADAT; - if (__INTEZMENY=='kanizsay') putTanarLista_large($ADAT); - else putTanarLista($ADAT); + if (__INTEZMENY=='kanizsay') { + $ADAT['kulsosview']=false; + putTanarLista_large($ADAT); + $ADAT['kulsosview']=true; + putTanarLista_large($ADAT); + } else putTanarLista($ADAT); + ?> diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap-pre.php index 46164faf..25332988 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap-pre.php @@ -2,14 +2,36 @@ if (_RIGHTS_OK !== true) die(); - if ($skin=='ajax') { +// if ($skin=='ajax') { require_once('include/modules/naplo/share/diak.php'); require_once('include/modules/naplo/share/osztaly.php'); - $ADAT['ma'] = getDiakBySzulDt($dt); + $ADAT['ma'] = getDiakBySzulDt(date('Y-m-d')); + + $dt = readVariable($_POST['dt'],'date'); + if (is_null($dt)) { + $refDt = date('Y-m-d',strtotime('+1 days')); + $dt = date('Y-m-d',strtotime('last sunday',strtotime($refDt))); + } + for ($i=0; $i<=6; $i++) { + $_md = date('m-d',strtotime('+'.$i.' day',strtotime($dt))); + $ADAT['heti'][$i]['dt']= date('Y-m-d',strtotime('+'.$i.' day',strtotime($dt))); + $ADAT['heti'][$i]['diakok'] = getDiakBySzulDt($_md); + } $ADAT['osztaly'] = getOsztalyok(__TANEV,array('result'=>'assoc')); - } +// } + + if ($skin!='ajax') { + global $_TANEV; + $TOOL['datumSelect'] = array( + 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'), + 'paramName' => 'dt', 'hanyNaponta' => 7, + 'tolDt' => date('Y-m-d', strtotime('last sunday', strtotime($_TANEV['kezdesDt']))), + 'igDt' => date('Y-m-d', strtotime('last sunday', strtotime($_TANEV['zarasDt']))), + 'override' => true + ); + } ?> diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php index 93606734..390733b8 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php @@ -2,13 +2,14 @@ if (_RIGHTS_OK !== true) die(); - global $ADAT; + global $ADAT,$aHetNapjai; -if ($skin=='ajax') { +//if ($skin=='ajax') { $szulinapos= false; - if (__NAPLOADMIN || __TANAR) { +// if (__NAPLOADMIN===true || __TANAR===true) { +/* echo ''; +*/ + if ($skin!='ajax') echo '
'; + + echo ''; + + for ($n=0; $n<=6; $n++) { + echo '
'.(date('Y.m.d.',strtotime($ADAT['heti'][$n]['dt']))).' '.$aHetNapjai[(6+date('w',strtotime($ADAT['heti'][$n]['dt'])))%7].'
'; + echo ''; + } if (is_array($ADAT['ma']['diakOsztaly'])) foreach($ADAT['ma']['diakOsztaly'] as $_diakId => $_osztalyId) { @@ -28,6 +57,13 @@ if ($skin=='ajax') { if ($szulinapos) echo _HAPPYBIRTHDAY; + echo ''; + echo ''; + echo ''; + + if ($skin!='ajax') echo '
'; + +/* if (is_array($O)) { echo ''; } - -} +*/ +//} ?> -- cgit v1.2.3