Subversion Repositories Applications.gtt

Rev

Rev 177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 189
Line 10... Line 10...
10
		<table id="preference">
10
		<table id="preference">
11
			<thead>
11
			<thead>
12
				<tr>
12
				<tr>
13
					<th>&nbsp;</th>
13
					<th>&nbsp;</th>
14
					<th>Nom</th>
14
					<th>Nom</th>
15
					<th>Description</th>
15
					<!--<th>Description</th>-->
16
					<th>Date début</th>
16
					<th>Date début</th>
17
					<th>Date fin</th>
17
					<th>Date fin</th>
18
					<th>Durée prévue (j)</th>
18
					<th>Durée prévue (j)</th>
19
					<th>Durée financée (j)</th>
19
					<!--<th>Durée financée (j)</th>-->
-
 
20
					<th>Temps perso. passé (j)</th>
20
					<th>Avancement (j)</th>
21
					<th>Avancement (j)</th>
21
					<th>Avancement (%)</th>
22
					<th>Avancement (%)</th>
22
				</tr>
23
				</tr>
23
			</thead>
24
			</thead>
24
			<tbody>
25
			<tbody>
Line 27... Line 28...
27
				<?php $ligne = "impair"; ?>
28
				<?php $ligne = "impair"; ?>
28
				<?php foreach ($projets as $projet):?>
29
				<?php foreach ($projets as $projet):?>
29
				<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
30
				<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
30
					<td class="check"><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></td>
31
					<td class="check"><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></td>
31
					<td class="pr_no"><?=$projet['no'];?></td>
32
					<td class="pr_no"><?=$projet['no'];?></td>
32
					<td class="pr_de"><?=$projet['de'];?></td>
33
					<!--<td class="pr_de"><?=$projet['de'];?></td>-->
33
					<td class="pr_dade"><?=($projet['dade'] != '0000-00-00') ? $projet['dade'] : '&nbsp;' ;?></td>
34
					<td class="pr_dade"><?=($projet['dade'] != '0000-00-00') ? $projet['dade'] : '&nbsp;' ;?></td>
34
					<td class="pr_dafi"><?=($projet['dafi'] != '0000-00-00') ? $projet['dafi'] : '&nbsp;' ;?></td>
35
					<td class="pr_dafi"><?=($projet['dafi'] != '0000-00-00') ? $projet['dafi'] : '&nbsp;' ;?></td>
35
					<td class="pr_dupr"><?=(!empty($projet['dupr'])) ? $projet['dupr'] : '&nbsp;' ;?></td>
36
					<td class="pr_dupr"><?=(!empty($projet['dupr'])) ? $projet['dupr'] : '&nbsp;' ;?></td>
36
					<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : '&nbsp;' ;?></td>
37
					<!--<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : '&nbsp;' ;?></td>-->
-
 
38
 
-
 
39
					<!-- colonne "avancement personnel en jours" -->
-
 
40
					<td>
-
 
41
						<?= ($projet['tpp'] === null ? '0' : ($projet['tpp'] == 0 ? 'moins de 1j' : $projet['tpp'])) ?>
-
 
42
						<?php
-
 
43
							// pourcentage de temps sur ce projet p/r au temps total passé par l'équipe
-
 
44
							$ptp = floor((empty($projet['tpp']) ? 0 : (($projet['tpp'] * 100) / $projet['avc'])));
-
 
45
						?>
-
 
46
						(<?= $ptp ?> %)
-
 
47
					</td>
Line 37... Line 48...
37
 
48
 
38
					<!-- colonne "avancement en jours" -->
49
					<!-- colonne "avancement en jours" -->
39
					<?php
50
					<?php
40
						// calculs utiles pour la suite
51
						// calculs utiles pour la suite