noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/03: Task #1248 - ANC/ANCIMP/ANCGL download


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/03: Task #1248 - ANC/ANCIMP/ANCGL download PJ #1248 : problem for concatening receipt due to folder reorganization
Date: Sun, 13 Dec 2015 16:40:19 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5d6a2f8b872dfd35fb2b02f309b6faa5bd681d59
Author: Dany De Bontridder <address@hidden>
Date:   Sun Dec 13 00:32:36 2015 +0100

    Task #1248 - ANC/ANCIMP/ANCGL download PJ
    #1248 : problem for concatening receipt due to folder reorganization
---
 include/class/class_document_export.php |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/class/class_document_export.php 
b/include/class/class_document_export.php
index 8de4af2..b6737a6 100644
--- a/include/class/class_document_export.php
+++ b/include/class/class_document_export.php
@@ -108,7 +108,6 @@ class Document_Export
     {
         $this->check_file();
         ob_start();
-        var_dump($p_array);
         $cnt_feedback=0;
         global $cn;
 
@@ -141,11 +140,11 @@ class Document_Export
             }
 
             // Create a image with the stamp + formula
-            $img = imagecreatefromgif(__DIR__ . '/template/template.gif');
+            $img = imagecreatefromgif(NOALYSS_INCLUDE . 
'/template/template.gif');
             $font = imagecolorallocatealpha($img, 100, 100, 100, 110);
-            imagettftext($img, 40, 25, 500, 1000, $font, __DIR__ . 
'/tfpdf/font/unifont/DejaVuSans.ttf', _("Copie certifiée conforme à 
l'original"));
-            imagettftext($img, 40, 25, 550, 1100, $font, __DIR__ . 
'/tfpdf/font/unifont/DejaVuSans.ttf', $file[0]['jr_pj_number']);
-            imagettftext($img, 40, 25, 600, 1200, $font, __DIR__ . 
'/tfpdf/font/unifont/DejaVuSans.ttf', $file[0]['jr_pj_name']);
+            imagettftext($img, 40, 25, 500, 1000, $font, NOALYSS_INCLUDE . 
'/tfpdf/font/unifont/DejaVuSans.ttf', _("Copie certifiée conforme à 
l'original"));
+            imagettftext($img, 40, 25, 550, 1100, $font, NOALYSS_INCLUDE. 
'/tfpdf/font/unifont/DejaVuSans.ttf', $file[0]['jr_pj_number']);
+            imagettftext($img, 40, 25, 600, 1200, $font, NOALYSS_INCLUDE. 
'/tfpdf/font/unifont/DejaVuSans.ttf', $file[0]['jr_pj_name']);
             imagegif($img, $this->store_convert . '/' . 'stamp.gif');
 
             // transform gif file to pdf with convert tool
@@ -194,7 +193,7 @@ class Document_Export
 
         // remove files from "conversion folder"
         $this->clean_folder();
-        var_dump($this->feedback);
+        
         // concatenate all pdf into one
     }
    /**



reply via email to

[Prev in Thread] Current Thread [Next in Thread]