35 lines
1.1 KiB
PHP
Executable File
35 lines
1.1 KiB
PHP
Executable File
<?php
|
|
if(!empty($actes)) {
|
|
?>
|
|
<ul id="element-list">
|
|
<?php
|
|
foreach($actes as $v) {
|
|
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>
|
|
<?php } ?>
|
|
</ul>
|
|
<?php
|
|
} else{
|
|
?>
|
|
<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.") ?>
|
|
</marquee>
|
|
<?php } ?>
|