aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/policy/private/naplo/hibabejelento
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/policy/private/naplo/hibabejelento
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-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/private/naplo/hibabejelento')
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php80
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/admin.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php24
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php10
4 files changed, 130 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php b/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php
new file mode 100644
index 00000000..60de869a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php
@@ -0,0 +1,80 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/kerelem.php');
+
+ $_telephelyIdDefault = (isset($_POST['telephelyId'])?null:__TELEPHELYID);
+ $telephelyId = readVariable($_POST['telephelyId'],'id', $_telephelyIdDefault);
+ $kerelemId = readVariable($_POST['kerelemId'],'id',readVariable($_GET['kerelemId'],'id'));
+ $tolDt = readVariable($_POST['tolDt'],'date',date('Y-m-d'));
+
+ if ($action == 'hibabejelentes') {
+ $ADAT['txt'] = readVariable($_POST['txt'], 'string');
+ $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ $ADAT['telephelyId'] = $telephelyId;
+ if ( $ADAT['txt'] != '' && ($kerelemId = hibabejelentes($ADAT)) ) $_SESSION['alert'][] ='info:success:'.$kerelemId;
+ }
+
+ if ((is_array($hibaAdmin) && in_array(_USERACCOUNT,$hibaAdmin)) || (!is_array($hibaAdmin) && (__VEZETOSEG || __NAPLOADMIN))) {
+ define('__HIBAADMIN',true);
+ } else {
+ define('__HIBAADMIN',false);
+ }
+ if (__HIBAADMIN === TRUE) {
+
+ if ($action == 'hibaAdminRogzites') {
+ $_ADAT['kerelemId'] = $kerelemId;
+ $_ADAT['kerelemTelephelyId'] = $_ADAT['telephelyId'] = $telephelyId;
+ $_ADAT['valasz'] = readVariable($_POST['valasz'],'string');
+ $_ADAT['jovahagy'] = readVariable($_POST['jovahagy'],'string');
+ $_ADAT['nemHagyJova'] = readVariable($_POST['nemHagyJova'],'string');
+ $_ADAT['lezar'] = readVariable($_POST['lezar'],'string');
+ $_ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ hibaAdminRogzites($_ADAT);
+
+ //if ($_ADAT['lezar'])
+ unset($kerelemId);
+ unset($_ADAT);
+ }
+
+ // Összes lezáratlan kérelem lekérdezése
+ if ($kerelemId>0) {
+ $Kerelmek = getKerelmek('',$kerelemId,$tolDt);
+ } else {
+ $Kerelmek = getKerelmek($telephelyId,null,$tolDt);
+ }
+ } else {
+ if ($action == 'hibaAdminRogzites') {
+ $_ADAT['kerelemId'] = $kerelemId;
+ $_ADAT['kerelemTelephelyId'] = $_ADAT['telephelyId'] = $telephelyId;
+ $_ADAT['valasz'] = readVariable($_POST['valasz'],'string');
+ $_ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ hibaAdminRogzites($_ADAT);
+
+ //if ($_ADAT['lezar'])
+ unset($kerelemId);
+ unset($_ADAT);
+ }
+ // Saját kérelmek lekérdezése
+ $Kerelmek = getSajatKerelmek($telephelyId);
+ }
+
+ $TELEPHELY = getTelephelyek();
+
+// $TOOL['kerelemStat'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('telephelyId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => date('Y-m-d'),
+ );
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'inbox','post'=>array('telephelyId'));
+ if ($kerelemId!='') {
+ $TOOL['vissza']['icon'] = 'arrow-left';
+ }
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php b/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php
new file mode 100644
index 00000000..f34d5eed
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Kerelmek,$telephelyId,$TELEPHELY;
+
+ if ($skin=='classic') putHibabejelento($telephelyId);
+
+ if (is_array($Kerelmek) && count($Kerelmek)>0) {
+ if ($_GET['view']==2){
+ putKerelmekValasszal($Kerelmek,$telephelyId,$TELEPHELY);
+ } else {
+ putKerelmek($Kerelmek,$telephelyId,$TELEPHELY);
+ }
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php
new file mode 100644
index 00000000..da2f215e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php
@@ -0,0 +1,24 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/kerelem.php');
+ $telephelyId = readVariable($_POST['telephelyId'],'id',__TELEPHELYID);
+ $kerelemId = readVariable($_GET['kerelemId'],'id');
+
+ if ($action == 'hibabejelentes') {
+
+ $ADAT['telephelyId'] = readVariable($_POST['kerelemTelephelyId'], 'id', $telephelyId);
+ $ADAT['txt'] = readVariable($_POST['txt'], 'string');
+ $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ if ( $ADAT['txt'] != '' && ($kerelemId = hibabejelentes($ADAT)) ) $_SESSION['alert'][] ='info:success:'.$kerelemId;
+
+ }
+
+ if ($kerelemId>0) $Kerelmek = getKerelmek('',$kerelemId);
+
+// $TOOL['kerelemStat'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php
new file mode 100644
index 00000000..dffac292
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $telephelyId;
+
+ putHibabejelento($telephelyId);
+
+
+?>