//$pdf->fact_dev( "Constrat ", "TEMPO" ); $pdf->cont_loc("CONTRAT DE LOCATION\n" . "DE\n" . "MATERIEL MEDICAL {$ref}"); $pdf->clausecontrattxt(">> Clauses du Contrat au Verso >>"); //$pdf->addDate( "$today"); $pdf->Image('img/Sigle.jpg', 27, 5, -680); $pdf->Image('img/LOGO.jpg', 10, 5, -680); //$pdf->addClient("CL01"); //$pdf->addPageNumber("1"); $pdf->addClientAdresse("Nom : {$nom_client} \nAdresse : {$adresse_client} \nTel : {$tel_client} \nGSM : {$gsm_client} \nCIN N : {$cin_client} - Tunis,le : {$date_cin}"); $pdf->addbenificiaire("M/Mme : {$nom_ben}\nAdresse : {$adresse_ben}\nTel : {$tel_ben}\nCIN N : {$cin_ben}"); $pdf->totalettctva($total_htva, $total_tva, $total_ttc, $total_caution); //$accompte=300; $pdf->Accompte($accompte); $pdf->transport($transport); $let = strtoupper(int2str($total_ttc)); $pdf->contratenttelettre("{$let}"); $cols = array("Ord." => 11, "DESIGNATION" => 70, "Periode" => 20, "Qte" => 9, "P.U. HT" => 25, "MT H.T." => 27, "Caution/Unite" => 28); $pdf->addCols2($cols); $cols = array("Ord." => "L", "DESIGNATION" => "L", "Periode" => "C", "Qte" => "C", "P.U. HT" => "R", "MT H.T." => "R", "Caution/Unite" => "C"); $y = 109; $req2 = "select * from ligne_commande where id_commande ={$id}"; $oPDOStatements2 = $connect->query($req2); // Le résultat est un objet de la classe PDOStatement $oPDOStatements2->setFetchMode(PDO::FETCH_ASSOC); //retourne true on success, false otherwise. $k = 0; $nbPage = 1; while ($data = $oPDOStatements2->fetch()) { $id_produit = $data['id_produit']; $id_lit = $data['id_lit']; $prix_unit_s = $data['prix_unit_s'];