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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
<table width="100%">
<tr>
<td><h1><bean:message bundle="application" key="libelle.resultat"/></h1></td>
</tr>
<tr>
<td><hr></td>
</tr>
</table>
</td></tr>
<tr>
<td class=nav>
<%
java.util.List list = form.getListFiches();
final int pageNumber = Integer.parseInt(form.getPageNumber());
final int ficheByPage = form.getFichesByPage();
final int minFiche = (pageNumber - 1) * ficheByPage;
final int maxFiche = Math.min(pageNumber * ficheByPage, list.size());
final int sizelistFiches = form.getListFiches().size();
final int fichesByPage = form.getFichesByPage();
final int pageMax;
if ((float) sizelistFiches / fichesByPage - ((int) (sizelistFiches / fichesByPage)) > 0) {
pageMax = sizelistFiches / fichesByPage + 1;
} else {
pageMax = sizelistFiches / fichesByPage;
}
final int currentPage = Integer.parseInt(form.getPageNumber());
%>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center summary="Zone de navigation / pagination de la liste" border=0>
<TBODY>
<TR>
<TD class=navEnrNo>Contact<%=(minFiche + 1 != maxFiche) ? "s" : ""%>
<%=minFiche + 1%> à <%=maxFiche%> sur <%=sizelistFiches%> trouvé<%=(sizelistFiches > 1) ? "s" : ""%>
</TD>
<TD class=navPageNo>Page<%=(pageMax > 1) ? "s" : ""%> :
<% for (int j = 1; j <= pageMax; j++)
{
if (j != currentPage) {
out.println("<a href=\"javascript:showPage(" + j + ")\">"+ j + "</a>");
}
else
{
out.println(j);
}
} /* for j */
%>
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr><td>
<table width="100%" align="left" cellspacing="0">
<tr>
<th class="titre" width="5%"><input type="checkbox" name="idFicheAllAM" value="0" onclick="setUnset(this)"/></th>
<th class="titre" width="15%"><bean:message bundle="application" key="libelle.personne.nom"/></th>
<th class="titre" width="15%"><bean:message bundle="application" key="libelle.personne.prenom"/></th>
<th class="titre" width="15%"><bean:message bundle="application" key="libelle.organisme"/></th>
<th class="titre" width="15%"><bean:message bundle="application" key="libelle.coord.tel"/></th>
<th class="titre" width="15%"><bean:message bundle="application" key="libelle.coord.fax"/></th>
<th class="titre" width="20%"><bean:message bundle="application" key="libelle.coord.mail"/></th>
</tr>
<tr>
<th class="titre"></th>
<th class="titre"><a href="javascript:orderListFiches('ctcNom', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('ctcNom', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
<th class="titre"><a href="javascript:orderListFiches('ctcPrenom', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('ctcPrenom', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
<th class="titre"><a href="javascript:orderListFiches('orgNom', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('orgNom', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
<th class="titre"><a href="javascript:orderListFiches('ctcTelDirect', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('ctcTelDirect', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
<th class="titre"><a href="javascript:orderListFiches('ctcTelecopie', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('ctcTelecopie', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
<th class="titre"><a href="javascript:orderListFiches('ctcMailGene', 'asc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_croissant.gif" width=12 border=0></a>
<a href="javascript:orderListFiches('ctcMailGene', 'desc')">
<IMG height=6 alt="Tri croissant" src="<%=request.getContextPath()%>/images/tri_decroissant.gif" width=12 border=0></a>
</th>
</tr>
<%
for (int j = minFiche; j < maxFiche; j++)
{
FicheComplete fiche = (FicheComplete) list.get(j);
%>
<tr>
<td class="resultat">
<input type="checkbox" name="idFicheAM" value="<%=fiche.getFicId()%>" /></td>
<td class="resultat"><%=fiche.getCtcNom()%></td>
<td class="resultat"><%=fiche.getCtcPrenom()%></td>
<td class="resultat"><%=fiche.getOrgNom()%></td>
<td class="resultat"><%=fiche.getCtcTelDirect()%></td>
<td class="resultat"><%=fiche.getCtcTelecopie()%></td>
<td class="resultat"><%=fiche.getCtcMailGene()%></td>
</tr>
<%
} /* for j */
%>
</table> |
Partager