76 lines
2.0 KiB
PHP
76 lines
2.0 KiB
PHP
<?php
|
||
|
||
use Glpi\Event;
|
||
include ('../model_controller/fiche.evaluation.list.php');
|
||
|
||
Session::checkLoginUser();
|
||
if (Session::getCurrentInterface() == "helpdesk") {
|
||
Html::helpHeader("DRH", '', $_SESSION["glpiname"]);
|
||
} else {
|
||
Html::header("DRH", '', "", "");
|
||
}
|
||
|
||
|
||
|
||
$flag = "";
|
||
if($_SESSION['glpiactiveprofile']['name'] == "Super-Admin" || $_SESSION['glpiactiveprofile']['name'] == "Directeur RH" || $_SESSION['glpiactiveprofile']['name'] == "DRH")
|
||
$flag = "All";
|
||
|
||
$ficheEvaluations = getFicheEvaluations();
|
||
|
||
echo "
|
||
<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>
|
||
</tr>
|
||
</thead>
|
||
<tbody>";
|
||
if(isset($ficheEvaluations)){
|
||
if(sizeof($ficheEvaluations) > 0){
|
||
foreach ($ficheEvaluations as $row) {
|
||
if($flag == "All")
|
||
result($row);
|
||
else if ($flag == "" && $row['annuel'] && $row['id_fiche_evaluation'] != '25')
|
||
result($row);
|
||
|
||
}
|
||
}
|
||
}else{
|
||
echo "<tr style=' text-align: center;'><td colspan='3'>Aucune donn<6E>e trouv<75>e</td></tr>";
|
||
}
|
||
echo" </tbody>
|
||
</table>
|
||
</div>";
|
||
|
||
|
||
|
||
Html::footer();
|
||
|
||
|
||
|
||
|
||
function result($row_data){
|
||
|
||
echo ' <tr class="tab_bg_1">
|
||
<td valign="top"></td>
|
||
<td valign="top" style="font-weight:bold"><a href="fiche.evaluation.php?fiche='.$row_data['id_fiche_evaluation'].'">'.$row_data['nom_fiche_evaluation'].'</a></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="Evaluations"><i class="far fa-sticky-note"></i> Evaluations</a></li>'+
|
||
'</ul>');
|
||
|
||
});
|
||
</script>
|