//$effectif_salle_courante=mysql_num_rows($res); //if($effectif_salle_courante>0) { if(mysqli_num_rows($res)>0) { //if($compteur>0) {$pdf->Footer();} $num_page++; $pdf->AddPage("P"); $salle_courante=$salle[$i]; $effectif_salle_courante=mysqli_num_rows($res); // Initialisation: $x1=""; $y1=""; $y2=""; $pdf->EnteteEmargement(); /* //Entête du PDF //$pdf->SetLineWidth(0.7); $pdf->SetFont('DejaVu','B',14); $pdf->Setxy(10,10); $pdf->Cell($largeur_page-$MargeDroite-$MargeGauche,20,getSettingValue('gepiSchoolName').' - Année scolaire '.getSettingValue('gepiYear'),'LRBT',1,'C'); $x1=$pdf->GetX(); $y1=$pdf->GetY(); $pdf->SetFont('DejaVu','B',12); $texte='Epreuve : '; $largeur_tmp=$pdf->GetStringWidth($texte); $pdf->Cell($largeur_tmp,$pdf->FontSize*$sc_interligne,$texte,'',0,'L'); $pdf->SetFont('DejaVu','',12);