<?php


class PDF_CONFIG extends MC_TABLE
{
function Header()
{

   //Put the watermark
  // include 'PDF_Rotate.php';
  // if (condition) {
  //   # code...
  // }
   

$this->SetFont('Arial','B',10);
   
    //$this->Image(''.base_url().'upload/banderole/socar.jpeg',35,5,30);
        $urlpass = base_url();
        $elementspas = explode("/", $urlpass);
       $nouveau_urlpass = null ;
        $indicepass = sizeof($elementspas);
        for ($i = 0; $i < ($indicepass - 2); $i++) {
            $nouveau_urlpass .=$elementspas[$i] . '/';
        }
    $this->Image(''.$nouveau_urlpass.'dist/logo_pdf.png',5,5,200,30);
    $this->Ln(7); 
    // $this->Cell(80,5,'SOCIETE COMMERCIALE',0,1,'C');
    // $this->Cell(80,5,'D\'ASSURANCES ET DE REASSURANCE VIE S.A',0,0,'C');
    // Saut de ligne
    // $this->Ln(20);
    // $this->SetY(45);
    
    // $this->Line(40,50,40, 280);
}
// Pied de page
// function Footer()
// {
//     // Positionnement à 1,5 cm du bas
//     $this->SetY(-20);
//     // Police Arial italique 8
//     $this->SetFont('Arial','I',8);
//     // Numéro de page
//     $this->Cell(0,10,$this->PageNo(),0,0,'C');
    
    
//  $this->Image(''.base_url().'upload/banderole/grandlogo.jpg',10,280,220);
// }

function Footer(){
  $this->SetY(-20);
  $this->SetFont('Arial','',6);
  $this->SetTextColor(0, 108, 227);
  $this->Cell(190,0,'',1,1,'C');
  $this->Cell(190,4,utf8_decode('Jonction Boulevard de l\'Indépendance et Avenue d\'Italie *B.P.2352 -Bujumbura * Tél.: 22 27 98 88 -75 103 000 -76 999 950-69 900 400 Site Web: www.socarvie.bi * E-mail: info@socarvie.bi'),0,1,'C');
  $this->Cell(190,4,utf8_decode('Cpte: CRDB 0150800828900 . BGF 20278560001 . KCB 6600382082 . BCB 20001-13101-00201119811.05 . FINBANK 20000073033'),0,1,'C');
  // $user=$this->session->userdata('SOCAR_UTILISATEUR_EMAIL');
  // $this->Cell(190,5,utf8_decode('Cpte:'),0,1,'C');
}

}

?>