noalyss Version-9
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 */
23if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
24include_once("lib/ac_common.php");
25include_once("lib/impress.class.php");
26require_once NOALYSS_INCLUDE.'/header_print.php';
27
29
30/* Admin. Dossier */
32
34$bilan->get_request_get();
35$bilan->load();
36
37if ( $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}
46if ( $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?>
$input_from id
Definition: balance.inc.php:63
this class handle the different bilan, from the table bilan, parse the form and replace in the templa...
static connect()