1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/include/export/export_rec_csv.php
dudjima 3a905a4a87 Update sources 7.01
Update files from sources with last update on noalyss.eu
2018-04-13 18:58:28 +02:00

40 lines
No EOL
1.1 KiB
PHP

<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
/**
* Export to CSV the operations asked in impress_rec.inc.php
* variable set $g_user,$cn
* @see impress_rec.inc.php
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
try
{
$choice=$http->get("choice");
$p_start=$http->get("p_start");
$p_end=$http->get("p_end");
$r_jrn=$http->get("r_jrn","string","");
}
catch (Exception $exc)
{
error_log($exc->getTraceAsString());
return;
}
// -------------------------
// Create object and export
$acc_reconciliation=new Acc_Reconciliation($cn);
$acc_reconciliation->a_jrn=$r_jrn;
$acc_reconciliation->start_day=$p_start;
$acc_reconciliation->end_day=$p_end;
$array=$acc_reconciliation->export_csv($choice);