1 | <?php |
---|
2 | /** |
---|
3 | * Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
4 | * @file proyectos-operativos-ficha-proyecto.tpl.php |
---|
5 | * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
6 | * Copyright 2011 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL) |
---|
7 | * |
---|
8 | * This program is free software; you can redistribute it and/or modify |
---|
9 | * it under the terms of the GNU General Public License as published by |
---|
10 | * the Free Software Foundation; either version 2 of the License, or |
---|
11 | * (at your option) any later version. |
---|
12 | * |
---|
13 | * This program is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | * GNU General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this program; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
21 | * |
---|
22 | * @author Cenditel Merida - Msc. Juan Vizcarrondo |
---|
23 | * @date 2013-08-02 // (año-mes-dia) |
---|
24 | * @version 0.1 // (0.1) |
---|
25 | */ |
---|
26 | |
---|
27 | $node_type = content_types('proyectos_operativos'); |
---|
28 | $campos_proyectos = $node_type['fields']; |
---|
29 | $content = node_build_content($proyecto); |
---|
30 | $format_number = array( |
---|
31 | 'decimals' => variable_get('proyectos_operativos_number_decimals', 0), |
---|
32 | 'dec_point' => variable_get('proyectos_operativos_number_dec_point', ','), |
---|
33 | 'thousands_sep' => variable_get('proyectos_operativos_number_thousands_sep', '.'), |
---|
34 | ); |
---|
35 | ?> |
---|
36 | |
---|
37 | <h2><?php print t('Datos Básicos');?></h2> |
---|
38 | <h3><?php print t('Datos Básicos de Identificación del Proyecto');?></h3> |
---|
39 | <div class="field field-type-text field-field-proyecto-titulo"> |
---|
40 | <div class="field-label"><?php print t('Nombre del Proyecto');?>: </div> |
---|
41 | <div class="field-items"> |
---|
42 | <div class="field-item odd"> <?php print check_plain($proyecto->titulo_asignado); ?> </div> |
---|
43 | </div> |
---|
44 | </div> |
---|
45 | <?php |
---|
46 | $arreglo = array( |
---|
47 | 'field_proyecto_codigo' => 'field_proyecto_codigo', |
---|
48 | 'field_proyecto_fecha_i' => 'field_proyecto_fecha_i', |
---|
49 | 'field_proyecto_fecha_f' => 'field_proyecto_fecha_f', |
---|
50 | 'field_proyecto_status' => 'field_proyecto_status', |
---|
51 | 'field_proyecto_situacion_p' => 'field_proyecto_situacion_p', |
---|
52 | 'field_proyecto_plurianual' => 'field_proyecto_plurianual', |
---|
53 | 'field_proyecto_monto_anual' => 'field_proyecto_monto_anual', |
---|
54 | 'field_proyecto_total' => 'field_proyecto_total', |
---|
55 | 'field_proyecto_poan' => 'field_proyecto_poan', |
---|
56 | ); |
---|
57 | if (module_exists('proyectos_reformulacion')) { |
---|
58 | $arreglo['field_proyecto_monto_anual'] = 'proyectos_operativos_monto_anual_reformulado'; |
---|
59 | $arreglo['field_proyecto_total'] = 'proyectos_operativos_monto_total_reformulado'; |
---|
60 | } |
---|
61 | ?> |
---|
62 | <?php foreach($arreglo as $campo): ?> |
---|
63 | <?php print drupal_render($content->content[$campo]); ?> |
---|
64 | <?php endforeach ?> |
---|
65 | <h3><?php print t('Responsables del proyecto');?></h3> |
---|
66 | <?php print drupal_render($content->content['field_proyecto_ente']); ?> |
---|
67 | <?php |
---|
68 | $arreglo = array( |
---|
69 | 'field_proyecto_autoridad' => 'field_proyecto_autoridad', |
---|
70 | 'field_proyecto_lider' => 'field_proyecto_lider', |
---|
71 | 'field_proyecto_unidad_a' => 'field_proyecto_unidad_a', |
---|
72 | 'field_proyecto_cargo' => 'field_proyecto_cargo', |
---|
73 | 'field_proyecto_telefono' => 'field_proyecto_telefono', |
---|
74 | 'field_proyecto_correo' => 'field_proyecto_correo', |
---|
75 | ); |
---|
76 | ?> |
---|
77 | <?php foreach($arreglo as $campo): ?> |
---|
78 | <?php print drupal_render($content->content[$campo]); ?> |
---|
79 | <?php endforeach ?> |
---|
80 | <?php |
---|
81 | $arreglo['gerente'] = array( |
---|
82 | 'field_proyecto_nombre_gere' => 'field_proyecto_nombre_gere', |
---|
83 | 'field_proyecto_cedul_gere' => 'field_proyecto_cedul_gere', |
---|
84 | 'field_proyecto_corre_gere' => 'field_proyecto_corre_gere', |
---|
85 | 'field_proyecto_telef_gere' => 'field_proyecto_telef_gere', |
---|
86 | ); |
---|
87 | $arreglo['tecnico'] = array( |
---|
88 | 'field_proyecto_nom_r_tec' => 'field_proyecto_nom_r_tec', |
---|
89 | 'field_proyecto_ced_r_tec' => 'field_proyecto_ced_r_tec', |
---|
90 | 'field_proyecto_cor_r_tec' => 'field_proyecto_cor_r_tec', |
---|
91 | 'field_proyecto_tel_r_tec' => 'field_proyecto_cor_r_tec', |
---|
92 | 'field_proyecto_und_r_tec' => 'field_proyecto_und_r_tec', |
---|
93 | ); |
---|
94 | $arreglo['registrador'] = array( |
---|
95 | 'field_proyecto_nom_r_reg' => 'field_proyecto_nom_r_reg', |
---|
96 | 'field_proyecto_ced_r_reg' => 'field_proyecto_ced_r_reg', |
---|
97 | 'field_proyecto_cor_r_reg' => 'field_proyecto_cor_r_reg', |
---|
98 | 'field_proyecto_tel_r_reg' => 'field_proyecto_tel_r_reg', |
---|
99 | ); |
---|
100 | $arreglo['administrativo'] = array( |
---|
101 | 'field_proyecto_nom_r_adm' => 'field_proyecto_nom_r_adm', |
---|
102 | 'field_proyecto_ced_r_adm' => 'field_proyecto_ced_r_adm', |
---|
103 | 'field_proyecto_cor_r_adm' => 'field_proyecto_cor_r_adm', |
---|
104 | 'field_proyecto_tel_r_adm' => 'field_proyecto_tel_r_adm', |
---|
105 | 'field_proyecto_und_r_adm' => 'field_proyecto_und_r_adm', |
---|
106 | ); |
---|
107 | ?> |
---|
108 | <!-- Responsable Gerente --> |
---|
109 | <?php print ("<th><h3>Datos del Gerente</h3></th>"); ?> |
---|
110 | <?php print("<table>"); ?> |
---|
111 | <?php foreach($arreglo['gerente'] as $campo): ?> |
---|
112 | <?php print("<th>"); ?> |
---|
113 | <?php print $content->content[$campo]['field']['#title']; ?> |
---|
114 | <?php print("</th>"); ?> |
---|
115 | <?php endforeach ?> |
---|
116 | <?php print("<tr>"); ?> |
---|
117 | <?php foreach($arreglo['gerente'] as $campo): ?> |
---|
118 | <?php print("<td>"); ?> |
---|
119 | <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?> |
---|
120 | <?php $values = $value['value']; ?> |
---|
121 | <?php endforeach ?> |
---|
122 | <?php implode(',', $values); ?> |
---|
123 | <?php print($values); ?> |
---|
124 | <?php print("</td>"); ?> |
---|
125 | <?php endforeach ?> |
---|
126 | <?php print("<tr>"); ?> |
---|
127 | <?php print("</table>"); ?> |
---|
128 | <!-- end Responsable Gerente --> |
---|
129 | |
---|
130 | <!-- Responsable tecnico --> |
---|
131 | <?php print ("<th><h3>Datos del Responsable tecnico</h3></th>"); ?> |
---|
132 | <?php print("<table>"); ?> |
---|
133 | <?php foreach($arreglo['tecnico'] as $campo): ?> |
---|
134 | <?php print("<th>"); ?> |
---|
135 | <?php print $content->content[$campo]['field']['#title']; ?> |
---|
136 | <?php print("</th>"); ?> |
---|
137 | <?php endforeach ?> |
---|
138 | <?php print("<tr>"); ?> |
---|
139 | <?php foreach($arreglo['tecnico'] as $campo): ?> |
---|
140 | <?php print("<td>"); ?> |
---|
141 | <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?> |
---|
142 | <?php $values = $value['value']; ?> |
---|
143 | <?php endforeach ?> |
---|
144 | <?php implode(',', $values); ?> |
---|
145 | <?php print($values); ?> |
---|
146 | <?php print("</td>"); ?> |
---|
147 | <?php endforeach ?> |
---|
148 | <?php print("<tr>"); ?> |
---|
149 | <?php print("</table>"); ?> |
---|
150 | <!-- end Responsable tecnico --> |
---|
151 | |
---|
152 | <!-- Responsable registrador --> |
---|
153 | <?php print ("<th><h3>Datos del Responsable Registrador</h3></th>"); ?> |
---|
154 | <?php print("<table>"); ?> |
---|
155 | <?php foreach($arreglo['registrador'] as $campo): ?> |
---|
156 | <?php print("<th>"); ?> |
---|
157 | <?php print $content->content[$campo]['field']['#title']; ?> |
---|
158 | <?php print("</th>"); ?> |
---|
159 | <?php endforeach ?> |
---|
160 | <?php print("<tr>"); ?> |
---|
161 | <?php foreach($arreglo['registrador'] as $campo): ?> |
---|
162 | <?php print("<td>"); ?> |
---|
163 | <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?> |
---|
164 | <?php $values = $value['value']; ?> |
---|
165 | <?php endforeach ?> |
---|
166 | <?php implode(',', $values); ?> |
---|
167 | <?php print($values); ?> |
---|
168 | <?php print("</td>"); ?> |
---|
169 | <?php endforeach ?> |
---|
170 | <?php print("<tr>"); ?> |
---|
171 | <?php print("</table>"); ?> |
---|
172 | <!-- end Responsable registrador --> |
---|
173 | |
---|
174 | <!-- Responsable administrador --> |
---|
175 | <?php print ("<th><h3>Datos del Responsable Administrativo</h3></th>"); ?> |
---|
176 | <?php print("<table>"); ?> |
---|
177 | <?php foreach($arreglo['administrativo'] as $campo): ?> |
---|
178 | <?php print("<th>"); ?> |
---|
179 | <?php print $content->content[$campo]['field']['#title']; ?> |
---|
180 | <?php print("</th>"); ?> |
---|
181 | <?php endforeach ?> |
---|
182 | <?php print("<tr>"); ?> |
---|
183 | <?php foreach($arreglo['administrativo'] as $campo): ?> |
---|
184 | <?php print("<td>"); ?> |
---|
185 | <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?> |
---|
186 | <?php $values = $value['value']; ?> |
---|
187 | <?php endforeach ?> |
---|
188 | <?php implode(',', $values); ?> |
---|
189 | <?php print($values); ?> |
---|
190 | <?php print("</td>"); ?> |
---|
191 | <?php endforeach ?> |
---|
192 | <?php print("<tr>"); ?> |
---|
193 | <?php print("</table>"); ?> |
---|
194 | <!-- end Responsable administrador --> |
---|
195 | |
---|
196 | <?php |
---|
197 | $pndes = variable_get('proyectos_operativos_muestra_pndes', TRUE); |
---|
198 | $mcti = variable_get('proyectos_operativos_muestra_mcti', TRUE); |
---|
199 | if ($pndes || $mcti) { |
---|
200 | print '<h3>' . t('Ãrea Estrategica') . '</h3>'; |
---|
201 | if ($pndes) { |
---|
202 | print drupal_render($content->content['field_proyecto_pndes']); |
---|
203 | } |
---|
204 | if ($mcti) { |
---|
205 | print drupal_render($content->content['field_proyecto_mcti']); |
---|
206 | } |
---|
207 | } |
---|
208 | ?> |
---|
209 | <h2><?php print t('Datos Generales');?></h2> |
---|
210 | <h3><?php print t('Clasificación Sectorial');?></h3> |
---|
211 | <?php print drupal_render($content->content['field_proyecto_sector']); ?> |
---|
212 | <?php if(variable_get('proyectos_operativos_muestra_talento', TRUE)) : ?> |
---|
213 | <h2><?php print t('Talento Humano');?></h2> |
---|
214 | <?php |
---|
215 | $arreglo = array( |
---|
216 | 'field_proyecto_institucionth' => 'field_proyecto_institucionth', |
---|
217 | 'field_proyecto_nombres_a' => 'field_proyecto_nombres_a', |
---|
218 | 'field_proyecto_cargo_th' => 'field_proyecto_cargo_th', |
---|
219 | 'field_proyecto_rol_th' => 'field_proyecto_rol_th', |
---|
220 | 'field_proyecto_esfuerzo' => 'field_proyecto_esfuerzo', |
---|
221 | 'field_proyecto_formacion' => 'field_proyecto_formacion', |
---|
222 | ); |
---|
223 | $header = array(); |
---|
224 | foreach($arreglo as $campo) { |
---|
225 | $header[] = array('data' => check_plain($campos_proyectos[$campo]['widget']['label']), 'align' => 'center'); |
---|
226 | } |
---|
227 | $tamano_array = array(); |
---|
228 | foreach($arreglo as $field_id => $field) { |
---|
229 | $tamano_array[] = count($proyecto->{$field_id}); |
---|
230 | } |
---|
231 | $cantidad_talento = max($tamano_array); |
---|
232 | $rows = array(); |
---|
233 | for ($i = 0; $i < $cantidad_talento; $i++) { |
---|
234 | $row = array(); |
---|
235 | foreach($arreglo as $campo) { |
---|
236 | $valor_d = ($campo == 'field_proyecto_esfuerzo') ? 0 : ''; |
---|
237 | $valor = isset($proyecto->{$campo}[$i]) ? $proyecto->{$field_id}[$i]['value'] : $valor_d; |
---|
238 | $row[] = array('data' => check_plain($valor), 'align' => 'center',); |
---|
239 | } |
---|
240 | $rows[] = $row; |
---|
241 | } |
---|
242 | if (!count($rows)) { |
---|
243 | $row[] = array('data' => t('No se ha ingresado la sección de Talento Humano'), 'colspan' => count($header), 'align' => 'center'); |
---|
244 | $rows[] = $row; |
---|
245 | } |
---|
246 | print theme('table', $header, $rows, array('border' => '1')); |
---|
247 | ?> |
---|
248 | <?php endif; ?> |
---|
249 | <?php if (variable_get('proyectos_operativos_muestra_capacidades', TRUE)): ?> |
---|
250 | <h3><?php print t('Capacidades');?></h3> |
---|
251 | <?php |
---|
252 | $arreglo = array( |
---|
253 | 'field_proyecto_institucion_alc' => 'field_proyecto_institucion_alc', |
---|
254 | 'field_proyecto_infraestructura' => 'field_proyecto_infraestructura', |
---|
255 | 'field_proyecto_equipos' => 'field_proyecto_equipos', |
---|
256 | 'field_proyecto_insumos' => 'field_proyecto_insumos', |
---|
257 | 'field_proyectos_servicios' => 'field_proyectos_servicios', |
---|
258 | ); |
---|
259 | $header = array(); |
---|
260 | foreach($arreglo as $campo) { |
---|
261 | $header[] = array('data' => check_plain($campos_proyectos[$campo]['widget']['label']), 'align' => 'center'); |
---|
262 | } |
---|
263 | $tamano_array = array(); |
---|
264 | foreach($arreglo as $field_id => $field) { |
---|
265 | $tamano_array[] = count($proyecto->{$field_id}); |
---|
266 | } |
---|
267 | $cantidad_talento = max($tamano_array); |
---|
268 | $rows = array(); |
---|
269 | for ($i = 0; $i < $cantidad_talento; $i++) { |
---|
270 | $row = array(); |
---|
271 | foreach($arreglo as $campo) { |
---|
272 | $valor_d = ($campo == 'field_proyecto_esfuerzo') ? 0 : ''; |
---|
273 | $valor = isset($proyecto->{$campo}[$i]) ? $proyecto->{$campo}[$i]['value'] : $valor_d; |
---|
274 | $row[] = array('data' => check_plain($valor), 'align' => 'center',); |
---|
275 | } |
---|
276 | $rows[] = $row; |
---|
277 | } |
---|
278 | if (!count($rows)) { |
---|
279 | $row[] = array('data' => t('No se ha ingresado la sección de Capacidades'), 'colspan' => count($header), 'align' => 'center'); |
---|
280 | $rows[] = $row; |
---|
281 | } |
---|
282 | print theme('table', $header, $rows, array('border' => '1')); |
---|
283 | ?> |
---|
284 | <?php endif ?> |
---|
285 | <h3><?php print t('Instituciones');?></h3> |
---|
286 | <?php print drupal_render($content->content['field_proyecto_relacion']); ?> |
---|
287 | <h3><?php print t('Empleos Generados');?></h3> |
---|
288 | <p><?php print t('Nro Estimados de Empleos:'); ?></p> |
---|
289 | <?php |
---|
290 | $labels = array( |
---|
291 | 'field_proyectos_femenino_i' => t('Empleos Directos Nuevos Femeninos'), |
---|
292 | 'field_proyectos_femenino_d'=> t('Empleos Directos Sostenidos Femeninos'), |
---|
293 | 'field_proyectos_masculino_d' => t('Empleos Directos Nuevos Masculinos'), |
---|
294 | 'field_proyectos_masculino_i' => t('Empleos Directos Sostenidos Masculinos'), |
---|
295 | ); |
---|
296 | $arreglo = array( |
---|
297 | 'field_proyecto_emdirecto' => 'field_proyecto_emdirecto', |
---|
298 | 'field_proyecto_efdirecto' => 'field_proyecto_efdirecto', |
---|
299 | 'field_proyecto_emindirecto' => 'field_proyecto_emindirecto', |
---|
300 | 'field_proyecto_efindirecto' => 'field_proyecto_efindirecto', |
---|
301 | ); |
---|
302 | $header = array(); |
---|
303 | $rows = array(); |
---|
304 | $row = array(); |
---|
305 | $sum_fila = 0; |
---|
306 | foreach ($labels as $label) { |
---|
307 | $header[] = array('data' => $label, 'align' => 'center'); |
---|
308 | } |
---|
309 | foreach($arreglo as $campo) { |
---|
310 | $valor_d = 0; |
---|
311 | $valor = isset($proyecto->{$campo}[0]['value']) ? $proyecto->{$campo}[0]['value'] : $valor_d; |
---|
312 | $valor_m = $valor ? number_format($valor, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0; |
---|
313 | $row[] = array('data' => check_plain($valor_m), 'align' => 'center',); |
---|
314 | $sum_fila += $valor; |
---|
315 | } |
---|
316 | $header[] = array('data' => t('TOTAL'), 'align' => 'center'); |
---|
317 | $valor_m = $sum_fila ? number_format($sum_fila, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0; |
---|
318 | $row[] = array('data' => $valor_m, 'align' => 'center',); |
---|
319 | $rows[] = $row; |
---|
320 | print theme('table', $header, $rows, array('border' => '1')); |
---|
321 | ?> |
---|
322 | <?php if (variable_get('proyectos_operativos_muestra_beneficiario', TRUE)): ?> |
---|
323 | <h3><?php print t('Beneficiarios');?></h3> |
---|
324 | <?php |
---|
325 | $labes = array( |
---|
326 | 'field_proyecto_beneficiario' => t('Beneficiario'), |
---|
327 | 'field_proyectos_masculino_d' => t('Número estimado de beneficiarios masculinos'), |
---|
328 | 'field_proyectos_femenino_i' => t('Número estimado de beneficiarios femeninos'), |
---|
329 | ); |
---|
330 | $arreglo = array( |
---|
331 | 'field_proyecto_beneficiario' => 'field_proyecto_beneficiario', |
---|
332 | 'field_proyectos_masculino_d' => 'field_proyectos_masculino_d', |
---|
333 | //'field_proyectos_femenino_d' => 'field_proyectos_femenino_d', |
---|
334 | ); |
---|
335 | if (variable_get('proyectos_operativos_muestra_beneficiarios_indirectos', TRUE)) { |
---|
336 | // $arreglo['field_proyectos_masculino_i'] = 'field_proyectos_masculino_i'; |
---|
337 | $arreglo['field_proyectos_femenino_i'] = 'field_proyectos_femenino_i'; |
---|
338 | } |
---|
339 | $header = array(); |
---|
340 | foreach($labes as $label) { |
---|
341 | $header[] = array('data' => $label, 'align' => 'center'); |
---|
342 | } |
---|
343 | $header[] = array('data' => t('TOTAL'), 'align' => 'center'); |
---|
344 | $tamano_array = array(); |
---|
345 | foreach($arreglo as $field_id => $field) { |
---|
346 | $tamano_array[] = count($proyecto->{$field_id}); |
---|
347 | } |
---|
348 | $cantidad_talento = max($tamano_array); |
---|
349 | $rows = array(); |
---|
350 | $suma_arreglo = array(); |
---|
351 | foreach($arreglo as $campo) { |
---|
352 | $suma_arreglo[$campo] = 0; |
---|
353 | } |
---|
354 | for ($i = 0; $i < $cantidad_talento; $i++) { |
---|
355 | $row = array(); |
---|
356 | $sum_fila = 0; |
---|
357 | foreach($arreglo as $campo) { |
---|
358 | if ($campo != 'field_proyecto_beneficiario') { |
---|
359 | $valor_d = ($field_id == 'field_proyecto_esfuerzo') ? 0 : ''; |
---|
360 | $valor = isset($proyecto->{$campo}[$i]['value']) ? $proyecto->{$campo}[$i]['value'] : $valor_d; |
---|
361 | $valor_m = $valor ? number_format($valor, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0; |
---|
362 | $row[] = array('data' => check_plain($valor_m), 'align' => 'center',); |
---|
363 | $sum_fila += $valor; |
---|
364 | $suma_arreglo[$campo] += $valor; |
---|
365 | } |
---|
366 | else { |
---|
367 | $row[] = array('data' => check_plain($proyecto->{$campo}[$i]['value']), 'align' => 'center',); |
---|
368 | } |
---|
369 | } |
---|
370 | $valor_m = $sum_fila ? number_format($sum_fila, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0; |
---|
371 | $row[] = array('data' => $valor_m, 'align' => 'center',); |
---|
372 | $rows[] = $row; |
---|
373 | } |
---|
374 | $sum_fila = 0; |
---|
375 | $row = array(); |
---|
376 | foreach($arreglo as $campo) { |
---|
377 | if ($campo == 'field_proyecto_beneficiario') { |
---|
378 | $row[] = array('data' => t('TOTAL'), 'align' => 'right',); |
---|
379 | } |
---|
380 | else { |
---|
381 | $valor_m = $suma_arreglo[$campo] ? number_format($suma_arreglo[$campo], 0, '', ',') : 0; |
---|
382 | $row[] = array('data' => check_plain($valor_m), 'align' => 'center',); |
---|
383 | $sum_fila += $suma_arreglo[$campo]; |
---|
384 | } |
---|
385 | } |
---|
386 | $valor_m = $sum_fila ? number_format($sum_fila, 0, '', ',') : 0; |
---|
387 | $row[] = array('data' => $valor_m, 'align' => 'center',); |
---|
388 | $rows[] = $row; |
---|
389 | print theme('table', $header, $rows, array('border' => '1')); |
---|
390 | ?> |
---|
391 | <?php endif ?> |
---|
392 | <h3><?php print t('Objetivos del Proyecto');?></h3> |
---|
393 | <?php print drupal_render($content->content['field_proyecto_og']); ?> |
---|
394 | <?php print drupal_render($content->content['field_proyecto_oe']); ?> |
---|
395 | |
---|
396 | |
---|
397 | <h2><?php print t('Indicadores del Proyecto');?></h2> |
---|
398 | <?php print drupal_render($content->content[$campo]); ?> |
---|
399 | |
---|
400 | <?php if (variable_get('proyectos_operativos_muestra_enunciado_problema', TRUE)): ?> |
---|
401 | <h3><?php print t('Enunciado del Problema');?></h3> |
---|
402 | <?php |
---|
403 | $arreglo = array( |
---|
404 | 'field_proyecto_causas' => 'field_proyecto_causas', |
---|
405 | 'field_proyecto_problemas' => 'field_proyecto_problemas', |
---|
406 | 'field_proyecto_consecuencias' => 'field_proyecto_consecuencias', |
---|
407 | ); |
---|
408 | ?> |
---|
409 | <?php foreach($arreglo as $campo): ?> |
---|
410 | <?php print drupal_render($content->content[$campo]); ?> |
---|
411 | <?php endforeach ?> |
---|
412 | <?php endif ?> |
---|
413 | <?php if (variable_get('proyectos_operativos_muestra_justicacion', TRUE)): ?> |
---|
414 | <h3><?php print t('Justificación');?></h3> |
---|
415 | <?php print drupal_render($content->content['field_proyecto_justificacion']); ?> |
---|
416 | <?php endif ?> |
---|
417 | <?php if (variable_get('proyectos_operativos_muestra_alcance', TRUE)): ?> |
---|
418 | <h3><?php print t('Alcance del Proyecto');?></h3> |
---|
419 | <?php print drupal_render($content->content['field_proyecto_alcance']); ?> |
---|
420 | <?php endif ?> |
---|
421 | <?php |
---|
422 | $sa = variable_get('proyectos_operativos_muestra_sa', TRUE); |
---|
423 | $so = variable_get('proyectos_operativos_muestra_so', TRUE); |
---|
424 | ?> |
---|
425 | <?php if ($sa || $so): ?> |
---|
426 | <h3><?php print t('Indicador de la Situación');?></h3> |
---|
427 | <?php if ($sa): ?> |
---|
428 | <h4><?php print t('Situación Actual');?></h4> |
---|
429 | <?php |
---|
430 | $arreglo = array( |
---|
431 | 'field_proyecto_sa_descripcion' => 'field_proyecto_sa_descripcion', |
---|
432 | ); |
---|
433 | if (variable_get('proyectos_operativos_muestra_sa_cuantificacion', TRUE)) { |
---|
434 | $arreglo['field_proyecto_sa_cuantificacion'] = 'field_proyecto_sa_cuantificacion'; |
---|
435 | } |
---|
436 | $arreglo['field_proyecto_sa_formulai'] = 'field_proyecto_sa_formulai'; |
---|
437 | $arreglo['field_proyecto_sa_fuentei'] = 'field_proyecto_sa_fuentei'; |
---|
438 | $arreglo['field_proyecto_sa_fecha'] = 'field_proyecto_sa_fecha'; |
---|
439 | ?> |
---|
440 | <?php foreach($arreglo as $campo): ?> |
---|
441 | <?php print drupal_render($content->content[$campo]); ?> |
---|
442 | <?php endforeach ?> |
---|
443 | <?php endif ?> |
---|
444 | <?php if ($so): ?> |
---|
445 | <h4><?php print t('Situación Objetivo');?></h4> |
---|
446 | <?php |
---|
447 | $arreglo = array( |
---|
448 | 'field_proyecto_so_descripcion' => 'field_proyecto_so_descripcion', |
---|
449 | 'field_proyecto_so_cuantificacion' => 'field_proyecto_so_cuantificacion', |
---|
450 | 'field_proyecto_tiempoi' => 'field_proyecto_tiempoi', |
---|
451 | ); |
---|
452 | ?> |
---|
453 | <?php foreach($arreglo as $campo): ?> |
---|
454 | <?php print drupal_render($content->content[$campo]); ?> |
---|
455 | <?php endforeach ?> |
---|
456 | <?php endif ?> |
---|
457 | <?php endif ?> |
---|
458 | <h3><?php print t('Indicador del resultado del Proyecto');?></h3> |
---|
459 | <?php |
---|
460 | $arreglo = array( |
---|
461 | 'field_proyecto_descripcion_bien' => 'field_proyecto_descripcion_bien', |
---|
462 | 'field_proyecto_unidadm' => 'field_proyecto_unidadm', |
---|
463 | 'field_proyecto_meta_fisica' => 'field_proyecto_meta_fisica', |
---|
464 | ); |
---|
465 | if (module_exists('proyectos_reformulacion')) { |
---|
466 | $arreglo['field_proyecto_unidadm'] = 'proyectos_operativos_unidad_medida_reformulado'; |
---|
467 | $arreglo['field_proyecto_meta_fisica'] = 'proyectos_operativos_meta_fisica_reformulado'; |
---|
468 | } |
---|
469 | ?> |
---|
470 | <?php foreach($arreglo as $campo): ?> |
---|
471 | <?php print drupal_render($content->content[$campo]); ?> |
---|
472 | <?php endforeach ?> |
---|
473 | <h3><?php print t('Acciones EspecÃficas');?></h3> |
---|
474 | <?php print drupal_render($content->content['field_proyecto_accion_esp']); ?> |
---|