52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
<?php
|
||
require_once '././Fpdf/fpdf.php';
|
||
require_once('././Fpdf/fpdf_protection.php');
|
||
|
||
class Pdfentete extends FPDF
|
||
{
|
||
// En-tête
|
||
function Header()
|
||
{
|
||
// Logo
|
||
|
||
// $this->Image('Societes/'.$_SESSION['codeSociete'].'/images/logo_etat.png',25,15,0,0,'','http://radiant.co.rw');
|
||
$this->Image('Societes/'.$_SESSION['codeSociete'].'/images/logo_etat.png',25,15,160,0,'','http://radiant.co.rw');
|
||
|
||
/*
|
||
Image(
|
||
string $file,
|
||
float $x = null,
|
||
float $y = null,
|
||
float $w = 0,
|
||
float $h = 0,
|
||
string $type = '',
|
||
mixed $link = ''
|
||
)
|
||
|
||
| Paramètre | Description |
|
||
| --------- | ------------------------------------------------------------ |
|
||
| **$file** | Chemin vers l’image (local ou URL si allow_url_fopen actif). |
|
||
| **$x** | Position X (mm). Si `null`, FPDF place automatiquement. |
|
||
| **$y** | Position Y (mm). Si `null`, suit le flux du document. |
|
||
| **$w** | Largeur en mm. `0` = calcul automatique selon proportion. |
|
||
| **$h** | Hauteur en mm. `0` = calcul automatique selon proportion. |
|
||
| **$type** | 'PNG', 'JPG', 'GIF'. Souvent détecté automatiquement. |
|
||
| **$link** | URL ou numéro de lien interne. |
|
||
|
||
*/
|
||
$this->SetFont('Arial','BU',15);
|
||
}
|
||
|
||
// Pied de page
|
||
function Footer()
|
||
{
|
||
$this->SetY(-30);
|
||
$this->SetFont('Arial','',8);
|
||
|
||
$this->Cell(0,5,convertirc('RADIANT INSURANCE COMPANY Ltd au capital de 6 500 000 000 RWF'),0,1,'C');
|
||
$this->Cell(0,5,convertirc('KN 3 Ave RADIANT Building / P.O. 1861 / KIGALI, RWANDA, Tel : (+250) 0788 381 093'),0,1,'C');
|
||
$this->Cell(0,5,convertirc('TIN 102781991'),0,1,'C');
|
||
|
||
}
|
||
}
|