html table filtre generator
Bonjour,
voila j 'utilise un script pour gerer des filtres de recherche sur mon tableau.
http://mguglielmi.free.fr/scripts/TableFilter/?l=fr
Cependant j'ai un petit soucis ... c'est à dire qu'il filtre bien... même trés bien .. un peu trop ... car il m'enleve aussi les titres des colonnes...
voila comment je l'ai mis en place
pourriez vous me dire d 'ou viens mon erreur ?
Code:
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 41
|
<table id="table1" border="1">
<th>id Visite </th>
<th>Nom Resident</th>
<th>prenom Resident</th>
<th>Nom Visiteur</th>
<th>Prenom Visiteur</th>
<th>id_groupe</th>
<th>date</th>
<th>heure début</th>
<th>heure fin</th>
<th>type visite</th>
<th>id badge</th>
<?php
while($res= mysql_fetch_array($resultVisPres))
{
?>
<tr>
<td><?php echo $res[0] ?></td>
<td><?php echo $res[1] ?></td>
<td><?php echo $res[2] ?></td>
<td><?php echo $res[3] ?></td>
<td><?php echo $res[4] ?></td>
<td><?php echo $res[5] ?></td>
<td><?php echo $res[7] ?></td>
<td><?php echo $res[8] ?></td>
<td><?php echo $res[9] ?></td>
<td><?php echo $res[10] ?></td>
<td><?php echo $res[6] ?></td>
</tr>
<?php
}
}
echo"</table>"; |
il s'avère qu'il prend c ompte de mes nom de colonnes ... et les enlèves par moment.
D 'avance merci