Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6898 Rev 6935
Línea 135... Línea 135...
135
            }
135
            }
136
        }
136
        }
137
        $this->Ln(5);
137
        $this->Ln(5);
138
    }
138
    }
Línea 139... Línea -...
139
 
-
 
140
    /**
-
 
141
     * Create Competency Table
-
 
142
     * @param int $index
-
 
143
     * @param array $competency
-
 
144
     */
-
 
145
    function competencyTable($index, $competency) {
-
 
146
 
-
 
147
 
-
 
148
        // Header Table
-
 
149
        $this->SetFillColor(255, 255, 255);
-
 
150
        $this->SetDrawColor(0, 0, 0);
-
 
151
        $this->SetLineWidth(0);
-
 
152
        $this->SetFont('Arial', 'B', 9);
-
 
153
 
-
 
154
        $this->MultiCell(190, 5, $index . '- ' . utf8_decode($competency['type']) . ': ' . utf8_decode($competency['name']), 0, 'L', false);
-
 
155
 
-
 
156
        // Body Table
-
 
157
        $this->SetFillColor(225, 255, 255);
-
 
158
        $this->SetTextColor(0);
-
 
159
        $this->SetFont('Arial', '', 9);
-
 
160
 
-
 
161
        $this->MultiCell(190, 6, utf8_decode(strip_tags($competency['description'])), 0, 'L', false);
-
 
162
 
-
 
163
        $this->Ln(3);
-
 
164
 
-
 
165
        $this->SetFillColor(204, 204, 204);
-
 
166
        $this->SetDrawColor(0, 0, 0);
-
 
167
        $this->SetLineWidth(0);
-
 
168
        $this->SetFont('Arial', 'B', 9);
-
 
169
 
-
 
170
        $behaviors = $competency['behaviors'];
-
 
171
 
-
 
172
        if (count($behaviors) > 0) {
-
 
173
 
-
 
174
            $this->Cell(150, 6, utf8_decode('Conductas observables :'), 1, 0, 'L', true);
-
 
175
            $this->Cell(16, 6, 'Nivel', 1, 0, 'C', true);
-
 
176
            $this->Cell(24, 6, utf8_decode('Evaluación'), 1, 0, 'C', true);
-
 
177
            $this->Ln();
-
 
178
 
-
 
179
            // Body Table
-
 
180
            $this->SetFillColor(225, 255, 255);
-
 
181
            $this->SetTextColor(0);
-
 
182
 
-
 
183
            
-
 
184
 
-
 
185
            for ($i = 0; $i < count($behaviors); $i++) {
-
 
186
 
-
 
187
                switch ($behaviors[$i]['evaluation']) {
-
 
188
                    case "0":
-
 
189
                        $evaluation = "0%";
-
 
190
                        break;
-
 
191
                    case "1":
-
 
192
                        $evaluation = "25%";
-
 
193
                        break;
-
 
194
                    case "2":
-
 
195
                        $evaluation = "50%";
-
 
196
                        break;
-
 
197
                    case "3":
-
 
198
                        $evaluation = "75%";
-
 
199
                        break;
-
 
200
                    case "4":
-
 
201
                        $evaluation = "100%";
-
 
202
                        break;
-
 
203
                    default :
-
 
204
                        $evaluation = "ERROR";
-
 
205
                        break;
-
 
206
                }
-
 
207
 
-
 
208
                $this->SetFont('Arial', '', 8.5);
-
 
209
 
-
 
210
                $this->Cell(150, 6, utf8_decode($behaviors[$i]['description']), 1, 0, 'L', false);
-
 
211
                $this->Cell(16, 6, $behaviors[$i]['level'] == '0' ? 'N/A' : $behaviors[$i]['level'], 1, 0, 'C', false);
-
 
212
                $this->Cell(24, 6, $evaluation, 1, 0, 'C', false);
-
 
213
 
-
 
214
                $this->Ln();
-
 
215
 
-
 
216
                $this->SetFont('Arial', '', 9);
-
 
217
 
-
 
218
                $this->Cell(190, 6, utf8_decode('Comentarios: ') . utf8_decode($behaviors[$i]['comment']), 1, 0, 'B', false);
-
 
219
 
-
 
220
 
-
 
221
                $this->Ln();
-
 
222
            }
-
 
223
        }
-
 
224
 
-
 
225
 
-
 
226
        $this->Ln();
-
 
227
    }
-
 
228
 
139