aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/include
diff options
context:
space:
mode:
authorM.Gergo2019-04-14 12:15:49 +0200
committerM.Gergo2019-04-14 12:15:49 +0200
commit2982e19bfc1c79aa84ad93654a12dee8d61c0e27 (patch)
tree2a34e0d277e37c0f3d35c4d58c464f9e3030782a /mayor-orig/mayor-naplo/www/include
parent78d4c90716008073d654b7c8d311f67367ee3c88 (diff)
downloadmayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.tar.gz
mayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.zip
Rev: 4508
Diffstat (limited to 'mayor-orig/mayor-naplo/www/include')
-rw-r--r--mayor-orig/mayor-naplo/www/include/modules/naplo/haladasi/haladasi.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/haladasi/haladasi.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/haladasi/haladasi.php
index 391ef7c8..7b890fad 100644
--- a/mayor-orig/mayor-naplo/www/include/modules/naplo/haladasi/haladasi.php
+++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/haladasi/haladasi.php
@@ -152,4 +152,21 @@
return $RESULT;
}
+ function exportTankorHaladasi($file, $ADAT) {
+
+
+ $EXPORT = array(array('Óraszám','Téma'));
+ foreach ($ADAT['haladasi'] as $dt => $nAdat) {
+ foreach ($nAdat as $index => $oAdat) {
+ if ($oAdat['oraszam'] != '')
+ $EXPORT[] = array($oAdat['oraszam'], $oAdat['leiras']);
+ }
+ }
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $EXPORT, 'haladási napló');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $EXPORT, 'haladási napló');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $EXPORT, 'haladási naplo');
+ else return false;
+
+ }
+
?>