From 146a089e39ccbf0e0675543c9d97a4567e321414 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sat, 15 Sep 2018 02:14:34 +0200 Subject: Rev: 4368 --- .../module-naplo/html/intezmeny/tankor.phtml | 2 +- .../module-naplo/html/osztalyozo/stat.phtml | 32 ++++++++++++---------- .../module-naplo/javascript/naplo.jquery.min.js | 2 +- 3 files changed, 20 insertions(+), 16 deletions(-) (limited to 'mayor-orig/www/skin/classic/module-naplo') diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml index 7517709b..2401da8f 100644 --- a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml +++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml @@ -100,7 +100,7 @@ echo ''."\n"; echo ''._TANKORCN.''; echo ''; - echo ''; + echo ''; echo ''; echo ''."\n"; diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml index 40f2a3bd..4ede6060 100644 --- a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml +++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml @@ -9,7 +9,8 @@ echo ''; echo ''._SZEMPONT.''; for ($i = 0; $i < count($ADAT['osztaly']); $i++) { - echo ''; + $nyekClass = in_array($ADAT['osztaly'][$i]['osztalyJellegId'],$ADAT['nyekJellegu']) ? ' style="background-color: #f60"':''; + echo ''; if ($ADAT['osztaly'][$i]['osztalyJel'] != '') echo $ADAT['osztaly'][$i]['osztalyJel']; else echo $ADAT['osztaly'][$i]['kezdoTanev'].'/'.$ADAT['osztaly'][$i]['jel']; echo ''; @@ -143,33 +144,36 @@ echo ''; -/* - ---TODO - + $_nyvColor = array('#8bc34a','#2196f3','#e91e63','#263238'); if (is_array($ADAT['targyak'])) { - foreach($ADAT['vizsgaSzint'] as $vizsgaSzint) { + $_szintIndex=0; + foreach($ADAT['vizsgaSzint'] as $vizsgaSzint) { echo ''; - echo ''.$vizsgaSzint.' '; - foreach ($ADAT['targyak'] as $i => $targyAdat) { - if ($targyAdat['targyJelleg'] == 'nyelv') { - echo ''; + echo 'Nyelvvizsgák – '.$vizsgaSzint.' '; + foreach ($ADAT['mindenTargy'] as $_index => $targyAdat) { + if ($targyAdat['targyJelleg'] == 'nyelv' && count($ADAT['nyelvvizsgak'][$targyAdat['targyId']])>0) { + echo ''; echo ''; echo $targyAdat['targyNev']; echo ''; $_c = 0;$_sum=0; for ($i = 0; $i < count($ADAT['osztaly']); $i++) { - echo ''; - echo '-'; + $_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 ''; + } + else echo ''; + if ($_db>0) echo $_db; echo ''; } - echo ''."\n"; + echo ''."\n"; } } echo ''; + $_szintIndex++; } } -*/ echo ''; diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js index 80276f20..fd9e8336 100644 --- a/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js +++ b/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js @@ -856,7 +856,7 @@ processJSONTankorAdat = function(adat) { content += '

'+mayorLeiras(adat['leiras'])+'

'; content += '