prestation/Vue/Ajaxdiagnosticscons/index.php
2025-12-05 10:42:46 +00:00

59 lines
2.0 KiB
PHP
Executable File

<?php
$actVisible = $_SESSION['p_actVisible'];
?>
<div id="div_dianostics">
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th rowspan="2" width="15%" style="text-align:center"> Date </th>
<th rowspan="2" style="text-align:center"> Diagnostic </th>
<th rowspan="2" width="15%" style="text-align:center"> User </th>
<th colspan="2" style='text-align:center'> <?= _("Suppression") ?> </th>
</tr>
<tr>
<th style="text-align:center"> User </th>
<th style="text-align:center"> Date </th>
</tr>
</thead>
<tbody>
<?php foreach ($diagnostics as $diagnostic):
$idDiagnostic = $this->nettoyer($diagnostic['id']);
$supprime = $this->nettoyer($diagnostic['supprime']);
$codeAffection = $this->nettoyer($diagnostic['codeAffection']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleAffection = $this->nettoyer($diagnostic['libelleAffectionEng'])." => ".$codeAffection;
}
else
{
$libelleAffection = $this->nettoyer($diagnostic['libelleAffection'])." => ".$codeAffection;
}
$AffectionVisible = $_SESSION['p_AffectionVisible'];
if($AffectionVisible!="1")
{
$libelleAffection = $codeAffection;
}
?>
<?php if($supprime=='1'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= dateheureLang($this->nettoyer($diagnostic['dateSysteme'])) ?></td>
<td align='center'> <?= $libelleAffection ?> </td>
<td align='center'> <?= $this->nettoyer($diagnostic['codeUtilisateur']) ?> </td>
<td align='center'> <?= $this->nettoyer($diagnostic['userSuppression']) ?> </td>
<td align='center'><?= dateheureLang($this->nettoyer($diagnostic['heueSuppression'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>