Files
MYSOPHAL/front/fiche.config.evaluation.list.php
2025-08-07 13:15:31 +01:00

76 lines
2.0 KiB
PHP

<?php
use Glpi\Event;
include ('../model_controller/fiche.config.evaluation.list.php');
Session::checkLoginUser();
if (Session::getCurrentInterface() == "helpdesk") {
Html::helpHeader("DRH", '', $_SESSION["glpiname"]);
} else {
Html::header("DRH", '', "", "");
}
$ficheEvaluations = getFicheEvaluations();
echo "<div class='center'>
<button name='add' class='vsubmit'><a href='fiche.config.evaluation.php'><i class='fas fa-plus'></i>&nbsp;Ajouter </a></button>
</div>
<div class='center'>
<table border='0' class='tab_cadrehov js-dynamitable'>
<thead>
<tr class='tab_bg_2'>
<th ><a href=''></a></th>
<th class=''>Nom Fiche Evaluation</th>
<th class=''>Statut</th>
</tr>
</thead>
<tbody>";
if(isset($ficheEvaluations)){
if(sizeof($ficheEvaluations) > 0){
foreach ($ficheEvaluations as $row) {
result($row);
}
}
}else{
echo "<tr style=' text-align: center;'><td colspan='3'>Aucune donnée trouvée</td></tr>";
}
echo" </tbody>
</table>
</div>";
Html::footer();
function result($row_data){
$status = 'inactive';
if($row_data['actif'])
$status = 'active';
echo ' <tr class="tab_bg_1">
<td valign="top"></td>
<td valign="top" style="font-weight:bold"><a href="fiche.config.evaluation.php?fiche='.$row_data['id_fiche_evaluation'].'">'.$row_data['nom_fiche_evaluation'].'</a></td>
<td valign="top" style="font-weight:bold">'.$status.'</td>
</tr>';
}
?>
<script>
$(document).ready(function(){
$("#c_ssmenu2").html('<ul>'+
'<li class="breadcrumb_item"><a href="central.php" title="Accueil">Accueil</a></li>'+
'<li class="breadcrumb_item"><a href="" title="">Ressources Humaines</a></li>'+
'<li class="breadcrumb_item"><a href="" class="here" title="Configuration des evaluations"><i class="far fa-sticky-note"></i>&nbsp;Configuration des evaluations</a></li>'+
'</ul>');
});
</script>