diff options
author | M.Gergo | 2018-09-15 02:14:34 +0200 |
---|---|---|
committer | M.Gergo | 2018-09-15 02:14:34 +0200 |
commit | 146a089e39ccbf0e0675543c9d97a4567e321414 (patch) | |
tree | 06b831ede7745eb8fea8aff049aaba89d7f72792 /mayor-orig/www/skin | |
parent | 0d6f6b3f16c50eeecf013b576090e1b9c087b6e5 (diff) | |
download | mayor-146a089e39ccbf0e0675543c9d97a4567e321414.tar.gz mayor-146a089e39ccbf0e0675543c9d97a4567e321414.zip |
Rev: 4368
Diffstat (limited to 'mayor-orig/www/skin')
3 files changed, 20 insertions, 16 deletions
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 '<tr>'."\n"; echo '<th>'._TANKORCN.'</th>'; echo '<td colspan="2">'; - echo '<input type="text" name="tankorCn" value="'.$TOPOST['tankoradat']['cn'].'" />'; + echo '<input type="text" name="tankorCn" value="'.$TOPOST['tankoradat']['tankorCn'].'" />'; echo '</td>'; echo '</tr>'."\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 '<tr>'; echo '<th>'._SZEMPONT.'</th>'; for ($i = 0; $i < count($ADAT['osztaly']); $i++) { - echo '<th>'; + $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>'; @@ -143,33 +144,36 @@ echo '</tbody>'; -/* - ---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 '<tbody>'; - echo '<th colspan="'.(count($ADAT['osztaly'])+1).'">'.$vizsgaSzint.' <span class="icon-globe-alt"></span></th>'; - foreach ($ADAT['targyak'] as $i => $targyAdat) { - if ($targyAdat['targyJelleg'] == 'nyelv') { - echo '<tr>'; + 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++) { - echo '<td>'; - 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 '<td '.$nyekClass.'>'; + } + else echo '<td>'; + if ($_db>0) echo $_db; echo '</td>'; } - echo '</tr>'."\n"; + echo '</tr>'."\n"; } } echo '</tbody>'; + $_szintIndex++; } } -*/ echo '</table>'; 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 += '<h3>'+mayorLeiras(adat['leiras'])+'</h3>'; content += '<ul>'; - content += '<li>megjegyzés: '+adat['cn']+'</li>'; + 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>'; |