aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/private/naplo/szulinap.php
blob: 936067343b326725b9daba6d6339c85f9954c063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php

   if (_RIGHTS_OK !== true) die();

    global $ADAT;

if ($skin=='ajax') {

    $szulinapos= false;

    if (__NAPLOADMIN || __TANAR) {
	echo '<ul>';
	for ($i=0; $i<count($ADAT['ma']['diak']); $i++) {
	echo '<li>';
	echo $ADAT['ma']['diak'][$i]['viseltNevElotag'].' ';
	echo $ADAT['ma']['diak'][$i]['viseltCsaladinev'].' ';
	echo $ADAT['ma']['diak'][$i]['viseltUtonev'];
	echo '</li>';
	}
	echo '</ul>';
    }

    if (is_array($ADAT['ma']['diakOsztaly'])) foreach($ADAT['ma']['diakOsztaly'] as $_diakId => $_osztalyId) {
	$O[$_osztalyId[0]]++;
	if ( defined('__USERDIAKID') && __USERDIAKID == $_diakId ) $szulinapos = true;

    }

    if ($szulinapos) echo _HAPPYBIRTHDAY;

    if (is_array($O)) {
	echo '<ul>';
	foreach($O as $osztalyId => $db) {
	    echo '<li>';
	    echo $ADAT['osztaly'][$osztalyId]['osztalyJel'].': ' ;
	    echo $db.' ';
	    echo '</li>';
	}
	echo '</ul>';
    }

}

?>