Ver Fonte

CSV Event

stany.ferer há 2 anos atrás
pai
commit
bdaf0674e3
2 ficheiros alterados com 17 adições e 3 exclusões
  1. 2 0
      core/class/event.class.php
  2. 15 3
      core/submit/cms.event-export-inscription.php

+ 2 - 0
core/class/event.class.php

@@ -305,6 +305,8 @@ class event
         db::query("SELECT "
                 . "" . DB_T_SALARIES . ".id, "
                 . "" . DB_T_SALARIES . ".loginId, "
+                . "" . DB_T_SALARIES . ".idLocal, "
+                . "" . DB_T_SALARIES . ".jourEntree, "
                 . "" . DB_T_SALARIES . ".nom, "
                 . "" . DB_T_SALARIES . ".prenom, "
                 . "" . DB_T_SALARIES . ".sexe, "

+ 15 - 3
core/submit/cms.event-export-inscription.php

@@ -9,7 +9,20 @@ if (core::ifGet("from") AND core::getGet("from") == "event-export-inscription")
     $tmpList = 'inscripts-evenement-' . core::getGet("id") . '.csv';
 
     $csv = fopen(DIR_TEMP . $tmpList , 'w'); 
-    fputcsv($csv, array("id", "loginId", "nom", "prenom", "sexe", "contrat", "lieu", "actif", "id_evenement", "present"), ";");
+    fputcsv($csv, array(
+        "id", 
+        "loginId",
+        "idLocal", 
+        "jourEntree", 
+        "nom", 
+        "prenom", 
+        "sexe", 
+        "contrat", 
+        "lieu", 
+        "actif", 
+        "id_evenement", 
+        "present"), 
+        ";");
 
     foreach ($row as $fields) {
         fputcsv($csv, $fields, ";");
@@ -27,5 +40,4 @@ if (core::ifGet("from") AND core::getGet("from") == "event-export-inscription")
 } else {
     header('HTTP/1.0 401 Unauthorized');
     exit();
-}
-
+}