Subversion Repositories Applications.gtt

Rev

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

Rev 95 Rev 109
Line 2... Line 2...
2
<?php foreach ($messages as $message) : ?>
2
<?php foreach ($messages as $message) : ?>
3
<p class="information"><?=$message;?></p>
3
<p class="information"><?=$message;?></p>
4
<?php endforeach; ?>
4
<?php endforeach; ?>
5
<?php endif; ?>
5
<?php endif; ?>
6
<?php if ($preferences) : ?>
6
<?php if ($preferences) : ?>
-
 
7
<div id="preferences">
7
<form id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post">
8
	<form class="centre" id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post">
8
<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/>
9
		<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/>
-
 
10
		<table id="preference">
-
 
11
			<thead>
9
<ul>
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>
10
<?foreach ($preferences as $categorie => $projets):?>
24
			<?foreach ($preferences as $categorie => $projets):?>
11
	<li><h2><?=$categorie;?></h2>
25
				<tr class="categories"><th colspan="8"><?=$categorie;?></th></tr>
12
	<dl>
26
				<?php $ligne = "impair"; ?>
13
	<?foreach ($projets as $projet):?>
27
				<?foreach ($projets as $projet):?>
14
		<dt><?=$projet['nom'];?></dt>
28
				<tr class="<?=$ligne ; $ligne = ($ligne == "impair") ? "pair" : "impair" ;?>">
15
		<dd><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></dd>
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 %" />
16
	<?php endforeach; ?>
51
						<?php endif; ?>
17
	</dl></li>
52
					</td>
-
 
53
				</tr>
-
 
54
				<?php endforeach; ?>
18
<?php endforeach; ?>
55
			<?php endforeach; ?>
-
 
56
			</tbody>
-
 
57
		</table>
19
<li><input id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" /></li>
58
		<input class="btn_large" id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" />
20
</ul>
59
	</form>
21
</form>
60
</div>
22
<?php endif; ?>
61
<?php endif; ?>
23
62