diff --git a/Vue/Ajaxchargeractesmedicaux/index.php b/Vue/Ajaxchargeractesmedicaux/index.php
index bc9ec7e..61f8493 100755
--- a/Vue/Ajaxchargeractesmedicaux/index.php
+++ b/Vue/Ajaxchargeractesmedicaux/index.php
@@ -1,47 +1,30 @@
",$v["libelle"]);
+foreach ($actes as $v) {
+ $style = "background-color: white;"; // par défaut
- /*
- if (isset($tab[2]) && $tab[2] != "Garanti"){
- $style = "background-color: red; color:white;";
- }elseif (isset($tab[3]) && $tab[3] == "Demander Accord"){
- $style = "background-color: yellow;";
- }else{
- $style = "background-color: white;";
- }
- */
-
- if(est_anglophone()){
- if (isset($tab[1]) && $tab[1] != "Guaranteed"){
- $style = "background-color: red; color:white;";
- }elseif (isset($tab[2]) && $tab[2] == "Request Approval"){
- $style = "background-color: yellow;";
- }else{
- $style = "background-color: white;";
- }
- }else{
- if (isset($tab[1]) && $tab[1] != "Garanti"){
- $style = "background-color: red; color:white;";
- }elseif (isset($tab[2]) && $tab[2] == "Demander Accord"){
- $style = "background-color: yellow;";
- }else{
- $style = "background-color: white;";
- }
- }
-
+ // Rouge si non garanti
+ if (strpos($v["libelle"], "Not guaranteed") !== false || strpos($v["libelle"], "Non garanti") !== false) {
+ $style = "background-color: red; color:white;";
+ }
+ // Jaune si demande d'accord
+ elseif (strpos($v["libelle"], "Request Approval") !== false || strpos($v["libelle"], "Demander Accord") !== false) {
+ $style = "background-color: yellow;";
+ }
?>
-- ');add_selected_acte_medicaux(' ".$v["libelle"]; ?>');">
+ - ');add_selected_acte_medicaux(' ".$v["libelle"]; ?>');">
+
+
+ = _("L'acte saisi n'existe pas.") ?>
+
\ No newline at end of file