diff options
author | M.Gergo | 2019-04-14 12:15:49 +0200 |
---|---|---|
committer | M.Gergo | 2019-04-14 12:15:49 +0200 |
commit | 2982e19bfc1c79aa84ad93654a12dee8d61c0e27 (patch) | |
tree | 2a34e0d277e37c0f3d35c4d58c464f9e3030782a /mayor-orig/mayor-naplo/www/policy | |
parent | 78d4c90716008073d654b7c8d311f67367ee3c88 (diff) | |
download | mayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.tar.gz mayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.zip |
Rev: 4508
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy')
-rw-r--r-- | mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php index f6a59939..460e4ec9 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php @@ -17,6 +17,7 @@ require_once('include/modules/naplo/share/tanmenet.php'); require_once('include/modules/naplo/share/hetes.php'); require_once('include/modules/naplo/share/helyettesitesModifier.php'); + require_once('include/modules/naplo/share/file.php'); require_once('include/share/date/names.php'); @@ -247,6 +248,16 @@ if ( $skin == 'ajax' // for ($i=0; $i<count($_NAPOK); $i++) { // checkNaplo($_NAPOK[$i]); // } + } elseif ($action == 'haladasiExport') { + $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', 'ods', array('csv','ods','xml')); + $orderBy = array('dt','ora'); + if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel'; + $file = $tankorId; + $Tankorok = getTankorById($tankorId, __TANEV); // felül kell írnunk + $ADAT['haladasi'] = getHaladasi($Tankorok, $ADAT['munkaterv'], $orderBy, $csakUres); + if (exportTankorHaladasi($file, $ADAT)) + header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/haladasi/haladasi&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime'])); + } } |