1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
// Impression des hommes.
for ($cc=0; $cc<count ($tmpHomme); $cc++) {
if ($cc%26==0) {
$pdf->AddPage ();
$pdf->SetMargins (5,5);
$pdf->SetFont('Arial','B',10);
$pdf->SetXY (5, 5);
$pdf->MultiCell (0, 10, 'HOMMES', 1, 'C');
$pdf->SetFont('Arial','B',9);
$pdf->SetXY (5, 15);
$pdf->MultiCell (60, 10, 'IDENTITE', 1, 'C');
$pdf->SetXY (65, 15);
$pdf->MultiCell (15, 10, 'AGE', 1, 'C');
$pdf->SetXY (80, 15);
$pdf->MultiCell (30, 10, 'TABLE', 1, 'C');
$pdf->SetXY (110, 15);
$pdf->MultiCell (30, 10, 'TEL', 1, 'C');
$pdf->SetXY (140, 15);
$pdf->MultiCell (0, 10, 'COMMENTAIRE', 1, 'C');
$pdf->SetFont('Arial','',9);
}
$xPos=$cc%26;
$tmp=explode (';', $tmpHomme[$cc]);
if ($this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][MEMBRE_ROLE]=='referent')
$pdf->SetFont('Arial','B',9);
else
$pdf->SetFont('Arial','',9);
$pdf->SetXY (5, $xPos*9+25);
$identite=$this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][MEMBRE_NOM] . ' ' . $this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][MEMBRE_PRENOM];
$age=(date ("Y")-substr ($this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][MEMBRE_AGE], 0, 4));
$pdf->MultiCell (60, 9, $identite , 1, 'L');
$pdf->SetXY (65, $xPos*9+25);
$pdf->MultiCell (15, 9, $age , 1, 'L');
unset ($identite, $age);
$pdf->SetXY (80, $xPos*9+25);
$pdf->MultiCell (30, 9, $this->partyPlacement[$tmp[1]][EVENTPLACE_TABLENOM] , 1, 'L');
$pdf->SetXY (110, $xPos*9+25);
$pdf->MultiCell (30, 9, substr ($this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][MEMBRE_TEL],-14) , 1, 'L');
$pdf->SetXY (140, $xPos*9+25);
$pdf->MultiCell (0, 9, $this->partyPlacement[$tmp[1]]['planTable'][$tmp[2]][EVENTMEMBRE_PAIEMENTNUM], 1, 'L');
unset ($tmp, $xPos);
} |
Partager