$titre = $msg['acquisition_sug_list']; $ourPDF->setFontSize($fs_titre); $ourPDF->SetXY($x_titre, $y_titre); $ourPDF->Cell($l_titre, $h_titre, $titre, 0, 0, 'L', 0); if ($us != '') { $ourPDF->Ln(); $ourPDF->Cell($l_titre, $h_titre, "Critères de recherche: " . $us, 0, 0, 'L', 0); } if ($num_categ != '-1') { $ourPDF->Ln(); $sug_categ = new suggestions_categ($num_categ); $ourPDF->Cell($l_titre, $h_titre, "Catégories de suggestions: " . $sug_categ->libelle_categ, 0, 0, 'L', 0); } if ($statut != '-1') { $ourPDF->Ln(); $ourPDF->Cell($l_titre, $h_titre, "Etat des suggestions: " . $sug_map->getPdfComment($statut), 0, 0, 'L', 0); } //Affichage lignes suggestions $ourPDF->SetAutoPageBreak(false); $ourPDF->AliasNbPages(); $ourPDF->SetFontSize($fs_tab); $ourPDF->SetFillColor(230); $ourPDF->Ln(); $y = $ourPDF->GetY(); $ourPDF->SetXY($x_tab, $y); $x_dat = $x_tab; $w_dat = round($w * 10 / 100); $x_tit = $x_dat + $w_dat; $w_tit = round($w * 30 / 100); $x_edi = $x_tit + $w_tit; $w_edi = round($w * 20 / 100);
$ourPDF->SetXY($x_tab, $y); $x_dat = $x_tab; $w_dat = round($w * 10 / 100); $x_tit = $x_dat + $w_dat; $w_tit = round($w * 30 / 100); $x_edi = $x_tit + $w_tit; $w_edi = round($w * 20 / 100); $x_aut = $x_edi + $w_edi; $w_aut = round($w * 20 / 100); $x_sta = $x_aut + $w_aut; $w_sta = round($w * 10 / 100); $x_cat = $x_sta + $w_sta; $w_cat = round($w * 10 / 100); printEntete(); while ($row = pmb_mysql_fetch_object($res)) { $lib_statut = $sug_map->getPdfComment($row->statut); if (!$row->num_notice) { $lib_cat = ''; } else { $lib_cat = 'X'; } $h = $h_tab * max($ourPDF->NbLines($w_dat, $row->date_creation), $ourPDF->NbLines($w_tit, $row->titre), $ourPDF->NbLines($w_edi, $row->editeur), $ourPDF->NbLines($w_aut, $row->auteur), $ourPDF->NbLines($w_sta, $lib_statut), $ourPDF->NbLines($w_cat, $lib_cat)); $s = $y + $h; if ($s > $hauteur_page - $marge_bas) { $ourPDF->AddPage(); $ourPDF->SetXY($x_tab, $y_tab); $y = $ourPDF->GetY(); printEntete(); } $ourPDF->SetXY($x_dat, $y); $ourPDF->Rect($x_dat, $y, $w_dat, $h);