diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 3a2a656..14db776 100644 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -34,7 +34,6 @@ class Cronenvoimailadhrent $this->emailMedecinConseil = $societe['emailMedecinConseil']; $this->emailGestionBon = $societe['emailGestionBon']; $this->emailCcomptabilite = $societe['emailCcomptabilite']; - $this->emailDerogation = $societe['emailDerogation']; $this->emailAccordPrealable = $societe['emailAccordPrealable']; $this->emailFraudeFinger = $societe['emailFraudeFinger']; $this->email_standard = $societe['email_standard']; @@ -68,9 +67,7 @@ class Cronenvoimailadhrent $this->email->AddAddress(trim($ad) ); } - // $this->email->Subject = $this->objet; - // : ".$this->nomProduitSante; - $this->email->Subject = $this->objet . " : ".$this->nomProduitSante; + $this->email->Subject = $this->objet; $this->email->Body = $this->body; /* diff --git a/Framework/Functions_old.php b/Framework/Functions_old.php deleted file mode 100644 index 2bd350d..0000000 --- a/Framework/Functions_old.php +++ /dev/null @@ -1,814 +0,0 @@ -format($number)); -} - -function format_N($nombre) -{ - if (is_numeric($nombre)) - { - return number_format($nombre, 0, ',', ' '); - } else - { - return "0"; - } -} - -function heureFr($d) -{ - if ($d<="0000-00-00") return ""; - return date("d/m/Y", strtotime($d)); -} - -function dateFr($d) -{ - if ($d<="0000-00-00") return ""; - return date("d/m/Y", strtotime($d)); -} - -function dateEng($d) -{ - if ($d<="0000-00-00") return ""; - return date("m/j/Y", strtotime($d)); -} - -function dateLang($d, $lang=null) -{ - if (isset($lang) && $lang=="en_US") - { - // return dateEng($d); - return dateFr($d); - } - else - { - return dateFr($d); - } -} - -function dateheureFr($d) -{ - if ($d<="0000-00-00") return ""; - return date("d/m/Y", strtotime($d)).' '.substr($d,-8); -} - -function dateheureEng($d) -{ - if ($d<="0000-00-00") return ""; - return date("m/d/Y", strtotime($d)).' '.substr($d,-8); -} - -function dateheureLang($d, $lang=null) -{ - if (isset($lang) && $lang=="en_US") - { - // return dateheureEng($d); - return dateheureFr($d); - } - else - { - return dateheureFr($d); - } -} - -function heureCourante() -{ - return date("d/m/Y H:i:s"); -} - -function heureCouranteLang($lang=null) -{ - if (isset($lang) && $lang=="en_US") - { - // return heureCouranteEng(); - return heureCouranteFr(); - } - else - { - return heureCouranteFr(); - } -} - -function heureCouranteFr() -{ - return date("d/m/Y H:i:s"); -} - -function heureCouranteEng() -{ - return date("m/d/Y H:i:s"); -} - -function dateCouranteLang($lang=null) -{ - if (isset($lang) && $lang=="en_US") - { - // return dateCouranteEng(); - return dateCouranteFr(); - } - else - { - return dateCouranteFr(); - } -} - -function dateCouranteFr() -{ - return date('d/m/Y'); -} - -function dateCouranteEng() -{ - return date("m/d/Y"); -} - -function heureCouranteSql() -{ - return date("Y-m-d H:i:s"); -} - -function dateJourSql() -{ - return date("Y-m-d"); -} - -function existeParam($param) -{ - return (($param!==null) && ($param != "")); -} - -function contruireParam($param) -{ - return ($param == null) ? "" : trim($param); -} - -function contruireParamLike($param) -{ - $p=($param == null) ? "" : trim($param); - return "%".$p."%"; -} - -function liste_options($liste,$val_def,$strict=false) -{ - // '; - foreach ($liste as $option): - $select .= ' '; - if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US") - { - $select = $strict ? '' : ''; - } - else - { - $select = $strict ? '' : ''; - } - foreach ($liste as $option): - $select .= '