Exemplo n.º 1
0
    $orientation = 'L';
}
include "../../phpToPDF/phpToPDF.php";
$PDF = new phpToPDF();
$PDF->AddPage($orientation);
$PDF->Image("../images/logo_stluc.jpg", 10, 10, 65, 28);
$PDF->SetFont('Arial', 'B', 10);
$text_a = "Date : " . date("d-m-Y") . "\n";
if ($orientation == 'P') {
    $PDF->setXY(160, 10);
} elseif ($orientation == 'L') {
    $PDF->setXY(260, 10);
} else {
    $PDF->setXY(260, 10);
}
$PDF->MultiCell(50, 5, $text_a, 0, 1, 'C');
//Sélection de la police
$PDF->SetFont('Arial', 'B', 18);
if ($orientation == 'P') {
    $PDF->setXY(10, 40);
    $PDF->Cell(50);
} elseif ($orientation == 'L') {
    $PDF->setXY(10, 40);
    $PDF->Cell(80);
} else {
    $PDF->setXY(10, 40);
    $PDF->Cell(80);
}
//Texte centré dans une cellule 20*10 mm encadrée et retour à la ligne
$PDF->Cell(100, 10, utf8_decode($calend), 1, 1, 'C');
$PDF->SetFont('Arial', 'B', 10);
Exemplo n.º 2
0
<br/>
<div id="redtab" >
	<p style="padding:5;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	DONE !
	</p>
</div>
<div id="redbotle" style="color:#000">

<?php 
if (isset($_COOKIE['Etat']) && $_COOKIE['Etat'] == 1) {
    include 'phpToPDF.php';
    $pdf = new phpToPDF();
    $pdf->AddPage();
    $pdf->SetFont('Arial', 'B', 16);
    $pdf->MultiCell(0, 10, "Merci D'avoir Considérer Nos Service!\nVoici Les Jeux Videos que Vous venez D acheter\n", 1, "C", 0);
    $pdf->Cell("\n\n\n");
    // Définition des propriétés du tableau.
    $proprietesTableau = array('TB_ALIGN' => 'L', 'L_MARGIN' => 15, 'BRD_COLOR' => array(0, 92, 177), 'BRD_SIZE' => '0.3');
    // Définition des propriétés du header du tableau.
    $proprieteHeader = array('T_COLOR' => array(150, 10, 10), 'T_SIZE' => 10, 'T_FONT' => 'Arial', 'T_ALIGN' => 'C', 'V_ALIGN' => 'T', 'T_TYPE' => 'B', 'LN_SIZE' => 20, 'BG_COLOR_COL0' => array(170, 240, 230), 'BG_COLOR' => array(170, 240, 230), 'BRD_COLOR' => array(0, 92, 177), 'BRD_SIZE' => 0.2, 'BRD_TYPE' => '1', 'BRD_TYPE_NEW_PAGE' => '');
    // Contenu du header du tableau.
    $contenuHeader = array(30, 30, 40, 50, "Jeu", "Quantité", "Prix/U", "Console");
    // Définition des propriétés du reste du contenu du tableau.
    $proprieteContenu = array('T_COLOR' => array(0, 0, 0), 'T_SIZE' => 10, 'T_FONT' => 'Arial', 'T_ALIGN_COL0' => 'L', 'T_ALIGN' => 'R', 'V_ALIGN' => 'M', 'T_TYPE' => '', 'LN_SIZE' => 10, 'BG_COLOR_COL0' => array(245, 245, 150), 'BG_COLOR' => array(255, 255, 255), 'BRD_COLOR' => array(0, 92, 177), 'BRD_SIZE' => 0.1, 'BRD_TYPE' => '1', 'BRD_TYPE_NEW_PAGE' => '');
    // Contenu du tableau.
    $tmp = array();
    for ($i = 0; $i < count($_SESSION['panier']['nomProduit']); $i++) {
        array_push($tmp, $_SESSION['panier']['nomProduit'][$i]);
        array_push($tmp, $_SESSION['panier']['qteProduit'][$i]);
        array_push($tmp, $_SESSION['panier']['prixProduit'][$i]);