4,19 → 4,58 |
<?php endforeach; ?> |
<?php endif; ?> |
<?php if ($preferences) : ?> |
<form id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post"> |
<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/> |
<ul> |
<?foreach ($preferences as $categorie => $projets):?> |
<li><h2><?=$categorie;?></h2> |
<dl> |
<?foreach ($projets as $projet):?> |
<dt><?=$projet['nom'];?></dt> |
<dd><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></dd> |
<?php endforeach; ?> |
</dl></li> |
<?php endforeach; ?> |
<li><input id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" /></li> |
</ul> |
</form> |
<div id="preferences"> |
<form class="centre" id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post"> |
<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/> |
<table id="preference"> |
<thead> |
<tr> |
<th> </th> |
<th>Nom</th> |
<th>Description</th> |
<th>Date début</th> |
<th>Date fin</th> |
<th>Durée prévue</th> |
<th>Durée financée</th> |
<th>Avancement (%)</th> |
</tr> |
</thead> |
<tbody> |
<?foreach ($preferences as $categorie => $projets):?> |
<tr class="categories"><th colspan="8"><?=$categorie;?></th></tr> |
<?php $ligne = "impair"; ?> |
<?foreach ($projets as $projet):?> |
<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_dade"><?=($projet['dade'] != '0000-00-00') ? $projet['dade'] : ' ' ;?></td> |
<td class="pr_dafi"><?=($projet['dafi'] != '0000-00-00') ? $projet['dafi'] : ' ' ;?></td> |
<td class="pr_dupr"><?=(!empty($projet['dupr'])) ? $projet['dupr'] : ' ' ;?></td> |
<td class="pr_dufi"><?=(!empty($projet['dufi'])) ? $projet['dufi'] : ' ' ;?></td> |
<td class="pr_av"> |
<?php if (!empty($projet['av'])) : ?> |
<img height="10" |
width="<?=$projet['av'];?>" |
title="<?=$projet['av'];?> %" |
src="presentation/images/pixels/avancement.png" |
style="cursor:crosshair;padding-right:<?=(100 - $projet['av']);?>px;border:1px solid #DDD;" |
alt="<?=$projet['av'];?> %" /> |
<?php else : ?> |
<img height="10" |
width="100" |
style="cursor:crosshair;border:1px solid #DDD;" |
src="presentation/images/pixels/vide.png" |
title="<?=$projet['av'];?> %" |
alt="0 %" /> |
<?php endif; ?> |
</td> |
</tr> |
<?php endforeach; ?> |
<?php endforeach; ?> |
</tbody> |
</table> |
<input class="btn_large" id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" /> |
</form> |
</div> |
<?php endif; ?> |