New file |
0,0 → 1,96 |
<div id="navigation"> |
<p>Navigation : <a href="<?=$url_mois_precedent;?>"><<</a> <?=$mois['mois'];?> <?=$mois['annee'];?> <a href="<?=$url_mois_suivant;?>">>></a></p> |
<?php if ($etre_admin) : ?> |
|
<form id="form_utilisateur" name="form_utilisateur" action="<?=$form_url;?>" method="get"> |
<input type="hidden" name="action" value="<?=$form_param['action'];?>"/> |
<input type="hidden" name="annee" value="<?=$form_param['annee'];?>"/> |
<input type="hidden" name="mois" value="<?=$form_param['mois'];?>"/> |
<label for="uid">Utilisateur :</label> |
<select id="uid" name="uid" onchange="javascript:this.form.submit();"> |
<?php foreach ($utilisateurs as $id => $utilisateur) : ?> |
<option value="<?php echo $id; ?>" <?php echo ($utilisateur['courant']) ? 'selected="selected"' : ''; ?>><?php echo $utilisateur['nom']; ?></option> |
<?php endforeach; ?> |
</select> |
<input type="submit" name="btn_envoyer_utilisateur" value="OK"/> |
</form> |
<?php endif; ?> |
</div> |
<div id="export"> |
<p><a href="<?=$url_mois_courant;?>&format=csv">Affichage au format CSV</a> - <a href="<?=$url_mois_courant;?>&format=csv&sortie=csvt">Export au format CSV</a></p> |
</div> |
<?php if (isset($projets) || isset($absences)) : ?> |
<table id="tab_tps_w_mensuel_salarie" summary="Tableau du temps de travail mensuel par salariƩ."> |
<caption>Plan de charge - <?=$mois['mois'];?> <?=$mois['annee'];?> - <?=$utilisateur_courant;?></caption> |
<thead> |
<tr> |
<th>Projets</th> |
<?php foreach ($elements as $jour) : ?> |
<th class="<?=$jour['class']?>"><?=$jour['jour_nom']?> <?=$jour['jour']?></th> |
<?php endforeach; ?> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php if (isset($projets)) : ?> |
<?php $ligne = "impair"; ?> |
<tr class="total"> |
<th>Travail</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['travail'])) ? $jour['travail'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total_w;?></td> |
</tr> |
<?php foreach ($projets as $categorie => $pr):?> |
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<th class="entete categories_titre"><?=$categorie;?> [<?=$categories[$categorie]['abreviation'];?>]</th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="categories_total"><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$categories[$categorie]['total'];?></td> |
</tr> |
<?php foreach ($pr as $id => $projet):?> |
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<th id="pr:<?=$id;?>" class="entete projet_nom" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td class="projet"><?=(isset($projet['duree'][$jour_id])) ? $projet['duree'][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=(isset($projet['total'])) ? $projet['total'] : " ";?></td> |
</tr> |
<?php endforeach; ?> |
<?php endforeach; ?> |
<?php endif; ?> |
<?php if (isset($absences)) : ?> |
<tr class="total"> |
<th class="entete absences_titre">Absences</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['absence'])) ? $jour['absence'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total_a;?></td> |
</tr> |
<?php $ligne = "impair"; ?> |
<?php foreach ($absences as $ab_id => $absence) : ?> |
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>"> |
<th id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$absence['nom'];?></th> |
<?php foreach ($elements as $jour_id => $jour) : ?> |
<td><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=(!empty($absence['total'])) ? $absence['total'] : ' ' ;?></td> |
</tr> |
<?php endforeach; ?> |
<?php endif; ?> |
<tr class="total"> |
<th>Total</th> |
<?php foreach ($elements as $jour) : ?> |
<td><?=(!empty($jour['w_et_a'])) ? $jour['w_et_a'] : " ";?></td> |
<?php endforeach; ?> |
<td class="total"><?=$total;?></td> |
</tr> |
</tbody> |
</table> |
<?php endif; ?> |
<?php if (isset($messages)) : ?> |
<?php foreach ($messages as $message) : ?> |
<p class="information"><?=$message;?></p> |
<?php endforeach; ?> |
<?php endif; ?> |