report_client
🔧 TS_NOOA_report_spe_clients_csv
Export CSV des clients
function TS_NOOA_report_spe_clients_csv()
{
global $navi_id_type;
global $user;
$userInfo = get_UserIdentification($user->id, '','');
$id_vue_liste_client = fwp7_param_objet_setting_get('', $navi_id_type, 'client', 'vue_liste', 'id');
$id_vue_liste_client_franchiseur = fwp7_param_objet_setting_get('', $navi_id_type, 'client', 'vue_liste_franchiseur', 'id');
// Create the CSV
$filename = "Export_clients_" . date('d-m-Y') . ".csv";
$filepath = fwk_set_full_datapath() . "csv/";
if (!is_dir($filepath)) {
mkdir($filepath, 0777, true);
// ... (truncated)