slt a tous j'utilise une table coté html ke je remplis a traver une fonction , je voudrais afecter a la derniere colone de la table des checkbox ke je cocherais par la suite mais je n'y arive pas voici mon code:
<table border="7" cellpadding="1" BGCOLOR="#FFFFF9" >
<tr >
<th colspan="1" WIDTH="50%" ><font size="4" face="Palatino Linotype"><em> Nom du Model </em> </font> </th>
<th colspan="1" WIDTH="10%" ><font size="4" face="Palatino Linotype"><em> Inports </em></font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"> <em>Outports</em> </font> </th>
<th colspan="1" WIDTH="10%" > <font size="4" face="Palatino Linotype"><em>Auteur</em> </font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"> <em> Date</em> </font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"> <em>Type </em></font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"><em> Serveur</em> </font></th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"> <em>Prix(DA) </em></font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"><em> Description</em> </font> </th>
<th colspan="1" WIDTH="10%"> <font size="4" face="Palatino Linotype"><em> Selection</em> </font> </th>
</tr>
<% String [][] mat=new String[ligne][10];
int i=0;
int j=0;
while(i<ligne){
{
mat[i][0] =(String)aa.elementAt(j);
mat[i][1]=(String)aa.elementAt(j+1);
mat[i][2] =(String)aa.elementAt(j+2);
mat[i][3] =(String)aa.elementAt(j+3);
mat[i][4]=(String)aa.elementAt(j+4);
mat[i][5] =(String)aa.elementAt(j+5);
mat[i][6] =(String)aa.elementAt(j+6);
mat[i][7]=(String)aa.elementAt(j+7);
mat[i][8] =(String)aa.elementAt(j+8);
}
i++;
j=j+9;
}
int ii,jj;
for (jj=0;jj<ligne;jj++){%>
<tr>
<% for (ii=0;ii<10;ii++) { %>
<td>
<%=mat[jj][ii] %>
</td>
<% } %>
</tr>
<% } %>
</table>
je veus que dans la colone selection le check box s'afiche j'ai tous essyer mais j'ai toujour des erreur s'il vous plais aidez moi!!!!!
en fait je remplis la table avec des valeur que je recupere a partir d'un tableau en utilisant un service web donc toute les ligne de 0 a 9 se remplisse mais seuf la derniere je n'arive pas a lui afecter le chekc box
Partager