$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idMarque, 2, ClassificationFta2Model::FIELDNAME_ID_MARQUE, $isEditable) . "</td>";
$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idActivite, 3, ClassificationFta2Model::FIELDNAME_ID_ACTIVITE, $isEditable) . "</td>";
$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idRayon, 4, ClassificationFta2Model::FIELDNAME_ID_RAYON, $isEditable) . "</td>";
$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idEnvironnement, 51, ClassificationFta2Model::FIELDNAME_ID_ENVIRONNEMENT, $isEditable) . "</td>";
$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idReseau, 5, ClassificationFta2Model::FIELDNAME_ID_RESEAU, $isEditable) . "</td>";
$bloc .= "<td>" . ClassificationFta2Model::getClassificationListeSansDependance($idSaisonalite, 52, ClassificationFta2Model::FIELDNAME_ID_SAISONNALITE, $isEditable) . "</td>";
/*
 Sélection du mode d'affichage
*/
switch ($output) {
    /*     * ***********
          Début Code PDF
         * *********** */
    case "pdf":
        //Constructeur
        $pdf = new XFPDF();
        //Déclaration des variables de formatages
        $police_standard = "Arial";
        $t1_police = $police_standard;
        $t1_style = "B";
        $t1_size = "12";
        $t2_police = $police_standard;
        $t2_style = "B";
        $t2_size = "11";
        $t3_police = $police_standard;
        $t3_style = "BIU";
        $t3_size = "10";
        $contenu_police = $police_standard;
        $contenu_style = "";
        $contenu_size = "8";
        $chapitre = 0;
Exemplo n.º 2
0
    $data = array();
    $header = array('Equipment ID', 'Equipment Name', 'Accuracy');
    for ($i = 0; $i < $nrows; $i++) {
        reset($results);
        $j = 0;
        while (list(, $column_value) = each($results)) {
            $data[$i][$j] = $column_value[$i];
            $j++;
        }
    }
} else {
    echo "No Records found";
}
oci_free_statement($stmt);
$title = 'List of equipment';
$pdf = new XFPDF();
$pdf->Open();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage('P', '', 'A4');
$pdf->SetTitle($title);
$pdf->FancyTable($header, $data);
$pdf->Output("Report.pdf");
?>

<html>
<head><title></title></head>
<body>
<?php 
$file = 'Report.pdf';
$filename = 'Report.pdf';
header('Content-type: application/pdf');