1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace Garradin;
require_once __DIR__ . '/_inc.php';
$session->requireAccess('membres', Membres::DROIT_ADMIN);
$import = new Membres\Import;
if (null !== qg('export'))
{
header('Content-type: application/csv');
header('Content-Disposition: attachment; filename="Export membres - ' . $config->get('nom_asso') . ' - ' . date('Y-m-d') . '.csv"');
$import->toCSV();
exit;
}
$champs = $config->get('champs_membres')->getAll();
$champs->date_inscription = (object) ['title' => 'Date inscription', 'type' => 'date'];
if (f('import'))
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace Garradin;
require_once __DIR__ . '/_inc.php';
$session->requireAccess('membres', Membres::DROIT_ADMIN);
$import = new Membres\Import;
if (null !== qg('export'))
{
header('Content-type: application/csv');
header('Content-Disposition: attachment; filename="Export membres - ' . $config->get('nom_asso') . ' - ' . date('Y-m-d') . '.csv"');
$import->toCSV(qg('export') == 'excel' ? true : false);
exit;
}
$champs = $config->get('champs_membres')->getAll();
$champs->date_inscription = (object) ['title' => 'Date inscription', 'type' => 'date'];
if (f('import'))
|