fac
This commit is contained in:
parent
e31a79538b
commit
f599d3a300
|
|
@ -1,45 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
if(!empty($actes)) {
|
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"]);
|
$style = "background-color: white;"; // par défaut
|
||||||
|
|
||||||
/*
|
// Rouge si non garanti
|
||||||
if (isset($tab[2]) && $tab[2] != "Garanti"){
|
if (strpos($v["libelle"], "Not guaranteed") !== false || strpos($v["libelle"], "Non garanti") !== false) {
|
||||||
$style = "background-color: red; color:white;";
|
$style = "background-color: red; color:white;";
|
||||||
}elseif (isset($tab[3]) && $tab[3] == "Demander Accord"){
|
}
|
||||||
|
// Jaune si demande d'accord
|
||||||
|
elseif (strpos($v["libelle"], "Request Approval") !== false || strpos($v["libelle"], "Demander Accord") !== false) {
|
||||||
$style = "background-color: yellow;";
|
$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;";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<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 } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
} else{
|
} else {
|
||||||
?>
|
?>
|
||||||
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:white; background-color:red; font-size:14pt; font-weight:bold;">
|
||||||
<?= _("L'acte saisi n'existe pas.") ?>
|
<?= _("L'acte saisi n'existe pas.") ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user