This commit is contained in:
KONE SOREL 2026-03-03 16:54:20 +00:00
parent 05ef3fcbde
commit d71a9cbb12

View File

@ -4,15 +4,24 @@ if(!empty($actes)) {
<ul id="element-list"> <ul id="element-list">
<?php <?php
foreach($actes as $v) { foreach($actes as $v) {
$tab = explode(" <==> ",$v["libelle"]); if(est_anglophone()){
if (isset($tab[1]) && $tab[1] != "Guaranteed"){
if (isset($tab[2]) && ($tab[2] == "Garanti" || $tab[2] == "Guaranteed")){ $style = "background-color: red; color:white;";
$style = "background-color: red; color:white;"; }elseif (isset($tab[2]) && $tab[2] == "Request Approval"){
}elseif (isset($tab[3]) && ($tab[3] == "Demander Accord" || $tab[3] == "Request Approval")){ $style = "background-color: yellow;";
$style = "background-color: yellow;"; }else{
$style = "background-color: white;";
}
}else{ }else{
$style = "background-color: white;"; 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;";
}
} }
?> ?>
<li style="<?php echo $style; ?>" onClick="selectElement('<?php echo $v["libelle"]; ?>');add_selected_acte_medicaux('<?php echo $v["code"]." <==> ".$v["libelle"]; ?>');"><?php echo $v["libelle"]; ?></li> <li style="<?php echo $style; ?>" onClick="selectElement('<?php echo $v["libelle"]; ?>');add_selected_acte_medicaux('<?php echo $v["code"]." <==> ".$v["libelle"]; ?>');"><?php echo $v["libelle"]; ?></li>
<?php } ?> <?php } ?>