radiantproduction/Societes/radiant/Etats/Pdfentete.php

52 lines
1.7 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 limage (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');
}
}