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 38 39 40
|
$("#mytableau").dataTable().columnFilter({
sPlaceHolder: "head:before",
aoColumns: [ { type: "select"},
{ type: "select"},
{ type: "text",bRegex:true },
{ type: "select"},
{ type: "select"},
{ type: "select"},
{ type: "select"}
]
});
// pour l'instant tous les tris sur les colonnes sont fais par des listes de sélection simple
//Code tu tableau :
<table class="mytableau" id="mytableau" cellspacing="0" width=80%;>
<thead>
<tr>
<th>Num REA</th>
<th>Projet</th>
<th>Item</th>
<th>Sévérité</th>
<th>Date Création</th>
<th>Age</th>
<th>Statut</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $aDonnes->getNumRea(); ?></td>
<td><?php echo $aDonnes->getProjet(); ?></td>
<td><?php echo $aDonnes->getDesignationItem(); ?></td>
<td><?php echo $aDonnes->getPriorite(); ?></td>
<td><?php echo $date["jour"]."/".$date["mois"]."/".substr($date["annee"],2,2)?></td>
<td><?php echo $aDonnes->getAgeRea();?></td>
<td><?php echo $aDonnes->getStatut();?></td>
</tr>
</tbody>
</table> |
Partager