Vous êtes sur la page 1sur 3

<%@ page import="com.oclet.servlet.

ProduitBeans"%>
<%@ page import="com.oclet.matier.Produit"%>
<%@ page import="java.util.Iterator"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Formulaire Saas</title>

</head>
<body>
<%
ProduitBeans produits;
if(request.getAttribute("modele") != null){
produits = (ProduitBeans) request.getAttribute("modele");
}else { produits = new ProduitBeans();}

%>
<table>
<tr>
<td colspan="2">
<input type="test" name ="Rechr" placeholder="Recherche"></td>
<td><input type ="submit" value ="Recherche"></td></tr></table>
</p>

<legend><font color="#6699CC"><u><i><h2>Formulaire Fournisseur</u> :


</i></h2></font></legend>
<div class="a">
<form action="prodserv" method="post" >
<table>
<tr>
<td>

<label><h3><i><u>Nom:</u></i></h3></label>
</td>
<td>
<input type="text"name="nom"placeholder="saisir nom de
Saas"/><br>
</td>
</tr>
<tr>
<td>
<label><h3><i><u>
Fonctionnalité:</u></i></h3></label></td>
<td>
<input type="text" name="fct"
placeholder="siasir Containte Fonctionnel"/><br>
</td>
</tr>
<tr>
<td>
<label><h3><i><u>Sécurité:</u></i></h3></label></td>
<td>
Bon<input type ="radio" name="sec" value="bon">
Moyen<input type ="radio" name="sec"
value="moyen">
Faible<input type ="radio" name="sec"
value="faible"><br>
</td>
</tr>

<td>

<label><h3><i><u>Disponsabilité:</u></i></h3></label></td>
<td>
Oui<input type ="radio" name="dis" value="oui">
Non<input type ="radio" name="dis"
value="non"><br>
</td>
</tr>
<tr>
<td>
<label><h3><i><u>Prix:</u></i></h3></label></td>
<td>
<input type="text" name="prix"
placeholder="siasir prix"/><br>
</td>
</tr>
<tr>
<td>
<label><h3><i><u>
Exprience:</u></i></h3></label></td>
<td>
<input type="text" name="Exp"
placeholder="siasir Exprience"/><br>
</td>
</tr>
<tr>
<td>
<input type ="submit" name="aj"value ="Ajouter" >

</td>
</tr>

</table>
</form>
</div>
<table border ="1" width="60%">
<tr>
<th>ID</th>
<th>nom</th>
<th>foctionalite</th>
<th>securité</th>
<th>disponsabilté</th>
<th>Prix</th>
<th>Exprience</th>
<th>Option</th>
</tr>
<%
Iterator <Produit> list = produits.getListe().iterator();
while (list.hasNext()){
Produit p = list.next();
%>
<tr>
<td> <%=p.getId()%> </td>
<td> <%=p.getNom() %> </td>
<td><%=p.getFonc() %></td>
<td><%=p.getSec() %></td>
<td><%=p.getDis()%></td>
<td><%=p.getPrix() %></td>
<td><%=p.getExp()%></td>
<td>
<form action="prodserv" method="post">
<input type="hidden" name="id" value="<%=p.getId()%>">
<input type="hidden" name="action" value="Supprimer">
<input type ="submit" action ="prodserv" name="sup" value ="Supprimer" />
</form>

<form action="prodserv" method="post">


<input type="hidden" name="id" value="<%=p.getId()%>">
<input type="hidden" name="action" value="Modifie">
<input type ="submit" action ="prodserv" name="sup" value ="Modifie" />
</form>

</td>
</tr>
<% }%>

</table>
</body>
</html>

Vous aimerez peut-être aussi