noalyss
Version-9
include
ajax
ajax_mod_document.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
20
// Copyright Author Dany De Bontridder danydb@aevalys.eu
21
22
/*!\file
23
* \brief show the detail of a document and let you modify it
24
*/
25
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
26
27
/* 1. Check security */
28
$cn
=
Dossier::connect
();
29
/* 2. find the document */
30
global
$doc
;
31
$doc
=
new
Document_Modele(
$cn
,
$id
);
32
33
/* 3. display it */
34
$doc
->load();
35
ob_start();
36
require(NOALYSS_TEMPLATE.
'/modele_document.php'
);
37
38
$html
=ob_get_contents();
39
ob_end_clean();
40
$html
=
escape_xml
(
$html
);
41
header(
'Content-type: text/xml; charset=UTF-8'
);
42
43
echo <<<EOF
44
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
45
<data>
46
<ctl>mod_doc</ctl>
47
<code>
$html
</code>
48
</data>
49
EOF;
50
exit
();
$id
$id
Definition:
ajax_fiche_def_detail.php:33
$cn
$cn
Definition:
ajax_mod_document.php:28
$html
$html
Definition:
ajax_mod_document.php:38
$doc
global $doc
Definition:
ajax_mod_document.php:30
Dossier\connect
static connect()
Definition:
dossier.class.php:295
exit
for($e=0; $e< count($afiche); $e++) exit
Definition:
export_fiche_balance_csv.php:109
escape_xml
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...
Definition:
function_javascript.php:2721