Commit b261add7890514322d95d99706af49f036983a54
1 parent
f90e19c3
plugin update
Showing
1 changed file
with
19 additions
and
2 deletions
export/deepexport.php
@@ -45,9 +45,26 @@ class DeepExport | @@ -45,9 +45,26 @@ class DeepExport | ||
45 | $rtf = new PHPRtfLite(); | 45 | $rtf = new PHPRtfLite(); |
46 | 46 | ||
47 | $sect = $rtf->addSection(); | 47 | $sect = $rtf->addSection(); |
48 | - $sect->writeText($_REQUEST["datalet"], new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | 48 | + |
49 | + if(!empty($_REQUEST["name"])) | ||
50 | + $sect->writeText("Dataset name : " . strip_tags($_REQUEST["name"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
51 | + | ||
52 | + if(!empty($_REQUEST["datalet"])) | ||
53 | + $sect->writeText("Datalet name : " . strip_tags($_REQUEST["datalet"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
54 | + | ||
49 | $sect->addImageFromString($this->createImage($this->app->request()->params('svg_data')), PHPRtfLite_Image::TYPE_PNG); | 55 | $sect->addImageFromString($this->createImage($this->app->request()->params('svg_data')), PHPRtfLite_Image::TYPE_PNG); |
50 | - $sect->writeText($_REQUEST["dataset"], new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | 56 | + |
57 | + if(!empty($_REQUEST["description"])) | ||
58 | + $sect->writeText("Dataset description : " . strip_tags($_REQUEST["description"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
59 | + if(!empty($_REQUEST["created"])) | ||
60 | + $sect->writeText("Dataset creation date : " . strip_tags($_REQUEST["created"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
61 | + if(!empty($_REQUEST["format"])) | ||
62 | + $sect->writeText("Dataset format : " . strip_tags($_REQUEST["format"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
63 | + if(!empty($_REQUEST["lastModified"])) | ||
64 | + $sect->writeText("Dataset last modified : " . strip_tags($_REQUEST["lastModified"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
65 | + | ||
66 | + if(!empty($_REQUEST["dataset"])) | ||
67 | + $sect->writeText("Dataset link : " . strip_tags($_REQUEST["dataset"]), new PHPRtfLite_Font(14), new PHPRtfLite_ParFormat('center')); | ||
51 | // save rtf document | 68 | // save rtf document |
52 | 69 | ||
53 | $rtf->sendRtf('datalet.rtf'); | 70 | $rtf->sendRtf('datalet.rtf'); |