Subversion Repositories Applications.gtt

Rev

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

Rev 110 Rev 159
Line 25... Line 25...
25
		<?php if ($bool_projets) : ?>
25
		<?php if ($bool_projets) : ?>
26
			<?foreach ($preferences as $categorie => $projets):?>
26
			<?foreach ($preferences as $categorie => $projets):?>
27
			<tr>
27
			<tr>
28
				<td class="categorie"><?=$categorie;?></td>
28
				<td class="categorie"><?=$categorie;?></td>
29
				<?php foreach ($elements[$s] as $num => $jour) : ?>
29
				<?php foreach ($elements[$s] as $num => $jour) : ?>
30
				<td class="categorie_total"><?=$categorie_totaux[$categorie][$num];?></td>
30
				<td class="categorie_total pr" data-num-jour="<?=$num;?>"><?=$categorie_totaux[$categorie][$num];?></td>
31
				<?php endforeach; ?>
31
				<?php endforeach; ?>
32
			</tr>
32
			</tr>
33
			<?foreach ($projets as $projet):?>
33
			<?foreach ($projets as $projet):?>
34
			<tr>
34
			<tr>
35
				<td class="projet" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></td>
35
				<td class="projet" title="<?=$projet['desc'];?>"><?=$projet['nom'];?></td>
36
				<?php foreach ($elements[$s] as $num => $jour) : ?>
36
				<?php foreach ($elements[$s] as $num => $jour) : ?>
-
 
37
				<td class="<?=$jour['class'];?>">
37
				<td class="<?=$jour['class'];?>"><input id="pr:<?=$projet['id'];?>:<?=$num;?>" name="pr:<?=$projet['id'];?>:<?=$num;?>" value="<?=$projet['date'][$num];?>" type="text"/></td>
38
					<input id="pr:<?=$projet['id'];?>:<?=$num;?>" class="pr" name="pr:<?=$projet['id'];?>:<?=$num;?>" 
-
 
39
						value="<?=$projet['date'][$num];?>" type="text" data-num-jour="<?=$num;?>"/>
-
 
40
				</td>
38
				<?php endforeach; ?>
41
				<?php endforeach; ?>
39
			</tr>
42
			</tr>
40
			<?php endforeach; ?>
43
			<?php endforeach; ?>
41
			<?php endforeach; ?>
44
			<?php endforeach; ?>
42
		<? endif;?>
45
		<? endif;?>
43
			<tr>
46
			<tr>
44
				<td class="categorie">Absences</td>
47
				<td class="categorie">Journées d'absences</td>
45
				<?php foreach ($elements[$s] as $num => $jour) : ?>
48
				<?php foreach ($elements[$s] as $num => $jour) : ?>
46
				<td class="categorie_total"><?=$ab_total[$num];?></td>
49
				<td class="categorie_total"><?=$ab_total[$num];?></td>
47
				<?php endforeach; ?>
50
				<?php endforeach; ?>
48
			</tr>
51
			</tr>
49
			<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
52
			<?php foreach ($ab as $ab_id => $tab_ab_jours) : ?>
50
			<tr>
53
			<tr>
51
				<td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
54
				<td class="absence_titre"><?=$ab_libelle[$ab_id];?></td>
52
				<?php foreach ($elements[$s] as $num => $jour) : ?>
55
				<?php foreach ($elements[$s] as $num => $jour) : ?>
-
 
56
				<td class="ab <?=$jour['class'];?>">
-
 
57
					<?php if ($tab_ab_jours[$num]['duree_defaut'] != 0) : ?>
-
 
58
						<input id="ab:<?=$ab_id;?>:<?=$num;?>" class="ab" name="ab:<?=$num;?>" 
53
				<td class="ab <?=$jour['class'];?>"><input id="ab:<?=$ab_id;?>:<?=$num;?>" name="ab:<?=$ab_id;?>:<?=$num;?>" value="<?=$tab_ab_jours[$num];?>" type="text"/></td>
59
							value="<?=$ab_id;?>:<?=($tab_ab_jours[$num]['duree'] != '') ? $tab_ab_jours[$num]['duree'] :  $tab_ab_jours[$num]['duree_defaut'];?>" type="checkbox"
-
 
60
							<?=(!empty($tab_ab_jours[$num]['duree'])) ? 'checked="checked"' : '' ?>
-
 
61
							 data-num-jour="<?=$num;?>"
-
 
62
							 data-ab-id="<?=$ab_id;?>"
-
 
63
							 data-duree-defaut="<?=$tab_ab_jours[$num]['duree_defaut'];?>"/>
-
 
64
					<?php endif; ?>
-
 
65
				</td>
54
				<?php endforeach; ?>
66
				<?php endforeach; ?>
55
			</tr>
67
			</tr>
56
			<?php endforeach; ?>
68
			<?php endforeach; ?>
Line 57... Line 69...
57
		
69
		
Line 66... Line 78...
66
	<input class="btn_large" id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
78
	<input class="btn_large" id="btn_valider" name="btn_valider" value="<?=$i18n_general_valider;?>" type="submit" />
67
	</form>
79
	</form>
68
<?php else : ?>
80
<?php else : ?>
69
	<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
81
	<p class="information">Veuillez sélectionner des projets via le menu "Gestion de mes projets".</p>
70
<? endif;?>
82
<? endif;?>
71
</div>
83
</div>
72
84