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/include/modules/naplo/hibabejelento | |
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/include/modules/naplo/hibabejelento')
-rw-r--r-- | mayor-orig/www/include/modules/naplo/hibabejelento/admin.php | 28 | ||||
-rw-r--r-- | mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php | 27 |
2 files changed, 55 insertions, 0 deletions
diff --git a/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php b/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php new file mode 100644 index 00000000..a32c1283 --- /dev/null +++ b/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php @@ -0,0 +1,28 @@ +<?php + + require_once('include/modules/naplo/share/kerelem.php'); + + function hibabejelentes($ADAT) { + + if ($ADAT['txt'] != '') { + if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId']; + $q = "INSERT INTO kerelem (userAccount,szoveg,rogzitesDt,kategoria,telephelyId) VALUES ('"._USERACCOUNT."','%s',NOW(),'%s','%s')"; + return db_query($q, array('fv' => 'hibabejeletes', 'result'=>'insert','modul' => 'naplo_base', 'values' => array($ADAT['txt'],$ADAT['kategoria'],$telephelyId))); + } else { + return false; + } + + } + + function kerelemValasz($ADAT) { + if ($ADAT['txt'] != '' && $ADAT['kerelemId']>0) { + //if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId']; + $q = "INSERT INTO kerelemValasz (kerelemId,userAccount,valasz) VALUES ('%u','"._USERACCOUNT."','%s')"; + return db_query($q, array('fv' => 'hibabejeletes', 'modul' => 'naplo_base', 'values' => array($ADAT['kerelemId'],$ADAT['txt']))); + } else { + return false; + } + + } + +?> diff --git a/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php b/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php new file mode 100644 index 00000000..bedda878 --- /dev/null +++ b/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php @@ -0,0 +1,27 @@ +<?php + + + function hibabejelentes($ADAT) { + + if ($ADAT['txt'] != '') { + if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId']; + $q = "INSERT INTO kerelem (userAccount,szoveg,rogzitesDt,kategoria,telephelyId) VALUES ('"._USERACCOUNT."','%s',NOW(),'%s','%s')"; + return db_query($q, array('fv' => 'hibabejeletes', 'result'=>'insert','modul' => 'naplo_base', 'values' => array($ADAT['txt'],$ADAT['kategoria'],$telephelyId))); + } else { + return false; + } + + } + + function kerelemValasz($ADAT) { + if ($ADAT['txt'] != '' && $ADAT['kerelemId']>0) { + //if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId']; + $q = "INSERT INTO kerelemValasz (kerelemId,userAccount,valasz) VALUES ('%u','"._USERACCOUNT."','%s')"; + return db_query($q, array('fv' => 'hibabejeletes', 'modul' => 'naplo_base', 'values' => array($ADAT['kerelemId'],$ADAT['txt']))); + } else { + return false; + } + + } + +?> |