source: sipes/0.3-modules/proyectos_operativos_mcti/templates/proyectos-operativos-mcti-ficha-proyecto.tpl.php @ 2db5c18

stableversion-3.0
Last change on this file since 2db5c18 was 2db5c18, checked in by eramirez <eramirez@…>, 8 años ago

se modifico la ficha del proyecto

  • Propiedad mode establecida a 100755
File size: 21.7 KB
Línea 
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&#241;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');?>:&nbsp;</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_descripcin_proyect' => 'field_descripcin_proyect',
49    'field_proyecto_fecha_i' => 'field_proyecto_fecha_i',
50    'field_proyecto_fecha_f' => 'field_proyecto_fecha_f',
51    'field_proyecto_status' => 'field_proyecto_status',
52    'field_proyecto_situacion_p' => 'field_proyecto_situacion_p',
53    'field_proyecto_plurianual' => 'field_proyecto_plurianual',
54    'field_proyecto_monto_anual' => 'field_proyecto_monto_anual',
55    'field_proyecto_total' => 'field_proyecto_total',
56    'field_proyecto_poan' => 'field_proyecto_poan',
57  );
58  if (module_exists('proyectos_reformulacion')) {
59    $arreglo['field_proyecto_monto_anual'] = 'proyectos_operativos_monto_anual_reformulado';
60    $arreglo['field_proyecto_total'] = 'proyectos_operativos_monto_total_reformulado';
61  }
62?>
63<?php foreach($arreglo as $campo): ?>
64<?php print drupal_render($content->content[$campo]); ?>
65<?php endforeach ?> 
66<fieldset><legend><h3><?php print t('Responsables del proyecto');?></h3></legend>
67<?php print drupal_render($content->content['field_proyecto_ente']); ?>
68<?php
69  $arreglo = array(
70    'field_proyecto_autoridad' => 'field_proyecto_autoridad',
71    'field_proyecto_lider' => 'field_proyecto_lider',
72    'field_proyecto_unidad_a' => 'field_proyecto_unidad_a',
73    'field_proyecto_cargo' => 'field_proyecto_cargo',
74    'field_proyecto_telefono' => 'field_proyecto_telefono',
75    'field_proyecto_correo' => 'field_proyecto_correo',
76  );
77?>
78<?php foreach($arreglo as $campo): ?>
79  <?php print drupal_render($content->content[$campo]); ?>
80<?php endforeach ?>
81<?php
82  $arreglo['gerente'] = array(
83    'field_proyecto_nombre_gere' => 'field_proyecto_nombre_gere',
84    'field_proyecto_cedul_gere' => 'field_proyecto_cedul_gere',
85    'field_proyecto_corre_gere' => 'field_proyecto_corre_gere',
86    'field_proyecto_telef_gere' => 'field_proyecto_telef_gere',
87  );
88  $arreglo['tecnico'] = array(
89    'field_proyecto_nom_r_tec' => 'field_proyecto_nom_r_tec',
90    'field_proyecto_ced_r_tec' => 'field_proyecto_ced_r_tec',
91    'field_proyecto_cor_r_tec' => 'field_proyecto_cor_r_tec',
92    'field_proyecto_tel_r_tec' => 'field_proyecto_tel_r_tec',
93    'field_proyecto_und_r_tec' => 'field_proyecto_und_r_tec',
94  );
95  $arreglo['registrador'] = array(
96    'field_proyecto_nom_r_reg' => 'field_proyecto_nom_r_reg',
97    'field_proyecto_ced_r_reg' => 'field_proyecto_ced_r_reg',
98    'field_proyecto_cor_r_reg' => 'field_proyecto_cor_r_reg',
99    'field_proyecto_tel_r_reg' => 'field_proyecto_tel_r_reg',
100  );
101  $arreglo['administrativo'] = array(
102    'field_proyecto_nom_r_adm' => 'field_proyecto_nom_r_adm',
103    'field_proyecto_ced_r_adm' => 'field_proyecto_ced_r_adm',
104    'field_proyecto_cor_r_adm' => 'field_proyecto_cor_r_adm',
105    'field_proyecto_tel_r_adm' => 'field_proyecto_tel_r_adm',
106    'field_proyecto_und_r_adm' => 'field_proyecto_und_r_adm',
107  );
108?>
109<!-- Responsable Gerente -->
110<?php print ("<th><h3>Datos del Gerente</h3></th>"); ?>
111<?php print("<table>"); ?>
112   <?php foreach($arreglo['gerente'] as $campo): ?>
113     <?php print("<th>"); ?>
114     <?php print $content->content[$campo]['field']['#title']; ?>
115     <?php print("</th>"); ?>
116   <?php endforeach ?>
117   <?php print("<tr>"); ?>
118     <?php foreach($arreglo['gerente'] as $campo): ?>
119      <?php print("<td>"); ?>
120        <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?>
121          <?php if (isset($value['email'])): ?>
122            <?php $values = $value['email']; ?>
123          <?php else: ?>
124            <?php $values = $value['value']; ?>
125          <?php endif; ?>
126        <?php endforeach ?>
127        <?php implode(',', $values); ?>
128        <?php print($values); ?>
129      <?php print("</td>"); ?>
130    <?php endforeach ?>
131  <?php print("<tr>"); ?>
132<?php print("</table>"); ?>
133<!-- end Responsable Gerente -->
134
135<!-- Responsable tecnico -->
136<?php print ("<th><h3>Datos del Responsable tecnico</h3></th>"); ?>
137  <?php print("<table>"); ?>
138    <?php foreach($arreglo['tecnico'] as $campo): ?>
139      <?php print("<th>"); ?>
140        <?php print $content->content[$campo]['field']['#title']; ?>
141      <?php print("</th>"); ?>
142    <?php endforeach ?>
143    <?php print("<tr>"); ?>
144      <?php foreach($arreglo['tecnico'] as $campo): ?>
145        <?php print("<td>"); ?>
146          <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?>
147          <?php if (isset($value['email'])): ?>
148            <?php $values = $value['email']; ?>
149          <?php else: ?>
150            <?php $values = $value['value']; ?>
151          <?php endif; ?>
152        <?php endforeach ?>
153        <?php implode(',', $values); ?>
154        <?php print($values); ?>
155      <?php print("</td>"); ?>
156    <?php endforeach ?>
157  <?php print("<tr>"); ?>
158<?php print("</table>"); ?>
159<!-- end Responsable tecnico -->
160
161<!-- Responsable registrador -->
162<?php print ("<th><h3>Datos del Responsable Registrador</h3></th>"); ?>
163  <?php print("<table>"); ?>
164    <?php foreach($arreglo['registrador'] as $campo): ?>
165      <?php print("<th>"); ?>
166        <?php print $content->content[$campo]['field']['#title']; ?>
167      <?php print("</th>"); ?>
168    <?php endforeach ?>
169    <?php print("<tr>"); ?>
170      <?php foreach($arreglo['registrador'] as $campo): ?>
171       <?php print("<td>"); ?>
172         <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?>
173           <?php if (isset($value['email'])): ?>
174             <?php $values = $value['email']; ?>
175           <?php else: ?>
176             <?php $values = $value['value']; ?>
177           <?php endif; ?>
178         <?php endforeach ?>
179         <?php implode(',', $values); ?>
180         <?php print($values); ?>
181       <?php print("</td>"); ?>
182    <?php endforeach ?>
183  <?php print("<tr>"); ?>
184<?php print("</table>"); ?>
185<!-- end Responsable registrador -->
186
187<!-- Responsable administrador -->
188<?php print ("<th><h3>Datos del Responsable Administrativo</h3></th>"); ?>
189  <?php print("<table>"); ?>
190    <?php foreach($arreglo['administrativo'] as $campo): ?>
191     <?php print("<th>"); ?>
192     <?php print $content->content[$campo]['field']['#title']; ?>
193     <?php print("</th>"); ?>
194   <?php endforeach ?>
195   <?php print("<tr>"); ?>
196     <?php foreach($arreglo['administrativo'] as $campo): ?>
197    <?php print("<td>"); ?>
198      <?php foreach($content->content[$campo]['field']['#node']->$campo as $id => $value): ?>
199        <?php if (isset($value['email'])): ?>
200          <?php $values = $value['email']; ?>
201        <?php else: ?>
202          <?php $values = $value['value']; ?>
203        <?php endif; ?>
204      <?php endforeach ?>
205      <?php implode(',', $values); ?>
206      <?php print($values); ?>
207      <?php print("</td>"); ?>
208    <?php endforeach ?>
209  <?php print("<tr>"); ?>
210<?php print("</table>"); ?>
211<!-- end Responsable administrador -->
212</fieldset>
213<?php
214  $pndes = variable_get('proyectos_operativos_muestra_pndes', TRUE);
215  $mcti = variable_get('proyectos_operativos_muestra_mcti', TRUE);
216  if ($pndes || $mcti) {
217    print '<h3>' . t('Área Estrategica') . '</h3>';
218    if ($pndes) {
219      print drupal_render($content->content['field_proyecto_pndes']);
220    }
221    if ($mcti) {
222      print drupal_render($content->content['field_proyecto_mcti']);
223    }
224  }
225?>
226<h2><?php print t('Datos Generales');?></h2>
227<h3><?php print t('Clasificación Sectorial');?></h3>
228<?php print drupal_render($content->content['field_proyecto_sector']); ?>
229<?php if(variable_get('proyectos_operativos_muestra_talento', TRUE)) : ?>
230  <h2><?php print t('Talento Humano');?></h2>
231  <?php
232    $arreglo = array(
233      'field_proyecto_institucionth' => 'field_proyecto_institucionth',
234      'field_proyecto_nombres_a' => 'field_proyecto_nombres_a',
235      'field_proyecto_cargo_th' => 'field_proyecto_cargo_th',
236      'field_proyecto_rol_th' => 'field_proyecto_rol_th',
237      'field_proyecto_esfuerzo' => 'field_proyecto_esfuerzo',
238      'field_proyecto_formacion' => 'field_proyecto_formacion',
239    );
240    $header = array();
241    foreach($arreglo as $campo) {
242      $header[] = array('data' => check_plain($campos_proyectos[$campo]['widget']['label']), 'align' => 'center'); 
243    }
244    $tamano_array = array();
245    foreach($arreglo as $field_id => $field) {
246      $tamano_array[] = count($proyecto->{$field_id});
247    }
248    $cantidad_talento = max($tamano_array);
249    $rows = array();
250    for ($i = 0; $i < $cantidad_talento; $i++) {
251      $row = array();
252      foreach($arreglo as $campo) {
253        $valor_d = ($campo == 'field_proyecto_esfuerzo') ? 0 : '';
254        $valor = isset($proyecto->{$campo}[$i]) ? $proyecto->{$field_id}[$i]['value'] : $valor_d;
255        $row[] = array('data' => check_plain($valor), 'align' => 'center',);
256      }
257      $rows[] = $row;
258    }
259    if (!count($rows)) {
260      $row[] = array('data' => t('No se ha ingresado la sección de Talento Humano'), 'colspan' => count($header), 'align' => 'center');
261      $rows[] = $row;
262    }
263    print theme('table', $header, $rows, array('border' => '1'));
264  ?>
265<?php endif; ?>
266<?php if (variable_get('proyectos_operativos_muestra_capacidades', TRUE)): ?>
267  <h3><?php print t('Capacidades');?></h3>
268  <?php
269    $arreglo = array(
270      'field_proyecto_institucion_alc' => 'field_proyecto_institucion_alc',
271      'field_proyecto_infraestructura' => 'field_proyecto_infraestructura',
272      'field_proyecto_equipos' => 'field_proyecto_equipos',
273      'field_proyecto_insumos' => 'field_proyecto_insumos',
274      'field_proyectos_servicios' => 'field_proyectos_servicios',
275    );
276    $header = array();
277    foreach($arreglo as $campo) {
278      $header[] = array('data' => check_plain($campos_proyectos[$campo]['widget']['label']), 'align' => 'center'); 
279    }
280    $tamano_array = array();
281    foreach($arreglo as $field_id => $field) {
282      $tamano_array[] = count($proyecto->{$field_id});
283    }
284    $cantidad_talento = max($tamano_array);
285    $rows = array();
286    for ($i = 0; $i < $cantidad_talento; $i++) {
287      $row = array();
288      foreach($arreglo as $campo) {
289        $valor_d = ($campo == 'field_proyecto_esfuerzo') ? 0 : '';
290        $valor = isset($proyecto->{$campo}[$i]) ? $proyecto->{$campo}[$i]['value'] : $valor_d;
291        $row[] = array('data' => check_plain($valor), 'align' => 'center',);
292      }
293      $rows[] = $row;
294    }
295    if (!count($rows)) {
296      $row[] = array('data' => t('No se ha ingresado la sección de Capacidades'), 'colspan' => count($header), 'align' => 'center');
297      $rows[] = $row;
298    }
299    print theme('table', $header, $rows, array('border' => '1'));
300  ?>
301<?php endif ?>
302<h3><?php print t('Instituciones');?></h3>
303<?php print drupal_render($content->content['field_proyecto_relacion']); ?>
304<h3><?php print t('Empleos Generados');?></h3>
305<?php
306  $labels = array(
307    'field_proyectos_femenino_i' => t('Empleos Femeninos'),
308    'field_proyectos_femenino_d'=> t('Empleos Masculinos'),
309    'field_proyectos_masculino_d' => t('Total'),
310  );
311  $arreglo1 = array(
312    'field_proyecto_efdirecto' => 'field_proyecto_efdirecto',
313    'field_proyecto_emdirecto' => 'field_proyecto_emdirecto',
314  );
315  $arreglo2 = array(
316    'field_proyecto_emindirecto' => 'field_proyecto_emindirecto',
317    'field_proyecto_efindirecto' => 'field_proyecto_efindirecto',
318  );
319  $header = array();
320  $rows = array();
321  $row = array();
322  $sum_fila = 0;
323  foreach ($labels as $label) {
324    $header[] = array('data' => $label, 'align' => 'center'); 
325  }
326  foreach($arreglo1 as $campo) {
327    $valor_d = 0;
328    $valor = isset($proyecto->{$campo}[0]['value']) ? $proyecto->{$campo}[0]['value'] : $valor_d;
329    $valor_m = $valor ? number_format($valor, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
330    $row[] = array('data' => t('Nuevos: ') . check_plain($valor_m), 'align' => 'left',);
331    $sum_fila += $valor;
332  }
333  $valor_m = $sum_fila ? number_format($sum_fila, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
334  $row[] = array('data' => t('Empleos Nuevos: ') . $valor_m, 'align' => 'left',);
335  $rows[] = $row;
336  $row = array();
337  $sum_fila = 0;
338  foreach($arreglo2 as $campo) {
339    $valor_d = 0;
340    $valor = isset($proyecto->{$campo}[0]['value']) ? $proyecto->{$campo}[0]['value'] : $valor_d;
341    $valor_m = $valor ? number_format($valor, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
342    $row[] = array('data' => t('Sostenidos: ') . check_plain($valor_m), 'align' => 'left',);
343    $sum_fila += $valor;
344  }
345  $valor_m = $sum_fila ? number_format($sum_fila, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
346  $row[] = array('data' => t('Empleos Sostenidos: ') . $valor_m, 'align' => 'left',);
347
348  $rows[] = $row;
349
350  $row = array();
351  $valor_t1 = $proyecto->field_proyecto_efdirecto[0]['value'] + $proyecto->field_proyecto_emindirecto[0]['value'];
352  $row[] = array('data' => t('Total de Empleos Directos: ') . number_format($valor_t1, 0, $format_number['dec_point'], $format_number['thousands_sep']), 'align' => 'left',);
353
354  $valor_t2 = $proyecto->field_proyecto_emdirecto[0]['value'] + $proyecto->field_proyecto_efindirecto[0]['value'];
355  $row[] = array('data' => t('Total de Empleos Directos: ') . number_format($valor_t2, 0, $format_number['dec_point'], $format_number['thousands_sep']), 'align' => 'left',);
356
357  $valor_t = $valor_t1 + $valor_t2;
358  $row[]= array('data' =>  t('Empleos Directos: ') . number_format($valor_t, 0, $format_number['dec_point'], $format_number['thousands_sep']), 'align' => 'left',);
359
360  $rows[] = $row;
361  print '<fieldset><legend>Nro Estimados de Empleos</legend>' . theme('table', $header, $rows, array('border' => '1')) . '</fieldset>';
362?>
363<?php if (variable_get('proyectos_operativos_muestra_beneficiario', TRUE)): ?>
364  <h3><?php print t('Beneficiarios');?></h3>
365  <?php
366    $labes = array(
367      'field_proyecto_beneficiario' => t('Beneficiario'),
368      'field_proyectos_masculino_d' => t('Número estimado de beneficiarios masculinos'),
369      'field_proyectos_femenino_i' => t('Número estimado de beneficiarios femeninos'),
370    );
371    $arreglo = array(
372      'field_proyecto_beneficiario' => 'field_proyecto_beneficiario',
373      'field_proyectos_masculino_d' => 'field_proyectos_masculino_d',
374      //'field_proyectos_femenino_d' => 'field_proyectos_femenino_d',
375    );
376    if (variable_get('proyectos_operativos_muestra_beneficiarios_indirectos', TRUE)) {
377     // $arreglo['field_proyectos_masculino_i'] = 'field_proyectos_masculino_i';
378      $arreglo['field_proyectos_femenino_i'] = 'field_proyectos_femenino_i';
379    }
380    $header = array();
381    foreach($labes as $label) {
382      $header[] = array('data' => $label, 'align' => 'center'); 
383    }
384    $header[] = array('data' => t('TOTAL'), 'align' => 'center'); 
385    $tamano_array = array();
386    foreach($arreglo as $field_id => $field) {
387      $tamano_array[] = count($proyecto->{$field_id});
388    }
389    $cantidad_talento = max($tamano_array);
390    $rows = array();
391    $suma_arreglo = array();
392    foreach($arreglo as $campo) {
393      $suma_arreglo[$campo] = 0;
394    }
395    for ($i = 0; $i < $cantidad_talento; $i++) {
396      $row = array();
397      $sum_fila = 0;
398      foreach($arreglo as $campo) {
399        if ($campo != 'field_proyecto_beneficiario') {
400        $valor_d = ($field_id == 'field_proyecto_esfuerzo') ? 0 : '';
401        $valor = isset($proyecto->{$campo}[$i]['value']) ? $proyecto->{$campo}[$i]['value'] : $valor_d;
402        $valor_m = $valor ? number_format($valor, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
403        $row[] = array('data' => check_plain($valor_m), 'align' => 'center',);
404          $sum_fila += $valor;
405          $suma_arreglo[$campo] += $valor;
406        }
407        else {
408            $row[] = array('data' => check_plain($proyecto->{$campo}[$i]['value']), 'align' => 'left',);
409        }
410      }
411      $valor_m = $sum_fila ? number_format($sum_fila, 0, $format_number['dec_point'], $format_number['thousands_sep']) : 0;
412      $row[] = array('data' => $valor_m, 'align' => 'center',);
413      $rows[] = $row;
414    }
415    $sum_fila = 0;
416    $row = array();
417    foreach($arreglo as $campo) {
418      if ($campo == 'field_proyecto_beneficiario') {
419        $row[] = array('data' => t('TOTAL DE BENEFICIARIOS'), 'align' => 'right',);
420      }
421      else {
422        $valor_m = $suma_arreglo[$campo] ? number_format($suma_arreglo[$campo], 0, '', ',') : 0;
423        $row[] = array('data' => check_plain($valor_m), 'align' => 'center',);
424        $sum_fila += $suma_arreglo[$campo];
425      }
426    }
427    $valor_m = $sum_fila ? number_format($sum_fila, 0, '', ',') : 0;
428    $row[] = array('data' => $valor_m, 'align' => 'center',);
429    $rows[] = $row;
430    print theme('table', $header, $rows, array('border' => '1'));
431  ?>
432<?php endif ?>
433<h3><?php print t('Objetivos del Proyecto');?></h3>
434<?php print drupal_render($content->content['field_proyecto_og']); ?>
435<?php print drupal_render($content->content['field_proyecto_oe']); ?>
436
437
438<h2><?php print t('Indicadores del Proyecto');?></h2>
439<?php print drupal_render($content->content[$campo]); ?>
440
441<?php if (variable_get('proyectos_operativos_muestra_enunciado_problema', TRUE)): ?>
442  <h3><?php print t('Enunciado del Problema');?></h3>
443  <?php
444    $arreglo = array(
445      'field_proyecto_causas' => 'field_proyecto_causas',
446      'field_proyecto_problemas' => 'field_proyecto_problemas',
447      'field_proyecto_consecuencias' => 'field_proyecto_consecuencias',
448    );
449  ?>
450  <?php foreach($arreglo as $campo): ?>
451    <?php print drupal_render($content->content[$campo]); ?>
452  <?php endforeach ?>
453<?php endif ?>
454<?php if (variable_get('proyectos_operativos_muestra_justicacion', TRUE)): ?>
455  <h3><?php print t('Justificación');?></h3>
456<?php print drupal_render($content->content['field_proyecto_justificacion']); ?>
457<?php endif ?>
458<?php if (variable_get('proyectos_operativos_muestra_alcance', TRUE)): ?>
459  <h3><?php print t('Alcance del Proyecto');?></h3>
460  <?php print drupal_render($content->content['field_proyecto_alcance']); ?>
461<?php endif ?>
462<?php
463$sa = variable_get('proyectos_operativos_muestra_sa', TRUE);
464$so = variable_get('proyectos_operativos_muestra_so', TRUE);
465?>
466<?php if ($sa || $so): ?>
467  <h3><?php print t('Indicador de la Situación');?></h3>
468  <?php if ($sa): ?>
469    <h4><?php print t('Situación Actual');?></h4>
470    <?php
471      $arreglo = array(
472        'field_proyecto_sa_descripcion' => 'field_proyecto_sa_descripcion',
473      );
474      if (variable_get('proyectos_operativos_muestra_sa_cuantificacion', TRUE)) {
475        $arreglo['field_proyecto_sa_cuantificacion'] = 'field_proyecto_sa_cuantificacion';
476      }
477      $arreglo['field_proyecto_sa_formulai'] = 'field_proyecto_sa_formulai';
478      $arreglo['field_proyecto_sa_fuentei'] = 'field_proyecto_sa_fuentei';
479      $arreglo['field_proyecto_sa_fecha'] = 'field_proyecto_sa_fecha';
480    ?>
481    <?php foreach($arreglo as $campo): ?>
482      <?php print drupal_render($content->content[$campo]); ?>
483    <?php endforeach ?>
484  <?php endif ?>
485  <?php if ($so): ?>
486    <h4><?php print t('Situación Objetivo');?></h4>
487    <?php
488      $arreglo = array(
489        'field_proyecto_so_descripcion' => 'field_proyecto_so_descripcion',
490        'field_proyecto_tiempoi' => 'field_proyecto_tiempoi',
491      );
492    ?>
493    <?php foreach($arreglo as $campo): ?>
494      <?php print drupal_render($content->content[$campo]); ?>
495    <?php endforeach ?>
496  <?php endif ?>
497<?php endif ?>
498<h3><?php print t('Indicador del resultado del Proyecto');?></h3>
499<?php
500  $arreglo = array(
501    'field_proyecto_descripcion_bien' => 'field_proyecto_descripcion_bien',
502    'field_proyecto_so_cuantificacion' => 'field_proyecto_so_cuantificacion',
503    'field_proyecto_unidadm' => 'field_proyecto_unidadm',
504    'field_proyecto_meta_fisica' => 'field_proyecto_meta_fisica',
505  );
506  if (module_exists('proyectos_reformulacion')) {
507    $arreglo['field_proyecto_unidadm'] = 'proyectos_operativos_unidad_medida_reformulado';
508    $arreglo['field_proyecto_meta_fisica'] = 'proyectos_operativos_meta_fisica_reformulado';
509  }
510?>
511<?php foreach($arreglo as $campo): ?>
512  <?php print drupal_render($content->content[$campo]); ?>
513<?php endforeach ?>
514<h3><?php print t('Acciones Específicas');?></h3>
515<?php print drupal_render($content->content['field_proyecto_accion_esp']); ?>
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.