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

Source for file sdi_report.php

Documentation is available at sdi_report.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. include_once('../config/define.php');
  13. include_once('../languages/'.U_L.'/lang_common.' CHARSET '.php');
  14. include_once('../languages/'.U_L.'/lang_sdi.' CHARSET '.php');
  15. include_once('../languages/'.U_L.'/lang_dashboard.' CHARSET '.php');
  16. include_once('../lib/functions_auth.php');
  17. include_once('phpsql.process.php');
  18. require_once('../class/system/tcpdf/tcpdf.php');
  19.  
  20. // DO NOT REMOVE - usefull for debug !
  21. // error_reporting(E_ALL);
  22. // ini_set('display_errors', '1');
  23.  
  24. include_once(themePath('../report_sdi/pdf.report.inc.php'THEME_ADMIN_PATH));
  25.  
  26. require_once(themePath('../report_sdi/extendedTCPDF.php'THEME_ADMIN_PATH));
  27.  
  28. SureRemoveDir('tmp'1);
  29.  
  30. # bench start tag
  31. $start_time=getmicrotime();
  32.  
  33. # we create the pdf
  34. $pdf new eTCPDF('P''mm''A4'true'UTF-8');
  35.  
  36. #inclusion propriétés du document
  37. include_once(themePath('../report_sdi/pdf.doc_define.php'THEME_ADMIN_PATH));
  38.  
  39. #inclusion page de garde
  40. include_once(themePath('../report_sdi/pdf.firstpage.php'THEME_ADMIN_PATH));
  41.  
  42. for($i=0$i<count($sdi)$i++{
  43.   DisplayOneSdi($i);
  44. }
  45.  
  46. #inclusion sommaire
  47. if($report_settings['summary']===trueinclude_once(themePath('../report_sdi/pdf.summary.php'THEME_ADMIN_PATH));
  48.  
  49. # bench stop tag
  50. $stop_time=getmicrotime();
  51.  
  52. $total_time=(float) $stop_time-$start_time;
  53.  
  54. #inclusion page d'infos de génération
  55. if($report_settings['publi_infos']===trueinclude_once(themePath('../report_sdi/pdf.lastpage.php'THEME_ADMIN_PATH));
  56.  
  57. # pdf output
  58. $pdf->Output('rapport'.date("dmY_His").'.pdf'$report_settings['file']);
  59.  
  60. SureRemoveDir('tmp'1);
  61. ?>

Documentation generated on Thu, 03 May 2012 15:07:33 +0200 by phpDocumentor 1.4.1