Conjunto dccd21a en sipes


Ignorar:
Fecha y hora:
26/09/2018 11:16:32 (hace 6 años)
Autor:
José Gregorio Puentes <jpuentes@…>
Branches:
stable
Children:
1ac0b21
Parents:
a609c96
Mensaje:

se agrego los cambios en lo referente al template incluyendo los nuevos campos

Ubicación:
0.3-modules/proyectos_operativos_mcti
Ficheros:
3 editados

Leyenda

No modificado
Añadido
Eliminado
  • 0.3-modules/proyectos_operativos_mcti/accion_especifica_mcti.module

    ra8b1f3f rdccd21a  
    131131  drupal_add_js($proyectos_operativos_path . '/js/accion_especifica.js');
    132132  drupal_add_js($form['#format_number'], 'setting');
    133   drupal_add_js($form['#year_current'], 'setting');
    134133  drupal_add_js(array('accion_esp' => array('unidadmpers' => $form['#personas'])), 'setting');
    135134  //validamos que el porc sea mayor que cero
     
    356355      $output .= '<fieldset class="fuentes-de-financiamiento"><legend>' . t('Fuentes de Financiamiento (BS)') . '<span title="Este campo es obligatorio." class="form-required">*</span></legend>' . theme('table', array(), $rows) . '</fieldset>';
    357356    }
     357    $output .= '<fieldset class="fuentes-de-financiamiento"><legend>' . t('Fuentes de Financiamiento en otras monedas') . '<span title="Este campo es obligatorio." class="form-required">*</span></legend>' . drupal_render($form['field_ae_finamonedas']) . '</fieldset>';
    358358    $localizacion = variable_get('proyectos_operativos_muestra_accion_esp', TRUE);
    359359    if ($localizacion) {
     
    444444    }
    445445    if ($form['#year_current']['year_current'] > $year_final) {
    446       $mes_final = 0;
     446      $mes_final = 11;
    447447    }
    448448    if ($form['#year_current']['year_current'] < $year_inicio) {
    449       $mes_inicio = 12;
    450     }
    451     if ($form['#year_current']['year_current'] > $year_inicio) {
    452449      $mes_inicio = 0;
    453     }
    454     if ($form['#year_current']['year_current'] < $year_final) {
    455       $mes_final = 12;
    456450    }
    457451    $suma = 0;
  • 0.3-modules/proyectos_operativos_mcti/proyectos_operativos_mcti.module

    r7fee1ef rdccd21a  
    16301630    if ($pndes) {
    16311631      $output .= drupal_render($form['field_proyecto_pndes']);
     1632      $output .= drupal_render($form['field_lineas_estrategicas']);
     1633      $output .= drupal_render($form['field_poli_ministeriales']);
     1634      $output .= drupal_render($form['field_proyectos_programas']);
    16321635    }
    16331636    if ($mcti) {
     
    16521655  }
    16531656  //area estrategica
     1657
     1658
     1659  $output  .= '<fieldset><legend>' . t('Enunciado del Problema') . '</legend>';
     1660  $output .= drupal_render($form['field_proyecto_problemas']);
     1661  $output .= drupal_render($form['field_proyecto_causas']);
     1662  $output  .= '</fieldset>';
     1663
     1664  if (variable_get('proyectos_operativos_muestra_justicacion', TRUE)) {
     1665    $output .= '<fieldset><legend>' . t('Justificación del Proyecto') . '</legend>' . drupal_render($form['field_proyecto_justificacion']);
     1666    if (count($form['#fields_form_ip_ju'])) {
     1667      foreach($form['#fields_form_ip_ju'] as $id_c) {
     1668        $output .= drupal_render($form[$id_c]);
     1669      }
     1670    }
     1671    $output .= '</fieldset>';
     1672  }
     1673  if (variable_get('proyectos_operativos_muestra_alcance', TRUE)) {
     1674    $output .= '<fieldset><legend>' . t('Alcance del Proyecto') . '</legend>' . drupal_render($form['field_proyecto_alcance']);
     1675    if (count($form['#fields_form_ip_al'])) {
     1676      foreach($form['#fields_form_ip_al'] as $id_c) {
     1677        $output .= drupal_render($form[$id_c]);
     1678      }
     1679    }
     1680    $output .= '</fieldset>';
     1681  }
    16541682
    16551683  $output .= '<fieldset><legend>' . t('Datos Básicos de Identificación del Proyecto');
     
    16771705    $output .= drupal_render($form['field_proyecto_plurianual']);
    16781706  }
     1707  if (isset($form['field_proyecto_poan']) && $form['field_proyecto_poan']['#access']) {
     1708    $output .= drupal_render($form['field_proyecto_poan']);
     1709  }
    16791710  if (isset($form['field_proyecto_monto_ant']) && $form['field_proyecto_monto_ant']['#access']) {
    16801711    $output .= drupal_render($form['field_proyecto_monto_ant']);
     
    16891720    $output .= drupal_render($form['field_proyecto_total']);
    16901721  }
    1691   if (isset($form['field_proyecto_poan']) && $form['field_proyecto_poan']['#access']) {
    1692     $output .= drupal_render($form['field_proyecto_poan']);
     1722  if (isset($form['field_proyecto_total']) && $form['field_proyecto_total']['#access']) {
     1723    $output .= drupal_render($form['field_proyecto_total']);
     1724  }
     1725 
     1726  if (isset($form['field_montos_otras_moneds']) && $form['field_montos_otras_moneds']['#access']) {
     1727    $output .= drupal_render($form['field_montos_otras_moneds']);
    16931728  }
    16941729  if (is_array($form['#fields_form_ac_d']) && count($form['#fields_form_ac_d'])) {
     
    17811816  }
    17821817
    1783   $output .= '<fieldset><legend>' . t('Enunciado del Problema') . '</legend>';
     1818/*
     1819  $output  .= '<fieldset><legend>' . t('Enunciado del Problema') . '</legend>';
    17841820  $output .= drupal_render($form['field_proyecto_causas']);
    17851821  $output .= drupal_render($form['field_proyecto_problemas']);
    1786   $output .= '</fieldset>';
     1822  $output  .= '</fieldset>';
     1823*/
    17871824
    17881825  if (variable_get('proyectos_operativos_muestra_enunciado_problema', TRUE)) {
     
    17941831    $output .= '</fieldset>';
    17951832  }
     1833/*
    17961834  if (variable_get('proyectos_operativos_muestra_justicacion', TRUE)) {
    17971835    $output .= '<fieldset><legend>' . t('Justificación del Proyecto') . '</legend>' . drupal_render($form['field_proyecto_justificacion']);
     
    18111849    }
    18121850    $output .= '</fieldset>';
    1813   }
     1851  }*/
    18141852  $sa = variable_get('proyectos_operativos_muestra_sa', TRUE);
    18151853  $so = variable_get('proyectos_operativos_muestra_so', TRUE);
     
    19461984    $output .= '<div>' . drupal_render($form['programacion']) . '</div>';
    19471985  }
     1986
    19481987  $output .= drupal_render($form);
    19491988  return $output;
  • 0.3-modules/proyectos_operativos_mcti/templates/proyectos-operativos-mcti-ficha-proyecto.tpl.php

    r7218404 rdccd21a  
    4545    'field_proyecto_monto_prox' => 'field_proyecto_monto_prox',
    4646    'field_proyecto_esp_monto_finan' => 'field_proyecto_esp_monto_finan',
     47    'field_montos_otras_moneds' => 'field_montos_otras_moneds',
    4748    'field_proyecto_poan' => 'field_proyecto_poan',
    4849    'field_proyecto_pndes' => 'field_proyecto_pndes',
     
    8384  $sa = variable_get('proyectos_operativos_muestra_sa', TRUE);
    8485  $so = variable_get('proyectos_operativos_muestra_so', TRUE);
    85   $unidad_m = property_exists ($proyecto, 'variaciones') && is_array($proyecto->variaciones) && count($proyecto->variaciones) ? 'proyectos_operativos_unidad_medida_reformulado' : 'field_proyecto_unidadm';
    86   //$meta = module_exists('proyectos_reformulacion') ? 'proyectos_operativos_meta_fisica_reformulado' : 'field_proyecto_meta_fisica';
    87   $meta = 'field_proyecto_meta_fisica';
     86  $unidad_m = module_exists('proyectos_reformulacion') ? 'proyectos_operativos_unidad_medida_reformulado' : 'field_proyecto_unidadm';
     87  $meta = module_exists('proyectos_reformulacion') ? 'proyectos_operativos_meta_fisica_reformulado' : 'field_proyecto_meta_fisica';
    8888//$result  =  preg_replace('/(<div.*?class="field-label"[^>]*>)(.*?)(<\/div>)/i', "<b>$1:</b>$3", $content->content[$campo]);
    8989?>
     
    107107  <tr><td align="center">&nbsp;<?php print strip_tags(drupal_render($content->content['field_proyecto_monto_ant']));?>&nbsp;</td><td align="center">&nbsp;<?php print strip_tags(drupal_render($content->content['field_proyecto_monto_prox']));?>&nbsp;</td></tr>
    108108<?php endif ?>
     109<tr><td align="center">&nbsp;<b><?php print $content->content['field_montos_otras_moneds']['field']['#title'];?>:</b>&nbsp;</td></tr>
     110<tr><td align="center">&nbsp;<?php print strip_tags(drupal_render($content->content['field_montos_otras_moneds']));?>&nbsp;</td></tr>
    109111<tr><td align="center">&nbsp;<b><?php print $content->content['field_proyecto_esp_monto_finan']['field']['#title'];?>:</b>&nbsp;</td><td align="center">&nbsp;<b><?php print $content->content['field_proyecto_poan']['field']['#title'];?>:</b>&nbsp;</td></tr>
    110112<tr><td align="center">&nbsp;<?php print strip_tags(drupal_render($content->content['field_proyecto_esp_monto_finan']));?>&nbsp;</td><td align="center">&nbsp;<?php print strip_tags(drupal_render($content->content['field_proyecto_poan']));?>&nbsp;</td></tr>
     
    260262<tr><td colspan="2" align="center" ><h4><? print t('Localización Internacional o Nacional');?></h4></td></tr>
    261263<tr><td colspan="2" align="center"><b><?php print $content->content['field_proyecto_ubicaci_inter']['field']['#title'];?>:</b>&nbsp;</td></tr>
    262 
    263 <tr><td colspan="2" align="center">
    264 <?php
    265   $tids = $content->content['field_proyecto_ubicaci_inter']['field']['items'][0]['#node']->field_proyecto_ubicaci_inter;
    266 
    267   $names = array();
    268   foreach ($tids as $key => $value) {
    269     $items = taxonomy_get_parents_all($value['value']);
    270     $padres[] = array_reverse($items);
    271   }
    272   print '<ul style="text-align: left">';
    273     foreach ($padres as $id => $terms) {
    274       $names = array();
    275       foreach ($terms as $term) {
    276         $names[] = $term->name;
    277       }
    278       print '<li>' . implode(' > ', $names) . '</li>';
    279     }
    280    print '</ul>';
    281 ?>
    282 </td></tr>
    283 
    284 <tr><td colspan="2" align="center"><?php //print strip_tags(drupal_render($content->content['field_proyecto_ubicaci_inter']));?>&nbsp;</td></tr>
    285 
     264<tr><td colspan="2" align="center"><?php print strip_tags(drupal_render($content->content['field_proyecto_ubicaci_inter']));?>&nbsp;</td></tr>
    286265<tr><td colspan="2" align="center" ><h4><? print t('Localización Comunal');?></h4></td></tr>
    287266<tr><td align="center">&nbsp;<b><?php print $content->content['field_proyecto_codigo_comu']['field']['#title'];?>:</b>&nbsp;</td><td align="center">&nbsp;<b><?php print $content->content['field_proyecto_nombres_cum']['field']['#title'];?>:</b>&nbsp;</td></tr>
     
    541520  ?>
    542521  <tr><td colspan="2" align="justify"><?php print  $contenido;?>&nbsp;</td></tr>
     522  <tr><td colspan="2" align="center"><b><?php print $content->content['field_proyecto_consecuencias']['field']['#title'];?>:</b>&nbsp;</td></tr>
     523  <?php
     524    $datos = array();
     525    foreach ($proyecto->field_proyecto_consecuencias as $valor) {
     526      $datos[] = check_plain($valor['value']);
     527    }
     528    $contenido = (count($datos)) ? '<ul><li>' . implode('</li><li>', $datos) . '</li></ul>' : t('No se han ingresado problemas para este proyecto');
     529  ?>
     530  <tr><td colspan="2" align="justify"><?php print  $contenido;?>&nbsp;</td></tr>
    543531<?php endif ?>
    544532<?php if (variable_get('proyectos_operativos_muestra_justicacion', TRUE)): ?>
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.