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
|
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="org.hibernate.*" %>
<%@ page import="java.util.*" %>
<%@ page import="fr.gestentrep2.voitures.pojos.*" %>
<%@ include file="../conf/header.jsp" %>
<div id="infobulle">bubble</div>
<div id="identification">
<%@ include file="../conf/menu.jsp" %>
</div>
<h1>Modification de voitures</h1>
<h3>Voiçi la liste des voitures existantes, cliquez sur l'icône précédant la voiture pour la modifier. </h1>
<div id="identification">
<table>
<tr>
<td width="30"></td>
<td width="30"></td>
<td width="30"></td>
<td width="10"></td>
<td width="200"><b>Nom</b></td>
<td width="200"><b>Modele</b></td>
<td width="200"><b>Année</b></td>
<td width="200"><b>Kilométrage</b></td>
</tr>
<%
int idTemp;
List result = mgrVoiture.getListeVoitures();
for(int i=0 ;i<result.size(); i++) {
theVoiture = (Voiture) result.get(i) ;
idTemp = theVoiture.getId();
%>
<jsp:useBean id="monBean" scope="page" class="fr.gestentrep.voitures.Voiture" />
<jsp:setProperty name="monBean" property="id" value="<%=idTemp%>" />
<tr>
<td width="30"><br /><html:link page="/formulaireSuppresionVoiture.do" paramName="monBean" paramId="voitureId" paramProperty="id" onmouseover="javascript:see_bubble('supprimer');" onmouseout="javascript:kill_bubble();"><img src="/gestentrep/images/logo.gif" width="40" height="30"></img></html:link></td>
<td width="30"><br /><html:link page="/formulaireModificationVoiture.do" paramName="monBean" paramId="voitureId" paramProperty="id" onmouseover="javascript:see_bubble('modifier');" onmouseout="javascript:kill_bubble();"><img src="/gestentrep/images/logo.gif" width="40" height="30"></img></html:link></td>
<td width="30"><br /><html:link page="/listeEntretients.do" paramName="monBean" paramId="voitureId" paramProperty="id" onmouseover="javascript:see_bubble('liste des entretients');" onmouseout="javascript:kill_bubble();"><img src="/gestentrep/images/liste.gif" width="40" height="30"></img></html:link></td>
<td width="10"></td>
<td>
<br /><%=theVoiture.getNom()%> <br />
</td>
<td>
<br /><%=theVoiture.getModele()%> <br />
</td>
<td>
<br /><%=theVoiture.getAnnee()%> <br />
</td>
<td>
<br /><%=theVoiture.getKilometrage()%> <br />
</td>
</tr>
<% } %>
</table></div>
<%@ include file="../conf/footer.jsp" %> |
Partager