//***********************// $contrat = "contrats"; if (!is_dir($contrat)) { mkdir($contrat); } //************************// $pdf = new PDF_Invoice('P', 'mm', 'A4'); $pdf->AddPage(); /*$pdf->addSociete( "$nom_client", "$adresse_client\n" . "75000 PARIS\n". "R.C.S. PARIS B 000 000 007\n" . "Capital : 18000" );*/ $pdf->addSiege("Siege Social:", "12bis Av. Tarak Ibn Ziad.\n" . "El Menzah V\n" . "2037 Ariana - Tunisie", "TEL"); //$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);