diff options
author | M.Gergo | 2018-07-06 11:14:41 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:14:41 +0200 |
commit | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch) | |
tree | 54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/policy/parent | |
parent | 50310b0e4513ee3fcce67351ae61e8fff851130e (diff) | |
download | mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip |
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/policy/parent')
-rw-r--r-- | mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php | 34 | ||||
-rw-r--r-- | mayor-orig/www/policy/parent/naplo/diakValaszto.php | 8 | ||||
l--------- | mayor-orig/www/policy/parent/naplo/hirnok | 1 | ||||
-rw-r--r-- | mayor-orig/www/policy/parent/naplo/naplo-pre.php | 5 | ||||
-rw-r--r-- | mayor-orig/www/policy/parent/naplo/naplo.php | 0 |
5 files changed, 48 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php b/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php new file mode 100644 index 00000000..90fa6df3 --- /dev/null +++ b/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php @@ -0,0 +1,34 @@ +<?php + + if (_RIGHTS_OK !== true) die(); + require_once('include/modules/naplo/share/szulo.php'); + + $diakId = readVariable($_POST['diakId'],'id',null); + $SZULODIAKJAI = getSzuloDiakjai(); + + if (!is_array($SZULODIAKJAI) || count($SZULODIAKJAI)==0) { + $_SESSION['alert'][] = ':!E12:nincs_egy_diakja_se:'._USERACCOUNT.':'._POLICY; + } + if ($action == 'valaszt') { + for ($i=0; $i<count($SZULODIAKJAI); $i++) { + if ($SZULODIAKJAI[$i]['diakId']==$diakId) { + updateSessionParentDiakId($diakId) ; +// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/'); + $_SESSION['szuloDiakIdOk']=true; + if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo') + header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f'])); + elseif ($DEFAULT_PSF['parent']['f'] == 'diakValaszto') + header('Refresh:0'); // a konstans előbb definiálódik + break; + } + } + //---- + } elseif (count($SZULODIAKJAI)==1) { + updateSessionParentDiakId($SZULODIAKJAI[0]['diakId']) ; +// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/'); + $_SESSION['szuloDiakIdOk']=true; + if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo') + header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f'])); + } + +?> diff --git a/mayor-orig/www/policy/parent/naplo/diakValaszto.php b/mayor-orig/www/policy/parent/naplo/diakValaszto.php new file mode 100644 index 00000000..b64ee30c --- /dev/null +++ b/mayor-orig/www/policy/parent/naplo/diakValaszto.php @@ -0,0 +1,8 @@ +<?php + + if (_RIGHTS_OK !== true) die(); + global $SZULODIAKJAI; + + putDiakValasztoForm($SZULODIAKJAI); + +?> diff --git a/mayor-orig/www/policy/parent/naplo/hirnok b/mayor-orig/www/policy/parent/naplo/hirnok new file mode 120000 index 00000000..56d56cc8 --- /dev/null +++ b/mayor-orig/www/policy/parent/naplo/hirnok @@ -0,0 +1 @@ +../../private/naplo/hirnok
\ No newline at end of file diff --git a/mayor-orig/www/policy/parent/naplo/naplo-pre.php b/mayor-orig/www/policy/parent/naplo/naplo-pre.php new file mode 100644 index 00000000..bec91f25 --- /dev/null +++ b/mayor-orig/www/policy/parent/naplo/naplo-pre.php @@ -0,0 +1,5 @@ +<?php + + header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=diak')); + +?>
\ No newline at end of file diff --git a/mayor-orig/www/policy/parent/naplo/naplo.php b/mayor-orig/www/policy/parent/naplo/naplo.php new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/mayor-orig/www/policy/parent/naplo/naplo.php |