Subversion Repositories Applications.gtt

Compare Revisions

Ignore whitespace Rev 188 → Rev 189

/trunk/presentation/preferences.tpl.html
12,11 → 12,12
<tr>
<th>&nbsp;</th>
<th>Nom</th>
<th>Description</th>
<!--<th>Description</th>-->
<th>Date début</th>
<th>Date fin</th>
<th>Durée prévue (j)</th>
<th>Durée financée (j)</th>
<!--<th>Durée financée (j)</th>-->
<th>Temps perso. passé (j)</th>
<th>Avancement (j)</th>
<th>Avancement (%)</th>
</tr>
29,12 → 30,22
<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
<td class="check"><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></td>
<td class="pr_no"><?=$projet['no'];?></td>
<td class="pr_de"><?=$projet['de'];?></td>
<!--<td class="pr_de"><?=$projet['de'];?></td>-->
<td class="pr_dade"><?=($projet['dade'] != '0000-00-00') ? $projet['dade'] : '&nbsp;' ;?></td>
<td class="pr_dafi"><?=($projet['dafi'] != '0000-00-00') ? $projet['dafi'] : '&nbsp;' ;?></td>
<td class="pr_dupr"><?=(!empty($projet['dupr'])) ? $projet['dupr'] : '&nbsp;' ;?></td>
<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : '&nbsp;' ;?></td>
<!--<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : '&nbsp;' ;?></td>-->
 
<!-- colonne "avancement personnel en jours" -->
<td>
<?= ($projet['tpp'] === null ? '0' : ($projet['tpp'] == 0 ? 'moins de 1j' : $projet['tpp'])) ?>
<?php
// pourcentage de temps sur ce projet p/r au temps total passé par l'équipe
$ptp = floor((empty($projet['tpp']) ? 0 : (($projet['tpp'] * 100) / $projet['avc'])));
?>
(<?= $ptp ?> %)
</td>
 
<!-- colonne "avancement en jours" -->
<?php
// calculs utiles pour la suite