aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/private/naplo/haladasi
diff options
context:
space:
mode:
authorM.Gergo2018-12-16 16:35:17 +0100
committerM.Gergo2018-12-16 16:35:17 +0100
commite6988247360fa98b85915a38803d018dd353df00 (patch)
tree24f42628f6cdaedacc06ce033378173a0e561be9 /mayor-orig/www/policy/private/naplo/haladasi
parent2a219b9ea312fb88703a33ea2450e32af40be64a (diff)
downloadmayor-e6988247360fa98b85915a38803d018dd353df00.tar.gz
mayor-e6988247360fa98b85915a38803d018dd353df00.zip
Rev: 4412
Diffstat (limited to 'mayor-orig/www/policy/private/naplo/haladasi')
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php
index 5f7d600c..89686a13 100644
--- a/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php
+++ b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php
@@ -4,8 +4,9 @@
*/
if (_RIGHTS_OK !== true) die();
- if (!__NAPLOADMIN and !__VEZETOSEG) {
- $_SESSION['alert'][] = 'message:insufficient_access';
+
+ if (!(__NAPLOADMIN===true || __VEZETOSEG===true || (MAYOR_SOCIAL===true && __TANAR===true))) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
} else {
require_once('include/modules/naplo/share/tanar.php');
@@ -45,14 +46,6 @@
if ($action == 'hianyzoModositas') {
- /* Régi megoldás
- $hianyzok = $_POST['hianyzok'];
- if (!is_array($hianyzok)) $hianyzok = array();
- $voltHianyzok = getHianyzok($dt);
-
- $ujHianyzok = array_diff($hianyzok, $voltHianyzok);
- $toroltHianyzok = array_diff($voltHianyzok, $hianyzok);
- */
$ujHianyzok = readVariable($_POST['addHianyzo'], 'numeric unsigned');
$toroltHianyzok = readVariable($_POST['delHianyzo'], 'numeric unsigned');
@@ -168,7 +161,12 @@
$HELYETTESITES['tanarTerheles'] = getOraTerhelesStatByTanarId(array('dt'=>$dt));
}
db_close($lr);
- }
+
+
+
+
+
+
// toolBar
if (__NAPLOADMIN) {
@@ -180,7 +178,7 @@
'igDt' => getTanitasiNap(array('direction'=>'elore', 'napszam'=>10, 'fromDt'=>'curdate()')),
'napTipusok' => array('tanítási nap', 'speciális tanítási nap')
);
- } elseif (__VEZETOSEG) {
+ } elseif (__VEZETOSEG || MAYOR_SOCIAL===true) {
$TOOL['datumSelect'] = array(
'tipus' => 'cella', 'post' => array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
'paramName' => 'dt', 'hanyNaponta' => 1,
@@ -191,4 +189,7 @@
}
getToolParameters();
+ }
+
+
?>