Source for file sdi_report.php
Documentation is available at sdi_report.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
* Define, compose and generate a SDI (Sustainable Development Indicators) PDF report
include_once('../config/define.php');
include_once('../config/server.php');
include_once('../languages/'. LANGUAGE. '/lang_common.' . CHARSET . '.php');
include_once('../languages/'. LANGUAGE. '/lang_sdi.' . CHARSET . '.php');
include_once('../languages/'. LANGUAGE. '/lang_dashboard.' . CHARSET . '.php');
include_once('../lib/functions_auth.php');
include_once('../lib/lib_common.php');
include_once('phpsql.process.php');
include_once('pdf.report.inc.php');
require ('../class/system/tcpdf/idd_pdf.php');
$pdf = new idd_pdf('P', 'mm', 'A4');
#inclusion propriétés du document
include_once('pdf.doc_define.php');
include_once('pdf.firstpage.php');
for($i= 0; $i< count($sdi); $i++ ) {
if($report_settings['summary']=== true) include_once('pdf.summary.php');
$total_time=(float) $stop_time- $start_time;
#inclusion page d'infos de génération
if($report_settings['publi_infos']=== true) include_once('pdf.lastpage.php');
$pdf->Output('rapport'. date("dmY_His"). '.pdf', $report_settings['file']);
|