Source for file pdf.lastpage.php
Documentation is available at pdf.lastpage.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
///////////////////////////////////
// Récupération de données
///////////////////////////////////
// liste des échelles sélectionées
for($i= 0; $i< count($scale_array); $i++ ) {
$scale_content.= $scale_denomination_array[$scale_array[$i]]. '<br />'. END_LINE;
// liste des indicateurs sélectionés
for($i= 0; $i< count($sdi); $i++ ) {
$sdi_content.= $sdi[$i]['sdii_name']. '<br />'. END_LINE;
//////////////////////////////////
$pdf->SetY($pdf->GetY()+ 20);
$pdf->SetX($pdf->GetX()+ 152);
$pdf->Bookmark($lang['dashboard']['rap_infopubli']);
$pdf->Image('inc_report/logo_p.png',$pdf->GetX(), $pdf->GetY(), 0, 0, 'PNG', SITE_LINEA_URL);
//////////////////////////////////
//////////////////////////////////
$pdf->SetY($pdf->GetY()+ 20);
<table cellspacing="0" cellpadding="5" border="1">
<td>'. $lang['dashboard']['rap_title']. '</td>
<td>'. formatText($report_settings['title']). '</td>
<td>'. $lang['divers']['date_crea']. '</td>
<td>'. date("d-m-Y H:i:s"). '</td>
<td>'. $lang['dashboard']['rap_author']. '</td>
<td>'. formatText($report_settings['author']). '</td>
<td>'. $lang['dashboard']['rap_mail_author']. '</td>
<td>'. formatText($report_settings['mail_author']). '</td>
<td>'. $lang['dashboard']['rap_service']. '</td>
<td>'. formatText($report_settings['service_author']). '</td>
<td>'. $lang['dashboard']['rap_adress']. '</td>
<td>'. formatText($report_settings['adress_author']). '</td>
<td>'. $lang['dashboard']['rap_indicators']. '</td>
<td>'. $sdi_content. '</td>
<td>'. $lang['dashboard']['rap_scale']. '</td>
<td>'. $scale_content. '</td>
<td>'. $lang['dashboard']['rap_generated']. ' ('. $lang['divers']['seconds']. ')'. '</td>
$pdf->writeHTML($tbl, true, false, false, false, '');
|