<br/> <div id="redtab" > <p style="padding:5;"> 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]); array_push($tmp, $_SESSION['panier']['console'][$i]);
$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); $newY = 60; $PDF->setXY(10, $newY); //Generation du tableau include 'calend_pdf_tab.php'; //fin du tableau
} include "../../phpToPDF/phpToPDF.php"; $orientation = 'L'; $PDF = new phpToPDF(); $PDF->AddPage($orientation); //Generation du tableau for ($m_init = 0; $m_init <= 3; $m_init++) { $PDF->Image("../images/logo_stluc.jpg", 10, 10, 38, 15); $PDF->SetFont('Arial', 'B', 10); $text_a = "Date : " . date("d-m-Y") . "\n"; $PDF->setXY(260, 8); $PDF->MultiCell(50, 5, $text_a, 0, 1, 'C'); //Sélection de la police $PDF->SetFont('Arial', 'B', 18); $PDF->setXY(15, 15); $PDF->Cell(55); //Texte centré dans une cellule 20*10 mm encadrée et retour à la ligne $PDF->Cell(150, 10, utf8_decode($calend . ": " . $item_name), 1, 1, 'C'); $PDF->SetFont('Arial', 'B', 10); $newY = 29; $newX = 10; $PDF->setXY($newX, $newY); include 'calend_year_overview_pdf_tab.php'; $PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau); //fin du tableau if ($m_init < 3) { $PDF->AddPage($orientation); } } $doc_name = $calend . " " . $year; $PDF->Output($doc_name, I);