aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy/private
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy/private')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php6
1 files changed, 4 insertions, 2 deletions
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 390733b8..deca5915 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/szulinap.php
@@ -35,13 +35,15 @@
echo '<ul class="szulinap" style="list-style-type: none;">';
for ($i=0; $i<count($ADAT['heti'][$n]['diakok']['diak']); $i++) {
$_D = $ADAT['heti'][$n]['diakok']['diak'][$i];
+ $_diakId= $_D['diakId'];
+ $_diakOsztalyId = $ADAT['heti'][$n]['diakok']['diakOsztaly'][$_diakId][0];
echo '<li class="diakAdat diakNev" data-diakid="'.$_D['diakId'].'">';
echo $ADAT['heti'][$n]['diakok']['diak'][$i]['viseltNevElotag'].' ';
echo $ADAT['heti'][$n]['diakok']['diak'][$i]['viseltCsaladinev'].' ';
echo $ADAT['heti'][$n]['diakok']['diak'][$i]['viseltUtonev'];
if ($ADAT['heti'][$n]['diakok']['diak'][$i]['diakEletkor']<=20) echo '<span class="eletkor">'.$ADAT['heti'][$n]['diakok']['diak'][$i]['diakEletkor'].'</span>';
- if ($ADAT['heti'][$n]['diakok']['diak'][$i]['osztaly'][0]['osztalyJel']!='') {
- echo ' ('.$ADAT['heti'][$n]['diakok']['diak'][$i]['osztaly'][0]['osztalyJel'].')';
+ if ($ADAT['osztaly'][$_diakOsztalyId]['osztalyJel']!='') {
+ echo ' ('.($ADAT['osztaly'][$_diakOsztalyId]['osztalyJel']).')';
}
echo '</li>';
}