source: sipes/0.3-modules/sipp_pdf/templates/proyectos-operativos-datos-ae-list-pdf.tpl.php @ dc8ba62

stableversion-3.0
Last change on this file since dc8ba62 was 303fae2, checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 1.9 KB
Línea 
1<?php
2
3?>
4<h2><?php print t('Resumen del Proyecto'); ?></h2>
5<p>
6  <b><?php print t('Código Único del Proyecto'); ?>:</b> <?php print $proyecto->field_proyecto_codigo[0]['value']; ?>
7</p>
8<p>
9  <b><?php print t('Nombre del Proyecto'); ?>:</b> <?php print $proyecto->title; ?>
10</p>
11<p>
12  <b><?php print t('Organismo'); ?>:</b> <?php print $ente_planificador->title; ?>
13</p>
14<h2><?php print t('Acciones Específicas'); ?></h2>'
15<?php
16  $header = array();
17  $cab = 6;
18  $header[] = array('data' => t('Nro'), 'align' => 'center'); 
19  $header[] = array('data' => t('Nombre'), 'align' => 'center'); 
20  $header[] = array('data' => t('Fecha de inicio'), 'align' => 'center');
21  $header[] = array('data' => t('Fecha de Fin'), 'align' => 'center'); 
22  $header[] = array('data' => t('%'), 'align' => 'center'); 
23  $rows = array(); 
24  $i = 1;
25  if (count($acciones_especificas)) {
26    $suma = 0;
27    foreach($acciones_especificas as $accion) {
28      $row = array();
29      $row[] = array('data' => $i,);
30      $row[] = array('data' => $accion->title,);
31      //Se cambia el formato de la fecha
32      $fecha = explode(' ', $accion->field_accion_esp_fechai[0]['value']);
33      $formato = explode('-', $fecha[0]);
34      $row[] = array('data' => $formato[2] . '/' . $formato[1] . '/' . $formato[0], 'align' => 'center',);
35      //Se cambia el formato de la fecha
36      $fecha = explode(' ', $accion->field_accion_esp_fechaf[0]['value']);
37      $formato = explode('-', $fecha[0]);
38      $row[] = array('data' => $formato[2] . '/' . $formato[1] . '/' . $formato[0], 'align' => 'center',);
39      $suma += $accion->field_accion_esp_ponderacion[0]['value'];
40      $row[] = array('data' => $accion->field_accion_esp_ponderacion[0]['value'], 'align' => 'center',);
41
42      $rows[] = $row;
43      $i++;
44    }
45  }
46  if (count($rows)) {
47    print theme('table', $header, $rows, array('border' => '1'));
48  }
49  else {
50    print t("No se encontrarón Acciones Específicas para este proyecto.");
51  }
52?>
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.