Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15152 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15152 Rev 16768
Línea 27... Línea 27...
27
    /**
27
    /**
28
     * Custom Header PDF
28
     * Custom Header PDF
29
     */
29
     */
30
    function customHeader() {
30
    function customHeader() {
31
        $this->SetFont('Arial', 'B', 11);
31
        $this->SetFont('Arial', 'B', 11);
32
        $this->Cell(60, 10, utf8_decode('DESCRIPCIÓN DE CARGOS DE TRABAJO'));
32
        $this->Cell(60, 10, Functions::utf8_decode('DESCRIPCIÓN DE CARGOS DE TRABAJO'));
33
        $this->Ln(10);
33
        $this->Ln(10);
34
    }
34
    }
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
Línea 47... Línea 47...
47
     * Section Signature
47
     * Section Signature
48
     */
48
     */
49
    function sectionSignature() {
49
    function sectionSignature() {
Línea 50... Línea 50...
50
 
50
 
51
        $this->SetFont('Arial', 'B', 9);
51
        $this->SetFont('Arial', 'B', 9);
52
        $this->Cell(60, 10, utf8_decode('Elaborado por:'));
52
        $this->Cell(60, 10, Functions::utf8_decode('Elaborado por:'));
53
        $this->Ln(8);
53
        $this->Ln(8);
54
        $this->Cell(60, 10, utf8_decode('Firma:'));
54
        $this->Cell(60, 10, Functions::utf8_decode('Firma:'));
55
        $this->Ln(8);
55
        $this->Ln(8);
56
        $this->Cell(60, 10, utf8_decode('Fecha:'));
56
        $this->Cell(60, 10, Functions::utf8_decode('Fecha:'));
57
        $this->Ln(8);
57
        $this->Ln(8);
Línea 58... Línea 58...
58
    }
58
    }
59
 
59
 
Línea 64... Línea 64...
64
        $this->SetFillColor(225, 255, 255);
64
        $this->SetFillColor(225, 255, 255);
65
        $this->SetTextColor(0);
65
        $this->SetTextColor(0);
66
        $this->SetFont('Arial', 'B', 9);
66
        $this->SetFont('Arial', 'B', 9);
Línea 67... Línea 67...
67
 
67
 
Línea 68... Línea 68...
68
 
68
 
69
        $this->Cell(35, 8, utf8_decode(' Escala/Niveles:'), 1, 0, 'L', false);
69
        $this->Cell(35, 8, Functions::utf8_decode(' Escala/Niveles:'), 1, 0, 'L', false);
70
 
70
 
Línea 71... Línea 71...
71
        $this->SetFillColor(225, 255, 255);
71
        $this->SetFillColor(225, 255, 255);
72
        $this->SetTextColor(0);
72
        $this->SetTextColor(0);
73
        $this->SetFont('Arial', '', 9);
73
        $this->SetFont('Arial', '', 9);
74
 
74
 
Línea 75... Línea 75...
75
        $this->Cell(155, 8, utf8_decode(' 1: Mínimo  2: Medio  3: Medio-Alto  4: Alto  N/A: No aplica 
75
        $this->Cell(155, 8, Functions::utf8_decode(' 1: Mínimo  2: Medio  3: Medio-Alto  4: Alto  N/A: No aplica 
Línea 88... Línea 88...
88
        $this->SetFillColor(204, 204, 204);
88
        $this->SetFillColor(204, 204, 204);
89
        $this->SetDrawColor(0, 0, 0);
89
        $this->SetDrawColor(0, 0, 0);
90
        $this->SetLineWidth(0);
90
        $this->SetLineWidth(0);
91
        $this->SetFont('Arial', 'B', 9);
91
        $this->SetFont('Arial', 'B', 9);
Línea 92... Línea 92...
92
 
92
 
93
        $this->Cell(190, 6, utf8_decode($title), 1, 0, 'L', true);
93
        $this->Cell(190, 6, Functions::utf8_decode($title), 1, 0, 'L', true);
Línea 94... Línea 94...
94
        $this->Ln();
94
        $this->Ln();
95
 
95
 
96
        // Body Table
96
        // Body Table
Línea 100... Línea 100...
100
        foreach ($content as $rs) {
100
        foreach ($content as $rs) {
101
            if (isset($rs['title'])) {
101
            if (isset($rs['title'])) {
Línea 102... Línea 102...
102
 
102
 
Línea 103... Línea 103...
103
                $this->SetFont('Arial', 'B', 9);
103
                $this->SetFont('Arial', 'B', 9);
104
 
104
 
105
                $this->Cell(40, 10, utf8_decode($rs['title']), 1, 0, 'L', false);
105
                $this->Cell(40, 10, Functions::utf8_decode($rs['title']), 1, 0, 'L', false);
106
                $this->Cell(150, 10, utf8_decode($rs['content']), 1, 'L', false);
106
                $this->Cell(150, 10, Functions::utf8_decode($rs['content']), 1, 'L', false);
Línea 107... Línea 107...
107
                $this->Ln();
107
                $this->Ln();
108
            } else {
108
            } else {
109
 
109
 
110
                $this->SetFont('Arial', '', 9);
110
                $this->SetFont('Arial', '', 9);
111
                $this->MultiCell(190, 6, utf8_decode($rs['content']), 1, 'L', false);
111
                $this->MultiCell(190, 6, Functions::utf8_decode($rs['content']), 1, 'L', false);
112
            }
112
            }
Línea 125... Línea 125...
125
        $this->SetFillColor(255, 255, 255);
125
        $this->SetFillColor(255, 255, 255);
126
        $this->SetDrawColor(0, 0, 0);
126
        $this->SetDrawColor(0, 0, 0);
127
        $this->SetLineWidth(0);
127
        $this->SetLineWidth(0);
128
        $this->SetFont('Arial', 'B', 9);
128
        $this->SetFont('Arial', 'B', 9);
Línea 129... Línea 129...
129
 
129
 
130
        $this->Cell(190, 6, utf8_decode($title), 0, 0, 'L', true);
130
        $this->Cell(190, 6, Functions::utf8_decode($title), 0, 0, 'L', true);
Línea 131... Línea 131...
131
        $this->Ln();
131
        $this->Ln();
132
 
132
 
133
        // Body Table
133
        // Body Table
134
        $this->SetFillColor(225, 255, 255);
134
        $this->SetFillColor(225, 255, 255);
Línea 135... Línea 135...
135
        $this->SetTextColor(0);
135
        $this->SetTextColor(0);
136
        $this->SetFont('Arial', '', 9);
136
        $this->SetFont('Arial', '', 9);
137
 
137
 
138
        foreach ($content as $rs) {
138
        foreach ($content as $rs) {
139
            if (isset($rs['title'])) {
139
            if (isset($rs['title'])) {
140
                $this->Cell(40, 6, utf8_decode($rs['title']), 0, 0, 'L', false);
140
                $this->Cell(40, 6, Functions::utf8_decode($rs['title']), 0, 0, 'L', false);
141
                $this->Cell(150, 6, utf8_decode($rs['content']), 0, 'L', false);
141
                $this->Cell(150, 6, Functions::utf8_decode($rs['content']), 0, 'L', false);
142
                $this->Ln();
142
                $this->Ln();
143
            } else {
143
            } else {
144
                $this->MultiCell(190, 6, utf8_decode($rs['content']), 0, 'L', false);
144
                $this->MultiCell(190, 6, Functions::utf8_decode($rs['content']), 0, 'L', false);
145
            }
145
            }
Línea 161... Línea 161...
161
        $this->SetFillColor(255, 255, 255);
161
        $this->SetFillColor(255, 255, 255);
162
        $this->SetDrawColor(0, 0, 0);
162
        $this->SetDrawColor(0, 0, 0);
163
        $this->SetLineWidth(0);
163
        $this->SetLineWidth(0);
164
        $this->SetFont('Arial', 'B', 9);
164
        $this->SetFont('Arial', 'B', 9);
Línea 165... Línea 165...
165
 
165
 
Línea 166... Línea 166...
166
        $this->MultiCell(190, 5, $index . '- ' . utf8_decode($competenceType->name) . ': ' . utf8_decode($competency->name), 0, 'L', false);
166
        $this->MultiCell(190, 5, $index . '- ' . Functions::utf8_decode($competenceType->name) . ': ' . Functions::utf8_decode($competency->name), 0, 'L', false);
167
 
167
 
168
 
168
 
169
 
169
 
Línea 170... Línea 170...
170
        // Body Table
170
        // Body Table
Línea 171... Línea 171...
171
        $this->SetFillColor(225, 255, 255);
171
        $this->SetFillColor(225, 255, 255);
Línea 172... Línea 172...
172
        $this->SetTextColor(0);
172
        $this->SetTextColor(0);
173
        $this->SetFont('Arial', '', 9);
173
        $this->SetFont('Arial', '', 9);
174
 
174
 
175
        $this->MultiCell(190, 6, utf8_decode(strip_tags($competency->description)), 0, 'L', false);
175
        $this->MultiCell(190, 6, Functions::utf8_decode(strip_tags($competency->description)), 0, 'L', false);
Línea 176... Línea 176...
176
 
176
 
Línea 177... Línea 177...
177
        $this->Ln(3);
177
        $this->Ln(3);
178
 
178
 
179
        $this->SetFillColor(204, 204, 204);
179
        $this->SetFillColor(204, 204, 204);
180
        $this->SetDrawColor(0, 0, 0);
180
        $this->SetDrawColor(0, 0, 0);
181
        $this->SetLineWidth(0);
181
        $this->SetLineWidth(0);
182
        $this->SetFont('Arial', 'B', 9);
182
        $this->SetFont('Arial', 'B', 9);
Línea 196... Línea 196...
196
            $this->SetTextColor(0);
196
            $this->SetTextColor(0);
197
            $this->SetFont('Arial', '', 9);
197
            $this->SetFont('Arial', '', 9);
Línea 198... Línea 198...
198
 
198
 
Línea 199... Línea 199...
199
            for ($i = 0; $i < count($behaviors); $i++) {
199
            for ($i = 0; $i < count($behaviors); $i++) {
200
 
200
 
201
                $this->Cell(150, 6, utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
201
                $this->Cell(150, 6, Functions::utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
202
                $this->Cell(8, 6, $behaviors[$i]['level'] == '1' ? 'X' : '', 1, 0, 'C', false);
202
                $this->Cell(8, 6, $behaviors[$i]['level'] == '1' ? 'X' : '', 1, 0, 'C', false);
203
                $this->Cell(8, 6, $behaviors[$i]['level'] == '2' ? 'X' : '', 1, 0, 'C', false);
203
                $this->Cell(8, 6, $behaviors[$i]['level'] == '2' ? 'X' : '', 1, 0, 'C', false);
204
                $this->Cell(8, 6, $behaviors[$i]['level'] == '3' ? 'X' : '', 1, 0, 'C', false);
204
                $this->Cell(8, 6, $behaviors[$i]['level'] == '3' ? 'X' : '', 1, 0, 'C', false);