Rev 95 | Rev 177 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php if (isset($messages)) : ?>
<?php foreach ($messages as $message) : ?>
<p class="information"><?=$message;?></p>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($preferences) : ?>
<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; ?>