Subversion Repositories Applications.gtt

Compare Revisions

Ignore whitespace Rev 109 → Rev 110

/trunk/presentation/stat_tableau_charge.tpl.html
26,49 → 26,66
<tr>
<th>Projets</th>
<?php foreach ($elements as $jour) : ?>
<th class="<?=$jour['class']?>">
<?=$jour['jour_nom']?> <?=$jour['jour']?>
</th>
<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'] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=$total_w;?></td>
</tr>
<?foreach ($projets as $categorie => $pr):?>
<tr class="categories <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
<td class="entete categories_titre"><?=$categorie;?></td>
<th class="entete categories_titre"><?=$categorie;?></th>
<?php foreach ($elements as $jour_id => $jour) : ?>
<td class="categories_total"><?=(isset($categorie_totaux[$categorie][$jour_id])) ? $categorie_totaux[$categorie][$jour_id] : "&nbsp;";?></td>
<td class="categories_total"><?=(isset($categories[$categorie][$jour_id])) ? $categories[$categorie][$jour_id] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=$categories[$categorie]['total'];?></td>
</tr>
<?foreach ($pr as $id => $projet):?>
<tr class="projets <?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
<td id="pr:<?=$id;?>" class="entete projet_nom"><?=$projet['nom'];?></td>
<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] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=(isset($projet['total'])) ? $projet['total'] : "&nbsp;";?></td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if (isset($absences)) : ?>
<?php $ligne = "impair"; ?>
<tr class="absences">
<td class="entete absences_titre">Absences</td>
<?php foreach ($elements as $jour_id => $jour) : ?>
<td class="absences_total"><?=(isset($ab_total[$jour_id])) ? $ab_total[$jour_id] : "&nbsp;";?></td>
<tr class="total">
<th class="entete absences_titre">Absences</th>
<?php foreach ($elements as $jour) : ?>
<td><?=(!empty($jour['absence'])) ? $jour['absence'] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=$total_a;?></td>
</tr>
<?php foreach ($absences as $ab_id => $ab_libelle) : ?>
<?php $ligne = "impair"; ?>
<?php foreach ($absences as $ab_id => $absence) : ?>
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
<td id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$ab_libelle;?></td>
<th id="ab:<?=$ab_id;?>" class="entete absence_nom"><?=$absence['nom'];?></th>
<?php foreach ($elements as $jour_id => $jour) : ?>
<td class="absence"><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : "&nbsp;";?></td>
<td><?= (isset($ab[$ab_id][$jour_id])) ? $ab[$ab_id][$jour_id] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=(!empty($absence['total'])) ? $absence['total'] : '&nbsp;' ;?></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'] : "&nbsp;";?></td>
<?php endforeach; ?>
<td class="total"><?=$total;?></td>
</tr>
</tbody>
</table>
<?php endif; ?>