Conjunto de cambios 72fce52 en sipes para 0.3-modules/reportes_sipes_views
- Fecha y hora:
- 10/10/2017 10:26:13 (hace 7 años)
- Branches:
- stable
- Children:
- 22f13f7
- Parents:
- 2bf8ac5
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
0.3-modules/reportes_sipes_views/reportes_sipes_views.module
r2bf8ac5 r72fce52 213 213 214 214 $content = ''; 215 $view_id = 'reporte_poan_anual ';215 $view_id = 'reporte_poan_anual1'; 216 216 $view = views_get_view($view_id); 217 217 $display_id = 'block_1'; … … 232 232 $header .="\t"; 233 233 $header .="\t"; 234 $header. "\n"; 234 $header.= "\n"; 235 235 236 $header .="\t"; 236 237 $header .="\t"; … … 243 244 $header .= '"' . t('Monto') . '"' ."\t"; 244 245 $header .= '"' . t('Total') . '"' ."\t"; 245 $header. "\n";246 246 $html = ''; 247 247 $nid = 0; 248 248 $output = ''; 249 $nids = array(); 250 $year = variable_get('proyectos_operativos_anho_creacion', 0); 251 249 252 foreach ($view->result as $key => $values) { 250 if ($values->node_ente_planificador_hierarchical_nid != $nid) { 251 $node = node_load($values->node_ente_planificador_hierarchical_nid); 252 $nid = $node->nid; 253 $header_organismo = '"'. t('ORGANISMO RESPONSABLE: @ente', array('@ente' => $node->title)) . '"' . "\n"; 254 $output .= $header_organismo . $header .$content; 253 if (!in_array($values->nid, $nids)) { 255 254 $content = ''; 255 if ($values->node_ente_planificador_hierarchical_nid != $nid) { 256 $node = node_load($values->node_ente_planificador_hierarchical_nid); 257 $nid = $node->nid; 258 259 $header_organismo = '"'. t('PLAN OPERATIVO ANUAL NACIONAL @anho (POAN @anho)', array('@anho' => $year)) . '"' . "\n"; 260 261 $header_organismo .= '"'. t('ORGANISMO RESPONSABLE: @ente', array('@ente' => $node->title)) . '"' . "\n"; 262 $obj = "\n" . implode("\n", $values->views_php_18[0]); 263 $header_organismo .= '"'. t('OBJETIVO HISTORICO: @obj', array('@obj' => $obj)) . '"' . "\n"; 264 $output .= $header_organismo . $header . "\n"; 265 } 266 $content = '"' . trim($values->node_title) . '"' . "\t"; 267 $content .= '"' . trim($values->node_data_field_proyecto_poan_field_proyecto_titulo_value) . '"' . "\t"; 268 $content .= '"' . trim($values->node_data_field_proyecto_poan_field_proyecto_og_value) . '"' . "\t"; 269 $content .= '"' . trim($values->node_node_data_field_proyecto_ente_title) . '"' . "\t"; 270 271 $content .= '"' . implode("\n", $values->views_php_6) . '"' . "\t"; 272 273 $content .= '"' . trim(str_replace('"', '', $values->node_data_field_proyecto_poan_field_proyecto_descripcion_bie)) . '"' . "\t"; 274 275 $output .= $content; 276 277 $term = taxonomy_get_term($values->node_data_field_proyecto_poan_field_proyecto_unidadm_value); 278 279 $content = '"' . $values->views_php_17 . ' ' . check_plain($term->name) . '"' . "\t"; 280 $content .= '"' . implode("\n", $values->views_php_10['fuentes']) . '"' . "\t"; 281 $content .= '"' . implode("\n", $values->views_php_10['valores']) . '"' . "\t"; 282 $content .= '"' . $values->views_php_10['total'] .'"'; 283 $output .= $content . "\n"; 284 285 256 286 } 257 $content .= '"' . $values->node_title . '"' . "\t"; 258 $content .= '"' . $values->node_data_field_proyecto_titulo_field_proyecto_titulo_value . '"' . "\t"; 259 $content .= '"' . $values->node_data_field_proyecto_titulo_field_proyecto_og_value . '"' . "\t"; 260 $content .= '"' . $values->node_node_data_field_proyecto_ente_title . '"' . "\t"; 261 $content .= '"' . implode(', ', $values->views_php_6) . '"' . "\t"; 262 $content .= '"' . implode(', ', $values->views_php_7['bien']) . '"' . "\t"; 263 $content .= '"' . implode(', ', $values->views_php_7['unidades']) . '"' . "\t"; 264 $content .= '"' . implode(', ', $values->views_php_10['fuentes']) . '"' . "\t"; 265 $content .= '"' . implode(', ', $values->views_php_10['valores']) . '"' . "\t"; 266 $content .= '"' . implode(', ', $values->views_php_10['total']) . '"'; 267 $output .= $content . "\n"; 287 $nids[] = $values->nid; 268 288 } 269 289 $Name = 'Reporte_UltimaCuotaPaga' . $year . '.csv';
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.