Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15447 Rev 16768
Línea 47... Línea 47...
47
    /**
47
    /**
48
     * Custom Header PDF
48
     * Custom Header PDF
49
     */
49
     */
50
    function customHeader() {
50
    function customHeader() {
51
        $this->SetFont('Arial', 'B', 11);
51
        $this->SetFont('Arial', 'B', 11);
52
        $this->Cell(60, 10, utf8_decode('DESCRIPCIÓN DE CARGOS DE TRABAJO'));
52
        $this->Cell(60, 10, Functions::utf8_decode('DESCRIPCIÓN DE CARGOS DE TRABAJO'));
53
        $this->Ln(10);
53
        $this->Ln(10);
54
    }
54
    }
Línea 55... Línea 55...
55
 
55
 
56
    /**
56
    /**
Línea 67... Línea 67...
67
     * Section Signature
67
     * Section Signature
68
     */
68
     */
69
    function sectionSignature() {
69
    function sectionSignature() {
Línea 70... Línea 70...
70
 
70
 
71
        $this->SetFont('Arial', 'B', 9);
71
        $this->SetFont('Arial', 'B', 9);
72
        $this->Cell(60, 10, utf8_decode('Elaborado por:'));
72
        $this->Cell(60, 10, Functions::utf8_decode('Elaborado por:'));
73
        $this->Ln(8);
73
        $this->Ln(8);
74
        $this->Cell(60, 10, utf8_decode('Firma:'));
74
        $this->Cell(60, 10, Functions::utf8_decode('Firma:'));
75
        $this->Ln(8);
75
        $this->Ln(8);
76
        $this->Cell(60, 10, utf8_decode('Fecha:'));
76
        $this->Cell(60, 10, Functions::utf8_decode('Fecha:'));
77
        $this->Ln(8);
77
        $this->Ln(8);
Línea 78... Línea 78...
78
    }
78
    }
79
 
79
 
Línea 84... Línea 84...
84
        $this->SetFillColor(225, 255, 255);
84
        $this->SetFillColor(225, 255, 255);
85
        $this->SetTextColor(0);
85
        $this->SetTextColor(0);
86
        $this->SetFont('Arial', 'B', 9);
86
        $this->SetFont('Arial', 'B', 9);
Línea 87... Línea 87...
87
 
87
 
Línea 88... Línea 88...
88
 
88
 
89
        $this->Cell(35, 8, utf8_decode(' Escala/Niveles:'), 1, 0, 'L', false);
89
        $this->Cell(35, 8, Functions::utf8_decode(' Escala/Niveles:'), 1, 0, 'L', false);
90
 
90
 
Línea 91... Línea 91...
91
        $this->SetFillColor(225, 255, 255);
91
        $this->SetFillColor(225, 255, 255);
92
        $this->SetTextColor(0);
92
        $this->SetTextColor(0);
93
        $this->SetFont('Arial', '', 9);
93
        $this->SetFont('Arial', '', 9);
Línea 94... Línea 94...
94
 
94
 
95
        $this->Cell(155, 8, utf8_decode(' 1: Mínimo  2: Medio  3: Medio-Alto  4: Alto  N/A: No aplica '), 1, 'L', false);
95
        $this->Cell(155, 8, Functions::utf8_decode(' 1: Mínimo  2: Medio  3: Medio-Alto  4: Alto  N/A: No aplica '), 1, 'L', false);
Línea 107... Línea 107...
107
        $this->SetFillColor(204, 204, 204);
107
        $this->SetFillColor(204, 204, 204);
108
        $this->SetDrawColor(0, 0, 0);
108
        $this->SetDrawColor(0, 0, 0);
109
        $this->SetLineWidth(0);
109
        $this->SetLineWidth(0);
110
        $this->SetFont('Arial', 'B', 9);
110
        $this->SetFont('Arial', 'B', 9);
Línea 111... Línea 111...
111
 
111
 
112
        $this->Cell(190, 6, utf8_decode($title), 1, 0, 'L', true);
112
        $this->Cell(190, 6, Functions::utf8_decode($title), 1, 0, 'L', true);
Línea 113... Línea 113...
113
        $this->Ln();
113
        $this->Ln();
114
 
114
 
115
        // Body Table
115
        // Body Table
Línea 119... Línea 119...
119
        foreach ($content as $rs) {
119
        foreach ($content as $rs) {
120
            if (isset($rs['title'])) {
120
            if (isset($rs['title'])) {
Línea 121... Línea 121...
121
 
121
 
Línea 122... Línea 122...
122
                $this->SetFont('Arial', 'B', 9);
122
                $this->SetFont('Arial', 'B', 9);
123
 
123
 
124
                $this->Cell(40, 10, utf8_decode($rs['title']), 1, 0, 'L', false);
124
                $this->Cell(40, 10, Functions::utf8_decode($rs['title']), 1, 0, 'L', false);
125
                $this->Cell(150, 10, utf8_decode($rs['content']), 1, 'L', false);
125
                $this->Cell(150, 10, Functions::utf8_decode($rs['content']), 1, 'L', false);
Línea 126... Línea 126...
126
                $this->Ln();
126
                $this->Ln();
127
            } else {
127
            } else {
128
 
128
 
Línea 129... Línea 129...
129
                $this->SetFont('Arial', '', 9);
129
                $this->SetFont('Arial', '', 9);
130
                $this->MultiCell(190, 6, utf8_decode($rs['content']), 1, 'L', false);
130
                $this->MultiCell(190, 6, Functions::utf8_decode($rs['content']), 1, 'L', false);
131
            }
131
            }
Línea 154... Línea 154...
154
        $this->SetFillColor(255, 255, 255);
154
        $this->SetFillColor(255, 255, 255);
155
        $this->SetDrawColor(0, 0, 0);
155
        $this->SetDrawColor(0, 0, 0);
156
        $this->SetLineWidth(0);
156
        $this->SetLineWidth(0);
157
        $this->SetFont('Arial', 'B', 9);
157
        $this->SetFont('Arial', 'B', 9);
Línea 158... Línea 158...
158
 
158
 
159
        $this->Cell(190, 6, utf8_decode($title), 0, 0, 'L', true);
159
        $this->Cell(190, 6, Functions::utf8_decode($title), 0, 0, 'L', true);
Línea 160... Línea 160...
160
        $this->Ln();
160
        $this->Ln();
161
 
161
 
162
        // Body Table
162
        // Body Table
163
        $this->SetFillColor(225, 255, 255);
163
        $this->SetFillColor(225, 255, 255);
Línea 164... Línea 164...
164
        $this->SetTextColor(0);
164
        $this->SetTextColor(0);
165
        $this->SetFont('Arial', '', 9);
165
        $this->SetFont('Arial', '', 9);
166
 
166
 
167
        foreach ($content as $rs) {
167
        foreach ($content as $rs) {
168
            if (isset($rs['title'])) {
168
            if (isset($rs['title'])) {
169
                $this->Cell(40, 6, utf8_decode($rs['title']), 0, 0, 'L', false);
169
                $this->Cell(40, 6, Functions::utf8_decode($rs['title']), 0, 0, 'L', false);
170
                $this->Cell(150, 6, utf8_decode($rs['content']), 0, 'L', false);
170
                $this->Cell(150, 6, Functions::utf8_decode($rs['content']), 0, 'L', false);
171
                $this->Ln();
171
                $this->Ln();
Línea 172... Línea 172...
172
            } else {
172
            } else {
173
                $this->MultiCell(190, 6, utf8_decode($rs['content']), 0, 'L', false);
173
                $this->MultiCell(190, 6, Functions::utf8_decode($rs['content']), 0, 'L', false);
174
            }
174
            }
Línea 201... Línea 201...
201
        $this->SetFillColor(255, 255, 255);
201
        $this->SetFillColor(255, 255, 255);
202
        $this->SetDrawColor(0, 0, 0);
202
        $this->SetDrawColor(0, 0, 0);
203
        $this->SetLineWidth(0);
203
        $this->SetLineWidth(0);
204
        $this->SetFont('Arial', 'B', 9);
204
        $this->SetFont('Arial', 'B', 9);
Línea 205... Línea 205...
205
 
205
 
Línea 206... Línea 206...
206
        $this->MultiCell(190, 5, $index . '- ' . utf8_decode($competenceType->name) . ': ' . utf8_decode($competency->name), 0, 'L', false);
206
        $this->MultiCell(190, 5, $index . '- ' . Functions::utf8_decode($competenceType->name) . ': ' . Functions::utf8_decode($competency->name), 0, 'L', false);
207
 
207
 
208
 
208
 
209
 
209
 
Línea 210... Línea 210...
210
        // Body Table
210
        // Body Table
Línea 211... Línea 211...
211
        $this->SetFillColor(225, 255, 255);
211
        $this->SetFillColor(225, 255, 255);
Línea 231... Línea 231...
231
                    $this->SetDrawColor(0, 0, 0);
231
                    $this->SetDrawColor(0, 0, 0);
232
                    $this->SetLineWidth(0);
232
                    $this->SetLineWidth(0);
233
                    $this->SetFont('Arial', 'B', 9);
233
                    $this->SetFont('Arial', 'B', 9);
Línea 234... Línea 234...
234
                    
234
                    
235
                    /*
235
                    /*
236
                    $this->Cell(155, 6, utf8_decode('Conductas observables :'), 1, 0, 'L', true);
236
                    $this->Cell(155, 6, Functions::utf8_decode('Conductas observables :'), 1, 0, 'L', true);
237
                    $this->Cell(7, 6, '1', 1, 0, 'C', true);
237
                    $this->Cell(7, 6, '1', 1, 0, 'C', true);
238
                    $this->Cell(7, 6, '2', 1, 0, 'C', true);
238
                    $this->Cell(7, 6, '2', 1, 0, 'C', true);
239
                    $this->Cell(7, 6, '3', 1, 0, 'C', true);
239
                    $this->Cell(7, 6, '3', 1, 0, 'C', true);
240
                    $this->Cell(7, 6, '4', 1, 0, 'C', true);
240
                    $this->Cell(7, 6, '4', 1, 0, 'C', true);
241
                    $this->Cell(7, 6, 'N/A', 1, 0, 'C', true);
241
                    $this->Cell(7, 6, 'N/A', 1, 0, 'C', true);
242
                    */
242
                    */
243
                    $this->Cell(180, 6, utf8_decode('Conductas observables :'), 1, 0, 'L', true);
243
                    $this->Cell(180, 6, Functions::utf8_decode('Conductas observables :'), 1, 0, 'L', true);
244
                    $this->Cell(10, 6, 'Nivel', 1, 0, 'C', true);
244
                    $this->Cell(10, 6, 'Nivel', 1, 0, 'C', true);
Línea 245... Línea 245...
245
                    $this->Ln();
245
                    $this->Ln();
246
                    
246
                    
Línea 250... Línea 250...
250
                    $this->SetFont('Arial', '', 9);
250
                    $this->SetFont('Arial', '', 9);
251
                    $first = false;
251
                    $first = false;
252
                }
252
                }
Línea 253... Línea 253...
253
                
253
                
254
 
254
 
255
                $this->Cell(180, 6, utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
255
                $this->Cell(180, 6, Functions::utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
256
                $this->Cell(10, 6, $behaviors[$i]['level'], 1, 0, 'C', false);
256
                $this->Cell(10, 6, $behaviors[$i]['level'], 1, 0, 'C', false);
257
                /*
257
                /*
258
                $this->Cell(155, 6, utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
258
                $this->Cell(155, 6, Functions::utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
259
                $this->Cell(7, 6, $behaviors[$i]['level'] == '1' ? 'X' : '', 1, 0, 'C', false);
259
                $this->Cell(7, 6, $behaviors[$i]['level'] == '1' ? 'X' : '', 1, 0, 'C', false);
260
                $this->Cell(7, 6, $behaviors[$i]['level'] == '2' ? 'X' : '', 1, 0, 'C', false);
260
                $this->Cell(7, 6, $behaviors[$i]['level'] == '2' ? 'X' : '', 1, 0, 'C', false);
261
                $this->Cell(7, 6, $behaviors[$i]['level'] == '3' ? 'X' : '', 1, 0, 'C', false);
261
                $this->Cell(7, 6, $behaviors[$i]['level'] == '3' ? 'X' : '', 1, 0, 'C', false);