Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1336 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1336 Rev 15079
Línea 5... Línea 5...
5
use Fpdf\Fpdf;
5
use Fpdf\Fpdf;
6
use Amenadiel\JpGraph\Graph;
6
use Amenadiel\JpGraph\Graph;
7
use Amenadiel\JpGraph\Plot;
7
use Amenadiel\JpGraph\Plot;
Línea 8... Línea 8...
8
 
8
 
-
 
9
class SelfEvaluationPdf extends FPDF {
-
 
10
    
-
 
11
    public $header;
-
 
12
    public $footer;
Línea 9... Línea 13...
9
class SelfEvaluationPdf extends FPDF {
13
    
10
 
14
 
11
    /**
15
    /**
12
     * Header PDF
16
     * Header PDF
-
 
17
     */
13
     */
18
    function Header() {
14
    function Header() {
19
        
-
 
20
        if ($this->header != '') {
-
 
21
            $this->Image($this->header, 10, 1, 190);
15
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_background.png', 10, 8, 190);
22
            $this->SetY(55);
16
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_logo.png', 130, 20, 60);
23
        }
17
    }
24
    }
18
    /**
25
    /**
19
     * Header custom PDF
26
     * Header custom PDF
Línea 38... Línea 45...
38
    }
45
    }
39
    /**
46
    /**
40
     * Footer PDF
47
     * Footer PDF
41
     */
48
     */
42
    function Footer() {
49
    function Footer() {
-
 
50
        if ($this->footer != '') {
43
        $this->SetY(-30);
51
            $this->SetY(-40);
44
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/footer_background.jpg', 10, $this->getY(), 190);
52
            $this->Image($this->footer, 10,$this->getY() , 190);
-
 
53
        }
45
    }
54
    }
46
    /**
55
    /**
47
     * Create chart PDF
56
     * Create chart PDF
48
     * @param string[] $labels
57
     * @param string[] $labels
49
     * @param float[] $values
58
     * @param float[] $values