Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 524 Rev 630
Línea 15... Línea 15...
15
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_background.png', 10, 8, 190);
15
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_background.png', 10, 8, 190);
16
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_logo.png', 130, 20, 60);
16
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/header_logo.png', 130, 20, 60);
17
    }
17
    }
18
    /**
18
    /**
19
     * Header custom PDF
19
     * Header custom PDF
20
     * @param type $headerFormName
20
     * @param string $headerFormName
21
     * @param type $headerUsername
21
     * @param string $headerUsername
22
     */
22
     */
23
    function customHeader($headerFormName, $headerUsername) {
23
    function customHeader($headerFormName, $headerUsername) {
24
        $s = utf8_decode(' Página: ' . $this->PageNo());
24
        $s = utf8_decode(' Página: ' . $this->PageNo());
25
        $this->SetFont('Arial', '', 10);
25
        $this->SetFont('Arial', '', 10);
26
        $this->SetY(40);
26
        $this->SetY(40);
Línea 43... Línea 43...
43
        $this->SetY(-30);
43
        $this->SetY(-30);
44
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/footer_background.jpg', 10, $this->getY(), 190);
44
        $this->Image($_SERVER['DOCUMENT_ROOT'] . '/pdf/footer_background.jpg', 10, $this->getY(), 190);
45
    }
45
    }
46
    /**
46
    /**
47
     * Create chart PDF
47
     * Create chart PDF
48
     * @param type $labels
48
     * @param array $labels
49
     * @param type $values
49
     * @param array $values
50
     * @param type $title
50
     * @param string $title
51
     * @param type $filename
51
     * @param string $filename
52
     */
52
     */
53
    function PieChart($labels, $values, $title, $filename) {
53
    function PieChart($labels, $values, $title, $filename) {
54
        // We need some data
54
        // We need some data
55
        $datay = $values;
55
        $datay = $values;
56
        $datax = $labels;
56
        $datax = $labels;