Conjunto f4301be en sipp


Ignorar:
Fecha y hora:
09/11/2015 16:05:51 (hace 9 años)
Autor:
José Gregorio Puentes <jpuentes@…>
Branches:
0.3-stable
Children:
4b7848a
Parents:
674fd44
Mensaje:

se agregaron los campos codigo, objetivos y justificacion a la vista de consultas

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • 0.3-stable-modules/proyectos_reformulacion/proyectos_reformulacion.module

    r726794e rf4301be  
    27592759  $header = array();
    27602760  $header[] = array('data' => t('Ente'));
    2761   $header[] = array('data' => t('Proyecto'));
     2761  $header[] = array('data' => t('Proyecto'));
     2762  $header[] = array('data' => t('Codigo Nueva Etapa'));
     2763  $header[] = array('data' => t('Objetivos Específicos'));
     2764  $header[] = array('data' => t('Justificación'));
    27622765  $header[] = array('data' => t('Fecha'));
    27632766  $header[] = array('data' => t('Estado Actual'));
     
    27932796    $acciones = array();
    27942797    $row = array();
     2798    $items = array();
    27952799    //Ente de relacion con la reformulación
    27962800    $ente = node_load($node->field_proyecto_ente[0]);
    2797 
     2801    //lista de los objetivos generales
     2802    foreach ($node->field_proyecto_oe as $item) {
     2803      $text = substr($item["value"], 0 , 150);
     2804      $items[] = $text . '...';
     2805    }
    27982806    $row[] = array('data' => $ente->title, 'style' => 'background:' . $color,);
    27992807    $row[] = array('data' => $node->title, 'style' => 'background:' . $color,);
     2808    $row[] = array('data' => $node->field_proyecto_codigo_n_etap[0]["value"], 'style' => 'background:' . $color, );
     2809    $row[] = array('data' => theme('item_list', $items), 'style' => 'background:' . $color, );
     2810    $row[] = array('data' => $node->field_proyecto_justificacion[0]["value"], 'style' => 'background:' . $color, );
    28002811    $row[] = array('data' => format_date($reformular->date), 'style' => 'background:' . $color,);
    28012812    $estado = isset($states['states'][$reformular->estado]) ? $states['states'][$reformular->estado] : 'N/A';
     
    28352846  }
    28362847  $output = '';
    2837   $output .= theme('table', $header, $rows);
     2848  $table_attributes = array('style' => 'width:1400px; margin-left: -200px; margin-top: 30px;');
     2849  $output .= theme('table', $header, $rows, $table_attributes);
    28382850  $output .= theme('pager', NULL);
    28392851  return $output;
     
    29052917  $header = array();
    29062918  $header[] = array('data' => t('Ente'));
    2907   $header[] = array('data' => t('Proyecto'));
     2919  $header[] = array('data' => t('Proyecto'));
     2920  $header[] = array('data' => t('Codigo Nueva Etapa'));
     2921  $header[] = array('data' => t('Objetivos Específicos'));
     2922  $header[] = array('data' => t('Justificación'));
    29082923  $header[] = array('data' => t('Fecha'));
    29092924  $header[] = array('data' => t('Estado Actual'));
     
    29422957    //Ente de relacion con la reformulación
    29432958    $ente = node_load($node->field_proyecto_ente[0]);
    2944 
     2959    //lista de los objetivos generales
     2960    foreach ($node->field_proyecto_oe as $item) {
     2961      $text = substr($item["value"], 0 , 150);
     2962      $items[] = $text . '...';
     2963    }
    29452964    $row[] = array('data' => $ente->title, 'style' => 'background:' . $color,);
    29462965    $row[] = array('data' => $node->title, 'style' => 'background:' . $color,);
     2966    $row[] = array('data' => $node->field_proyecto_codigo_n_etap[0]["value"], 'style' => 'background:' . $color, );
     2967    $row[] = array('data' => theme('item_list', $items), 'style' => 'background:' . $color, );
     2968    $row[] = array('data' => $node->field_proyecto_justificacion[0]["value"], 'style' => 'background:' . $color, );
    29472969    $row[] = array('data' => format_date($reformular->date), 'style' => 'background:' . $color,);
    29482970    $estado = isset($states['states'][$reformular->estado]) ? $states['states'][$reformular->estado] : 'N/A';
     
    29833005  }
    29843006  $output = '';
    2985   $output .= theme('table', $header, $rows);
     3007  $table_attributes = array('style' => 'width:1400px; margin-left: -200px; margin-top: 30px;');
     3008  $output .= theme('table', $header, $rows, $table_attributes);
    29863009  $output .= theme('pager', NULL);
    29873010  return $output;
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.