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 44 45 46 47 48 49 50
| function addClientAdresse( $adresse,$adresse2,$adresse3 )
{
$r1 = 10;
$r2 = $r1 + 62;
$y1 = 35;
$y2 = $y1+20;
$mid = $y1 + (($y2-$y1) / 4);
$this->RoundedRect($r1, $y1, ($r2 - $r1), ($y2-$y1), 2.5, 'D');
$this->Line( $r1, $mid, $r2, $mid);
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1+1 );
$this->SetFont( "Helvetica", "B", 10);
$this->SetDrawColor(0,80,180);
$this->SetFillColor(230,230,0);
$this->SetTextColor(220,50,50);
$this->Cell(10,4, "ADRESSE CLIENT", 0, 0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 5 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$adresse, 0,0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 9 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$adresse2, 0,0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 13 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$adresse3, 0,0, "C");
function addChantierAdresse( $mode1,$mode4,$mode5 )
{
$r1 = 10;
$r2 = $r1 + 62;
$y1 = 58;
$y2 = $y1+20;
$mid = $y1 + (($y2-$y1) / 4);
$this->RoundedRect($r1, $y1, ($r2 - $r1), ($y2-$y1), 2.5, 'D');
$this->Line( $r1, $mid, $r2, $mid);
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1+1 );
$this->SetFont( "Helvetica", "B", 10);
$this->Cell(10,4, "ADRESSE CHANTIER", 0, 0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 5 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$mode1, 0,0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 9 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$mode4, 0,0, "C");
$this->SetXY( $r1 + ($r2-$r1)/2 -5 , $y1 + 13 );
$this->SetFont( "Helvetica", "", 8);
$this->Cell(10,5,$mode5, 0,0, "C");
}
} |
Partager