noalyss
Version-9
include
export
export_bilan_oth.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
*
5
* NOALYSS is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* NOALYSS is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with NOALYSS; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
// Copyright Author Dany De Bontridder danydb@aevalys.eu
20
/*! \file
21
* \brief send a Bilan in RTF format
22
*/
23
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
24
include_once(
"lib/ac_common.php"
);
25
include_once(
"lib/impress.class.php"
);
26
require_once NOALYSS_INCLUDE.
'/header_print.php'
;
27
28
$gDossier
=
dossier::id
();
29
30
/* Admin. Dossier */
31
$cn
=
Dossier::connect
();
32
33
$bilan
=
new
Acc_Bilan
(
$cn
);
34
$bilan
->get_request_get();
35
$bilan
->load();
36
37
if
(
$bilan
->b_type==
'odt'
)
38
{
39
header(
"Expires: Mon, 26 Jul 1997 05:00:00 GMT"
);
40
header(
"Cache-Control: must-revalidate"
);
41
header(
'Content-type: application/vnd.oasis.opendocument.text'
);
42
header(
'Content-Disposition: attachment;filename="'
.
$bilan
->b_name.
'.odt"'
,FALSE);
43
header(
"Accept-Ranges: bytes"
);
44
45
}
46
if
(
$bilan
->b_type==
'ods'
)
47
{
48
header(
"Expires: Mon, 26 Jul 1997 05:00:00 GMT"
);
49
header(
"Cache-Control: must-revalidate"
);
50
header(
'Content-type: application/vnd.oasis.opendocument.spreadsheet'
);
51
header(
'Content-Disposition: attachment;filename="'
.
$bilan
->b_name.
'.ods"'
,FALSE);
52
header(
"Accept-Ranges: bytes"
);
53
54
}
55
56
$bilan
->generate();
57
?>
id
$input_from id
Definition:
balance.inc.php:63
Acc_Bilan
this class handle the different bilan, from the table bilan, parse the form and replace in the templa...
Definition:
acc_bilan.class.php:34
Dossier\connect
static connect()
Definition:
dossier.class.php:295
$gDossier
$gDossier
Definition:
export_bilan_oth.php:28
$cn
$cn
Definition:
export_bilan_oth.php:31
$bilan
$bilan
Definition:
export_bilan_oth.php:33