1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
$VGT = new Tache();
$VGT->RefUser = $User->IdUser;
<?php $Tab = $VGT->VisionGlobaleTache(); ?>
<!-- Aperçu dans un tableau Ajax des différentes taches en cours pour l'utilisateur connecté -->
<table id="table-utilisateurs" class="tablesorter"><thead>
<tr>
<th>Nom</th>
<th>Note</th>
<th>Projet</th>
<th>Contexte</th>
<th>Priorite</th>
<th>Duree</th>
<th>Etat</th>
<th>Date Début</th>
<th>Date Fin</th>
<th>Action</th>
</tr></thead>
<!-- Boucle permettant d'afficher le résultat de la requête sur les taches -->
<?php
for ($i = 0; $i < count($Tab); $i++) {
$VGT = $Tab[$i];
?>
<tr>
<td id="Nom- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Nom', 'Texte')"><?php echo $VGT['Nom']; ?></td>
<td id="Description- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Note', 'Texte')"><?php echo $VGT['Note']; ?></td>
<td id="Projet- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'RefProjet', 'Texte')"><?php echo $VGT['RefProjet']; ?></td>
<td id="Contexte- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'RefContexte', 'Texte')"><?php echo $VGT['RefContexte']; ?></td>
<td id="Priorite- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Priorite', 'Texte')"><?php echo $VGT['Priorite']; ?></td>
<td id="Duree- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Duree', 'Texte')"><?php echo $VGT['Duree']; ?>H</td>
<td id="Etat- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Etat', 'Texte')"><?php echo $VGT['Etat']; ?>%</td>
<td id="DateCreation- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'DateCreation', 'Texte')"><?php echo $VGT['DateCreation']; ?></td>
<td id="DateEcheance- <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'DateEcheance', 'Texte')"><?php echo $VGT['DateEcheance']; ?></td>
<td><a href="deletetache.php?id=<?php echo $VGT['IdTache']; ?>"><input type ="submit" value="Suppprimer" /></a></td>
</tr>
<?php } ?>
</table> |
Partager