From 6119d1a3a63ab99f2b5f60a9ccf6e0911ae85e8f Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 7 Mar 2026 01:29:25 +0000 Subject: [PATCH 1/2] a --- Cron/Cronenvoimailadhrent.php | 4 +- Framework/Functions_old.php | 814 ---------------------------- Vue/Fichebeneficiaire/index_old.php | 354 ------------ 3 files changed, 1 insertion(+), 1171 deletions(-) delete mode 100644 Framework/Functions_old.php delete mode 100644 Vue/Fichebeneficiaire/index_old.php diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 3a2a656..44a0071 100644 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -68,9 +68,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 .= '