from_array($_GET); $res=$obj->load(); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="bud_detail_po.csv"',FALSE); echo $obj->display_csv($res); } /* 2nd Synthese */ if ( $do == 'ga') { header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="bud_groupe.csv"',FALSE); require_once ('class_bud_synthese_hypo.php'); $obj=new Bud_Synthese_Hypo($cn); $obj->from_array($_GET); $res=$obj->load(); echo $obj->display_csv($res); } /* 3rd Synthese */ if ( $do == 'vglobal') { require_once ('class_bud_synthese_group.php'); $obj=new Bud_Synthese_Group($cn); $obj->from_array($_GET); $res=$obj->load(); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="bud_global.csv"',FALSE); echo $obj->display_csv($res); } /* 4st Synthese */ if ( $do == 'acc') { require_once ('class_bud_synthese_acc.php'); $obj=new Bud_Synthese_Acc($cn); $obj->from_array($_GET); $res=$obj->load(); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="bud_compta.csv"',FALSE); echo $obj->display_csv($res); }