21 |
include_once("ac_common.php"); |
include_once("ac_common.php"); |
22 |
include_once ("postgres.php"); |
include_once ("postgres.php"); |
23 |
include ('class_user.php'); |
include ('class_user.php'); |
24 |
include("class_form.php"); |
include("class_rapport.php"); |
25 |
include("impress_inc.php"); |
include("impress_inc.php"); |
26 |
header('Content-type: application/csv'); |
header('Content-type: application/csv'); |
27 |
header('Content-Disposition: attachment;filename="form.csv"',FALSE); |
header('Content-Disposition: attachment;filename="rapport.csv"',FALSE); |
28 |
|
|
29 |
/* Admin. Dossier */ |
/* Admin. Dossier */ |
30 |
$cn=DbConnect($_SESSION['g_dossier']); |
$cn=DbConnect($_SESSION['g_dossier']); |
34 |
$User->Check(); |
$User->Check(); |
35 |
|
|
36 |
|
|
37 |
$Form=new formulaire($cn,$_POST['form_id']); |
$Form=new rapport($cn,$_POST['form_id']); |
38 |
$Form->GetName(); |
$Form->GetName(); |
39 |
$array=$Form->GetRow( $_POST['from_periode'], |
$array=$Form->GetRow( $_POST['from_periode'], |
40 |
$_POST['to_periode'] |
$_POST['to_periode'] |