|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/MCPRO/fpdf/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'code/init.php' ;
if($_GET['fid']>0)
{
$fact = dbi_fetch_row (dbi_query("SELECT * FROM ".TABLE_FACT." WHERE fact_id = ".$_GET['fid']." AND agence_id = $agence")) ;
$_GET['fact_id'] = $fact['fact_id'];
$_GET['num_fact'] = $fact['num_fact'];
$_GET['client_id'] = $fact['client_id'];
$_GET['date_fact'] = $fact['date_fact'];
if($fact )
{
// had code houwa assli li ykharj email bla maysayftou
// include 'code/facture-pdf.php' ;
// $facture = new Facture ($_GET['fact_id']) ;
// $facture->Output() ;
//code modifi kharj email et sayftou avec entet
include 'code/facture-pdf.php' ;
$facture = new Facture ($_GET['fact_id']) ;
//
$facture->Output() ;
$s = $facture->Output('','S');
envoyer_email('facture',$_GET['fact_id'],$s);
}
else
do_redirect ( "top.php?link=fact" );
}
else
do_redirect ( "top.php?link=fact" );
?>