Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00026 require_once('class_database.php');
00027 require_once('class_dossier.php');
00028 require_once("class_document_modele.php");
00029
00030
00031 $cn=new Database(dossier::id());
00032
00033 $doc=new Document_Modele($cn,$id);
00034
00035
00036 $doc->load();
00037 ob_start();
00038 require('template/modele_document.php');
00039
00040 $html=ob_get_contents();
00041 ob_end_clean();
00042 $html=escape_xml($html);
00043 header('Content-type: text/xml; charset=UTF-8');
00044
00045 echo <<<EOF
00046 <?xml version="1.0" encoding="UTF-8"?>
00047 <data>
00048 <ctl>mod_doc</ctl>
00049 <code>$html</code>
00050 </data>
00051 EOF;
00052 exit();