Subversion Repositories Applications.gtt

Rev

Rev 109 | Rev 177 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
95 jpm 1
<?php if (isset($messages)) : ?>
2
<?php foreach ($messages as $message) : ?>
3
<p class="information"><?=$message;?></p>
4
<?php endforeach; ?>
5
<?php endif; ?>
6
<?php if ($preferences) : ?>
109 jpm 7
<div id="preferences">
8
	<form class="centre" id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post">
9
		<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/>
10
		<table id="preference">
11
			<thead>
12
				<tr>
13
					<th>&nbsp;</th>
14
					<th>Nom</th>
15
					<th>Description</th>
16
					<th>Date début</th>
17
					<th>Date fin</th>
18
					<th>Durée prévue</th>
19
					<th>Durée financée</th>
20
					<th>Avancement (%)</th>
21
				</tr>
22
			</thead>
23
			<tbody>
167 mathias 24
			<?php foreach ($preferences as $categorie => $projets):?>
109 jpm 25
				<tr class="categories"><th colspan="8"><?=$categorie;?></th></tr>
26
				<?php $ligne = "impair"; ?>
167 mathias 27
				<?php foreach ($projets as $projet):?>
109 jpm 28
				<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
29
					<td class="check"><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></td>
30
					<td class="pr_no"><?=$projet['no'];?></td>
31
					<td class="pr_de"><?=$projet['de'];?></td>
32
					<td class="pr_dade"><?=($projet['dade'] != '0000-00-00') ? $projet['dade'] : '&nbsp;' ;?></td>
33
					<td class="pr_dafi"><?=($projet['dafi'] != '0000-00-00') ? $projet['dafi'] : '&nbsp;' ;?></td>
34
					<td class="pr_dupr"><?=(!empty($projet['dupr'])) ? $projet['dupr'] : '&nbsp;' ;?></td>
35
					<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : '&nbsp;' ;?></td>
36
					<td class="pr_av">
37
					<?php if (!empty($projet['av'])) : ?>
38
							<img 	height="10"
39
									width="<?=$projet['av'];?>"
40
									title="<?=$projet['av'];?> %"
41
									src="presentation/images/pixels/avancement.png"
42
									style="cursor:crosshair;padding-right:<?=(100 - $projet['av']);?>px;border:1px solid #DDD;"
43
									alt="<?=$projet['av'];?> %" />
44
						<?php else : ?>
45
							<img 	height="10"
46
									width="100"
47
									style="cursor:crosshair;border:1px solid #DDD;"
48
									src="presentation/images/pixels/vide.png"
49
									title="<?=$projet['av'];?> %"
50
									alt="0 %" />
51
						<?php endif; ?>
52
					</td>
53
				</tr>
54
				<?php endforeach; ?>
55
			<?php endforeach; ?>
56
			</tbody>
57
		</table>
58
		<input class="btn_large" id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" />
59
	</form>
60
</div>
167 mathias 61
<?php endif; ?>