linea21-utils
[ class tree: linea21-utils ] [ index: linea21-utils ] [ all elements ]

Source for file pdf.lastpage.php

Documentation is available at pdf.lastpage.php

  1. <?php
  2. /**
  3.  * @package linea21.utils
  4.  * @subpackage report_sdi
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  Define, compose and generate a SDI (Sustainable Development Indicators) PDF report
  10.  */
  11.  
  12. ///////////////////////////////////
  13. // Récupération de données
  14. ///////////////////////////////////
  15.  
  16. // liste des échelles sélectionées
  17. $scale_content='';
  18. for($i=0$i<count($scale_array)$i++{
  19.   $scale_content.=$scale_denomination_array[$scale_array[$i]].'<br />'.END_LINE;
  20. }
  21.  
  22. // liste des indicateurs sélectionés
  23. $sdi_content='';
  24. for($i=0$i<count($sdi)$i++{
  25.   $sdi_content.=$sdi[$i]['sdii_name'].'<br />'.END_LINE;
  26. }
  27. //////////////////////////////////
  28.  
  29.  
  30. $pdf->AddPage();
  31. $pdf->SetY($pdf->GetY()+20);
  32. $pdf->SetX($pdf->GetX()+152);
  33. $pdf->Bookmark($lang['dashboard']['rap_infopubli']);
  34. // logo
  35. $pdf->Image('inc_report/logo_p.png',$pdf->GetX()$pdf->GetY()00'PNG'SITE_LINEA_URL);
  36.  
  37.  
  38. //////////////////////////////////
  39. //     tableau récapitulatif
  40. //////////////////////////////////
  41. $margin 20;
  42. $pdf->SetY($pdf->GetY()+20);
  43.  
  44. $tbl '
  45. <table cellspacing="0" cellpadding="5" border="1">
  46.     <thead>
  47.     <tr>
  48.         <td>'.$lang['dashboard']['rap_title'].'</td>
  49.         <td>'.formatText($report_settings['title']).'</td>
  50.     </tr>
  51.     </thead>
  52.     <tr>
  53.         <td>'.$lang['divers']['date_crea'].'</td>
  54.         <td>'.date("d-m-Y H:i:s").'</td>
  55.     </tr>
  56.     <tr>
  57.         <td>'.$lang['dashboard']['rap_author'].'</td>
  58.         <td>'.formatText($report_settings['author']).'</td>
  59.     </tr> 
  60.     <tr>
  61.         <td>'.$lang['dashboard']['rap_mail_author'].'</td>
  62.         <td>'.formatText($report_settings['mail_author']).'</td>
  63.     </tr> 
  64.     <tr>
  65.         <td>'.$lang['dashboard']['rap_service'].'</td>
  66.         <td>'.formatText($report_settings['service_author']).'</td>
  67.     </tr> 
  68.     <tr>
  69.         <td>'.$lang['dashboard']['rap_adress'].'</td>
  70.         <td>'.formatText($report_settings['adress_author']).'</td>
  71.     </tr>
  72.     <tr>
  73.         <td>'.$lang['dashboard']['rap_indicators'].'</td>
  74.         <td>'.$sdi_content.'</td>
  75.     </tr> 
  76.     <tr>
  77.         <td>'.$lang['dashboard']['rap_scale'].'</td>
  78.         <td>'.$scale_content.'</td>
  79.     </tr>
  80.     <tr>
  81.         <td>'.$lang['dashboard']['rap_generated'].' ('.$lang['divers']['seconds'].')'.'</td>
  82.         <td>'.$total_time.'</td>
  83.     </tr> 
  84. </table>';
  85.  
  86. $pdf->writeHTML($tbltruefalsefalsefalse'');
  87.  
  88. $pdf->SetFont(DOC_POLICEDOC_STYLEDOC_SIZE);
  89. ?>

Documentation generated on Thu, 03 May 2012 15:06:54 +0200 by phpDocumentor 1.4.1