70 $this->liste_extract[
"all"][
"content"] =
"application/vnd.ms-excel";
71 $this->liste_extract[
"all"][
"extension"] =
"";
72 $this->liste_extract[
"cvs"][
"content"] =
"application/vnd.ms-excel";
73 $this->liste_extract[
"cvs"][
"extension"] =
"cvs";
74 $this->liste_extract[
"rtf"][
"content"] =
"application/rtf";
75 $this->liste_extract[
"rtf"][
"extension"] =
"rtf";
80 function Generer($src, $p_type_file =
"cvs", $p_filename =
"extract", $add_ext =
"OUI")
82 $this->FileType = $p_type_file;
89 $this->
InitFile($p_filename, $add_ext);
98 ###$this->ContentType=$this->liste_extract["{$this->FileType}"]["content"];
99 if ($add_ext ==
"OUI") {
100 $ext = $this->liste_extract[
"{$this->FileType}"][
"extension"];
104 header(
"Content-Disposition: form-data;filename=$name");
105 header(
"CONTENT-TYPE: " . $this->FileType);
106 switch ($this->FileType) {
114 echo
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n" .
" <HTML>\n" .
"<HEAD>" .
"<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"../Style1/Css/style.css\">" .
"<TITLE>Extraction</TITLE></HEAD>";
115 echo
'<BODY BGCOLOR="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FF0000">';
124 switch ($this->FileType) {
InitFile($p_filename, $add_ext)
ConstruireFichier($src, $p_filename, $add_ext)
Generer($src, $p_type_file="cvs", $p_filename="extract", $add_ext="OUI")